ETH Price: $3,854.88 (-1.81%)

Contract

0x9D8a633cee6438004099478AF3120Aa7e506b774
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw213619092024-12-09 2:19:116 days ago1733710751IN
0x9D8a633c...7e506b774
0 ETH0.001068112.33717118
Withdraw213397292024-12-05 23:59:239 days ago1733443163IN
0x9D8a633c...7e506b774
0 ETH0.001561218.03025705
Deposit212053882024-11-17 5:38:2328 days ago1731821903IN
0x9D8a633c...7e506b774
0 ETH0.000508319.5355749
Withdraw209374372024-10-10 19:54:5965 days ago1728590099IN
0x9D8a633c...7e506b774
0 ETH0.0009166611
Withdraw209373182024-10-10 19:31:1165 days ago1728588671IN
0x9D8a633c...7e506b774
0 ETH0.0013286611
Deposit208258392024-09-25 6:29:2381 days ago1727245763IN
0x9D8a633c...7e506b774
0 ETH0.0006899112.94232203
Withdraw207477342024-09-14 8:44:1191 days ago1726303451IN
0x9D8a633c...7e506b774
0 ETH0.000188042.25722954
Withdraw207408492024-09-13 9:38:1192 days ago1726220291IN
0x9D8a633c...7e506b774
0 ETH0.00020892.41297613
Deposit207387062024-09-13 2:28:2393 days ago1726194503IN
0x9D8a633c...7e506b774
0 ETH0.000117232.19930004
Deposit207381092024-09-13 0:28:4793 days ago1726187327IN
0x9D8a633c...7e506b774
0 ETH0.000121592.28098057
Deposit207188122024-09-10 7:46:1196 days ago1725954371IN
0x9D8a633c...7e506b774
0 ETH0.000236894.44301737
Deposit205685292024-08-20 8:05:47117 days ago1724141147IN
0x9D8a633c...7e506b774
0 ETH0.000144152.70357791
Withdraw204207482024-07-30 17:05:59137 days ago1722359159IN
0x9D8a633c...7e506b774
0 ETH0.001368789.92502665
Transfer Any ERC...203115942024-07-15 11:24:35152 days ago1721042675IN
0x9D8a633c...7e506b774
0 ETH0.000143753.45571514
Withdraw203114612024-07-15 10:57:59152 days ago1721041079IN
0x9D8a633c...7e506b774
0 ETH0.000168934.50919402
Set Daily Limit202913702024-07-12 15:38:35155 days ago1720798715IN
0x9D8a633c...7e506b774
0 ETH0.000207737.19133425
Deposit202746232024-07-10 7:31:59158 days ago1720596719IN
0x9D8a633c...7e506b774
0 ETH0.000252045.17162498
Deposit200434642024-06-08 0:15:11190 days ago1717805711IN
0x9D8a633c...7e506b774
0 ETH0.000347476.5168294
Deposit198072492024-05-05 23:43:47223 days ago1714952627IN
0x9D8a633c...7e506b774
0 ETH0.000219914.51242248
Deposit196870882024-04-19 4:24:23240 days ago1713500663IN
0x9D8a633c...7e506b774
0 ETH0.000449728.43655742
Deposit196678112024-04-16 11:41:47242 days ago1713267707IN
0x9D8a633c...7e506b774
0 ETH0.000506059.49315008
Withdraw196456692024-04-13 9:09:47245 days ago1712999387IN
0x9D8a633c...7e506b774
0 ETH0.0009837211.80650293
Withdraw196449552024-04-13 6:45:47246 days ago1712990747IN
0x9D8a633c...7e506b774
0 ETH0.0008724610.07601353
Withdraw196384372024-04-12 8:49:11246 days ago1712911751IN
0x9D8a633c...7e506b774
0 ETH0.0025437918.44667649
Withdraw196382642024-04-12 8:14:23247 days ago1712909663IN
0x9D8a633c...7e506b774
0 ETH0.0018431117.77559139
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bridge

Compiler Version
v0.6.11+commit.5ef660b1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, BSD-3-Clause license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-01-15
*/

// SPDX-License-Identifier: BSD-3-Clause

pragma solidity 0.6.11;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

/**
 * @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);
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = msg.sender;
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


contract Bridge is Ownable, ReentrancyGuard {
    using SafeMath for uint;
    using SafeERC20 for IERC20;
    using Address for address;
    
    modifier noContractsAllowed() {
        require(!(address(msg.sender).isContract()) && tx.origin == msg.sender, "No Contracts Allowed!");
        _;
    }
    
    // ----------------------- Smart Contract Variables -----------------------
    // Must be updated before live deployment.
    
    uint public dailyTokenWithdrawLimitPerAccount = 25_000e18;
    uint public constant CHAIN_ID = 1;
    uint public constant ONE_DAY = 24 hours;
    
    address public constant TRUSTED_TOKEN_ADDRESS = 0xBD100d061E120b2c67A24453CF6368E63f1Be056;
    address public verifyAddress = 0x072bc8750a0852C0eac038be3E7f2e7c7dAb1E94;
    
    // ----------------------- End Smart Contract Variables -----------------------
    
    event Deposit(address indexed account, uint amount, uint blocknumber, uint timestamp, uint id);
    event Withdraw(address indexed account, uint amount, uint id);
    
    mapping (address => uint) public lastUpdatedTokenWithdrawTimestamp;
    mapping (address => uint) public lastUpdatedTokenWithdrawAmount;

    
    // deposit index OF OTHER CHAIN => withdrawal in current chain
    mapping (uint => bool) public claimedWithdrawalsByOtherChainDepositId;
    
    // deposit index for current chain
    uint public lastDepositIndex;
    
    function setVerifyAddress(address newVerifyAddress) external noContractsAllowed onlyOwner {
        verifyAddress = newVerifyAddress;
    }
    function setDailyLimit(uint newDailyTokenWithdrawLimitPerAccount) external noContractsAllowed onlyOwner {
        dailyTokenWithdrawLimitPerAccount = newDailyTokenWithdrawLimitPerAccount;
    }
    
    function deposit(uint amount) external noContractsAllowed nonReentrant {
        require(amount <= dailyTokenWithdrawLimitPerAccount, "amount exceeds limit");
        
        lastDepositIndex = lastDepositIndex.add(1);
        IERC20(TRUSTED_TOKEN_ADDRESS).safeTransferFrom(msg.sender, address(this), amount);
        
        emit Deposit(msg.sender, amount, block.number, block.timestamp, lastDepositIndex);
    }
    function withdraw(uint amount, uint chainId, uint id, bytes calldata signature) external noContractsAllowed nonReentrant {
        require(chainId == CHAIN_ID, "invalid chainId!");
        require(!claimedWithdrawalsByOtherChainDepositId[id], "already withdrawn!");
        require(verify(msg.sender, amount, chainId, id, signature), "invalid signature!");
        require(canWithdraw(msg.sender, amount), "cannot withdraw, limit reached for current duration!");
        
        claimedWithdrawalsByOtherChainDepositId[id] = true;
        IERC20(TRUSTED_TOKEN_ADDRESS).safeTransfer(msg.sender, amount);
        
        emit Withdraw(msg.sender, amount, id);
    }
    
    function canWithdraw(address account, uint amount) private returns (bool) {
        if (block.timestamp.sub(lastUpdatedTokenWithdrawTimestamp[account]) >= ONE_DAY) {
            lastUpdatedTokenWithdrawAmount[account] = 0;
            lastUpdatedTokenWithdrawTimestamp[account] = block.timestamp;
        }
        lastUpdatedTokenWithdrawAmount[account] = lastUpdatedTokenWithdrawAmount[account].add(amount);
        return lastUpdatedTokenWithdrawAmount[account] <= dailyTokenWithdrawLimitPerAccount;
    }
    
    // the Bridge is a centralized service, allow admin to transfer any ERC20 token if required in case of emergencies
    function transferAnyERC20Token(address tokenAddress, address recipient, uint amount) external noContractsAllowed onlyOwner {
        IERC20(tokenAddress).safeTransfer(recipient, amount);
    }
    
    /// signature methods.
	function verify(
		address account, 
		uint amount,
		uint chainId,
		uint id,
		bytes calldata signature
	) 
		internal view returns(bool) 
	{
		bytes32 message = prefixed(keccak256(abi.encode(account, amount, chainId, id, address(this))));
        return (recoverSigner(message, signature) == verifyAddress);
	}
    
    function recoverSigner(bytes32 message, bytes memory sig)
        internal
        pure
        returns (address)
    {
        (uint8 v, bytes32 r, bytes32 s) = abi.decode(sig, (uint8, bytes32, bytes32));

        return ecrecover(message, v, r, s);
    }

    /// builds a prefixed hash to mimic the behavior of eth_sign.
    function prefixed(bytes32 hash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blocknumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"CHAIN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ONE_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRUSTED_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedWithdrawalsByOtherChainDepositId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyTokenWithdrawLimitPerAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastDepositIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdatedTokenWithdrawAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdatedTokenWithdrawTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDailyTokenWithdrawLimitPerAccount","type":"uint256"}],"name":"setDailyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVerifyAddress","type":"address"}],"name":"setVerifyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferAnyERC20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verifyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405269054b40b1f852bda00000600255600380546001600160a01b03191673072bc8750a0852c0eac038be3e7f2e7c7dab1e9417905534801561004457600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556112f7806100996000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c8063b6b55f25116100a2578063d977f85611610071578063d977f8561461023f578063da0219ec14610265578063f2fde38b1461026d578063f9615f2b14610293578063fe55892d146102b95761010b565b8063b6b55f2514610195578063b6e66b16146101b2578063d493b9ac146101d8578063d61860fe1461020e5761010b565b80638da5cb5b116100de5780638da5cb5b14610160578063a1b8c40f14610168578063a35f7c7b14610170578063b20d30a9146101785761010b565b806365925b9014610110578063715018a61461013457806385e1f4d01461013e578063863e76db14610158575b600080fd5b61011861033c565b604080516001600160a01b039092168252519081900360200190f35b61013c61034b565b005b6101466103e2565b60408051918252519081900360200190f35b6101466103e7565b6101186103ee565b6101466103fd565b610118610403565b61013c6004803603602081101561018e57600080fd5b503561041b565b61013c600480360360208110156101ab57600080fd5b50356104cb565b61013c600480360360208110156101c857600080fd5b50356001600160a01b0316610663565b61013c600480360360608110156101ee57600080fd5b506001600160a01b03813581169160208101359091169060400135610730565b61022b6004803603602081101561022457600080fd5b50356107fa565b604080519115158252519081900360200190f35b6101466004803603602081101561025557600080fd5b50356001600160a01b031661080f565b610146610821565b61013c6004803603602081101561028357600080fd5b50356001600160a01b0316610827565b610146600480360360208110156102a957600080fd5b50356001600160a01b0316610914565b61013c600480360360808110156102cf57600080fd5b813591602081013591604082013591908101906080810160608201356401000000008111156102fd57600080fd5b82018360208201111561030f57600080fd5b8035906020019184600183028401116401000000008311171561033157600080fd5b509092509050610926565b6003546001600160a01b031681565b6000546001600160a01b03163314610398576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600181565b6201518081565b6000546001600160a01b031690565b60075481565b73bd100d061e120b2c67a24453cf6368e63f1be05681565b61042433610b9e565b15801561043057503233145b610479576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b6000546001600160a01b031633146104c6576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b600255565b6104d433610b9e565b1580156104e057503233145b610529576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b60026001541415610581576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055548111156105d4576040805162461bcd60e51b8152602060048201526014602482015273185b5bdd5b9d08195e18d959591cc81b1a5b5a5d60621b604482015290519081900360640190fd5b6007546105e890600163ffffffff610ba416565b60075561061173bd100d061e120b2c67a24453cf6368e63f1be05633308463ffffffff610c0516565b60075460408051838152436020820152428183015260608101929092525133917f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f9919081900360800190a25060018055565b61066c33610b9e565b15801561067857503233145b6106c1576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b6000546001600160a01b0316331461070e576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b61073933610b9e565b15801561074557503233145b61078e576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b6000546001600160a01b031633146107db576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b6107f56001600160a01b038416838363ffffffff610c6516565b505050565b60066020526000908152604090205460ff1681565b60046020526000908152604090205481565b60025481565b6000546001600160a01b03163314610874576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b6001600160a01b0381166108b95760405162461bcd60e51b815260040180806020018281038252602681526020018061121e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60056020526000908152604090205481565b61092f33610b9e565b15801561093b57503233145b610984576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b600260015414156109dc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260019081558414610a29576040805162461bcd60e51b815260206004820152601060248201526f696e76616c696420636861696e49642160801b604482015290519081900360640190fd5b60008381526006602052604090205460ff1615610a82576040805162461bcd60e51b8152602060048201526012602482015271616c72656164792077697468647261776e2160701b604482015290519081900360640190fd5b610a90338686868686610cb7565b610ad6576040805162461bcd60e51b8152602060048201526012602482015271696e76616c6964207369676e61747572652160701b604482015290519081900360640190fd5b610ae03386610d79565b610b1b5760405162461bcd60e51b81526004018080602001828103825260348152602001806112646034913960400191505060405180910390fd5b6000838152600660205260409020805460ff19166001179055610b5973bd100d061e120b2c67a24453cf6368e63f1be056338763ffffffff610c6516565b6040805186815260208101859052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a2505060018055505050565b3b151590565b600082820183811015610bfe576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c5f908590610e26565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107f5908490610e26565b604080516001600160a01b03881660208083019190915281830188905260608201879052608082018690523060a0808401919091528351808403909101815260c090920190925280519101206000908190610d1190610ed7565b600354604080516020601f88018190048102820181019092528681529293506001600160a01b0390911691610d63918491908890889081908401838280828437600092019190915250610f2892505050565b6001600160a01b03161498975050505050505050565b6001600160a01b0382166000908152600460205260408120546201518090610da890429063ffffffff610fc016565b10610dd6576001600160a01b0383166000908152600560209081526040808320839055600490915290204290555b6001600160a01b038316600090815260056020526040902054610dff908363ffffffff610ba416565b6001600160a01b039390931660009081526005602052604090208390555050600254101590565b6060610e7b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110029092919063ffffffff16565b8051909150156107f557808060200190516020811015610e9a57600080fd5b50516107f55760405162461bcd60e51b815260040180806020018281038252602a815260200180611298602a913960400191505060405180910390fd5b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b600080600080848060200190516060811015610f4357600080fd5b5080516020808301516040938401518451600081528084018087528c905260ff85168187015260608101839052608081018290529451939750909550935060019260a080820193601f1981019281900390910190855afa158015610fab573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6000610bfe83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611019565b606061101184846000856110b0565b949350505050565b600081848411156110a85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561106d578181015183820152602001611055565b50505050905090810190601f16801561109a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606110bb85610b9e565b61110c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061114b5780518252601f19909201916020918201910161112c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146111ad576040519150601f19603f3d011682016040523d82523d6000602084013e6111b2565b606091505b509150915081156111c65791506110119050565b8051156111d65780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561106d57818101518382015260200161105556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657263616e6e6f742077697468647261772c206c696d6974207265616368656420666f722063757272656e74206475726174696f6e215361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206b8880711f62c655256c0557358f0c82c287e947ed5d4657bdfe6c86085e9d7864736f6c634300060b0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c8063b6b55f25116100a2578063d977f85611610071578063d977f8561461023f578063da0219ec14610265578063f2fde38b1461026d578063f9615f2b14610293578063fe55892d146102b95761010b565b8063b6b55f2514610195578063b6e66b16146101b2578063d493b9ac146101d8578063d61860fe1461020e5761010b565b80638da5cb5b116100de5780638da5cb5b14610160578063a1b8c40f14610168578063a35f7c7b14610170578063b20d30a9146101785761010b565b806365925b9014610110578063715018a61461013457806385e1f4d01461013e578063863e76db14610158575b600080fd5b61011861033c565b604080516001600160a01b039092168252519081900360200190f35b61013c61034b565b005b6101466103e2565b60408051918252519081900360200190f35b6101466103e7565b6101186103ee565b6101466103fd565b610118610403565b61013c6004803603602081101561018e57600080fd5b503561041b565b61013c600480360360208110156101ab57600080fd5b50356104cb565b61013c600480360360208110156101c857600080fd5b50356001600160a01b0316610663565b61013c600480360360608110156101ee57600080fd5b506001600160a01b03813581169160208101359091169060400135610730565b61022b6004803603602081101561022457600080fd5b50356107fa565b604080519115158252519081900360200190f35b6101466004803603602081101561025557600080fd5b50356001600160a01b031661080f565b610146610821565b61013c6004803603602081101561028357600080fd5b50356001600160a01b0316610827565b610146600480360360208110156102a957600080fd5b50356001600160a01b0316610914565b61013c600480360360808110156102cf57600080fd5b813591602081013591604082013591908101906080810160608201356401000000008111156102fd57600080fd5b82018360208201111561030f57600080fd5b8035906020019184600183028401116401000000008311171561033157600080fd5b509092509050610926565b6003546001600160a01b031681565b6000546001600160a01b03163314610398576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600181565b6201518081565b6000546001600160a01b031690565b60075481565b73bd100d061e120b2c67a24453cf6368e63f1be05681565b61042433610b9e565b15801561043057503233145b610479576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b6000546001600160a01b031633146104c6576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b600255565b6104d433610b9e565b1580156104e057503233145b610529576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b60026001541415610581576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055548111156105d4576040805162461bcd60e51b8152602060048201526014602482015273185b5bdd5b9d08195e18d959591cc81b1a5b5a5d60621b604482015290519081900360640190fd5b6007546105e890600163ffffffff610ba416565b60075561061173bd100d061e120b2c67a24453cf6368e63f1be05633308463ffffffff610c0516565b60075460408051838152436020820152428183015260608101929092525133917f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f9919081900360800190a25060018055565b61066c33610b9e565b15801561067857503233145b6106c1576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b6000546001600160a01b0316331461070e576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b61073933610b9e565b15801561074557503233145b61078e576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b6000546001600160a01b031633146107db576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b6107f56001600160a01b038416838363ffffffff610c6516565b505050565b60066020526000908152604090205460ff1681565b60046020526000908152604090205481565b60025481565b6000546001600160a01b03163314610874576040805162461bcd60e51b81526020600482018190526024820152600080516020611244833981519152604482015290519081900360640190fd5b6001600160a01b0381166108b95760405162461bcd60e51b815260040180806020018281038252602681526020018061121e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60056020526000908152604090205481565b61092f33610b9e565b15801561093b57503233145b610984576040805162461bcd60e51b81526020600482015260156024820152744e6f20436f6e74726163747320416c6c6f7765642160581b604482015290519081900360640190fd5b600260015414156109dc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260019081558414610a29576040805162461bcd60e51b815260206004820152601060248201526f696e76616c696420636861696e49642160801b604482015290519081900360640190fd5b60008381526006602052604090205460ff1615610a82576040805162461bcd60e51b8152602060048201526012602482015271616c72656164792077697468647261776e2160701b604482015290519081900360640190fd5b610a90338686868686610cb7565b610ad6576040805162461bcd60e51b8152602060048201526012602482015271696e76616c6964207369676e61747572652160701b604482015290519081900360640190fd5b610ae03386610d79565b610b1b5760405162461bcd60e51b81526004018080602001828103825260348152602001806112646034913960400191505060405180910390fd5b6000838152600660205260409020805460ff19166001179055610b5973bd100d061e120b2c67a24453cf6368e63f1be056338763ffffffff610c6516565b6040805186815260208101859052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a2505060018055505050565b3b151590565b600082820183811015610bfe576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c5f908590610e26565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107f5908490610e26565b604080516001600160a01b03881660208083019190915281830188905260608201879052608082018690523060a0808401919091528351808403909101815260c090920190925280519101206000908190610d1190610ed7565b600354604080516020601f88018190048102820181019092528681529293506001600160a01b0390911691610d63918491908890889081908401838280828437600092019190915250610f2892505050565b6001600160a01b03161498975050505050505050565b6001600160a01b0382166000908152600460205260408120546201518090610da890429063ffffffff610fc016565b10610dd6576001600160a01b0383166000908152600560209081526040808320839055600490915290204290555b6001600160a01b038316600090815260056020526040902054610dff908363ffffffff610ba416565b6001600160a01b039390931660009081526005602052604090208390555050600254101590565b6060610e7b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110029092919063ffffffff16565b8051909150156107f557808060200190516020811015610e9a57600080fd5b50516107f55760405162461bcd60e51b815260040180806020018281038252602a815260200180611298602a913960400191505060405180910390fd5b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b600080600080848060200190516060811015610f4357600080fd5b5080516020808301516040938401518451600081528084018087528c905260ff85168187015260608101839052608081018290529451939750909550935060019260a080820193601f1981019281900390910190855afa158015610fab573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6000610bfe83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611019565b606061101184846000856110b0565b949350505050565b600081848411156110a85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561106d578181015183820152602001611055565b50505050905090810190601f16801561109a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606110bb85610b9e565b61110c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061114b5780518252601f19909201916020918201910161112c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146111ad576040519150601f19603f3d011682016040523d82523d6000602084013e6111b2565b606091505b509150915081156111c65791506110119050565b8051156111d65780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561106d57818101518382015260200161105556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657263616e6e6f742077697468647261772c206c696d6974207265616368656420666f722063757272656e74206475726174696f6e215361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206b8880711f62c655256c0557358f0c82c287e947ed5d4657bdfe6c86085e9d7864736f6c634300060b0033

Deployed Bytecode Sourcemap

22466:4628:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23175:73;;;:::i;:::-;;;;-1:-1:-1;;;;;23175:73:0;;;;;;;;;;;;;;21910:148;;;:::i;:::-;;22986:33;;;:::i;:::-;;;;;;;;;;;;;;;;23026:39;;;:::i;21270:79::-;;;:::i;23868:28::-;;;:::i;23078:90::-;;;:::i;24056:195::-;;;;;;;;;;;;;;;;-1:-1:-1;24056:195:0;;:::i;24263:423::-;;;;;;;;;;;;;;;;-1:-1:-1;24263:423:0;;:::i;23909:141::-;;;;;;;;;;;;;;;;-1:-1:-1;23909:141:0;-1:-1:-1;;;;;23909:141:0;;:::i;26026:194::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26026:194:0;;;;;;;;;;;;;;;;;:::i;23746:69::-;;;;;;;;;;;;;;;;-1:-1:-1;23746:69:0;;:::i;:::-;;;;;;;;;;;;;;;;;;23527:66;;;;;;;;;;;;;;;;-1:-1:-1;23527:66:0;-1:-1:-1;;;;;23527:66:0;;:::i;22922:57::-;;;:::i;22213:244::-;;;;;;;;;;;;;;;;-1:-1:-1;22213:244:0;-1:-1:-1;;;;;22213:244:0;;:::i;23600:63::-;;;;;;;;;;;;;;;;-1:-1:-1;23600:63:0;-1:-1:-1;;;;;23600:63:0;;:::i;24692:675::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24692:675:0;;-1:-1:-1;24692:675:0;-1:-1:-1;24692:675:0;:::i;23175:73::-;;;-1:-1:-1;;;;;23175:73:0;;:::o;21910:148::-;21482:6;;-1:-1:-1;;;;;21482:6:0;21492:10;21482:20;21474:65;;;;;-1:-1:-1;;;21474:65:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21474:65:0;;;;;;;;;;;;;;;22017:1:::1;22001:6:::0;;21980:40:::1;::::0;-1:-1:-1;;;;;22001:6:0;;::::1;::::0;21980:40:::1;::::0;22017:1;;21980:40:::1;22048:1;22031:19:::0;;-1:-1:-1;;;;;;22031:19:0::1;::::0;;21910:148::o;22986:33::-;23018:1;22986:33;:::o;23026:39::-;23057:8;23026:39;:::o;21270:79::-;21308:7;21335:6;-1:-1:-1;;;;;21335:6:0;21270:79;:::o;23868:28::-;;;;:::o;23078:90::-;23126:42;23078:90;:::o;24056:195::-;22669:32;22677:10;22669:30;:32::i;:::-;22667:35;:62;;;;-1:-1:-1;22706:9:0;22719:10;22706:23;22667:62;22659:96;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;;;;21482:6:::1;::::0;-1:-1:-1;;;;;21482:6:0::1;21492:10;21482:20;21474:65;;;::::0;;-1:-1:-1;;;21474:65:0;;::::1;;::::0;::::1;::::0;;;;;;;-1:-1:-1;;;;;;;;;;;21474:65:0;;;;;;;;;;;;;::::1;;24171:33:::2;:72:::0;24056:195::o;24263:423::-;22669:32;22677:10;22669:30;:32::i;:::-;22667:35;:62;;;;-1:-1:-1;22706:9:0;22719:10;22706:23;22667:62;22659:96;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;;;;19320:1:::1;19926:7;;:19;;19918:63;;;::::0;;-1:-1:-1;;;19918:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;19320:1;20059:7;:18:::0;;;24363:33;24353:43;::::2;;24345:76;;;::::0;;-1:-1:-1;;;24345:76:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;24345:76:0;;;;;;;;;;;;;::::2;;24461:16;::::0;:23:::2;::::0;24482:1:::2;24461:23;:20;:23;:::i;:::-;24442:16;:42:::0;24495:81:::2;23126:42;24542:10;24562:4;24569:6:::0;24495:81:::2;:46;:81;:::i;:::-;24661:16;::::0;24602:76:::2;::::0;;;;;24630:12:::2;24602:76;::::0;::::2;::::0;24644:15:::2;24602:76:::0;;;;;;;;;;;;24610:10:::2;::::0;24602:76:::2;::::0;;;;;;;;::::2;-1:-1:-1::0;19276:1:0::1;20238:22:::0;;24263:423::o;23909:141::-;22669:32;22677:10;22669:30;:32::i;:::-;22667:35;:62;;;;-1:-1:-1;22706:9:0;22719:10;22706:23;22667:62;22659:96;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;;;;21482:6:::1;::::0;-1:-1:-1;;;;;21482:6:0::1;21492:10;21482:20;21474:65;;;::::0;;-1:-1:-1;;;21474:65:0;;::::1;;::::0;::::1;::::0;;;;;;;-1:-1:-1;;;;;;;;;;;21474:65:0;;;;;;;;;;;;;::::1;;24010:13:::2;:32:::0;;-1:-1:-1;;;;;;24010:32:0::2;-1:-1:-1::0;;;;;24010:32:0;;;::::2;::::0;;;::::2;::::0;;23909:141::o;26026:194::-;22669:32;22677:10;22669:30;:32::i;:::-;22667:35;:62;;;;-1:-1:-1;22706:9:0;22719:10;22706:23;22667:62;22659:96;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;;;;21482:6:::1;::::0;-1:-1:-1;;;;;21482:6:0::1;21492:10;21482:20;21474:65;;;::::0;;-1:-1:-1;;;21474:65:0;;::::1;;::::0;::::1;::::0;;;;;;;-1:-1:-1;;;;;;;;;;;21474:65:0;;;;;;;;;;;;;::::1;;26160:52:::2;-1:-1:-1::0;;;;;26160:33:0;::::2;26194:9:::0;26205:6;26160:52:::2;:33;:52;:::i;:::-;26026:194:::0;;;:::o;23746:69::-;;;;;;;;;;;;;;;:::o;23527:66::-;;;;;;;;;;;;;:::o;22922:57::-;;;;:::o;22213:244::-;21482:6;;-1:-1:-1;;;;;21482:6:0;21492:10;21482:20;21474:65;;;;;-1:-1:-1;;;21474:65:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21474:65:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;22302:22:0;::::1;22294:73;;;;-1:-1:-1::0;;;22294:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22404:6;::::0;;22383:38:::1;::::0;-1:-1:-1;;;;;22383:38:0;;::::1;::::0;22404:6;::::1;::::0;22383:38:::1;::::0;::::1;22432:6;:17:::0;;-1:-1:-1;;;;;;22432:17:0::1;-1:-1:-1::0;;;;;22432:17:0;;;::::1;::::0;;;::::1;::::0;;22213:244::o;23600:63::-;;;;;;;;;;;;;:::o;24692:675::-;22669:32;22677:10;22669:30;:32::i;:::-;22667:35;:62;;;;-1:-1:-1;22706:9:0;22719:10;22706:23;22667:62;22659:96;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;-1:-1:-1;;;22659:96:0;;;;;;;;;;;;;;;19320:1:::1;19926:7;;:19;;19918:63;;;::::0;;-1:-1:-1;;;19918:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;19320:1;20059:7;:18:::0;;;24832:19;::::2;24824:48;;;::::0;;-1:-1:-1;;;24824:48:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;24824:48:0;;;;;;;;;;;;;::::2;;24892:43;::::0;;;:39:::2;:43;::::0;;;;;::::2;;24891:44;24883:75;;;::::0;;-1:-1:-1;;;24883:75:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;24883:75:0;;;;;;;;;;;;;::::2;;24977:50;24984:10;24996:6;25004:7;25013:2;25017:9;;24977:6;:50::i;:::-;24969:81;;;::::0;;-1:-1:-1;;;24969:81:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;24969:81:0;;;;;;;;;;;;;::::2;;25069:31;25081:10;25093:6;25069:11;:31::i;:::-;25061:96;;;;-1:-1:-1::0;;;25061:96:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25178:43;::::0;;;:39:::2;:43;::::0;;;;:50;;-1:-1:-1;;25178:50:0::2;25224:4;25178:50;::::0;;25239:62:::2;23126:42;25282:10;25294:6:::0;25239:62:::2;:42;:62;:::i;:::-;25327:32;::::0;;;;;::::2;::::0;::::2;::::0;;;;;25336:10:::2;::::0;25327:32:::2;::::0;;;;;;::::2;-1:-1:-1::0;;19276:1:0::1;20238:22:::0;;-1:-1:-1;;;24692:675:0:o;6052:422::-;6419:20;6458:8;;;6052:422::o;911:181::-;969:7;1001:5;;;1025:6;;;;1017:46;;;;;-1:-1:-1;;;1017:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1083:1;911:181;-1:-1:-1;;;911:181:0:o;12077:205::-;12205:68;;;-1:-1:-1;;;;;12205:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12205:68:0;-1:-1:-1;;;12205:68:0;;;12178:96;;12198:5;;12178:19;:96::i;:::-;12077:205;;;;:::o;11892:177::-;12002:58;;;-1:-1:-1;;;;;12002:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12002:58:0;-1:-1:-1;;;12002:58:0;;;11975:86;;11995:5;;11975:19;:86::i;26257:324::-;26449:55;;;-1:-1:-1;;;;;26449:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26498:4;26449:55;;;;;;;;;;;;;;;;;;;;;;;;;26439:66;;;;;26398:4;;;;26430:76;;:8;:76::i;:::-;26562:13;;26525:33;;;;;;;;;;;;;;;;;;;;;;26412:94;;-1:-1:-1;;;;;;26562:13:0;;;;26525:33;;26412:94;;26525:33;26548:9;;;;;;26525:33;;26548:9;;;;26525:33;;;;;;;;;-1:-1:-1;26525:13:0;;-1:-1:-1;;;26525:33:0:i;:::-;-1:-1:-1;;;;;26525:50:0;;;26257:324;-1:-1:-1;;;;;;;;26257:324:0:o;25379:515::-;-1:-1:-1;;;;;25488:42:0;;25447:4;25488:42;;;:33;:42;;;;;;23057:8;;25468:63;;:15;;:63;:19;:63;:::i;:::-;:74;25464:225;;-1:-1:-1;;;;;25559:39:0;;25601:1;25559:39;;;:30;:39;;;;;;;;:43;;;25617:33;:42;;;;;25662:15;25617:60;;25464:225;-1:-1:-1;;;;;25741:39:0;;;;;;:30;:39;;;;;;:51;;25785:6;25741:51;:43;:51;:::i;:::-;-1:-1:-1;;;;;25699:39:0;;;;;;;;:30;:39;;;;;:93;;;-1:-1:-1;;25853:33:0;;-1:-1:-1;25810:76:0;;25379:515::o;14197:761::-;14621:23;14647:69;14675:4;14647:69;;;;;;;;;;;;;;;;;14655:5;-1:-1:-1;;;;;14647:27:0;;;:69;;;;;:::i;:::-;14731:17;;14621:95;;-1:-1:-1;14731:21:0;14727:224;;14873:10;14862:30;;;;;;;;;;;;;;;-1:-1:-1;14862:30:0;14854:85;;;;-1:-1:-1;;;14854:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26932:159;27024:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27014:69;;;;;;26932:159::o;26593:264::-;26701:7;26727;26736:9;26747;26771:3;26760:42;;;;;;;;;;;;;;;-1:-1:-1;26760:42:0;;;;;;;;;;;;26822:27;;;;;;;;;;;;;;;;;;;;;26760:42;26822:27;;;;;;;;;;;;;26760:42;;-1:-1:-1;26760:42:0;;-1:-1:-1;26760:42:0;-1:-1:-1;26822:27:0;;;;;;;-1:-1:-1;;26822:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26822:27:0;;-1:-1:-1;;26822:27:0;;;26593:264;-1:-1:-1;;;;;;;26593:264:0:o;1375:136::-;1433:7;1460:43;1464:1;1467;1460:43;;;;;;;;;;;;;;;;;:3;:43::i;8970:196::-;9073:12;9105:53;9128:6;9136:4;9142:1;9145:12;9105:22;:53::i;:::-;9098:60;8970:196;-1:-1:-1;;;;8970:196:0:o;1814:192::-;1900:7;1936:12;1928:6;;;;1920:29;;;;-1:-1:-1;;;1920:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1972:5:0;;;1814:192::o;10347:979::-;10477:12;10510:18;10521:6;10510:10;:18::i;:::-;10502:60;;;;;-1:-1:-1;;;10502:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10636:12;10650:23;10677:6;-1:-1:-1;;;;;10677:11:0;10697:8;10708:4;10677:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;10677:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10635:78;;;;10728:7;10724:595;;;10759:10;-1:-1:-1;10752:17:0;;-1:-1:-1;10752:17:0;10724:595;10873:17;;:21;10869:439;;11136:10;11130:17;11197:15;11184:10;11180:2;11176:19;11169:44;11084:148;11272:20;;-1:-1:-1;;;11272:20:0;;;;;;;;;;;;;;;;;11279:12;;11272:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://6b8880711f62c655256c0557358f0c82c287e947ed5d4657bdfe6c86085e9d78

Block Transaction Difficulty 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
Loading...
Loading
[ 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.