Skip to content

Latest commit

 

History

History
115 lines (80 loc) · 2.92 KB

File metadata and controls

115 lines (80 loc) · 2.92 KB

Transfer Base Contract (TransferBase.sol)

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);

Functions

transferTokens

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.

transferEthers

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.

tokenBalanceOf

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

Contracts