View Source: contracts/BulkTransfer.sol
↗ Extends: TransferBase ↘ Derived Contracts: SimpleWallet
BulkTransfer
The bulk transfer contract enables administrators to transfer an ERC20 token or Ethereum in batches. Every single feature of this contract is strictly restricted to be used by admin(s) only.
Events
event BulkTransferPerformed(address indexed token, address indexed transferredBy, uint256 length, uint256 totalAmount);
event EtherBulkTransferPerformed(address indexed transferredBy, uint256 length, uint256 totalAmount);
- sumOf(uint256[] values)
- bulkTransfer(address token, address[] destinations, uint256[] amounts)
- bulkTransferEther(address[] destinations, uint256[] amounts)
Creates a sum total of the supplied values.
function sumOf(uint256[] values) private pure
returns(uint256)
Returns
Returns the sum total of the supplied values.
Arguments
Name | Type | Description |
---|---|---|
values | uint256[] | The collection of values to create the sum from. |
Allows the requester to perform ERC20 bulk transfer operation.
function bulkTransfer(address token, address[] destinations, uint256[] amounts) external nonpayable onlyAdmin whenNotPaused
returns(bool)
Returns
Returns true if the operation was successful.
Arguments
Name | Type | Description |
---|---|---|
token | address | The ERC20 token to bulk transfer. |
destinations | address[] | The destination wallet addresses to send funds to. |
amounts | uint256[] | The respective amount of funds to send to the specified addresses. |
Allows the requester to perform Ethereum bulk transfer operation.
function bulkTransferEther(address[] destinations, uint256[] amounts) external nonpayable onlyAdmin whenNotPaused
returns(bool)
Returns
Returns true if the operation was successful.
Arguments
Name | Type | Description |
---|---|---|
destinations | address[] | The destination wallet addresses to send funds to. |
amounts | uint256[] | The respective amount of funds to send to the specified addresses. |