Skip to content

Instantly share code, notes, and snippets.

@dAAAb
Created December 27, 2019 17:46
Show Gist options
  • Save dAAAb/69903138f292e2c6b04371232cc2a6d8 to your computer and use it in GitHub Desktop.
Save dAAAb/69903138f292e2c6b04371232cc2a6d8 to your computer and use it in GitHub Desktop.
Multisend-ERC20
contract ERC20 {
function transfer(address _recipient, uint256 amount) public;
}
contract MultiTransfer {
function multiTransfer(ERC20 token, address[] _addresses, uint256 amount) public {
for (uint256 i = 0; i < _addresses.length; i++) {
token.transfer(_addresses[i], amount);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment