Asset
Functions
getSelfBalance
Returns the amount of the asset held by this contract.
Parameters
Name
Type
Description
asset
address
The asset to check.
transferTo
Sends amount
of the given asset to recipient
.
Parameters
Name
Type
Description
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
.
Parameters
Name
Type
Description
recipient
address
The asset recipient.
amount
uint256
The amount of ETH to send.
toWei
Converts an amount of Gwei to Wei.
Parameters
Name
Type
Description
amountGwei
uint256
The amount in Gwei to convert.
toGwei
Converts an amount of Wei to Gwei.
Parameters
Name
Type
Description
amountWei
uint256
The amount in Wei to convert.
reducePrecisionToGwei
Reduces the precision of the given amount to the nearest Gwei.
Parameters
Name
Type
Description
amountWei
uint256
The amount whose precision is to be reduced.
Errors
ETH_TRANSFER_FAILED
Thrown when an ETH transfer fails.
Last updated