TokenHolder
This contract provides a safety mechanism for allowing the owner to
send tokens that were sent to the contract by mistake back to the sender.
We consider every contract to be a 'token holder' since it's currently not possible
for a contract to deny receiving tokens.
Functions:
Function receive()
receive()
No description
Function withdrawTokens(contract IReserveToken reserveToken, address payable to, uint256 amount)
withdrawTokens(contract IReserveToken reserveToken, address payable to, uint256 amount)
withdraws funds held by the contract and sends them to an account
can only be called by the owner
Parameters:
reserveToken
: reserve token contract addressto
: account to receive the new amountamount
: amount to withdraw
Function withdrawTokensMultiple(contract IReserveToken[] reserveTokens, address payable to, uint256[] amounts)
withdrawTokensMultiple(contract IReserveToken[] reserveTokens, address payable to, uint256[] amounts)
withdraws multiple funds held by the contract and sends them to an account
can only be called by the owner
Parameters:
reserveTokens
: reserve tokens contract addressesto
: account to receive the new amountamounts
: amounts to withdraw
Last updated