1.0.5 • Published 3 years ago
poolz-multi-sender v1.0.5
MultiSender
Implementation to efficiently send thousands of tokens to multiple addresses through batching and process automation.
Navigation
Installation
npm installTesting
truffle run coverageDeploy
truffle dashboardtruffle migrate --f 1 --to 1 --network dashboardMultisending
There are currently two types of sending tokens. Sending default coins and ERC20 tokens.
1. Send ETH (BNB, MATIC, etc.).
/// @param _users - addresses that receive tokens
/// @param _balances - how many tokens we sent to each address
/// @notice this is a payable function, which means that we need to send ether which will be received by the recipients
function MultiSendEth(address payable[] calldata _users, uint256[] calldata _balances) payableTestnet tx: link
2. Send ERC20
/// @param _token - the address of the ERC20 token we want to send
/// @param _users - addresses that receive tokens
/// @param _balances - how many tokens we sent to each address
function MultiSendERC20(
address _token,
address[] memory _users,
uint256[] calldata _balances
)Testnet tx: link