1.0.5 • Published 2 years ago

poolz-multi-sender v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

MultiSender

Build Status

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