Contract

0x8B90875a2796eF913C1e59354E49E605361E80ad

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BatchBridge

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *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;

    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 {
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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"}]

608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506104db806100606000396000f3fe60806040526004361061002d5760003560e01c806351cff8d91461003957806384276d811461006257610034565b3661003457005b600080fd5b34801561004557600080fd5b50610060600480360381019061005b9190610312565b61008b565b005b34801561006e57600080fd5b5061008960048036038101906100849190610364565b6101fc565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161013991906103d4565b60206040518083038186803b15801561015157600080fd5b505afa158015610165573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610189919061038d565b6040518363ffffffff1660e01b81526004016101a69291906103ef565b602060405180830381600087803b1580156101c057600080fd5b505af11580156101d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f8919061033b565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461025457600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156102ba573d6000803e3d6000fd5b5050565b6000813590506102cd81610460565b92915050565b6000815190506102e281610477565b92915050565b6000813590506102f78161048e565b92915050565b60008151905061030c8161048e565b92915050565b60006020828403121561032457600080fd5b6000610332848285016102be565b91505092915050565b60006020828403121561034d57600080fd5b600061035b848285016102d3565b91505092915050565b60006020828403121561037657600080fd5b6000610384848285016102e8565b91505092915050565b60006020828403121561039f57600080fd5b60006103ad848285016102fd565b91505092915050565b6103bf81610418565b82525050565b6103ce81610456565b82525050565b60006020820190506103e960008301846103b6565b92915050565b600060408201905061040460008301856103b6565b61041160208301846103c5565b9392505050565b600061042382610436565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b61046981610418565b811461047457600080fd5b50565b6104808161042a565b811461048b57600080fd5b50565b61049781610456565b81146104a257600080fd5b5056fea2646970667358221220dbd3c4094351c7f75a3ff9c416de682566f7f742acc10b4bd177368e76fb20b364736f6c63430008010033

Deployed Bytecode

0x60806040526004361061002d5760003560e01c806351cff8d91461003957806384276d811461006257610034565b3661003457005b600080fd5b34801561004557600080fd5b50610060600480360381019061005b9190610312565b61008b565b005b34801561006e57600080fd5b5061008960048036038101906100849190610364565b6101fc565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161013991906103d4565b60206040518083038186803b15801561015157600080fd5b505afa158015610165573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610189919061038d565b6040518363ffffffff1660e01b81526004016101a69291906103ef565b602060405180830381600087803b1580156101c057600080fd5b505af11580156101d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f8919061033b565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461025457600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156102ba573d6000803e3d6000fd5b5050565b6000813590506102cd81610460565b92915050565b6000815190506102e281610477565b92915050565b6000813590506102f78161048e565b92915050565b60008151905061030c8161048e565b92915050565b60006020828403121561032457600080fd5b6000610332848285016102be565b91505092915050565b60006020828403121561034d57600080fd5b600061035b848285016102d3565b91505092915050565b60006020828403121561037657600080fd5b6000610384848285016102e8565b91505092915050565b60006020828403121561039f57600080fd5b60006103ad848285016102fd565b91505092915050565b6103bf81610418565b82525050565b6103ce81610456565b82525050565b60006020820190506103e960008301846103b6565b92915050565b600060408201905061040460008301856103b6565b61041160208301846103c5565b9392505050565b600061042382610436565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b61046981610418565b811461047457600080fd5b50565b6104808161042a565b811461048b57600080fd5b50565b61049781610456565b81146104a257600080fd5b5056fea2646970667358221220dbd3c4094351c7f75a3ff9c416de682566f7f742acc10b4bd177368e76fb20b364736f6c63430008010033

Deployed Bytecode Sourcemap

818:491:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;927:181;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1116:145;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;927:181;1008:5;;;;;;;;;;986:28;;:10;:28;;;978:37;;;;;;1033:5;1026:22;;;1049:10;1068:5;1061:23;;;1093:4;1061:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1026:74;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;927:181;:::o;1116:145::-;1204:5;;;;;;;;;;1182:28;;:10;:28;;;1174:37;;;;;;1230:5;;;;;;;;;;1222:23;;:31;1246:6;1222:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1116: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:118::-;1910:24;1928:5;1910:24;:::i;:::-;1905:3;1898:37;1888:53;;:::o;1947:222::-;;2078:2;2067:9;2063:18;2055:26;;2091:71;2159:1;2148:9;2144:17;2135:6;2091:71;:::i;:::-;2045:124;;;;:::o;2175:332::-;;2334:2;2323:9;2319:18;2311:26;;2347:71;2415:1;2404:9;2400:17;2391:6;2347:71;:::i;:::-;2428:72;2496:2;2485:9;2481:18;2472:6;2428:72;:::i;:::-;2301:206;;;;;:::o;2513:96::-;;2579:24;2597:5;2579:24;:::i;:::-;2568:35;;2558:51;;;:::o;2615:90::-;;2692:5;2685:13;2678:21;2667:32;;2657:48;;;:::o;2711:126::-;;2788:42;2781:5;2777:54;2766:65;;2756:81;;;:::o;2843:77::-;;2909:5;2898:16;;2888:32;;;:::o;2926:122::-;2999:24;3017:5;2999:24;:::i;:::-;2992:5;2989:35;2979:2;;3038:1;3035;3028:12;2979:2;2969:79;:::o;3054:116::-;3124:21;3139:5;3124:21;:::i;:::-;3117:5;3114:32;3104:2;;3160:1;3157;3150:12;3104:2;3094:76;:::o;3176:122::-;3249:24;3267:5;3249:24;:::i;:::-;3242:5;3239:35;3229:2;;3288:1;3285;3278:12;3229:2;3219:79;:::o

Swarm Source

ipfs://dbd3c4094351c7f75a3ff9c416de682566f7f742acc10b4bd177368e76fb20b3

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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.