Contract detail
Disperse
Disperse is a verified Robinhood Chain smart contract at 0xbd24ef29…6032f779 with 323 indexed transactions.
- Address type
- Smart contract
- Transactions
- 323
- First indexed block
- #1105168
- Latest indexed block
- #61181441
- Funding transaction
- 0x2ea2526d…127b854c in block #1137424
- ERC-20 transfers
- 1
- Verification
- Verified
- Compiler
- v0.4.26+commit.4563c3fc
- Verification match
- partial
- Creation transaction
- 0xfe596d32…2e717e41
- Created at block
- #1105168
- Language
- solidity
- EVM version
- byzantium
- License
- none
- Compiler optimization
- Enabled · 1000 runs
Related activity
Transactions
| Transaction | Block | From | To | Value (wei) |
|---|---|---|---|---|
| 0xf3345c7a…ddc1489e | #76056015 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 160000000000000000 |
| 0xeb50e3a4…39900b44 | #69948927 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 160000000000000000 |
| 0xadd19526…4d180e91 | #69948317 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 640000000000000000 |
| 0x3ea0f359…304745ee | #69947690 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 720000000000000000 |
| 0x64ee0a91…5c9fd3ef | #66566395 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 160000000000000000 |
| 0xd3392d20…36e49409 | #63269121 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 160000000000000000 |
| 0x9fe2a852…5968140c | #61475039 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 160000000000000000 |
| 0xd47dee7a…c952bdb4 | #61249168 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 240000000000000000 |
| 0x5c938150…4a964c18 | #61183704 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 240000000000000000 |
| 0xbe94fbd5…ca692f1b | #61181441 | 0x32f29f17…f1f1c5bc | 0xbd24ef29…6032f779 | 320000000000000000 |
Verified contract
Contract source code
/**
*Submitted for verification at Etherscan.io on 2018-10-22
*/
pragma solidity ^0.4.25;
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
contract Disperse {
function disperseEther(address[] recipients, uint256[] values) external payable {
for (uint256 i = 0; i < recipients.length; i++)
recipients[i].transfer(values[i]);
uint256 balance = address(this).balance;
if (balance > 0)
msg.sender.transfer(balance);
}
function disperseToken(IERC20 token, address[] recipients, uint256[] values) external {
uint256 total = 0;
for (uint256 i = 0; i < recipients.length; i++)
total += values[i];
require(token.transferFrom(msg.sender, address(this), total));
for (i = 0; i < recipients.length; i++)
require(token.transfer(recipients[i], values[i]));
}
function disperseTokenSimple(IERC20 token, address[] recipients, uint256[] values) external {
for (uint256 i = 0; i < recipients.length; i++)
require(token.transferFrom(msg.sender, recipients[i], values[i]));
}
}