ETH Price: $3,489.85 (+2.38%)

Contract

0xb903716B3DD10b0115E93eb29D8Eb99e23336387
 
Transaction Hash
Method
Block
From
To
0x1f013e290aeb352aabac6664ca76d7007c00dfc57b4a4bbeda3268b9757af8f4 Claim(pending)2024-12-19 10:40:075 days ago1734604807IN
0xb903716B...e23336387
0 ETH(Pending)(Pending)
Deposit214699552024-12-24 4:30:1127 hrs ago1735014611IN
0xb903716B...e23336387
0 ETH0.000183196.04682264
Deposit214461332024-12-20 20:31:114 days ago1734726671IN
0xb903716B...e23336387
0 ETH0.0003945517.66391195
Deposit214461282024-12-20 20:30:114 days ago1734726611IN
0xb903716B...e23336387
0 ETH0.0003402715.22555377
Deposit214461252024-12-20 20:29:354 days ago1734726575IN
0xb903716B...e23336387
0 ETH0.000378716.94515676
Deposit214457852024-12-20 19:21:234 days ago1734722483IN
0xb903716B...e23336387
0 ETH0.0006289120.72628859
Deposit214457592024-12-20 19:16:114 days ago1734722171IN
0xb903716B...e23336387
0 ETH0.0005261817.3542923
Fetch Dead Statu...214456442024-12-20 18:52:594 days ago1734720779IN
0xb903716B...e23336387
0 ETH0.0004879915.79541535
Deposit214424642024-12-20 8:13:235 days ago1734682403IN
0xb903716B...e23336387
0 ETH0.0013397816.87051608
Claim214398992024-12-19 23:37:595 days ago1734651479IN
0xb903716B...e23336387
0 ETH0.0016756513.73603154
Claim214393962024-12-19 21:57:115 days ago1734645431IN
0xb903716B...e23336387
0 ETH0.0095553717.37008624
Claim214393922024-12-19 21:56:235 days ago1734645383IN
0xb903716B...e23336387
0 ETH0.009902217.96478917
Claim214393862024-12-19 21:55:115 days ago1734645311IN
0xb903716B...e23336387
0 ETH0.0099346518.02287495
Deposit214393412024-12-19 21:46:115 days ago1734644771IN
0xb903716B...e23336387
0 ETH0.0018322123.06417742
Deposit214364562024-12-19 12:06:115 days ago1734609971IN
0xb903716B...e23336387
0 ETH0.000402813.29024927
Deposit214364532024-12-19 12:05:355 days ago1734609935IN
0xb903716B...e23336387
0 ETH0.0003838912.66650113
Claim214363602024-12-19 11:46:595 days ago1734608819IN
0xb903716B...e23336387
0 ETH0.0057937611.880462
Deposit214359952024-12-19 10:33:355 days ago1734604415IN
0xb903716B...e23336387
0 ETH0.0005819119.16202755
Deposit214359662024-12-19 10:27:475 days ago1734604067IN
0xb903716B...e23336387
0 ETH0.0005775519.04108827
Deposit214359362024-12-19 10:21:475 days ago1734603707IN
0xb903716B...e23336387
0 ETH0.001091550
Deposit214359102024-12-19 10:16:115 days ago1734603371IN
0xb903716B...e23336387
0 ETH0.001091550
Deposit214358992024-12-19 10:13:595 days ago1734603239IN
0xb903716B...e23336387
0 ETH0.001985725
Deposit214358952024-12-19 10:13:115 days ago1734603191IN
0xb903716B...e23336387
0 ETH0.0008139226.74928312
Deposit214358942024-12-19 10:12:595 days ago1734603179IN
0xb903716B...e23336387
0 ETH0.000780925.66417209
Deposit214358802024-12-19 10:10:115 days ago1734603011IN
0xb903716B...e23336387
0 ETH0.000829927.36080248
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:
TokenDeposit

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 16 : TokenDeposit.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ITokenDeposit} from "./interfaces/ITokenDeposit.sol";
import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IProofVerifier} from "./interfaces/IProofVerifier.sol";
import {IStateOracle} from "./interfaces/IStateOracle.sol";
import {IProvingContract} from "./interfaces/IProvingContract.sol";
import {UsdcDepositExtension} from "./UsdcDepositExtension.sol";
import {EurcDepositExtension} from "./EurcDepositExtension.sol";
import {UsdtDepositExtension} from "./UsdtDepositExtension.sol";

using SafeERC20 for IERC20;

/// The L1 part of the bridge. Allows to initiate depositing tokens to the L2.
/// Allows to claim withdrawal initiated on the L2 chain.
/// @custom:security-contact [email protected]
contract TokenDeposit is IProvingContract, ITokenDeposit, Ownable, UsdcDepositExtension, EurcDepositExtension, UsdtDepositExtension {
    mapping (uint256 depositId => bytes32 senderTokenAmount) public deposits; // slot index 7
    mapping (uint256 withdrawalId => bool isClaimed) public claims; // claimed withdraws, slot index 8

    address public override(ITokenDeposit, IProvingContract) proofVerifier; // for verification of proofs from L2 chain
    address public exitAdministrator; // for withdrawals while the bridge is dead
    address public immutable bridge; // Bridge contract on the L2 chain
    address public immutable tokenPairs; // TokenPairs contract
    address public immutable stateOracle; // StateOracle contract
    bytes32 public deadState; // Last state root when the bridge died

    uint256 private constant TIME_UNTIL_DEAD = 200 days;
    uint256 private constant TIME_UNTIL_OFFLINE = 24 hours;

    event Deposit(uint256 indexed id, address indexed owner, address token, uint256 amount);
    event Claim(uint256 id, address indexed owner, address token, uint256 amount);
    event WithdrawnWhileDead(address indexed owner, address token, uint256 amount);
    event CancelledWhileDead(uint256 id, address indexed owner, address token, uint256 amount);
    event ProofVerifierSet(address proofVerifier);
    event BridgeDied();

    constructor(address _proofVerifier, address _bridge, address _tokenPairs, address _stateOracle, address _ownedBy)
            Ownable(_ownedBy) UsdcDepositExtension(_tokenPairs) EurcDepositExtension(_tokenPairs) UsdtDepositExtension(_tokenPairs) {
        require(_proofVerifier != address(0), "ProofVerifier not set");
        require(_bridge != address(0), "Bridge address not set");
        require(_tokenPairs != address(0), "TokenPairs not set");
        require(_stateOracle != address(0), "StateOracle not set");
        proofVerifier = _proofVerifier;
        bridge = _bridge;
        tokenPairs = _tokenPairs;
        stateOracle = _stateOracle;
    }

    /// Deposits tokens on L1.
    function deposit(uint96 uid, address token, uint256 amount) external {
        uint256 id = userOperationId(msg.sender, uid);
        require(deposits[id] == 0, "Deposit id is already used");
        require(ITokenPairs(tokenPairs).originalToMintedTerminable(token) != address(0), "Not supported token");
        require(isOnline(), "Bridge is offline");

        uint256 balanceBefore = IERC20(token).balanceOf(address(this));
        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
        uint256 realAmount = IERC20(token).balanceOf(address(this)) - balanceBefore;
        require(realAmount > 0, "No tokens were transferred");

        deposits[id] = hash(msg.sender, token, realAmount);
        emit Deposit(id, msg.sender, token, realAmount);
    }

    /// Claim deposited L1 tokens burned on L2.
    function claim(uint256 id, address token, uint256 amount, bytes calldata proof) external {
        require(claims[id] == false, "Already claimed");

        bytes32 expectedHash = hash(msg.sender, token, amount);
        IProofVerifier(proofVerifier).verifyProof(bridge, getWithdrawalSlotIndex(id), expectedHash, lastValidState(), proof);
        // the withdrawal exists on the L2

        claims[id] = true; // write before other contract call (reentrancy!)
        IERC20(token).safeTransfer(msg.sender, amount);
        emit Claim(id, msg.sender, token, amount);
    }

    /// When the bridge is dead, ExitAdministrator can release tokens from the deposit to appropriate owners.
    function withdrawWhileDead(address recipient, address token, uint256 amount) external {
        require(recipient != address(0), "Recipient is zero");
        require(msg.sender == exitAdministrator, "Not exit administrator");
        require(fetchDeadStatus(), "Bridge is not dead");
        IERC20(token).safeTransfer(recipient, amount);
        emit WithdrawnWhileDead(recipient, token, amount);
    }

    /// When the bridge is dead, cancel not-claimed deposit.
    /// Use proof of not-claimed state of the deposit on L2.
    function cancelDepositWhileDead(uint256 id, address token, uint256 amount, bytes calldata proof) external {
        require(deposits[id] == hash(msg.sender, token, amount), "No deposit to cancel");
        require(fetchDeadStatus(), "Bridge is not dead");

        IProofVerifier(proofVerifier).verifyProof(bridge, getClaimSlotIndex(id), bytes32(0), lastValidState(), proof);
        // claimed state is false in the last state root

        delete deposits[id]; // write before other contract call (reentrancy!)
        IERC20(token).safeTransfer(msg.sender, amount);
        emit CancelledWhileDead(id, msg.sender, token, amount);
    }

    /// Calculate slotId for withdrawal in the Bridge L2 contract.
    function getWithdrawalSlotIndex(uint256 id) pure public returns (bytes32) {
        return keccak256(abi.encode(id, uint8(1))); // withdrawals mapping is at slot index 1
    }

    /// Get deposit/withdrawal hash.
    function hash(address sender, address token, uint256 amount) pure public returns (bytes32) {
        return keccak256(abi.encode(sender, token, amount));
    }

    /// Calculate mapping key for user operation.
    /// Combines calling user identity and user-chosen value into a single key.
    function userOperationId(address sender, uint96 uid) pure public returns (uint256) {
        return (uint256(uint160(sender)) << 96) + uint256(uid);
    }

    /// Calculate slotId for claim in the Bridge L2 contract.
    function getClaimSlotIndex(uint256 id) pure public returns (bytes32) {
        return keccak256(abi.encode(id, uint8(2))); // claims mapping is at slot index 2
    }

    /// Fetch the dead status of the bridge.
    function fetchDeadStatus() public returns (bool) {
        if (deadState != 0) {
            return true;
        }
        if (exitAdministrator == address(0)) {
            return false; // The dying mechanism is disabled if no exitAdministrator is set.
        }
        uint256 lastUpdateTime = IStateOracle(stateOracle).lastUpdateTime();
        if (lastUpdateTime != 0 && lastUpdateTime < block.timestamp - TIME_UNTIL_DEAD) {
            deadState = IStateOracle(stateOracle).lastState();
            emit BridgeDied();
            return true;
        }
        return false;
    }

    function isOnline() private view returns (bool) {
        if (deadState != 0) {
            return false;
        }
        return IStateOracle(stateOracle).lastUpdateTime() >= block.timestamp - TIME_UNTIL_OFFLINE;
    }

    /// Get the last state root that is valid for the token deposit.
    function lastValidState() private view returns (bytes32) {
        if (deadState != 0) {
            return deadState;
        }
        return IStateOracle(stateOracle).lastState();
    }

    /// Set new proof verifier (callable by UpdateManager)
    function setProofVerifier(address _proofVerifier) external onlyOwner {
        proofVerifier = _proofVerifier;
        emit ProofVerifierSet(_proofVerifier);
    }

    /// Set new exit administrator (callable by UpdateManager)
    function setExitAdministrator(address _exitAdministrator) external onlyOwner {
        exitAdministrator = _exitAdministrator;
    }

}

File 2 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @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.
 *
 * The initial owner is set to the address provided by the deployer. 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.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 16 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 5 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @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 Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 6 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 7 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 8 of 16 : EurcDepositExtension.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IMintedBurnableERC20} from "./interfaces/IMintedBurnableERC20.sol";

/// Extension of the TokenDeposit contract adding transition support of bridged EURC to native EURC.
/// @custom:security-contact [email protected]
abstract contract EurcDepositExtension {

    address private constant EURC_ADDRESS_L1 = 0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c;
    bytes32 public constant EURC_BURN_PREPARER_ROLE = keccak256("EURC_BURN_PREPARER_ROLE");

    ITokenPairs private immutable tokenPairs; // TokenPairs contract

    uint256 private eurcToBurn;
    address private eurcBurner;

    constructor(address _tokenPairs) {
        require(_tokenPairs != address(0), "TokenPairs not set");
        tokenPairs = ITokenPairs(_tokenPairs);
    }

    /// Burn EURC in the contract. To be called by Circle.
    /// Burning must be prepared first by calling prepareBurningEURC().
    /// See https://github.com/circlefin/stablecoin-evm/blob/release-2024-06-21T005221/doc/bridged_USDC_standard.md
    function burnLockedEURC() external {
        require(msg.sender == eurcBurner, "Not EURC burner");
        uint256 amount = eurcToBurn;
        eurcToBurn = 0;
        IMintedBurnableERC20(EURC_ADDRESS_L1).burn(amount);
    }

    /// Prepare burning EURC in the contract. To be called by Sonic team.
    /// The EURC pair must be terminated first on both networks and the caller needs to have appropriate role assigned.
    /// @param burner The address defined by Circle allowed to call burnLockedEURC()
    /// @param amount The total supply of bridged EURC on the Sonic network - to by burned by burnLockedEURC() call.
    function prepareBurningEURC(address burner, uint256 amount) external {
        require(tokenPairs.originalToMinted(EURC_ADDRESS_L1) != address(0), "EURC not registered yet");
        require(tokenPairs.originalToMintedTerminable(EURC_ADDRESS_L1) == address(0), "EURC not terminated");
        require(tokenPairs.hasRole(EURC_BURN_PREPARER_ROLE, msg.sender), "Not burn preparer");
        eurcBurner = burner;
        eurcToBurn = amount;
    }

}

File 9 of 16 : IMintedBurnableERC20.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

/// Minted ERC-20 tokens represents an Ethereum ERC-20 tokens on L2.
interface IMintedBurnableERC20 {
    function mint(address account, uint256 amount) external returns (bool);
    function burn(uint256 value) external;
    function burnFrom(address account, uint256 value) external;
}

File 10 of 16 : IProofVerifier.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

/// Proof verifier allows to validate witness proof about a storage slot value on a different chain.
interface IProofVerifier {

    /// Verify witness proof - proof about storage slot value on a different chain.
    /// Reverts if the slot value does not match the expected value or if the proof is invalid.
    function verifyProof(address contractAddress, bytes32 slotIndex, bytes32 expectedValue, bytes32 stateRoot, bytes calldata proof) external view;

}

File 11 of 16 : IProvingContract.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

/// Proving contract represents a contract which use the proof verifier.
/// Used for updating the proof verifier address.
interface IProvingContract {
    function proofVerifier() external view returns(address);
    function setProofVerifier(address proofVerifier) external;
    function setExitAdministrator(address exitAdministrator) external;
}

File 12 of 16 : IStateOracle.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

/// State oracle provides the hash of a different chain state.
interface IStateOracle {
    function lastState() external view returns (bytes32);
    function lastBlockNum() external view returns (uint256);
    function lastUpdateTime() external view returns (uint256);
    function chainId() external view returns (uint256);

    function update(uint256 blockNum, bytes32 stateRoot) external;
}

File 13 of 16 : ITokenDeposit.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

/// Interface of a token deposit manageable (in case of the bridge death) by ExitAdministrator.
interface ITokenDeposit {
    function withdrawWhileDead(address recipient, address token, uint256 amount) external;
    function fetchDeadStatus() external returns (bool);
    function deadState() external view returns (bytes32);
    function proofVerifier() external view returns (address);
    function tokenPairs() external view returns (address);
}

File 14 of 16 : ITokenPairs.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

// The token pairs registry maps Ethereum ERC-20 tokens to L2 tokens minted by the bridge.
interface ITokenPairs {
    /// Map Ethereum token to L2 token - pairs can be only added into this mapping.
    function originalToMinted(address) external view returns (address);

    /// Map Ethereum token to L2 token - pairs can be removed from here to block new transfers.
    function originalToMintedTerminable(address) external view returns (address);

    /// Map L2 token to Ethereum token - pairs can be only added into this mapping.
    function mintedToOriginal(address) external view returns (address);

    /// Check if the account has given role - allows to use TokenPairs as an AccessManager for USDC burning ops.
    function hasRole(bytes32 role, address account) external view returns (bool);
}

File 15 of 16 : UsdcDepositExtension.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IMintedBurnableERC20} from "./interfaces/IMintedBurnableERC20.sol";

/// Extension of the TokenDeposit contract adding transition support of bridged USDC to native USDC.
/// @custom:security-contact [email protected]
abstract contract UsdcDepositExtension {

    address private constant USDC_ADDRESS_L1 = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
    bytes32 public constant USDC_BURN_PREPARER_ROLE = keccak256("USDC_BURN_PREPARER_ROLE");

    ITokenPairs private immutable tokenPairs; // TokenPairs contract

    uint256 private usdcToBurn;
    address private usdcBurner;

    constructor(address _tokenPairs) {
        require(_tokenPairs != address(0), "TokenPairs not set");
        tokenPairs = ITokenPairs(_tokenPairs);
    }

    /// Burn USDC in the contract. To be called by Circle.
    /// Burning must be prepared first by calling prepareBurningUSDC().
    /// See https://github.com/circlefin/stablecoin-evm/blob/release-2024-06-21T005221/doc/bridged_USDC_standard.md
    function burnLockedUSDC() external {
        require(msg.sender == usdcBurner, "Not USDC burner");
        uint256 amount = usdcToBurn;
        usdcToBurn = 0;
        IMintedBurnableERC20(USDC_ADDRESS_L1).burn(amount);
    }

    /// Prepare burning USDC in the contract. To be called by Sonic team.
    /// The USDC pair must be terminated first on both networks and the caller needs to have appropriate role assigned.
    /// @param burner The address defined by Circle allowed to call burnLockedUSDC()
    /// @param amount The total supply of bridged USDC on the Sonic network - to by burned by burnLockedUSDC() call.
    function prepareBurningUSDC(address burner, uint256 amount) external {
        require(tokenPairs.originalToMinted(USDC_ADDRESS_L1) != address(0), "USDC not registered yet");
        require(tokenPairs.originalToMintedTerminable(USDC_ADDRESS_L1) == address(0), "USDC not terminated");
        require(tokenPairs.hasRole(USDC_BURN_PREPARER_ROLE, msg.sender), "Not burn preparer");
        usdcBurner = burner;
        usdcToBurn = amount;
    }

}

File 16 of 16 : UsdtDepositExtension.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IMintedBurnableERC20} from "./interfaces/IMintedBurnableERC20.sol";

/// Extension of the TokenDeposit contract adding transition support of bridged USDT to native USDT.
/// @custom:security-contact [email protected]
abstract contract UsdtDepositExtension {

    address private constant USDT_ADDRESS_L1 = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
    bytes32 public constant USDT_BURN_PREPARER_ROLE = keccak256("USDT_BURN_PREPARER_ROLE");

    ITokenPairs private immutable tokenPairs; // TokenPairs contract

    uint256 private usdtToBurn;
    address private usdtBurner;

    constructor(address _tokenPairs) {
        require(_tokenPairs != address(0), "TokenPairs not set");
        tokenPairs = ITokenPairs(_tokenPairs);
    }

    /// Burn USDT in the contract. To be called by Tether.
    /// Burning must be prepared first by calling prepareBurningUSDT().
    function burnLockedUSDT() external {
        require(msg.sender == usdtBurner, "Not USDT burner");
        uint256 amount = usdtToBurn;
        usdtToBurn = 0;
        IMintedBurnableERC20(USDT_ADDRESS_L1).burn(amount);
    }

    /// Prepare burning USDT in the contract. To be called by Sonic team.
    /// The USDT pair must be terminated first on both networks and the caller needs to have appropriate role assigned.
    /// @param burner The address defined by Tether allowed to call burnLockedUSDT()
    /// @param amount The total supply of bridged USDT on the Sonic network - to by burned by burnLockedUSDT() call.
    function prepareBurningUSDT(address burner, uint256 amount) external {
        require(tokenPairs.originalToMinted(USDT_ADDRESS_L1) != address(0), "USDT not registered yet");
        require(tokenPairs.originalToMintedTerminable(USDT_ADDRESS_L1) == address(0), "USDT not terminated");
        require(tokenPairs.hasRole(USDT_BURN_PREPARER_ROLE, msg.sender), "Not burn preparer");
        usdtBurner = burner;
        usdtToBurn = amount;
    }

}

Settings
{
  "evmVersion": "cancun",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proofVerifier","type":"address"},{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"address","name":"_tokenPairs","type":"address"},{"internalType":"address","name":"_stateOracle","type":"address"},{"internalType":"address","name":"_ownedBy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[],"name":"BridgeDied","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CancelledWhileDead","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","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":false,"internalType":"address","name":"proofVerifier","type":"address"}],"name":"ProofVerifierSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawnWhileDead","type":"event"},{"inputs":[],"name":"EURC_BURN_PREPARER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC_BURN_PREPARER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT_BURN_PREPARER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnLockedEURC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnLockedUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnLockedUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"cancelDepositWhileDead","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"withdrawalId","type":"uint256"}],"name":"claims","outputs":[{"internalType":"bool","name":"isClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadState","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"uid","type":"uint96"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"bytes32","name":"senderTokenAmount","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exitAdministrator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fetchDeadStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getClaimSlotIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getWithdrawalSlotIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"hash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"prepareBurningEURC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"prepareBurningUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"prepareBurningUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proofVerifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_exitAdministrator","type":"address"}],"name":"setExitAdministrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proofVerifier","type":"address"}],"name":"setProofVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stateOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint96","name":"uid","type":"uint96"}],"name":"userOperationId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawWhileDead","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610140604052348015610010575f5ffd5b506040516124b03803806124b083398101604081905261002f91610328565b828080836001600160a01b03811661006157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61006a816102be565b506001600160a01b0381166100ae5760405162461bcd60e51b815260206004820152601260248201525f5160206124905f395f51905f526044820152606401610058565b6001600160a01b0390811660805281166100f75760405162461bcd60e51b815260206004820152601260248201525f5160206124905f395f51905f526044820152606401610058565b6001600160a01b0390811660a05281166101405760405162461bcd60e51b815260206004820152601260248201525f5160206124905f395f51905f526044820152606401610058565b6001600160a01b0390811660c052851661019c5760405162461bcd60e51b815260206004820152601560248201527f50726f6f665665726966696572206e6f742073657400000000000000000000006044820152606401610058565b6001600160a01b0384166101f25760405162461bcd60e51b815260206004820152601660248201527f4272696467652061646472657373206e6f7420736574000000000000000000006044820152606401610058565b6001600160a01b0383166102355760405162461bcd60e51b815260206004820152601260248201525f5160206124905f395f51905f526044820152606401610058565b6001600160a01b03821661028b5760405162461bcd60e51b815260206004820152601360248201527f53746174654f7261636c65206e6f7420736574000000000000000000000000006044820152606401610058565b50600980546001600160a01b0319166001600160a01b0395861617905591831660e0528216610100521661012052610389565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114610323575f5ffd5b919050565b5f5f5f5f5f60a0868803121561033c575f5ffd5b6103458661030d565b94506103536020870161030d565b93506103616040870161030d565b925061036f6060870161030d565b915061037d6080870161030d565b90509295509295909350565b60805160a05160c05160e051610100516101205161206561042b5f395f818161022801528181610d8301528181610e25015281816119be0152611b3e01525f81816101e401526113a001525f8181610468015281816105ab015261121701525f8181610ac601528181610bb80152610ca801525f8181610f100152818161100201526110f201525f818161074601528181610838015261092801526120655ff3fe608060405234801561000f575f5ffd5b50600436106101db575f3560e01c80639901614211610109578063c183bda01161009e578063e78cea921161006e578063e78cea9214610463578063eb8006f71461048a578063eee2c7e11461049d578063f2fde38b146104a5575f5ffd5b8063c183bda014610403578063de13301314610416578063df6244db14610429578063e65e9ed71461043c575f5ffd5b8063abfd0d40116100d9578063abfd0d40146103c0578063b02c43d0146103c8578063b703ca85146103e7578063baac0df0146103fa575f5ffd5b80639901614214610351578063991b9021146103645780639f6352241461038b578063a888c2cd1461039e575f5ffd5b8063715018a61161017f5780638ad1ef0b1161014f5780638ad1ef0b146103035780638affb822146103165780638da5cb5b1461032e5780638f20c36b1461033e575f5ffd5b8063715018a6146102cd5780637d059e4c146102d55780637fa417b3146102e85780638a5e52bb146102fb575f5ffd5b806335a6821c116101ba57806335a6821c1461027f5780635eaf5260146102925780636951588b146102a757806369999dd2146102ba575f5ffd5b8062d46014146101df578063076d27f514610223578063142a3f671461024a575b5f5ffd5b6102067f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6102067f000000000000000000000000000000000000000000000000000000000000000081565b6102717fea9b585a6ebd9633ce15a00ac59a64be294805b254faeed18790c2161e44e71a81565b60405190815260200161021a565b61027161028d366004611d99565b6104b8565b6102a56102a0366004611dcc565b6104ed565b005b6102a56102b5366004611e5c565b61069f565b6102716102c8366004611e77565b6106c9565b6102a5610700565b6102a56102e3366004611e8e565b610713565b600954610206906001600160a01b031681565b6102a56109db565b6102a5610311366004611e8e565b610a93565b61031e610d5b565b604051901515815260200161021a565b5f546001600160a01b0316610206565b6102a561034c366004611e8e565b610edd565b6102a561035f366004611dcc565b6111a5565b6102717fcc83783a336c5977a84d3445de8848e96ef07372a420bac3d7f276ab3bcb0b4081565b6102a5610399366004611eb8565b611316565b61031e6103ac366004611e77565b60086020525f908152604090205460ff1681565b6102a561164e565b6102716103d6366004611e77565b60076020525f908152604090205481565b600a54610206906001600160a01b031681565b610271600b5481565b6102a5610411366004611ef4565b6116da565b610271610424366004611e77565b61181f565b6102a5610437366004611e5c565b61183d565b6102717f366e34e4dd9cacc5f69a0ea920636c292b34b8951987dd08682365f7701b86f681565b6102067f000000000000000000000000000000000000000000000000000000000000000081565b610271610498366004611ef4565b611899565b6102a56118e2565b6102a56104b3366004611e5c565b61196e565b5f6104e46bffffffffffffffffffffffff83166bffffffffffffffffffffffff19606086901b16611f25565b90505b92915050565b6104f8338585611899565b5f868152600760205260409020541461054f5760405162461bcd60e51b8152602060048201526014602482015273139bc819195c1bdcda5d081d1bc818d85b98d95b60621b60448201526064015b60405180910390fd5b610557610d5b565b6105985760405162461bcd60e51b8152602060048201526012602482015271109c9a5919d9481a5cc81b9bdd081919585960721b6044820152606401610546565b6009546001600160a01b0316636a5310d07f00000000000000000000000000000000000000000000000000000000000000006105d38861181f565b5f6105dc6119ab565b87876040518763ffffffff1660e01b81526004016105ff96959493929190611f38565b5f6040518083038186803b158015610615575f5ffd5b505afa158015610627573d5f5f3e3d5ffd5b5050505f868152600760205260408120555061064d6001600160a01b0385163385611a41565b604080518681526001600160a01b038616602082015290810184905233907f3a6343efe689b69f2bf6fa15c89c2f06f5ef55bbbb1e89aa0df0a4d3b9d2ef219060600160405180910390a25050505050565b6106a7611aa5565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60408051602081018390526001918101919091525f906060015b604051602081830303815290604052805190602001209050919050565b610708611aa5565b6107115f611ad1565b565b60405163fe2f9dd760e01b815273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860048201525f906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063fe2f9dd790602401602060405180830381865afa15801561078b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107af9190611f8a565b6001600160a01b0316036108055760405162461bcd60e51b815260206004820152601760248201527f55534443206e6f742072656769737465726564207965740000000000000000006044820152606401610546565b604051634b0f53e960e01b815273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860048201525f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634b0f53e990602401602060405180830381865afa15801561087d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108a19190611f8a565b6001600160a01b0316146108ed5760405162461bcd60e51b81526020600482015260136024820152721554d110c81b9bdd081d195c9b5a5b985d1959606a1b6044820152606401610546565b604051632474521560e21b81527f366e34e4dd9cacc5f69a0ea920636c292b34b8951987dd08682365f7701b86f660048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610975573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109999190611fa5565b6109b55760405162461bcd60e51b815260040161054690611fc4565b600280546001600160a01b0319166001600160a01b039390931692909217909155600155565b6002546001600160a01b03163314610a275760405162461bcd60e51b815260206004820152600f60248201526e2737ba102aa9a22190313ab93732b960891b6044820152606401610546565b600180545f909155604051630852cd8d60e31b81526004810182905273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906342966c68906024015b5f604051808303815f87803b158015610a7a575f5ffd5b505af1158015610a8c573d5f5f3e3d5ffd5b5050505050565b60405163fe2f9dd760e01b815273dac17f958d2ee523a2206206994597c13d831ec760048201525f906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063fe2f9dd790602401602060405180830381865afa158015610b0b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b2f9190611f8a565b6001600160a01b031603610b855760405162461bcd60e51b815260206004820152601760248201527f55534454206e6f742072656769737465726564207965740000000000000000006044820152606401610546565b604051634b0f53e960e01b815273dac17f958d2ee523a2206206994597c13d831ec760048201525f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634b0f53e990602401602060405180830381865afa158015610bfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c219190611f8a565b6001600160a01b031614610c6d5760405162461bcd60e51b81526020600482015260136024820152721554d115081b9bdd081d195c9b5a5b985d1959606a1b6044820152606401610546565b604051632474521560e21b81527fcc83783a336c5977a84d3445de8848e96ef07372a420bac3d7f276ab3bcb0b4060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610cf5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d199190611fa5565b610d355760405162461bcd60e51b815260040161054690611fc4565b600680546001600160a01b0319166001600160a01b039390931692909217909155600555565b600b545f9015610d6b5750600190565b600a546001600160a01b0316610d8057505f90565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c8f33c916040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ddd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e019190611fef565b90508015801590610e1e5750610e1b630107ac0042612006565b81105b15610ed6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632df802806040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e7f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ea39190611fef565b600b556040517f62d06fdd7cbd752d149eb462b259ed89c5723ec8b3d78342e1613d0976803255905f90a1600191505090565b5f91505090565b60405163fe2f9dd760e01b8152731abaea1f7c830bd89acc67ec4af516284b1bc33c60048201525f906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063fe2f9dd790602401602060405180830381865afa158015610f55573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f799190611f8a565b6001600160a01b031603610fcf5760405162461bcd60e51b815260206004820152601760248201527f45555243206e6f742072656769737465726564207965740000000000000000006044820152606401610546565b604051634b0f53e960e01b8152731abaea1f7c830bd89acc67ec4af516284b1bc33c60048201525f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634b0f53e990602401602060405180830381865afa158015611047573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061106b9190611f8a565b6001600160a01b0316146110b75760405162461bcd60e51b815260206004820152601360248201527211555490c81b9bdd081d195c9b5a5b985d1959606a1b6044820152606401610546565b604051632474521560e21b81527fea9b585a6ebd9633ce15a00ac59a64be294805b254faeed18790c2161e44e71a60048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa15801561113f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111639190611fa5565b61117f5760405162461bcd60e51b815260040161054690611fc4565b600480546001600160a01b0319166001600160a01b039390931692909217909155600355565b5f8581526008602052604090205460ff16156111f55760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610546565b5f611201338686611899565b6009549091506001600160a01b0316636a5310d07f000000000000000000000000000000000000000000000000000000000000000061123f896106c9565b846112486119ab565b88886040518763ffffffff1660e01b815260040161126b96959493929190611f38565b5f6040518083038186803b158015611281575f5ffd5b505afa158015611293573d5f5f3e3d5ffd5b5050505f878152600860205260409020805460ff19166001179055506112c36001600160a01b0386163386611a41565b604080518781526001600160a01b038716602082015290810185905233907fa27580a77a01c86ee8598d930ae5f9a0ec6f146c6e0e9e9f50b95bacb33787189060600160405180910390a2505050505050565b5f61132133856104b8565b5f818152600760205260409020549091501561137f5760405162461bcd60e51b815260206004820152601a60248201527f4465706f73697420696420697320616c726561647920757365640000000000006044820152606401610546565b604051634b0f53e960e01b81526001600160a01b0384811660048301525f917f000000000000000000000000000000000000000000000000000000000000000090911690634b0f53e990602401602060405180830381865afa1580156113e7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061140b9190611f8a565b6001600160a01b0316036114575760405162461bcd60e51b81526020600482015260136024820152722737ba1039bab83837b93a32b2103a37b5b2b760691b6044820152606401610546565b61145f611b20565b61149f5760405162461bcd60e51b8152602060048201526011602482015270427269646765206973206f66666c696e6560781b6044820152606401610546565b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa1580156114e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115079190611fef565b905061151e6001600160a01b038516333086611bc3565b6040516370a0823160e01b81523060048201525f9082906001600160a01b038716906370a0823190602401602060405180830381865afa158015611564573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115889190611fef565b6115929190612006565b90505f81116115e35760405162461bcd60e51b815260206004820152601a60248201527f4e6f20746f6b656e732077657265207472616e736665727265640000000000006044820152606401610546565b6115ee338683611899565b5f848152600760209081526040918290209290925580516001600160a01b0388168152918201839052339185917f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d8910160405180910390a3505050505050565b6004546001600160a01b0316331461169a5760405162461bcd60e51b815260206004820152600f60248201526e2737ba1022aaa92190313ab93732b960891b6044820152606401610546565b600380545f909155604051630852cd8d60e31b815260048101829052731abaea1f7c830bd89acc67ec4af516284b1bc33c906342966c6890602401610a63565b6001600160a01b0383166117245760405162461bcd60e51b8152602060048201526011602482015270526563697069656e74206973207a65726f60781b6044820152606401610546565b600a546001600160a01b031633146117775760405162461bcd60e51b81526020600482015260166024820152752737ba1032bc34ba1030b236b4b734b9ba3930ba37b960511b6044820152606401610546565b61177f610d5b565b6117c05760405162461bcd60e51b8152602060048201526012602482015271109c9a5919d9481a5cc81b9bdd081919585960721b6044820152606401610546565b6117d46001600160a01b0383168483611a41565b604080516001600160a01b038481168252602082018490528516917fe3528bdf76e36b0132e2b17ecb978120666f4ea8968ad84090a9bdb16ebe51a6910160405180910390a2505050565b60408051602081018390526002918101919091525f906060016106e3565b611845611aa5565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527fa37b8cc6237b398b43a500bcd66f67e927875d57cd10fde544af9cf61a1639e99060200160405180910390a150565b604080516001600160a01b038086166020830152841691810191909152606081018290525f906080016040516020818303038152906040528051906020012090505b9392505050565b6006546001600160a01b0316331461192e5760405162461bcd60e51b815260206004820152600f60248201526e2737ba102aa9a22a10313ab93732b960891b6044820152606401610546565b600580545f909155604051630852cd8d60e31b81526004810182905273dac17f958d2ee523a2206206994597c13d831ec7906342966c6890602401610a63565b611976611aa5565b6001600160a01b03811661199f57604051631e4fbdf760e01b81525f6004820152602401610546565b6119a881611ad1565b50565b600b545f90156119bc5750600b5490565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632df802806040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a18573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a3c9190611fef565b905090565b6040516001600160a01b03838116602483015260448201839052611aa091859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611c02565b505050565b5f546001600160a01b031633146107115760405163118cdaa760e01b8152336004820152602401610546565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600b545f9015611b2f57505f90565b611b3c6201518042612006565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c8f33c916040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b98573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bbc9190611fef565b1015905090565b6040516001600160a01b038481166024830152838116604483015260648201839052611bfc9186918216906323b872dd90608401611a6e565b50505050565b5f611c166001600160a01b03841683611c63565b905080515f14158015611c3a575080806020019051810190611c389190611fa5565b155b15611aa057604051635274afe760e01b81526001600160a01b0384166004820152602401610546565b60606104e483835f845f5f856001600160a01b03168486604051611c879190612019565b5f6040518083038185875af1925050503d805f8114611cc1576040519150601f19603f3d011682016040523d82523d5f602084013e611cc6565b606091505b5091509150611cd6868383611ce0565b9695505050505050565b606082611cf557611cf082611d3c565b6118db565b8151158015611d0c57506001600160a01b0384163b155b15611d3557604051639996b31560e01b81526001600160a01b0385166004820152602401610546565b50806118db565b805115611d4c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b03811681146119a8575f5ffd5b80356bffffffffffffffffffffffff81168114611d94575f5ffd5b919050565b5f5f60408385031215611daa575f5ffd5b8235611db581611d65565b9150611dc360208401611d79565b90509250929050565b5f5f5f5f5f60808688031215611de0575f5ffd5b853594506020860135611df281611d65565b935060408601359250606086013567ffffffffffffffff811115611e14575f5ffd5b8601601f81018813611e24575f5ffd5b803567ffffffffffffffff811115611e3a575f5ffd5b886020828401011115611e4b575f5ffd5b959894975092955050506020019190565b5f60208284031215611e6c575f5ffd5b81356118db81611d65565b5f60208284031215611e87575f5ffd5b5035919050565b5f5f60408385031215611e9f575f5ffd5b8235611eaa81611d65565b946020939093013593505050565b5f5f5f60608486031215611eca575f5ffd5b611ed384611d79565b92506020840135611ee381611d65565b929592945050506040919091013590565b5f5f5f60608486031215611f06575f5ffd5b8335611ed381611d65565b634e487b7160e01b5f52601160045260245ffd5b808201808211156104e7576104e7611f11565b60018060a01b038716815285602082015284604082015283606082015260a060808201528160a0820152818360c08301375f81830160c090810191909152601f909201601f1916010195945050505050565b5f60208284031215611f9a575f5ffd5b81516118db81611d65565b5f60208284031215611fb5575f5ffd5b815180151581146118db575f5ffd5b6020808252601190820152702737ba10313ab93710383932b830b932b960791b604082015260600190565b5f60208284031215611fff575f5ffd5b5051919050565b818103818111156104e7576104e7611f11565b5f82518060208501845e5f92019182525091905056fea26469706673582212209c10404a5bc6527075248cc091941edfb3a56eb077cadfb2c53f3238d28e76fe64736f6c634300081b0033546f6b656e5061697273206e6f742073657400000000000000000000000000000000000000000000000000006aba65dc38e6ae9ed0d95eb67bf1b524c1e3036a000000000000000000000000b903716b3dd10b0115e93eb29d8eb99e233363870000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d34000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df900000000000000000000000080957d62c7cc252e5dd2f8691a9afb3087f88fa1

Deployed Bytecode

0x608060405234801561000f575f5ffd5b50600436106101db575f3560e01c80639901614211610109578063c183bda01161009e578063e78cea921161006e578063e78cea9214610463578063eb8006f71461048a578063eee2c7e11461049d578063f2fde38b146104a5575f5ffd5b8063c183bda014610403578063de13301314610416578063df6244db14610429578063e65e9ed71461043c575f5ffd5b8063abfd0d40116100d9578063abfd0d40146103c0578063b02c43d0146103c8578063b703ca85146103e7578063baac0df0146103fa575f5ffd5b80639901614214610351578063991b9021146103645780639f6352241461038b578063a888c2cd1461039e575f5ffd5b8063715018a61161017f5780638ad1ef0b1161014f5780638ad1ef0b146103035780638affb822146103165780638da5cb5b1461032e5780638f20c36b1461033e575f5ffd5b8063715018a6146102cd5780637d059e4c146102d55780637fa417b3146102e85780638a5e52bb146102fb575f5ffd5b806335a6821c116101ba57806335a6821c1461027f5780635eaf5260146102925780636951588b146102a757806369999dd2146102ba575f5ffd5b8062d46014146101df578063076d27f514610223578063142a3f671461024a575b5f5ffd5b6102067f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d3481565b6040516001600160a01b0390911681526020015b60405180910390f35b6102067f000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df981565b6102717fea9b585a6ebd9633ce15a00ac59a64be294805b254faeed18790c2161e44e71a81565b60405190815260200161021a565b61027161028d366004611d99565b6104b8565b6102a56102a0366004611dcc565b6104ed565b005b6102a56102b5366004611e5c565b61069f565b6102716102c8366004611e77565b6106c9565b6102a5610700565b6102a56102e3366004611e8e565b610713565b600954610206906001600160a01b031681565b6102a56109db565b6102a5610311366004611e8e565b610a93565b61031e610d5b565b604051901515815260200161021a565b5f546001600160a01b0316610206565b6102a561034c366004611e8e565b610edd565b6102a561035f366004611dcc565b6111a5565b6102717fcc83783a336c5977a84d3445de8848e96ef07372a420bac3d7f276ab3bcb0b4081565b6102a5610399366004611eb8565b611316565b61031e6103ac366004611e77565b60086020525f908152604090205460ff1681565b6102a561164e565b6102716103d6366004611e77565b60076020525f908152604090205481565b600a54610206906001600160a01b031681565b610271600b5481565b6102a5610411366004611ef4565b6116da565b610271610424366004611e77565b61181f565b6102a5610437366004611e5c565b61183d565b6102717f366e34e4dd9cacc5f69a0ea920636c292b34b8951987dd08682365f7701b86f681565b6102067f000000000000000000000000b903716b3dd10b0115e93eb29d8eb99e2333638781565b610271610498366004611ef4565b611899565b6102a56118e2565b6102a56104b3366004611e5c565b61196e565b5f6104e46bffffffffffffffffffffffff83166bffffffffffffffffffffffff19606086901b16611f25565b90505b92915050565b6104f8338585611899565b5f868152600760205260409020541461054f5760405162461bcd60e51b8152602060048201526014602482015273139bc819195c1bdcda5d081d1bc818d85b98d95b60621b60448201526064015b60405180910390fd5b610557610d5b565b6105985760405162461bcd60e51b8152602060048201526012602482015271109c9a5919d9481a5cc81b9bdd081919585960721b6044820152606401610546565b6009546001600160a01b0316636a5310d07f000000000000000000000000b903716b3dd10b0115e93eb29d8eb99e233363876105d38861181f565b5f6105dc6119ab565b87876040518763ffffffff1660e01b81526004016105ff96959493929190611f38565b5f6040518083038186803b158015610615575f5ffd5b505afa158015610627573d5f5f3e3d5ffd5b5050505f868152600760205260408120555061064d6001600160a01b0385163385611a41565b604080518681526001600160a01b038616602082015290810184905233907f3a6343efe689b69f2bf6fa15c89c2f06f5ef55bbbb1e89aa0df0a4d3b9d2ef219060600160405180910390a25050505050565b6106a7611aa5565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60408051602081018390526001918101919091525f906060015b604051602081830303815290604052805190602001209050919050565b610708611aa5565b6107115f611ad1565b565b60405163fe2f9dd760e01b815273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860048201525f906001600160a01b037f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d34169063fe2f9dd790602401602060405180830381865afa15801561078b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107af9190611f8a565b6001600160a01b0316036108055760405162461bcd60e51b815260206004820152601760248201527f55534443206e6f742072656769737465726564207965740000000000000000006044820152606401610546565b604051634b0f53e960e01b815273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860048201525f906001600160a01b037f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d341690634b0f53e990602401602060405180830381865afa15801561087d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108a19190611f8a565b6001600160a01b0316146108ed5760405162461bcd60e51b81526020600482015260136024820152721554d110c81b9bdd081d195c9b5a5b985d1959606a1b6044820152606401610546565b604051632474521560e21b81527f366e34e4dd9cacc5f69a0ea920636c292b34b8951987dd08682365f7701b86f660048201523360248201527f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d346001600160a01b0316906391d1485490604401602060405180830381865afa158015610975573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109999190611fa5565b6109b55760405162461bcd60e51b815260040161054690611fc4565b600280546001600160a01b0319166001600160a01b039390931692909217909155600155565b6002546001600160a01b03163314610a275760405162461bcd60e51b815260206004820152600f60248201526e2737ba102aa9a22190313ab93732b960891b6044820152606401610546565b600180545f909155604051630852cd8d60e31b81526004810182905273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906342966c68906024015b5f604051808303815f87803b158015610a7a575f5ffd5b505af1158015610a8c573d5f5f3e3d5ffd5b5050505050565b60405163fe2f9dd760e01b815273dac17f958d2ee523a2206206994597c13d831ec760048201525f906001600160a01b037f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d34169063fe2f9dd790602401602060405180830381865afa158015610b0b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b2f9190611f8a565b6001600160a01b031603610b855760405162461bcd60e51b815260206004820152601760248201527f55534454206e6f742072656769737465726564207965740000000000000000006044820152606401610546565b604051634b0f53e960e01b815273dac17f958d2ee523a2206206994597c13d831ec760048201525f906001600160a01b037f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d341690634b0f53e990602401602060405180830381865afa158015610bfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c219190611f8a565b6001600160a01b031614610c6d5760405162461bcd60e51b81526020600482015260136024820152721554d115081b9bdd081d195c9b5a5b985d1959606a1b6044820152606401610546565b604051632474521560e21b81527fcc83783a336c5977a84d3445de8848e96ef07372a420bac3d7f276ab3bcb0b4060048201523360248201527f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d346001600160a01b0316906391d1485490604401602060405180830381865afa158015610cf5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d199190611fa5565b610d355760405162461bcd60e51b815260040161054690611fc4565b600680546001600160a01b0319166001600160a01b039390931692909217909155600555565b600b545f9015610d6b5750600190565b600a546001600160a01b0316610d8057505f90565b5f7f000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df96001600160a01b031663c8f33c916040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ddd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e019190611fef565b90508015801590610e1e5750610e1b630107ac0042612006565b81105b15610ed6577f000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df96001600160a01b0316632df802806040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e7f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ea39190611fef565b600b556040517f62d06fdd7cbd752d149eb462b259ed89c5723ec8b3d78342e1613d0976803255905f90a1600191505090565b5f91505090565b60405163fe2f9dd760e01b8152731abaea1f7c830bd89acc67ec4af516284b1bc33c60048201525f906001600160a01b037f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d34169063fe2f9dd790602401602060405180830381865afa158015610f55573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f799190611f8a565b6001600160a01b031603610fcf5760405162461bcd60e51b815260206004820152601760248201527f45555243206e6f742072656769737465726564207965740000000000000000006044820152606401610546565b604051634b0f53e960e01b8152731abaea1f7c830bd89acc67ec4af516284b1bc33c60048201525f906001600160a01b037f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d341690634b0f53e990602401602060405180830381865afa158015611047573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061106b9190611f8a565b6001600160a01b0316146110b75760405162461bcd60e51b815260206004820152601360248201527211555490c81b9bdd081d195c9b5a5b985d1959606a1b6044820152606401610546565b604051632474521560e21b81527fea9b585a6ebd9633ce15a00ac59a64be294805b254faeed18790c2161e44e71a60048201523360248201527f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d346001600160a01b0316906391d1485490604401602060405180830381865afa15801561113f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111639190611fa5565b61117f5760405162461bcd60e51b815260040161054690611fc4565b600480546001600160a01b0319166001600160a01b039390931692909217909155600355565b5f8581526008602052604090205460ff16156111f55760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610546565b5f611201338686611899565b6009549091506001600160a01b0316636a5310d07f000000000000000000000000b903716b3dd10b0115e93eb29d8eb99e2333638761123f896106c9565b846112486119ab565b88886040518763ffffffff1660e01b815260040161126b96959493929190611f38565b5f6040518083038186803b158015611281575f5ffd5b505afa158015611293573d5f5f3e3d5ffd5b5050505f878152600860205260409020805460ff19166001179055506112c36001600160a01b0386163386611a41565b604080518781526001600160a01b038716602082015290810185905233907fa27580a77a01c86ee8598d930ae5f9a0ec6f146c6e0e9e9f50b95bacb33787189060600160405180910390a2505050505050565b5f61132133856104b8565b5f818152600760205260409020549091501561137f5760405162461bcd60e51b815260206004820152601a60248201527f4465706f73697420696420697320616c726561647920757365640000000000006044820152606401610546565b604051634b0f53e960e01b81526001600160a01b0384811660048301525f917f0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d3490911690634b0f53e990602401602060405180830381865afa1580156113e7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061140b9190611f8a565b6001600160a01b0316036114575760405162461bcd60e51b81526020600482015260136024820152722737ba1039bab83837b93a32b2103a37b5b2b760691b6044820152606401610546565b61145f611b20565b61149f5760405162461bcd60e51b8152602060048201526011602482015270427269646765206973206f66666c696e6560781b6044820152606401610546565b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa1580156114e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115079190611fef565b905061151e6001600160a01b038516333086611bc3565b6040516370a0823160e01b81523060048201525f9082906001600160a01b038716906370a0823190602401602060405180830381865afa158015611564573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115889190611fef565b6115929190612006565b90505f81116115e35760405162461bcd60e51b815260206004820152601a60248201527f4e6f20746f6b656e732077657265207472616e736665727265640000000000006044820152606401610546565b6115ee338683611899565b5f848152600760209081526040918290209290925580516001600160a01b0388168152918201839052339185917f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d8910160405180910390a3505050505050565b6004546001600160a01b0316331461169a5760405162461bcd60e51b815260206004820152600f60248201526e2737ba1022aaa92190313ab93732b960891b6044820152606401610546565b600380545f909155604051630852cd8d60e31b815260048101829052731abaea1f7c830bd89acc67ec4af516284b1bc33c906342966c6890602401610a63565b6001600160a01b0383166117245760405162461bcd60e51b8152602060048201526011602482015270526563697069656e74206973207a65726f60781b6044820152606401610546565b600a546001600160a01b031633146117775760405162461bcd60e51b81526020600482015260166024820152752737ba1032bc34ba1030b236b4b734b9ba3930ba37b960511b6044820152606401610546565b61177f610d5b565b6117c05760405162461bcd60e51b8152602060048201526012602482015271109c9a5919d9481a5cc81b9bdd081919585960721b6044820152606401610546565b6117d46001600160a01b0383168483611a41565b604080516001600160a01b038481168252602082018490528516917fe3528bdf76e36b0132e2b17ecb978120666f4ea8968ad84090a9bdb16ebe51a6910160405180910390a2505050565b60408051602081018390526002918101919091525f906060016106e3565b611845611aa5565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527fa37b8cc6237b398b43a500bcd66f67e927875d57cd10fde544af9cf61a1639e99060200160405180910390a150565b604080516001600160a01b038086166020830152841691810191909152606081018290525f906080016040516020818303038152906040528051906020012090505b9392505050565b6006546001600160a01b0316331461192e5760405162461bcd60e51b815260206004820152600f60248201526e2737ba102aa9a22a10313ab93732b960891b6044820152606401610546565b600580545f909155604051630852cd8d60e31b81526004810182905273dac17f958d2ee523a2206206994597c13d831ec7906342966c6890602401610a63565b611976611aa5565b6001600160a01b03811661199f57604051631e4fbdf760e01b81525f6004820152602401610546565b6119a881611ad1565b50565b600b545f90156119bc5750600b5490565b7f000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df96001600160a01b0316632df802806040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a18573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a3c9190611fef565b905090565b6040516001600160a01b03838116602483015260448201839052611aa091859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611c02565b505050565b5f546001600160a01b031633146107115760405163118cdaa760e01b8152336004820152602401610546565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600b545f9015611b2f57505f90565b611b3c6201518042612006565b7f000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df96001600160a01b031663c8f33c916040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b98573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bbc9190611fef565b1015905090565b6040516001600160a01b038481166024830152838116604483015260648201839052611bfc9186918216906323b872dd90608401611a6e565b50505050565b5f611c166001600160a01b03841683611c63565b905080515f14158015611c3a575080806020019051810190611c389190611fa5565b155b15611aa057604051635274afe760e01b81526001600160a01b0384166004820152602401610546565b60606104e483835f845f5f856001600160a01b03168486604051611c879190612019565b5f6040518083038185875af1925050503d805f8114611cc1576040519150601f19603f3d011682016040523d82523d5f602084013e611cc6565b606091505b5091509150611cd6868383611ce0565b9695505050505050565b606082611cf557611cf082611d3c565b6118db565b8151158015611d0c57506001600160a01b0384163b155b15611d3557604051639996b31560e01b81526001600160a01b0385166004820152602401610546565b50806118db565b805115611d4c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b03811681146119a8575f5ffd5b80356bffffffffffffffffffffffff81168114611d94575f5ffd5b919050565b5f5f60408385031215611daa575f5ffd5b8235611db581611d65565b9150611dc360208401611d79565b90509250929050565b5f5f5f5f5f60808688031215611de0575f5ffd5b853594506020860135611df281611d65565b935060408601359250606086013567ffffffffffffffff811115611e14575f5ffd5b8601601f81018813611e24575f5ffd5b803567ffffffffffffffff811115611e3a575f5ffd5b886020828401011115611e4b575f5ffd5b959894975092955050506020019190565b5f60208284031215611e6c575f5ffd5b81356118db81611d65565b5f60208284031215611e87575f5ffd5b5035919050565b5f5f60408385031215611e9f575f5ffd5b8235611eaa81611d65565b946020939093013593505050565b5f5f5f60608486031215611eca575f5ffd5b611ed384611d79565b92506020840135611ee381611d65565b929592945050506040919091013590565b5f5f5f60608486031215611f06575f5ffd5b8335611ed381611d65565b634e487b7160e01b5f52601160045260245ffd5b808201808211156104e7576104e7611f11565b60018060a01b038716815285602082015284604082015283606082015260a060808201528160a0820152818360c08301375f81830160c090810191909152601f909201601f1916010195945050505050565b5f60208284031215611f9a575f5ffd5b81516118db81611d65565b5f60208284031215611fb5575f5ffd5b815180151581146118db575f5ffd5b6020808252601190820152702737ba10313ab93710383932b830b932b960791b604082015260600190565b5f60208284031215611fff575f5ffd5b5051919050565b818103818111156104e7576104e7611f11565b5f82518060208501845e5f92019182525091905056fea26469706673582212209c10404a5bc6527075248cc091941edfb3a56eb077cadfb2c53f3238d28e76fe64736f6c634300081b0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000006aba65dc38e6ae9ed0d95eb67bf1b524c1e3036a000000000000000000000000b903716b3dd10b0115e93eb29d8eb99e233363870000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d34000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df900000000000000000000000080957d62c7cc252e5dd2f8691a9afb3087f88fa1

-----Decoded View---------------
Arg [0] : _proofVerifier (address): 0x6aba65dc38E6AE9ed0d95EB67Bf1B524C1e3036A
Arg [1] : _bridge (address): 0xb903716B3DD10b0115E93eb29D8Eb99e23336387
Arg [2] : _tokenPairs (address): 0x9171aca775a164CA906ac7F50A3844B7C6F13d34
Arg [3] : _stateOracle (address): 0xb1703AD070241C862be4053dd9C8440E689C5df9
Arg [4] : _ownedBy (address): 0x80957D62C7Cc252E5dd2f8691a9afB3087f88Fa1

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000006aba65dc38e6ae9ed0d95eb67bf1b524c1e3036a
Arg [1] : 000000000000000000000000b903716b3dd10b0115e93eb29d8eb99e23336387
Arg [2] : 0000000000000000000000009171aca775a164ca906ac7f50a3844b7c6f13d34
Arg [3] : 000000000000000000000000b1703ad070241c862be4053dd9c8440e689c5df9
Arg [4] : 00000000000000000000000080957d62c7cc252e5dd2f8691a9afb3087f88fa1


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.