Asset

Functions

getSelfBalance

Returns the amount of the asset held by this contract.

function getSelfBalance(address asset) internal view returns (uint256);

Parameters

NameTypeDescription

asset

address

The asset to check.

transferTo

Sends amount of the given asset to recipient.

function transferTo(address asset, address recipient, uint256 amount) internal;

Parameters

NameTypeDescription

asset

address

The asset to send.

recipient

address

The asset recipient.

amount

uint256

The amount of the asset to send.

transferETH

Sends amount of ETH to recipient.

This function limits the gas passed with the call to 10,000.

function transferETH(address recipient, uint256 amount) internal;

Parameters

NameTypeDescription

recipient

address

The asset recipient.

amount

uint256

The amount of ETH to send.

Errors

ETH_TRANSFER_FAILED

Thrown when an ETH transfer fails.

error ETH_TRANSFER_FAILED();

Last updated