Contract 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb774 6

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xf7fde41da292785c0ad57db5845f33c65ab1d96222436a6c1f24256dd0290dc8Take233964972022-01-06 8:15:56520 days 13 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.00753462180
0xddd28c0b46251c10b46f352408e461aad42b6d1d6caeff3d3864c9c05b528347Deposit233896342022-01-06 3:11:55520 days 18 hrs ago0xab0fdacb3fb80a70f510781df57211be25d8be00 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.05068725750
0xa9340c41642fd8087fea37f4b827a283fd69d464ef545a546472365c70217a6cTake233670342022-01-05 9:56:16521 days 11 hrs ago0x2074ff8f6625a9eee2e3eac2fd658df18a5c5166 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.019292207407
0xf36c4935e2f2127b0c63fa8062fb26865d76f6f81435010d4e3053e85b819e47Take233666452022-01-05 9:40:03521 days 11 hrs ago0x2074ff8f6625a9eee2e3eac2fd658df18a5c5166 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0240797865423.5
0x85c0fad75849ccfa474b4d3fe97bd3c3f0470f527a927292ab780ef3c52bae42Take233666022022-01-05 9:38:37521 days 11 hrs ago0x2074ff8f6625a9eee2e3eac2fd658df18a5c5166 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0313114725423.5
0x3377c27ce011766aa648672ec0f9f80992e783782478171a14411750f26fc32bDeposit233603722022-01-05 5:08:13521 days 16 hrs ago0x89b5e2bb9574c46d4aca2b3f1686c5c7b1b646d9 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0423415500
0x510e84b3539ec32d17cad995db83e427d6e8d3c2996606c573a87822e0a73de7Deposit230129182021-12-27 6:00:35530 days 15 hrs ago0x91b5c68c8b964438515737e5d733c2ab1ce5ae08 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0017364930
0x1f913fb779d6eb85e3d8a38b020f27203d0ee4d1fbed6affde68fabec494b6fdTake229856262021-12-26 12:55:42531 days 8 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0012557730
0xe126747260d6c481e9764e43be15a98d6e6c6a9dfaff6b3e9b655e35203744c4Deposit229217802021-12-24 22:08:17532 days 23 hrs ago0xab0fdacb3fb80a70f510781df57211be25d8be00 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0042341550
0x3ba14301aa5c12ade8c23682fd7eeb74513c46fdb7af5a8f3d9fe55a0c42b9b9Take228775532021-12-23 18:39:11534 days 2 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0009778530
0x356025230883cad97ded36304b142ace4cb56cee6903302825969bd88908a0c6Deposit228723212021-12-23 15:24:19534 days 6 hrs ago0x09d36f490f28dc54d9d89913bd35e13368c30830 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0017357730
0x29aacbda64a8be90a925a11b7ff60621961ab8bf89a7ed81bbe12bdfb837160eTake228647692021-12-23 10:41:05534 days 10 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0011137830
0xecc5968f0880c8b6ab6cc1b65a2dd2309248107732eab21a774c404b65b58cc2Take228638612021-12-23 10:07:41534 days 11 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0014149530
0x7a99a62cc367603e5d39cc67316331f921bc0254c43867c443a0ebb8bb1478e7Take228638582021-12-23 10:07:35534 days 11 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0015813930
0x9c72d40d40d6e9a57a65684bb86e7a5e0d06c48bcef6c106fdd94094b584852bTake228638552021-12-23 10:07:29534 days 11 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0010687530
0x3f52f146caff12cebe9015f3e086563169e298fa0d620a590203c33063c40e80Take228638522021-12-23 10:07:23534 days 11 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0009782130
0xb91bd4d8dadb8baba3eb3cbc8fb3c5e37e2f953474137c4cdc82f41f7a393b0fTake228638492021-12-23 10:07:17534 days 11 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0012561330
0x07f3c438371f1f9284598504b8f32c6407ec6870c1b7a19965e996e092f3dde0Take228638472021-12-23 10:07:13534 days 11 hrs ago0x40e0dcd7024030c7b5e1d474fe95aaf7bb880ad0 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0014149530
0x99a4e6b3fd4bdb307871a1efb828c1cb86abe135709ba037e6e33ab65b3a8a34Withdraw228637592021-12-23 10:04:13534 days 11 hrs ago0xcd4a15841a4906ff78d3f2aa8e55936f1a7ae4a5 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0540306600
0xf4a3a808a042884c55bb9425dfafdb98709bebe1a630bc659b294d424613d5bfWithdraw228637182021-12-23 10:02:47534 days 11 hrs ago0xea79307d2b91c1d8a36062b1801ec55c11a56d58 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0604728600
0x49c89754a54e0371ff8a8a5099f8abe5f25daae1a16949be4974b3b504d9355cDeposit228637142021-12-23 10:02:39534 days 11 hrs ago0x719bd84af4f2a08f3aa83037a3728cade5a43c3f IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.00010137382.2
0x1772b6090c9674f819979d29239715a3bf56377d61946056fad3abc00de7ffcfWithdraw228637112021-12-23 10:02:33534 days 11 hrs ago0xcd4a15841a4906ff78d3f2aa8e55936f1a7ae4a5 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0642906600
0x2649dedfec96f4ccb9047b84f44e9b7225d372f48b1dabfd188573fb574399bfDeposit228636812021-12-23 10:01:33534 days 11 hrs ago0x10891f0b1a8d759be1f1d00f87f92a8188ea2d56 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0015774930
0xc219fd709f35266acbaaddce2ab2d8c09b5130ee7efb68bb09da55a64c65abcaWithdraw228636732021-12-23 10:01:01534 days 11 hrs ago0xcd4a15841a4906ff78d3f2aa8e55936f1a7ae4a5 IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.0792906600
0xa99c7a647819f05015dd2779f2428e2ac0ebc5570fea31cf1a2d1c7265f36750Deposit228636522021-12-23 9:59:37534 days 11 hrs ago0x719bd84af4f2a08f3aa83037a3728cade5a43c3f IN  0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740 MATIC0.00201521133
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x29aacbda64a8be90a925a11b7ff60621961ab8bf89a7ed81bbe12bdfb837160e228647692021-12-23 10:41:05534 days 10 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb774 0xc43af891fa1d0cd4c7e8b097e4cc9236b3e7a6e61,100.84 MATIC
0x99a4e6b3fd4bdb307871a1efb828c1cb86abe135709ba037e6e33ab65b3a8a34228637592021-12-23 10:04:13534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xc9eabc897a9218f4038e19a90c829760ff1a77fb0.02 MATIC
0xf4a3a808a042884c55bb9425dfafdb98709bebe1a630bc659b294d424613d5bf228637182021-12-23 10:02:47534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb774Cryptocurrency Market Index: Deployer0.02 MATIC
0x1772b6090c9674f819979d29239715a3bf56377d61946056fad3abc00de7ffcf228637112021-12-23 10:02:33534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x8e2ed14ce48aac60ef2faaa0b81c85c05feb81070.02 MATIC
0xc219fd709f35266acbaaddce2ab2d8c09b5130ee7efb68bb09da55a64c65abca228636732021-12-23 10:01:01534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xf15083a3124f4fbf61724b59cffaade13c3d5f850.02 MATIC
0x89012b33ee6c354d4e3c87bdf2469ee28e03f06d9787fd02ed0ad09b61e8f275228634952021-12-23 9:53:01534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x4cb46568a3772e3faacb77acca54c84ee0a3c9d70.02 MATIC
0xca51f9d8dc97606e613c08570d0f1e7ebfd3e5d30cbc648517f0d7e085843f12228633782021-12-23 9:48:59534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x136a28650db138cd744889d90be42eec321128890.02 MATIC
0x7623712a1fb3e18dbf83d277a3bd4f818ee5368d706034776812f43fe2f6d41b228633602021-12-23 9:48:23534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xd6e0ba29a31c06a1fb6fddc20d5a0a20e595a7780.02 MATIC
0x510d5ebd179e5c24a30a664c49ba5d9e09de73cc68310a358d7a2aa7b135984c228631272021-12-23 9:40:20534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x03f7f1ab10e8ba1f6c3b7ea588087ee12d44dcc80.02 MATIC
0x999acc780a1c9866d98e6c9978318224b899d53e3b177f74c6cdc7e03159ae46228630922021-12-23 9:38:44534 days 11 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x4f4848896f8758f20f87a12a2d6007a7defd8b970.02 MATIC
0xf2590e6856ab012e33bc40c03f18f5708ff0a70561d4ef3e6b590f28d90b99e2228630862021-12-23 9:38:20534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xc3194cd4f4cf34a25748713debe1e44eb6b8c5f80.02 MATIC
0x5e807a61584e85c1b1237b6969b05905d314aaa8bea8f0115ce48b507931e2f2228630732021-12-23 9:37:28534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x78e8fd36179bb66fb02e4e0f98d228f226a4264c0.02 MATIC
0xeec8843b1ad2e7d80c4b40c678776001768246d547d0ee56aa784deac5ecedba228629402021-12-23 9:31:46534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x7ad21bf2dcfb8b75f14a75d984ab4c3e9980ebaa0.02 MATIC
0x3ea26c88eb043b00ed0bcb5dbe63b4f26344c555a87b1c76b69e9f8c87a49ff9228625542021-12-23 9:16:22534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x30330d4ed44aaf5cc4971764e176d0f163dded4c0.02 MATIC
0x37977efcceab67213e34c787d74aa15f93af04bf8394a317e56652256071ad1c228624882021-12-23 9:14:06534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xd4773b59ecb299b914b36b8a4806862cd9c3900c0.02 MATIC
0x3d94d20b2d842a715ce79549ab95e0d5efe873653a8d7ae726eb513ef5813e07228623612021-12-23 9:09:44534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x6e97c5132f37a137c62540dd74006276bee71da50.02 MATIC
0x4d9afaed28e36b7c6ae6d23d490471883e2224052329932db10b40416309d49c228622622021-12-23 9:06:15534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xc3a9423a95135d04f8177c67972ce885fa65072f0.02 MATIC
0x126b0376ca6724d620d261bea013e2e00217c4364f0fc08acb346996add34dfe228622512021-12-23 9:05:53534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xca7931e023c57ed04b1540172380b4723753ca7b0.02 MATIC
0x2b129b02005444d50553e6d534f6be66771ab776d23c179cb61e7a7323593660228620762021-12-23 8:59:51534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xb324a5c8e61dba2a4a03a053f8c42629a0226d560.02 MATIC
0x05f39bc88dd5824067552ab41a7f800ee63c5bc4c89c173f91aa184b6b191a7f228618182021-12-23 8:50:59534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xf21f14f7c780e7ab2660dcc7135a9210c3ef8dc40.02 MATIC
0xdb374b16403a3780412e3cd2e449ad2ad0bf7026b323917e3a630fa73245e261228617492021-12-23 8:48:37534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x20509d1e8ffbfb5f46e4cda45ff5dfa97ab939aa0.02 MATIC
0x5d82b0817100c6ea074e965d0135562e4560c4ad2325184d7e5e78ac5ba48016228615282021-12-23 8:39:45534 days 12 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x04c3d80ce52652b0a48309f8fb68363be5938eb70.02 MATIC
0x945c14f44f572908166b7a6c9c8a30972f4578566ead2a72aac5bad9f530c090228614762021-12-23 8:37:07534 days 13 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x1e6be8b36cf529d9b2bf5dfe6684ed970da969920.02 MATIC
0x2a0eb157c1f9ecec22ede8852f9604146270c56125b138bf9975a4f35192a0a2228613122021-12-23 8:31:31534 days 13 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740xa8f30bd1165057f81c7b6629e2501e428f4691f20.02 MATIC
0x717b2d71bbfd5944923585f586bd1641ea97c82a0a25157a44f5910885a43cc4228609292021-12-23 8:18:21534 days 13 hrs ago 0x9280e0ffdfae4ec895fdf4d4978c9e1b869eb7740x98877278de1d6253532b718230a93ec13fe5788d0.02 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BridgePool

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 3 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

File 2 of 3 : BridgePool.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

import './interfaces/IBridgePool.sol';

contract BridgePool is IBridgePool {

    address public owner;

    /*
      operator modes:
        1 - contract:creator
        2 - contract:withdrawer
        4 - withdrawer
        8 - taker
    */
    mapping(address => uint8) public operator;
    mapping(bytes32 => bool) public withdrawn;

    bool private entered = false;
    modifier nonReentrant() {
        require(!entered, 'reentrant call');
        entered = true;
        _;
        entered = false;
    }

    constructor () {
        owner = tx.origin;
    }

    function setOwner(address newOwner) external {
        require(msg.sender == owner, 'forbidden');
        owner = newOwner;
    }

    function setOperatorMode(address account, uint8 mode) external {
        require(msg.sender == owner, 'forbidden');
        operator[account] = mode;
    }

    function deposit(IERC20 token, uint amount, uint8 to, bool bonus, bytes calldata recipient) override external payable nonReentrant() {
        // allowed only direct call or 'contract:creator' or 'contract:withdrawer'
        require(tx.origin == msg.sender || (operator[msg.sender] & (1 | 2) > 0), 'call from unauthorized contract');
        require(address(token) != address(0) && amount > 0 && recipient.length > 0, 'invalid input');

        if (address(token) == address(1)) {
            require(amount == msg.value, 'value must equal amount');
        } else {
            safeTransferFrom(token, msg.sender, address(this), amount);
        }

        emit Deposited(msg.sender, address(token), to, amount, bonus, recipient);
    }

    function withdraw(Withdraw[] memory ws) override external nonReentrant() {
        // allowed only 'withdrawer' or 'withdrawer' through 'contract:withdrawer'
        require(operator[msg.sender] == 4 || (operator[tx.origin] == 4 && operator[msg.sender] == 2), 'forbidden');

        for (uint i = 0; i < ws.length; i++) {
            Withdraw memory w = ws[i];

            require(!withdrawn[w.id], 'already withdrawn');
            withdrawn[w.id] = true;

            if (address(w.token) == address(1)) {
                require(address(this).balance >= w.amount + w.bonus, 'too low token balance');
                (bool success, ) = w.recipient.call{value: w.amount}('');
                require(success, 'native transfer error');
            } else {
                require(
                    w.token.balanceOf(address(this)) >= w.amount && address(this).balance >= w.bonus,
                    'too low token balance'
                );
                safeTransfer(w.token, w.recipient, w.amount);
            }

            if (w.bonus > 0) {
                // may fail on contracts
                w.recipient.call{value: w.bonus}('');
            }

            emit Withdrawn(w.id, address(w.token), w.recipient, w.amount);
        }
    }

    function take(IERC20 token, uint amount, address payable to) external override nonReentrant() {
        // allowed only 'taker'
        require(operator[msg.sender] == 8, 'forbidden');
        if (address(token) == address(1)) {
            to.transfer(amount);
        } else {
            safeTransfer(token, to, amount);
        }
    }

    receive() external payable {}

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(token.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'transfer failed');
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'transfer failed');
    }
}

File 3 of 3 : IBridgePool.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IBridgePool {
    struct Withdraw {
        bytes32 id;
        IERC20 token;
        uint amount;
        uint bonus;
        address payable recipient;
    }

    event Deposited(address indexed sender, address indexed token, uint8 indexed to, uint amount, bool bonus, bytes recipient);
    event Withdrawn(bytes32 indexed id, address indexed token, address indexed recipient, uint amount);

    function operator(address account) external view returns (uint8 mode);
    function deposit(IERC20 token, uint amount, uint8 to, bool bonus, bytes calldata recipient ) external payable;
    function withdraw(Withdraw[] memory ws) external;
    function take(IERC20 token, uint amount, address payable to) external;
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint8","name":"to","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"bonus","type":"bool"},{"indexed":false,"internalType":"bytes","name":"recipient","type":"bytes"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"to","type":"uint8"},{"internalType":"bool","name":"bonus","type":"bool"},{"internalType":"bytes","name":"recipient","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operator","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint8","name":"mode","type":"uint8"}],"name":"setOperatorMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"name":"take","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"address payable","name":"recipient","type":"address"}],"internalType":"struct IBridgePool.Withdraw[]","name":"ws","type":"tuple[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"withdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000600360006101000a81548160ff02191690831515021790555034801561002b57600080fd5b50326000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611ee58061007b6000396000f3fe60806040526004361061007e5760003560e01c80638033d6871161004e5780638033d687146101425780638da5cb5b1461016b57806390cfe778146101965780639a307391146101b257610085565b8062dded3d1461008a57806313af4035146100b35780633823d66c146100dc5780634b63d0a11461011957610085565b3661008557005b600080fd5b34801561009657600080fd5b506100b160048036038101906100ac9190611428565b6101ef565b005b3480156100bf57600080fd5b506100da60048036038101906100d5919061149d565b6107be565b005b3480156100e857600080fd5b5061010360048036038101906100fe91906114ca565b61088f565b6040516101109190611512565b60405180910390f35b34801561012557600080fd5b50610140600480360381019061013b9190611566565b6108af565b005b34801561014e57600080fd5b50610169600480360381019061016491906115a6565b610999565b005b34801561017757600080fd5b50610180610b43565b60405161018d9190611608565b60405180910390f35b6101b060048036038101906101ab91906116aa565b610b67565b005b3480156101be57600080fd5b506101d960048036038101906101d4919061149d565b610e43565b6040516101e69190611753565b60405180910390f35b600360009054906101000a900460ff161561023f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610236906117cb565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055506004600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16148061036257506004600160003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1614801561036157506002600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16145b5b6103a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039890611837565b60405180910390fd5b60005b815181101561079f5760008282815181106103c2576103c1611857565b5b60200260200101519050600260008260000151815260200190815260200160002060009054906101000a900460ff1615610431576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610428906118d2565b60405180910390fd5b6001600260008360000151815260200190815260200160002060006101000a81548160ff021916908315150217905550600173ffffffffffffffffffffffffffffffffffffffff16816020015173ffffffffffffffffffffffffffffffffffffffff1614156105aa57806060015181604001516104ae9190611921565b4710156104f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e7906119c3565b60405180910390fd5b6000816080015173ffffffffffffffffffffffffffffffffffffffff16826040015160405161051e90611a14565b60006040518083038185875af1925050503d806000811461055b576040519150601f19603f3d011682016040523d82523d6000602084013e610560565b606091505b50509050806105a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059b90611a75565b60405180910390fd5b50610696565b8060400151816020015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105ec9190611608565b602060405180830381865afa158015610609573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062d9190611aaa565b1015801561063f575080606001514710155b61067e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610675906119c3565b60405180910390fd5b610695816020015182608001518360400151610e63565b5b60008160600151111561071557806080015173ffffffffffffffffffffffffffffffffffffffff1681606001516040516106cf90611a14565b60006040518083038185875af1925050503d806000811461070c576040519150601f19603f3d011682016040523d82523d6000602084013e610711565b606091505b5050505b806080015173ffffffffffffffffffffffffffffffffffffffff16816020015173ffffffffffffffffffffffffffffffffffffffff1682600001517fa6786aab7dbbc48b4b0387488b407bd81448030ab207b50bea7dbb5fbc1cd9eb84604001516040516107839190611ae6565b60405180910390a450808061079790611b01565b9150506103a4565b506000600360006101000a81548160ff02191690831515021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461084c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084390611837565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60026020528060005260406000206000915054906101000a900460ff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461093d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093490611837565b60405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505050565b600360009054906101000a900460ff16156109e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e0906117cb565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055506008600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1614610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d90611837565b60405180910390fd5b600173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b17578073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610b11573d6000803e3d6000fd5b50610b23565b610b22838284610e63565b5b6000600360006101000a81548160ff021916908315150217905550505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900460ff1615610bb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bae906117cb565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161480610c5e575060006003600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161660ff16115b610c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9490611b96565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015610cda5750600085115b8015610ce95750600082829050115b610d28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1f90611c02565b60405180910390fd5b600173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415610da457348514610d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9690611c6e565b60405180910390fd5b610db1565b610db086333088610fb8565b5b8360ff168673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ffeb2da6e3bb63ff64c908271c247558271e7ef50ee44055f410c2bd554552b4e88878787604051610e189493929190611cdb565b60405180910390a46000600360006101000a81548160ff021916908315150217905550505050505050565b60016020528060005260406000206000915054906101000a900460ff1681565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b8585604051602401610e98929190611d1b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610f029190611db3565b6000604051808303816000865af19150503d8060008114610f3f576040519150601f19603f3d011682016040523d82523d6000602084013e610f44565b606091505b5091509150818015610f725750600081511480610f71575080806020019051810190610f709190611ddf565b5b5b610fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa890611e58565b60405180910390fd5b5050505050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401610fef93929190611e78565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516110599190611db3565b6000604051808303816000865af19150503d8060008114611096576040519150601f19603f3d011682016040523d82523d6000602084013e61109b565b606091505b50915091508180156110c957506000815114806110c85750808060200190518101906110c79190611ddf565b5b5b611108576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ff90611e58565b60405180910390fd5b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61117282611129565b810181811067ffffffffffffffff821117156111915761119061113a565b5b80604052505050565b60006111a4611110565b90506111b08282611169565b919050565b600067ffffffffffffffff8211156111d0576111cf61113a565b5b602082029050602081019050919050565b600080fd5b600080fd5b6000819050919050565b6111fe816111eb565b811461120957600080fd5b50565b60008135905061121b816111f5565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061124c82611221565b9050919050565b600061125e82611241565b9050919050565b61126e81611253565b811461127957600080fd5b50565b60008135905061128b81611265565b92915050565b6000819050919050565b6112a481611291565b81146112af57600080fd5b50565b6000813590506112c18161129b565b92915050565b60006112d282611221565b9050919050565b6112e2816112c7565b81146112ed57600080fd5b50565b6000813590506112ff816112d9565b92915050565b600060a0828403121561131b5761131a6111e6565b5b61132560a061119a565b905060006113358482850161120c565b60008301525060206113498482850161127c565b602083015250604061135d848285016112b2565b6040830152506060611371848285016112b2565b6060830152506080611385848285016112f0565b60808301525092915050565b60006113a461139f846111b5565b61119a565b90508083825260208201905060a084028301858111156113c7576113c66111e1565b5b835b818110156113f057806113dc8882611305565b84526020840193505060a0810190506113c9565b5050509392505050565b600082601f83011261140f5761140e611124565b5b813561141f848260208601611391565b91505092915050565b60006020828403121561143e5761143d61111a565b5b600082013567ffffffffffffffff81111561145c5761145b61111f565b5b611468848285016113fa565b91505092915050565b61147a81611241565b811461148557600080fd5b50565b60008135905061149781611471565b92915050565b6000602082840312156114b3576114b261111a565b5b60006114c184828501611488565b91505092915050565b6000602082840312156114e0576114df61111a565b5b60006114ee8482850161120c565b91505092915050565b60008115159050919050565b61150c816114f7565b82525050565b60006020820190506115276000830184611503565b92915050565b600060ff82169050919050565b6115438161152d565b811461154e57600080fd5b50565b6000813590506115608161153a565b92915050565b6000806040838503121561157d5761157c61111a565b5b600061158b85828601611488565b925050602061159c85828601611551565b9150509250929050565b6000806000606084860312156115bf576115be61111a565b5b60006115cd8682870161127c565b93505060206115de868287016112b2565b92505060406115ef868287016112f0565b9150509250925092565b61160281611241565b82525050565b600060208201905061161d60008301846115f9565b92915050565b61162c816114f7565b811461163757600080fd5b50565b60008135905061164981611623565b92915050565b600080fd5b60008083601f84011261166a57611669611124565b5b8235905067ffffffffffffffff8111156116875761168661164f565b5b6020830191508360018202830111156116a3576116a26111e1565b5b9250929050565b60008060008060008060a087890312156116c7576116c661111a565b5b60006116d589828a0161127c565b96505060206116e689828a016112b2565b95505060406116f789828a01611551565b945050606061170889828a0161163a565b935050608087013567ffffffffffffffff8111156117295761172861111f565b5b61173589828a01611654565b92509250509295509295509295565b61174d8161152d565b82525050565b60006020820190506117686000830184611744565b92915050565b600082825260208201905092915050565b7f7265656e7472616e742063616c6c000000000000000000000000000000000000600082015250565b60006117b5600e8361176e565b91506117c08261177f565b602082019050919050565b600060208201905081810360008301526117e4816117a8565b9050919050565b7f666f7262696464656e0000000000000000000000000000000000000000000000600082015250565b600061182160098361176e565b915061182c826117eb565b602082019050919050565b6000602082019050818103600083015261185081611814565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f616c72656164792077697468647261776e000000000000000000000000000000600082015250565b60006118bc60118361176e565b91506118c782611886565b602082019050919050565b600060208201905081810360008301526118eb816118af565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061192c82611291565b915061193783611291565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561196c5761196b6118f2565b5b828201905092915050565b7f746f6f206c6f7720746f6b656e2062616c616e63650000000000000000000000600082015250565b60006119ad60158361176e565b91506119b882611977565b602082019050919050565b600060208201905081810360008301526119dc816119a0565b9050919050565b600081905092915050565b50565b60006119fe6000836119e3565b9150611a09826119ee565b600082019050919050565b6000611a1f826119f1565b9150819050919050565b7f6e6174697665207472616e73666572206572726f720000000000000000000000600082015250565b6000611a5f60158361176e565b9150611a6a82611a29565b602082019050919050565b60006020820190508181036000830152611a8e81611a52565b9050919050565b600081519050611aa48161129b565b92915050565b600060208284031215611ac057611abf61111a565b5b6000611ace84828501611a95565b91505092915050565b611ae081611291565b82525050565b6000602082019050611afb6000830184611ad7565b92915050565b6000611b0c82611291565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611b3f57611b3e6118f2565b5b600182019050919050565b7f63616c6c2066726f6d20756e617574686f72697a656420636f6e747261637400600082015250565b6000611b80601f8361176e565b9150611b8b82611b4a565b602082019050919050565b60006020820190508181036000830152611baf81611b73565b9050919050565b7f696e76616c696420696e70757400000000000000000000000000000000000000600082015250565b6000611bec600d8361176e565b9150611bf782611bb6565b602082019050919050565b60006020820190508181036000830152611c1b81611bdf565b9050919050565b7f76616c7565206d75737420657175616c20616d6f756e74000000000000000000600082015250565b6000611c5860178361176e565b9150611c6382611c22565b602082019050919050565b60006020820190508181036000830152611c8781611c4b565b9050919050565b600082825260208201905092915050565b82818337600083830152505050565b6000611cba8385611c8e565b9350611cc7838584611c9f565b611cd083611129565b840190509392505050565b6000606082019050611cf06000830187611ad7565b611cfd6020830186611503565b8181036040830152611d10818486611cae565b905095945050505050565b6000604082019050611d3060008301856115f9565b611d3d6020830184611ad7565b9392505050565b600081519050919050565b60005b83811015611d6d578082015181840152602081019050611d52565b83811115611d7c576000848401525b50505050565b6000611d8d82611d44565b611d9781856119e3565b9350611da7818560208601611d4f565b80840191505092915050565b6000611dbf8284611d82565b915081905092915050565b600081519050611dd981611623565b92915050565b600060208284031215611df557611df461111a565b5b6000611e0384828501611dca565b91505092915050565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000611e42600f8361176e565b9150611e4d82611e0c565b602082019050919050565b60006020820190508181036000830152611e7181611e35565b9050919050565b6000606082019050611e8d60008301866115f9565b611e9a60208301856115f9565b611ea76040830184611ad7565b94935050505056fea26469706673582212202348c4bb386e02623137bd454131bf26e88981ad0ea12791332380a5ee9bb03964736f6c634300080a0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.