Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SimpleMultiSender
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2022-10-21
*/
//SPDX-License-Identifier: Unlicense
pragma solidity 0.8.0;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
contract SimpleMultiSender {
function multiSend(
address _token,
address[] calldata _addresses,
uint256[] calldata _amounts,
uint256 _amountSum
) external {
IERC20 token = IERC20(_token);
token.transferFrom(msg.sender, address(this), _amountSum);
for (uint8 i; i < _addresses.length; i++) {
token.transfer(_addresses[i], _amounts[i]);
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"_amountSum","type":"uint256"}],"name":"multiSend","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50610596806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063c4ecb7af14610030575b600080fd5b61004a6004803603810190610045919061032b565b61004c565b005b60008690508073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b815260040161008e9392919061040d565b602060405180830381600087803b1580156100a857600080fd5b505af11580156100bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e091906103c6565b5060005b868690508160ff161015610225578173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88888460ff1681811061014a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061015f9190610302565b87878560ff1681811061019b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518363ffffffff1660e01b81526004016101bf929190610444565b602060405180830381600087803b1580156101d957600080fd5b505af11580156101ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021191906103c6565b50808061021d906104c2565b9150506100e4565b5050505050505050565b60008135905061023e8161051b565b92915050565b60008083601f84011261025657600080fd5b8235905067ffffffffffffffff81111561026f57600080fd5b60208301915083602082028301111561028757600080fd5b9250929050565b60008083601f8401126102a057600080fd5b8235905067ffffffffffffffff8111156102b957600080fd5b6020830191508360208202830111156102d157600080fd5b9250929050565b6000815190506102e781610532565b92915050565b6000813590506102fc81610549565b92915050565b60006020828403121561031457600080fd5b60006103228482850161022f565b91505092915050565b6000806000806000806080878903121561034457600080fd5b600061035289828a0161022f565b965050602087013567ffffffffffffffff81111561036f57600080fd5b61037b89828a01610244565b9550955050604087013567ffffffffffffffff81111561039a57600080fd5b6103a689828a0161028e565b935093505060606103b989828a016102ed565b9150509295509295509295565b6000602082840312156103d857600080fd5b60006103e6848285016102d8565b91505092915050565b6103f88161046d565b82525050565b610407816104ab565b82525050565b600060608201905061042260008301866103ef565b61042f60208301856103ef565b61043c60408301846103fe565b949350505050565b600060408201905061045960008301856103ef565b61046660208301846103fe565b9392505050565b60006104788261048b565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006104cd826104b5565b915060ff8214156104e1576104e06104ec565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6105248161046d565b811461052f57600080fd5b50565b61053b8161047f565b811461054657600080fd5b50565b610552816104ab565b811461055d57600080fd5b5056fea26469706673582212207211963919b52c92f0f4d04ae33bbd9a1901b4d77de1604d9ad560dc9d4242c564736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063c4ecb7af14610030575b600080fd5b61004a6004803603810190610045919061032b565b61004c565b005b60008690508073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b815260040161008e9392919061040d565b602060405180830381600087803b1580156100a857600080fd5b505af11580156100bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e091906103c6565b5060005b868690508160ff161015610225578173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88888460ff1681811061014a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061015f9190610302565b87878560ff1681811061019b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518363ffffffff1660e01b81526004016101bf929190610444565b602060405180830381600087803b1580156101d957600080fd5b505af11580156101ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021191906103c6565b50808061021d906104c2565b9150506100e4565b5050505050505050565b60008135905061023e8161051b565b92915050565b60008083601f84011261025657600080fd5b8235905067ffffffffffffffff81111561026f57600080fd5b60208301915083602082028301111561028757600080fd5b9250929050565b60008083601f8401126102a057600080fd5b8235905067ffffffffffffffff8111156102b957600080fd5b6020830191508360208202830111156102d157600080fd5b9250929050565b6000815190506102e781610532565b92915050565b6000813590506102fc81610549565b92915050565b60006020828403121561031457600080fd5b60006103228482850161022f565b91505092915050565b6000806000806000806080878903121561034457600080fd5b600061035289828a0161022f565b965050602087013567ffffffffffffffff81111561036f57600080fd5b61037b89828a01610244565b9550955050604087013567ffffffffffffffff81111561039a57600080fd5b6103a689828a0161028e565b935093505060606103b989828a016102ed565b9150509295509295509295565b6000602082840312156103d857600080fd5b60006103e6848285016102d8565b91505092915050565b6103f88161046d565b82525050565b610407816104ab565b82525050565b600060608201905061042260008301866103ef565b61042f60208301856103ef565b61043c60408301846103fe565b949350505050565b600060408201905061045960008301856103ef565b61046660208301846103fe565b9392505050565b60006104788261048b565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006104cd826104b5565b915060ff8214156104e1576104e06104ec565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6105248161046d565b811461052f57600080fd5b50565b61053b8161047f565b811461054657600080fd5b50565b610552816104ab565b811461055d57600080fd5b5056fea26469706673582212207211963919b52c92f0f4d04ae33bbd9a1901b4d77de1604d9ad560dc9d4242c564736f6c63430008000033
Deployed Bytecode Sourcemap
2703:403:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2741:362;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;2897:12;2919:6;2897:29;;2933:5;:18;;;2952:10;2972:4;2979:10;2933:57;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3002:7;2997:101;3015:10;;:17;;3011:1;:21;;;2997:101;;;3048:5;:14;;;3063:10;;3074:1;3063:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3078:8;;3087:1;3078:11;;;;;;;;;;;;;;;;;;;;;;;3048:42;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3034:3;;;;;:::i;:::-;;;;2997:101;;;;2741:362;;;;;;;:::o;7:139:1:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;169:367::-;;;302:3;295:4;287:6;283:17;279:27;269:2;;320:1;317;310:12;269:2;356:6;343:20;333:30;;386:18;378:6;375:30;372:2;;;418:1;415;408:12;372:2;455:4;447:6;443:17;431:29;;509:3;501:4;493:6;489:17;479:8;475:32;472:41;469:2;;;526:1;523;516:12;469:2;259:277;;;;;:::o;559:367::-;;;692:3;685:4;677:6;673:17;669:27;659:2;;710:1;707;700:12;659:2;746:6;733:20;723:30;;776:18;768:6;765:30;762:2;;;808:1;805;798:12;762:2;845:4;837:6;833:17;821:29;;899:3;891:4;883:6;879:17;869:8;865:32;862:41;859:2;;;916:1;913;906:12;859:2;649:277;;;;;:::o;932:137::-;;1017:6;1011:13;1002:22;;1033:30;1057:5;1033:30;:::i;:::-;992:77;;;;:::o;1075:139::-;;1159:6;1146:20;1137:29;;1175:33;1202:5;1175:33;:::i;:::-;1127:87;;;;:::o;1220:262::-;;1328:2;1316:9;1307:7;1303:23;1299:32;1296:2;;;1344:1;1341;1334:12;1296:2;1387:1;1412:53;1457:7;1448:6;1437:9;1433:22;1412:53;:::i;:::-;1402:63;;1358:117;1286:196;;;;:::o;1488:1024::-;;;;;;;1717:3;1705:9;1696:7;1692:23;1688:33;1685:2;;;1734:1;1731;1724:12;1685:2;1777:1;1802:53;1847:7;1838:6;1827:9;1823:22;1802:53;:::i;:::-;1792:63;;1748:117;1932:2;1921:9;1917:18;1904:32;1963:18;1955:6;1952:30;1949:2;;;1995:1;1992;1985:12;1949:2;2031:80;2103:7;2094:6;2083:9;2079:22;2031:80;:::i;:::-;2013:98;;;;1875:246;2188:2;2177:9;2173:18;2160:32;2219:18;2211:6;2208:30;2205:2;;;2251:1;2248;2241:12;2205:2;2287:80;2359:7;2350:6;2339:9;2335:22;2287:80;:::i;:::-;2269:98;;;;2131:246;2416:2;2442:53;2487:7;2478:6;2467:9;2463:22;2442:53;:::i;:::-;2432:63;;2387:118;1675:837;;;;;;;;:::o;2518:278::-;;2634:2;2622:9;2613:7;2609:23;2605:32;2602:2;;;2650:1;2647;2640:12;2602:2;2693:1;2718:61;2771:7;2762:6;2751:9;2747:22;2718:61;:::i;:::-;2708:71;;2664:125;2592:204;;;;:::o;2802:118::-;2889:24;2907:5;2889:24;:::i;:::-;2884:3;2877:37;2867:53;;:::o;2926:118::-;3013:24;3031:5;3013:24;:::i;:::-;3008:3;3001:37;2991:53;;:::o;3050:442::-;;3237:2;3226:9;3222:18;3214:26;;3250:71;3318:1;3307:9;3303:17;3294:6;3250:71;:::i;:::-;3331:72;3399:2;3388:9;3384:18;3375:6;3331:72;:::i;:::-;3413;3481:2;3470:9;3466:18;3457:6;3413:72;:::i;:::-;3204:288;;;;;;:::o;3498:332::-;;3657:2;3646:9;3642:18;3634:26;;3670:71;3738:1;3727:9;3723:17;3714:6;3670:71;:::i;:::-;3751:72;3819:2;3808:9;3804:18;3795:6;3751:72;:::i;:::-;3624:206;;;;;:::o;3836:96::-;;3902:24;3920:5;3902:24;:::i;:::-;3891:35;;3881:51;;;:::o;3938:90::-;;4015:5;4008:13;4001:21;3990:32;;3980:48;;;:::o;4034:126::-;;4111:42;4104:5;4100:54;4089:65;;4079:81;;;:::o;4166:77::-;;4232:5;4221:16;;4211:32;;;:::o;4249:86::-;;4324:4;4317:5;4313:16;4302:27;;4292:43;;;:::o;4341:167::-;;4401:22;4417:5;4401:22;:::i;:::-;4392:31;;4445:4;4438:5;4435:15;4432:2;;;4453:18;;:::i;:::-;4432:2;4500:1;4493:5;4489:13;4482:20;;4382:126;;;:::o;4514:180::-;4562:77;4559:1;4552:88;4659:4;4656:1;4649:15;4683:4;4680:1;4673:15;4700:122;4773:24;4791:5;4773:24;:::i;:::-;4766:5;4763:35;4753:2;;4812:1;4809;4802:12;4753:2;4743:79;:::o;4828:116::-;4898:21;4913:5;4898:21;:::i;:::-;4891:5;4888:32;4878:2;;4934:1;4931;4924:12;4878:2;4868:76;:::o;4950:122::-;5023:24;5041:5;5023:24;:::i;:::-;5016:5;5013:35;5003:2;;5062:1;5059;5052:12;5003:2;4993:79;:::o
Swarm Source
ipfs://7211963919b52c92f0f4d04ae33bbd9a1901b4d77de1604d9ad560dc9d4242c5
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.