Transfer with Router Contract
This contract allows to transfer tokens and ether to a target address only by allowed callers and emit events. RetroRouter contract used to initate cross-chain transactions from other smart-contracts
Router's main methods
transferToken
*Used for ERC20 transfers
Parameter | Type | Description |
---|---|---|
sender | address | User's address for which transfer was initiated |
token | ERC20 | Token to transfer (needs ERC20 approval) |
amount | uint256 | The amount of the token to send |
transferEther
*Used for native transfers
Parameter | Type | Description |
---|---|---|
sender | address | User's address for which transfer was initiated |
Last updated