poolz-multi-sender
v1.0.5
Published
[![Build Status](https://api.travis-ci.com/The-Poolz/MultiSender.svg?token=qArPwDxVjiye5pPqiscU)](https://app.travis-ci.com/github/The-Poolz/MultiSender)
Downloads
2
Readme
MultiSender
Implementation to efficiently send thousands of tokens to multiple addresses through batching and process automation.
Navigation
Installation
npm install
Testing
truffle run coverage
Deploy
truffle dashboard
truffle migrate --f 1 --to 1 --network dashboard
Multisending
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) payable
Testnet 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