Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 15 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
4361861 | 2 days ago | 0 ETH | ||||
4361861 | 2 days ago | 0.005 ETH | ||||
4361861 | 2 days ago | 0 ETH | ||||
4361861 | 2 days ago | 0.005 ETH | ||||
4361861 | 2 days ago | 0 ETH | ||||
4361861 | 2 days ago | 0.01 ETH | ||||
4361859 | 2 days ago | 0 ETH | ||||
4361859 | 2 days ago | 0 ETH | ||||
4361859 | 2 days ago | 0 ETH | ||||
4361859 | 2 days ago | 500 wei | ||||
4361859 | 2 days ago | 0 ETH | ||||
4361859 | 2 days ago | 500 wei | ||||
4361859 | 2 days ago | 0 ETH | ||||
4361859 | 2 days ago | 0 ETH | ||||
4357024 | 2 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
Disperse
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** *Submitted for verification at Etherscan.io on 2018-10-22 */ pragma solidity ^0.8.13; 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 payable[] memory recipients, uint256[] memory values) external payable { for (uint256 i = 0; i < recipients.length; i++) { (bool success, ) = recipients[i].call{value: values[i]}(""); require(success, "Transfer to recipient failed"); } uint256 balance = address(this).balance; if (balance > 0) { (bool success, ) = payable(msg.sender).call{value: balance}(""); require(success, "Refund to sender failed"); } } function disperseToken(IERC20 token, address[] memory recipients, uint256[] memory 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 (uint256 i = 0; i < recipients.length; i++) require(token.transfer(recipients[i], values[i])); } function disperseTokenSimple(IERC20 token, address[] memory recipients, uint256[] memory values) external { for (uint256 i = 0; i < recipients.length; i++) require(token.transferFrom(msg.sender, recipients[i], values[i])); } }
{ "viaIR": false, "codegen": "yul", "remappings": [ "forge-std/=lib/forge-std/src/" ], "evmVersion": "cancun", "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "optimizer": { "enabled": true, "mode": "3", "fallback_to_optimizing_for_size": false, "disable_system_request_memoization": true }, "metadata": {}, "libraries": {}, "enableEraVMExtensions": false, "forceEVMLA": false }
[{"inputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"disperseEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"disperseToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"disperseTokenSimple","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010000fdef1593f97a9da636500621472726d80d5a9c7ed7cf91265df1d8e4e000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x000200000000000200060000000000020000006003100270000000e30330019700010000003103550000008004000039000000400040043f0000000100200190000000e10000c13d000000040030008c000001b80000413d000000000201043b000000e002200270000000e50020009c000000e90000613d000000e60020009c000001af0000613d000000e70020009c000001b80000c13d000000640030008c000001b80000413d0000000002000416000000000002004b000001b80000c13d0000000402100370000000000202043b000000eb0020009c000001b80000213d0000002405100370000000000505043b000000e80050009c000001b80000213d0000002306500039000000000036004b000001b80000813d0000000406500039000000000661034f000000000706043b000000fa0070009c000001cb0000813d00000005067002100000003f08600039000000e908800197000000ea0080009c000001cb0000213d0000008008800039000000400080043f000000800070043f00000024055000390000000006560019000000000036004b000001b80000213d000000000007004b0000003f0000613d000000000751034f000000000707043b000000eb0070009c000001b80000213d000000200440003900000000007404350000002005500039000000000065004b000000360000413d0000004404100370000000000404043b000000e80040009c000001b80000213d0000002305400039000000000035004b0000000006000019000000ec06004041000000ec05500197000000000005004b0000000007000019000000ec07002041000000ec0050009c000000000706c019000000000007004b000001b80000613d0000000405400039000000000551034f000000000505043b000000e80050009c000001cb0000213d00000005065002100000003f07600039000000e907700197000000400900043d0000000007790019000000000097004b00000000080000390000000108004039000000e80070009c000001cb0000213d0000000100800190000001cb0000c13d000000400070043f000000000759043600000024044000390000000006460019000000000036004b000001b80000213d000400000007001d000000000005004b000000710000613d0000000003090019000000000541034f000000000505043b000000200330003900000000005304350000002004400039000000000064004b0000006a0000413d000000800100043d000000000001004b00000004050000290000035d0000613d000000eb02200197000000f6060000410000000001000411000000eb071001970000000008000019000300000009001d000200000002001d000100000007001d0000000001090433000000000081004b000002eb0000a13d000000050180021000000000031500190000000004030433000000a0011000390000000001010433000000400a00043d0000004403a000390000000000430435000000eb011001970000002403a00039000000000013043500000000006a04350000000401a0003900000000007104350000000001000414000000040020008c000000960000c13d0000000003000031000000200030008c00000020040000390000000004034019000000c80000013d000500000008001d000000e300a0009c000000e30300004100000000030a40190000004003300210000000e30010009c000000e301008041000000c001100210000000000131019f000000f0011001c700060000000a001d0388037e0000040f000000060a0000290000006003100270000000e303300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000000b10000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000000ad0000c13d0000001f07400190000000be0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000000003001f0001000000010355000000010020019000000003090000290000035f0000613d00000004050000290000000202000029000000f606000041000000010700002900000005080000290000001f01400039000000600410018f0000000001a40019000000000041004b00000000040000390000000104004039000000e80010009c000001cb0000213d0000000100400190000001cb0000c13d000000400010043f000000200030008c000001b80000413d00000000010a0433000000000001004b0000000003000039000000010300c039000001b80000613d000000000031004b000001b80000c13d0000000108800039000000800100043d000000000018004b0000007d0000413d0000035d0000013d0000000001000416000000000001004b000001b80000c13d000000200100003900000100001004430000012000000443000000e401000041000003890001042e000000440030008c000001b80000413d0000000402100370000000000202043b000000e80020009c000001b80000213d0000002304200039000000000034004b000001b80000813d0000000404200039000000000441034f000000000504043b000000e80050009c000001cb0000213d00000005045002100000003f06400039000000e906600197000000ea0060009c000001cb0000213d0000008006600039000000400060043f000000800050043f00000024022000390000000004240019000000000034004b000001b80000213d000000000005004b0000010e0000613d000000a005000039000000000621034f000000000606043b000000eb0060009c000001b80000213d00000000056504360000002002200039000000000042004b000001060000413d0000002402100370000000000202043b000000e80020009c000001b80000213d0000002304200039000000000034004b0000000005000019000000ec05004041000000ec04400197000000000004004b0000000006000019000000ec06002041000000ec0040009c000000000605c019000000000006004b000001b80000613d0000000404200039000000000441034f000000000404043b000000e80040009c000001cb0000213d00000005054002100000003f06500039000000e906600197000000400900043d0000000006690019000000000096004b00000000070000390000000107004039000000e80060009c000001cb0000213d0000000100700190000001cb0000c13d000000400060043f000000000a49043600000024022000390000000005250019000000000035004b000001b80000213d000000000004004b0000013f0000613d0000000004090019000000000621034f000000000606043b000000200440003900000000006404350000002002200039000000000052004b000001380000413d000000800200043d000000000002004b000001980000613d000000000131034f000000200b00008a000000000c000019000500000009001d00040000000a001d00000000020904330000000000c2004b000002eb0000a13d0000000502c00210000000a0032000390000000003030433000000eb0430019700000000022a001900000000030204330000000002000414000000040040008c000001580000c13d00000000030000310000000102000039000000000003004b0000016e0000c13d000001920000013d00060000000c001d000000e30020009c000000e302008041000000c001200210000000000003004b000001620000613d000000ed011001c700008009020000390000000005000019000001630000013d00000000020400190388037e0000040f00010000000103550000006003100270000000e30030019d000000e3033001970000000509000029000000040a000029000000200b00008a000000060c000029000000000003004b000001920000613d0000001f043000390000000004b4016f0000003f044000390000000005b4016f000000400400043d0000000005540019000000000045004b00000000060000390000000106004039000000e80050009c000001cb0000213d0000000100600190000001cb0000c13d000000400050043f00000000063404360000000005b301700000000004560019000001850000613d000000000701034f000000007807043c0000000006860436000000000046004b000001810000c13d0000001f03300190000001920000613d000000000551034f0000000303300210000000000604043300000000063601cf000000000636022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000363019f00000000003404350000000100200190000002f10000613d000000010cc00039000000800200043d00000000002c004b000001470000413d000000f1010000410000000000100443000000000100041000000004001004430000000001000414000000e30010009c000000e301008041000000c001100210000000f2011001c70000800a02000039038803830000040f0000000100200190000002420000613d000000000301043b000000000003004b0000035d0000613d00000000010004140000000004000411000000040040008c000003160000c13d00000001020000390000000001000031000003220000013d000000640030008c000001b80000413d0000000002000416000000000002004b000001b80000c13d0000000402100370000000000202043b000000eb0020009c000001ba0000a13d00000000010000190000038a000104300000002404100370000000000404043b000000e80040009c000001b80000213d0000002305400039000000000035004b000001b80000813d0000000405400039000000000551034f000000000605043b000000e80060009c000001cb0000213d00000005056002100000003f07500039000000e907700197000000ea0070009c000001d10000a13d000000f401000041000000000010043f0000004101000039000000040010043f000000f5010000410000038a000104300000008007700039000000400070043f000000800060043f00000024044000390000000005450019000000000035004b000001b80000213d000000000006004b000001e40000613d0000008006000039000000000741034f000000000707043b000000eb0070009c000001b80000213d000000200660003900000000007604350000002004400039000000000054004b000001db0000413d0000004404100370000000000404043b000000e80040009c000001b80000213d0000002305400039000000000035004b0000000006000019000000ec06004041000000ec05500197000000000005004b0000000007000019000000ec07002041000000ec0050009c000000000706c019000000000007004b000001b80000613d0000000405400039000000000551034f000000000505043b000000e80050009c000001cb0000213d00000005065002100000003f07600039000000e907700197000000400900043d0000000007790019000000000097004b00000000080000390000000108004039000000e80070009c000001cb0000213d0000000100800190000001cb0000c13d000000400070043f000000000759043600000024044000390000000006460019000000000036004b000001b80000213d000400000007001d000000000005004b000002160000613d0000000003090019000000000541034f000000000505043b000000200330003900000000005304350000002004400039000000000064004b0000020f0000413d000000800100043d000000000001004b00000000030000190000000407000029000002290000613d000000000409043300000000050000190000000003000019000000000054004b000002eb0000a13d000000050650021000000000066700190000000006060433000000000036001a000003770000413d00000000033600190000000105500039000000000015004b0000021e0000413d000200000009001d000000400400043d000000440140003900000000003104350000000001000410000000eb0110019700000024034000390000000000130435000000f60100004100000000001404350000000001000411000000eb01100197000600000004001d000000040340003900000000001304350000000001000414000000eb02200197000300000002001d000000040020008c000002430000c13d0000000003000031000000200030008c000000200400003900000000040340190000026e0000013d000000000001042f0000000602000029000000e30020009c000000e3020080410000004002200210000000e30010009c000000e301008041000000c001100210000000000121019f000000f0011001c700000003020000290388037e0000040f0000006003100270000000e303300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000006057000290000025d0000613d000000000801034f0000000609000029000000008a08043c0000000009a90436000000000059004b000002590000c13d000000000006004b0000026a0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f00010000000103550000000100200190000002f80000613d0000001f01400039000000600110018f000000060a10002900000000001a004b00000000010000390000000101004039000000e800a0009c000000020500002900000004060000290000000307000029000001cb0000213d0000000100100190000001cb0000c13d0000004000a0043f000000200030008c000001b80000413d00000006010000290000000001010433000000000001004b0000000002000039000000010200c039000001b80000613d000000000021004b000001b80000c13d000000800100043d000000000001004b0000035d0000613d000000f8080000410000002009000039000000000b00001900000000010504330000000000b1004b000002eb0000a13d0000000501b0021000000000021600190000000002020433000000a00110003900000000010104330000002404a00039000000000024043500000000008a04350000000402a00039000000eb0110019700000000001204350000000001000414000000040070008c0000000004090019000002d10000613d00050000000b001d000000e300a0009c000000e30200004100000000020a40190000004002200210000000e30010009c000000e301008041000000c001100210000000000121019f000000f9011001c7000000000207001900060000000a001d0388037e0000040f000000060a0000290000006003100270000000e303300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000002ba0000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000002b60000c13d0000001f07400190000002c70000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000000003001f0001000000010355000000010020019000000002050000290000002009000039000000050b0000290000036b0000613d00000004060000290000000307000029000000f8080000410000001f01400039000000600210018f0000000001a20019000000000021004b00000000020000390000000102004039000000e80010009c000001cb0000213d0000000100200190000001cb0000c13d000000400010043f000000200030008c000001b80000413d00000000020a0433000000000002004b0000000004000039000000010400c039000001b80000613d000000000042004b000001b80000c13d000000010bb00039000000800200043d00000000002b004b000000000a0100190000028c0000413d0000035d0000013d000000f401000041000000000010043f0000003201000039000000040010043f000000f5010000410000038a00010430000000400100043d0000004402100039000000ee03000041000000000032043500000024021000390000001c03000039000003520000013d0000001f0530018f000000f706300198000000400200043d0000000004620019000003030000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002ff0000c13d000000000005004b000003100000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000000e30020009c000000e3020080410000004002200210000000000112019f0000038a00010430000000e30010009c000000e301008041000000c001100210000000ed011001c7000080090200003900000000050000190388037e0000040f000000010220018f00010000000103550000006001100270000000e30010019d000000e301100197000000000001004b0000034a0000613d0000001f04100039000000fb044001970000003f04400039000000fb05400197000000400400043d0000000005540019000000000045004b00000000060000390000000106004039000000e80050009c000001cb0000213d0000000100600190000001cb0000c13d000000400050043f0000000006140436000000fb031001980000001f0410018f000000000136001900000001050003670000033d0000613d000000000705034f000000007807043c0000000006860436000000000016004b000003390000c13d000000000004004b0000034a0000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000000000002004b0000035d0000c13d000000400100043d0000004402100039000000f3030000410000000000320435000000240210003900000017030000390000000000320435000000ef020000410000000000210435000000040210003900000020030000390000000000320435000000e30010009c000000e3010080410000004001100210000000f0011001c70000038a000104300000000001000019000003890001042e0000001f0530018f000000f706300198000000400200043d0000000004620019000003030000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003660000c13d000003030000013d0000001f0530018f000000f706300198000000400200043d0000000004620019000003030000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003720000c13d000003030000013d000000f401000041000000000010043f0000001101000039000000040010043f000000f5010000410000038a00010430000000000001042f00000381002104210000000102000039000000000001042d0000000002000019000000000001042d00000386002104230000000102000039000000000001042d0000000002000019000000000001042d0000038800000432000003890001042e0000038a00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000e63d38ed00000000000000000000000000000000000000000000000000000000c73a2d600000000000000000000000000000000000000000000000000000000051ba162c000000000000000000000000000000000000000000000000ffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff7f000000000000000000000000ffffffffffffffffffffffffffffffffffffffff800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005472616e7366657220746f20726563697069656e74206661696c65640000000008c379a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f390200000200000000000000000000000000000024000000000000000000000000526566756e6420746f2073656e646572206661696c65640000000000000000004e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000023b872dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffe0a9059cbb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000000000000000000000000000000000000000000000000000010000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0bc78f35debcc58c094e809b50effca9e4a70e230e718e25d8fa04a76e2699f0d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.