View Source: contracts/TransferBase.sol
↗ Extends: CappedTransfer ↘ Derived Contracts: BulkTransfer
TransferBase
The base contract which contains features related to token transfers.
Events
event TransferPerformed(address indexed token, address indexed transferredBy, address indexed destination, uint256 amount);
event EtherTransferPerformed(address indexed transferredBy, address indexed destination, uint256 amount);- transferTokens(address token, address destination, uint256 amount)
- transferEthers(address payable destination, uint256 amount)
- tokenBalanceOf(address token)
- ()
Allows the sender to transfer tokens to the beneficiary.
function transferTokens(address token, address destination, uint256 amount) external nonpayable onlyAdmin whenNotPaused
returns(bool)Returns
Returns true if the operation was successful.
Arguments
| Name | Type | Description |
|---|---|---|
| token | address | The ERC20 token to transfer. |
| destination | address | The destination wallet address to send funds to. |
| amount | uint256 | The amount of tokens to send to the specified address. |
Allows the sender to transfer Ethers to the beneficiary.
function transferEthers(address payable destination, uint256 amount) external nonpayable onlyAdmin whenNotPaused
returns(bool)Returns
Returns true if the operation was successful.
Arguments
| Name | Type | Description |
|---|---|---|
| destination | address payable | The destination wallet address to send funds to. |
| amount | uint256 | The amount of Ether in wei to send to the specified address. |
function tokenBalanceOf(address token) external view
returns(uint256)Returns
Returns balance of the ERC20 token held by this contract.
Arguments
| Name | Type | Description |
|---|---|---|
| token | address |
Accepts incoming funds
function () external payable whenNotPaused Arguments
| Name | Type | Description |
|---|