Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
BatchBridge
Compiler Version
v0.8.1+commit.df193b15
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2024-12-18 */ // SPDX-License-Identifier: MIT pragma solidity >= 0.8.0; interface IBridge { function deposit(uint256 fee) external payable; } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } contract BatchBridge { address owner; address bridge = 0x3561607590e28e0848ba3B67074C676D6D1C9953; uint256 MAX_DEPOSIT = 100 ether; constructor() { owner = msg.sender; } function withdraw(address token) public { require(msg.sender == address(owner)); IERC20(token).transfer(msg.sender, IERC20(token).balanceOf(address(this))); } function withdrawNative(uint256 amount) public { require(msg.sender == address(owner)); payable(owner).transfer(amount); } receive() external payable { uint256 loops = msg.value; for (uint256 i=0; i<loops; i++) { IBridge(bridge).deposit{value: MAX_DEPOSIT}(0); } } function setMax(uint256 max) public { require(owner == msg.sender); MAX_DEPOSIT = max; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052733561607590e28e0848ba3b67074c676d6d1c9953600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555068056bc75e2d6310000060025534801561007257600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506106db806100c26000396000f3fe6080604052600436106100385760003560e01c80631fe9eabc146100fa57806351cff8d91461012357806384276d811461014c576100f5565b366100f557600034905060005b818110156100f157600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6b55f2560025460006040518363ffffffff1660e01b81526004016100ac9190610573565b6000604051808303818588803b1580156100c557600080fd5b505af11580156100d9573d6000803e3d6000fd5b505050505080806100e9906105e8565b915050610045565b5050005b600080fd5b34801561010657600080fd5b50610121600480360381019061011c91906104b0565b610175565b005b34801561012f57600080fd5b5061014a6004803603810190610145919061045e565b6101d7565b005b34801561015857600080fd5b50610173600480360381019061016e91906104b0565b610348565b005b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146101cd57600080fd5b8060028190555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461022f57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610285919061052f565b60206040518083038186803b15801561029d57600080fd5b505afa1580156102b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d591906104d9565b6040518363ffffffff1660e01b81526004016102f292919061054a565b602060405180830381600087803b15801561030c57600080fd5b505af1158015610320573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103449190610487565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a057600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610406573d6000803e3d6000fd5b5050565b60008135905061041981610660565b92915050565b60008151905061042e81610677565b92915050565b6000813590506104438161068e565b92915050565b6000815190506104588161068e565b92915050565b60006020828403121561047057600080fd5b600061047e8482850161040a565b91505092915050565b60006020828403121561049957600080fd5b60006104a78482850161041f565b91505092915050565b6000602082840312156104c257600080fd5b60006104d084828501610434565b91505092915050565b6000602082840312156104eb57600080fd5b60006104f984828501610449565b91505092915050565b61050b8161058e565b82525050565b61051a816105d6565b82525050565b610529816105cc565b82525050565b60006020820190506105446000830184610502565b92915050565b600060408201905061055f6000830185610502565b61056c6020830184610520565b9392505050565b60006020820190506105886000830184610511565b92915050565b6000610599826105ac565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006105e1826105cc565b9050919050565b60006105f3826105cc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561062657610625610631565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6106698161058e565b811461067457600080fd5b50565b610680816105a0565b811461068b57600080fd5b50565b610697816105cc565b81146106a257600080fd5b5056fea2646970667358221220cbb19d1211a5903b24ef51211a100e0c7749b6c8e7737aa21bdf1ac4fbde4a7764736f6c63430008010033
Deployed Bytecode
0x6080604052600436106100385760003560e01c80631fe9eabc146100fa57806351cff8d91461012357806384276d811461014c576100f5565b366100f557600034905060005b818110156100f157600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6b55f2560025460006040518363ffffffff1660e01b81526004016100ac9190610573565b6000604051808303818588803b1580156100c557600080fd5b505af11580156100d9573d6000803e3d6000fd5b505050505080806100e9906105e8565b915050610045565b5050005b600080fd5b34801561010657600080fd5b50610121600480360381019061011c91906104b0565b610175565b005b34801561012f57600080fd5b5061014a6004803603810190610145919061045e565b6101d7565b005b34801561015857600080fd5b50610173600480360381019061016e91906104b0565b610348565b005b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146101cd57600080fd5b8060028190555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461022f57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610285919061052f565b60206040518083038186803b15801561029d57600080fd5b505afa1580156102b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d591906104d9565b6040518363ffffffff1660e01b81526004016102f292919061054a565b602060405180830381600087803b15801561030c57600080fd5b505af1158015610320573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103449190610487565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a057600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610406573d6000803e3d6000fd5b5050565b60008135905061041981610660565b92915050565b60008151905061042e81610677565b92915050565b6000813590506104438161068e565b92915050565b6000815190506104588161068e565b92915050565b60006020828403121561047057600080fd5b600061047e8482850161040a565b91505092915050565b60006020828403121561049957600080fd5b60006104a78482850161041f565b91505092915050565b6000602082840312156104c257600080fd5b60006104d084828501610434565b91505092915050565b6000602082840312156104eb57600080fd5b60006104f984828501610449565b91505092915050565b61050b8161058e565b82525050565b61051a816105d6565b82525050565b610529816105cc565b82525050565b60006020820190506105446000830184610502565b92915050565b600060408201905061055f6000830185610502565b61056c6020830184610520565b9392505050565b60006020820190506105886000830184610511565b92915050565b6000610599826105ac565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006105e1826105cc565b9050919050565b60006105f3826105cc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561062657610625610631565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6106698161058e565b811461067457600080fd5b50565b610680816105a0565b811461068b57600080fd5b50565b610697816105cc565b81146106a257600080fd5b5056fea2646970667358221220cbb19d1211a5903b24ef51211a100e0c7749b6c8e7737aa21bdf1ac4fbde4a7764736f6c63430008010033
Deployed Bytecode Sourcemap
818:865:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1411:13;1427:9;1411:25;;1452:9;1447:105;1467:5;1465:1;:7;1447:105;;;1502:6;;;;;;;;;;;1494:23;;;1525:11;;1538:1;1494:46;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1474:3;;;;;:::i;:::-;;;;1447:105;;;;1373:186;818:865;;;;;1567:111;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1031:181;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1220:145;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1567:111;1631:10;1622:19;;:5;;;;;;;;;;:19;;;1614:28;;;;;;1667:3;1653:11;:17;;;;1567:111;:::o;1031:181::-;1112:5;;;;;;;;;;1090:28;;:10;:28;;;1082:37;;;;;;1137:5;1130:22;;;1153:10;1172:5;1165:23;;;1197:4;1165:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1130:74;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1031:181;:::o;1220:145::-;1308:5;;;;;;;;;;1286:28;;:10;:28;;;1278:37;;;;;;1334:5;;;;;;;;;;1326:23;;:31;1350:6;1326:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1220:145;:::o;7:139:1:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:137::-;;237:6;231:13;222:22;;253:30;277:5;253:30;:::i;:::-;212:77;;;;:::o;295:139::-;;379:6;366:20;357:29;;395:33;422:5;395:33;:::i;:::-;347:87;;;;:::o;440:143::-;;528:6;522:13;513:22;;544:33;571:5;544:33;:::i;:::-;503:80;;;;:::o;589:262::-;;697:2;685:9;676:7;672:23;668:32;665:2;;;713:1;710;703:12;665:2;756:1;781:53;826:7;817:6;806:9;802:22;781:53;:::i;:::-;771:63;;727:117;655:196;;;;:::o;857:278::-;;973:2;961:9;952:7;948:23;944:32;941:2;;;989:1;986;979:12;941:2;1032:1;1057:61;1110:7;1101:6;1090:9;1086:22;1057:61;:::i;:::-;1047:71;;1003:125;931:204;;;;:::o;1141:262::-;;1249:2;1237:9;1228:7;1224:23;1220:32;1217:2;;;1265:1;1262;1255:12;1217:2;1308:1;1333:53;1378:7;1369:6;1358:9;1354:22;1333:53;:::i;:::-;1323:63;;1279:117;1207:196;;;;:::o;1409:284::-;;1528:2;1516:9;1507:7;1503:23;1499:32;1496:2;;;1544:1;1541;1534:12;1496:2;1587:1;1612:64;1668:7;1659:6;1648:9;1644:22;1612:64;:::i;:::-;1602:74;;1558:128;1486:207;;;;:::o;1699:118::-;1786:24;1804:5;1786:24;:::i;:::-;1781:3;1774:37;1764:53;;:::o;1823:147::-;1918:45;1957:5;1918:45;:::i;:::-;1913:3;1906:58;1896:74;;:::o;1976:118::-;2063:24;2081:5;2063:24;:::i;:::-;2058:3;2051:37;2041:53;;:::o;2100:222::-;;2231:2;2220:9;2216:18;2208:26;;2244:71;2312:1;2301:9;2297:17;2288:6;2244:71;:::i;:::-;2198:124;;;;:::o;2328:332::-;;2487:2;2476:9;2472:18;2464:26;;2500:71;2568:1;2557:9;2553:17;2544:6;2500:71;:::i;:::-;2581:72;2649:2;2638:9;2634:18;2625:6;2581:72;:::i;:::-;2454:206;;;;;:::o;2666:238::-;;2805:2;2794:9;2790:18;2782:26;;2818:79;2894:1;2883:9;2879:17;2870:6;2818:79;:::i;:::-;2772:132;;;;:::o;2910:96::-;;2976:24;2994:5;2976:24;:::i;:::-;2965:35;;2955:51;;;:::o;3012:90::-;;3089:5;3082:13;3075:21;3064:32;;3054:48;;;:::o;3108:126::-;;3185:42;3178:5;3174:54;3163:65;;3153:81;;;:::o;3240:77::-;;3306:5;3295:16;;3285:32;;;:::o;3323:121::-;;3414:24;3432:5;3414:24;:::i;:::-;3401:37;;3391:53;;;:::o;3450:233::-;;3512:24;3530:5;3512:24;:::i;:::-;3503:33;;3558:66;3551:5;3548:77;3545:2;;;3628:18;;:::i;:::-;3545:2;3675:1;3668:5;3664:13;3657:20;;3493:190;;;:::o;3689:180::-;3737:77;3734:1;3727:88;3834:4;3831:1;3824:15;3858:4;3855:1;3848:15;3875:122;3948:24;3966:5;3948:24;:::i;:::-;3941:5;3938:35;3928:2;;3987:1;3984;3977:12;3928:2;3918:79;:::o;4003:116::-;4073:21;4088:5;4073:21;:::i;:::-;4066:5;4063:32;4053:2;;4109:1;4106;4099:12;4053:2;4043:76;:::o;4125:122::-;4198:24;4216:5;4198:24;:::i;:::-;4191:5;4188:35;4178:2;;4237:1;4234;4227:12;4178:2;4168:79;:::o
Swarm Source
ipfs://cbb19d1211a5903b24ef51211a100e0c7749b6c8e7737aa21bdf1ac4fbde4a77
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.