CallProxy

Proxy to make user's calls to other contracts

State-Changing Functions

call

function call(
address _reserveAddress,
address _receiver,
bytes memory _data
) external;

Used for calls where native asset transfer is involved.

Parameter

Type

Description

_reserveAddress

address

Token's receiver if the call fails

_receiver

address

Contract to be called

_data

bytes memory

Call data

callERC20

function callERC20(
address _token,
address _reserveAddress,
address _receiver,
bytes memory _data
) external;

Used for calls where ERC20 transfer is involved.

Parameter

Type

Description

_token

address

Asset address

_reserveAddress

address

Token's receiver if the call fails

_receiver

address

Contract to be called

_data

bytes memory

Call data