ETH Price: $3,338.54 (-0.31%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap203060692024-07-14 16:54:23170 days ago1720976063IN
0xe01bCf35...58197B759
0 ETH0.000352625.23727563
Swap200506122024-06-09 0:12:11206 days ago1717891931IN
0xe01bCf35...58197B759
0 ETH0.000327824.86975729
Swap200502182024-06-08 22:52:59206 days ago1717887179IN
0xe01bCf35...58197B759
0 ETH0.000346375.14439207
Swap200392332024-06-07 10:03:35207 days ago1717754615IN
0xe01bCf35...58197B759
0 ETH0.0011106616.49583236
Claim200315972024-06-06 8:28:59208 days ago1717662539IN
0xe01bCf35...58197B759
0 ETH0.0013430413.73006563
Swap200314482024-06-06 7:58:59208 days ago1717660739IN
0xe01bCf35...58197B759
0 ETH0.0014420421.41370247
Claim200308902024-06-06 6:06:35209 days ago1717653995IN
0xe01bCf35...58197B759
0 ETH0.0008523610.55196432
Claim200308862024-06-06 6:05:47209 days ago1717653947IN
0xe01bCf35...58197B759
0 ETH0.000697758.63792645
Swap200308732024-06-06 6:03:11209 days ago1717653791IN
0xe01bCf35...58197B759
0 ETH0.0006495810.3903759
Claim200308472024-06-06 5:57:59209 days ago1717653479IN
0xe01bCf35...58197B759
0 ETH0.00079079.78856551
Swap200308342024-06-06 5:55:23209 days ago1717653323IN
0xe01bCf35...58197B759
0 ETH0.00059339.49008954
Claim200308182024-06-06 5:52:11209 days ago1717653131IN
0xe01bCf35...58197B759
0 ETH0.000674688.35233004
Swap200308072024-06-06 5:49:59209 days ago1717652999IN
0xe01bCf35...58197B759
0 ETH0.000551958.8269888
Claim200307852024-06-06 5:45:35209 days ago1717652735IN
0xe01bCf35...58197B759
0 ETH0.001650038.59422837
Claim200307732024-06-06 5:43:11209 days ago1717652591IN
0xe01bCf35...58197B759
0 ETH0.000692898.57898945
Swap200307692024-06-06 5:42:23209 days ago1717652543IN
0xe01bCf35...58197B759
0 ETH0.000541198.65655974
Claim200307562024-06-06 5:39:47209 days ago1717652387IN
0xe01bCf35...58197B759
0 ETH0.000661668.19119133
Swap200307422024-06-06 5:36:59209 days ago1717652219IN
0xe01bCf35...58197B759
0 ETH0.000584788.68691616
Swap200307382024-06-06 5:36:11209 days ago1717652171IN
0xe01bCf35...58197B759
0 ETH0.000597888.88150484
Swap200307372024-06-06 5:35:59209 days ago1717652159IN
0xe01bCf35...58197B759
0 ETH0.000557398.91397361
Claim200307262024-06-06 5:33:47209 days ago1717652027IN
0xe01bCf35...58197B759
0 ETH0.000715278.85615918
Swap200307232024-06-06 5:33:11209 days ago1717651991IN
0xe01bCf35...58197B759
0 ETH0.000575329.20083117
Swap200307042024-06-06 5:28:59209 days ago1717651739IN
0xe01bCf35...58197B759
0 ETH0.000586519.37967274
Swap200306852024-06-06 5:25:11209 days ago1717651511IN
0xe01bCf35...58197B759
0 ETH0.0006685610.69182848
Swap200306532024-06-06 5:18:35209 days ago1717651115IN
0xe01bCf35...58197B759
0 ETH0.0011604717.23867642
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:
TEARBridge

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 6 : TEARBridge.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {ECDSA} from "@solady/utils/ECDSA.sol";

error InvalidClaimSignature();
error InvalidClaimNonce();

/**
 * @title TEARBridge
 * @custom:website www.descend.gg
 * @notice Bridge implementation contract for $TEAR
 */
contract TEARBridge is Ownable, Pausable {
    using ECDSA for bytes32;

    /// @notice Oracle to sign the addresses
    address public oracleAddress;

    /// @notice Token and chain we are bridging
    IERC20 public immutable tokenAddress;

    /// @notice Bridge Fee
    uint256 public feePercent = 100;

    /// @notice Claims nonces stored against addresses
    mapping(address => uint256) public claimNonce;

    /// @notice When a token has been bridged in
    event BridgedToken(address from, uint256 amount, uint256 nonce);

    /// @notice When a token has been claimed
    event ClaimToken(address to, uint256 amount, uint256 nonce);

    /// @notice When a token has claim has been canceled
    event CancelClaim(address from, uint256 oldBlock, uint256 newBlock);

    constructor(
        IERC20 _tokenAddress,
        address _oracleAddress
    ) Ownable(msg.sender) {
        tokenAddress = _tokenAddress;
        oracleAddress = _oracleAddress;
    }

    /**
     * @dev Swap a token into the the bridge
     */
    function swap(uint256 amount, uint256 nonce) external whenNotPaused {
        IERC20(tokenAddress).transferFrom(msg.sender, address(this), amount);
        emit BridgedToken(msg.sender, amount, nonce);
    }

    function getClaimAmountFee(uint256 amount) public view returns (uint256) {
        return ((amount * feePercent) / 10000);
    }

    function getClaimAmountAfterFee(
        uint256 amount
    ) public view returns (uint256) {
        return ((amount * (10000 - feePercent)) / 10000);
    }

    /**
     * @notice Claim a validated amount from the bridge
     */
    function claim(
        address recipient,
        uint256 amount,
        uint256 oldBlock,
        uint256 newBlock,
        bytes calldata signature
    ) external whenNotPaused hasValidNonce(recipient, oldBlock, newBlock) {
        bytes32 dataHash = keccak256(
            abi.encodePacked(recipient, amount, oldBlock, newBlock)
        );
        bytes32 message = ECDSA.toEthSignedMessageHash(dataHash);
        if (ECDSA.recover(message, signature) != oracleAddress) {
            revert InvalidClaimSignature();
        }
        claimNonce[recipient] = newBlock;
        uint256 finalAmount = getClaimAmountAfterFee(amount);
        IERC20(tokenAddress).transfer(recipient, finalAmount);
        emit ClaimToken(recipient, finalAmount, newBlock);
    }

    modifier hasValidNonce(
        address _recipient,
        uint256 _oldBlock,
        uint256 _newBlock
    ) {
        if (
            _oldBlock != claimNonce[_recipient] ||
            _oldBlock >= block.number ||
            _newBlock <= _oldBlock
        ) {
            revert InvalidClaimNonce();
        }
        _;
    }

    /**
     * @dev Cancels a claim for an address
     */
    function cancelClaimAdmin(
        address _address,
        uint256 oldBlock,
        uint256 newBlock
    ) external onlyOwner hasValidNonce(_address, oldBlock, newBlock) {
        claimNonce[_address] = newBlock;
        emit CancelClaim(_address, oldBlock, newBlock);
    }

    /**
     * @notice Set the oracle address to verify the data
     */
    function setClaimNonce(address _address, uint256 nonce) external onlyOwner {
        claimNonce[_address] = nonce;
    }

    /**
     * @notice Set the oracle address to verify the data
     */
    function setOracleAddress(address _oracleAddress) external onlyOwner {
        oracleAddress = _oracleAddress;
    }

    /**
     * @notice Set pause state of the bridge
     */
    function pause() external onlyOwner {
        if (paused()) {
            _unpause();
        } else {
            _pause();
        }
    }

    /**
     * @notice Adjustable fee for the bridge
     */
    function setFeePercentage(uint256 _percent) external onlyOwner {
        require(_percent >= 0 && _percent <= 10000, "Invalid Percent");
        feePercent = _percent;
    }

    /**
     * @notice Allows contract owner to withdraw token from the contract
     */
    function withdrawTokens(uint256 amount) external onlyOwner {
        IERC20(tokenAddress).transfer(msg.sender, amount);
    }
}

File 2 of 6 : 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 6 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 6 : 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 ERC-20 standard as defined in the ERC.
 */
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 6 : ECDSA.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Gas optimized ECDSA wrapper.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol)
///
/// @dev Note:
/// - The recovery functions use the ecrecover precompile (0x1).
/// - As of Solady version 0.0.68, the `recover` variants will revert upon recovery failure.
///   This is for more safety by default.
///   Use the `tryRecover` variants if you need to get the zero address back
///   upon recovery failure instead.
/// - As of Solady version 0.0.134, all `bytes signature` variants accept both
///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.
///   See: https://eips.ethereum.org/EIPS/eip-2098
///   This is for calldata efficiency on smart accounts prevalent on L2s.
///
/// WARNING! Do NOT use signatures as unique identifiers:
/// - Use a nonce in the digest to prevent replay attacks on the same contract.
/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.
///   EIP-712 also enables readable signing of typed data for better user safety.
/// This implementation does NOT check if a signature is non-malleable.
library ECDSA {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                        CUSTOM ERRORS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The signature is invalid.
    error InvalidSignature();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                    RECOVERY OPERATIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.
    function recover(bytes32 hash, bytes memory signature) internal view returns (address result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := 1
            let m := mload(0x40) // Cache the free memory pointer.
            for {} 1 {} {
                mstore(0x00, hash)
                mstore(0x40, mload(add(signature, 0x20))) // `r`.
                if eq(mload(signature), 64) {
                    let vs := mload(add(signature, 0x40))
                    mstore(0x20, add(shr(255, vs), 27)) // `v`.
                    mstore(0x60, shr(1, shl(1, vs))) // `s`.
                    break
                }
                if eq(mload(signature), 65) {
                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.
                    mstore(0x60, mload(add(signature, 0x40))) // `s`.
                    break
                }
                result := 0
                break
            }
            result :=
                mload(
                    staticcall(
                        gas(), // Amount of gas left for the transaction.
                        result, // Address of `ecrecover`.
                        0x00, // Start of input.
                        0x80, // Size of input.
                        0x01, // Start of output.
                        0x20 // Size of output.
                    )
                )
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            if iszero(returndatasize()) {
                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.
                revert(0x1c, 0x04)
            }
            mstore(0x60, 0) // Restore the zero slot.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.
    function recoverCalldata(bytes32 hash, bytes calldata signature)
        internal
        view
        returns (address result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            result := 1
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x00, hash)
            for {} 1 {} {
                if eq(signature.length, 64) {
                    let vs := calldataload(add(signature.offset, 0x20))
                    mstore(0x20, add(shr(255, vs), 27)) // `v`.
                    mstore(0x40, calldataload(signature.offset)) // `r`.
                    mstore(0x60, shr(1, shl(1, vs))) // `s`.
                    break
                }
                if eq(signature.length, 65) {
                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.
                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.
                    break
                }
                result := 0
                break
            }
            result :=
                mload(
                    staticcall(
                        gas(), // Amount of gas left for the transaction.
                        result, // Address of `ecrecover`.
                        0x00, // Start of input.
                        0x80, // Size of input.
                        0x01, // Start of output.
                        0x20 // Size of output.
                    )
                )
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            if iszero(returndatasize()) {
                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.
                revert(0x1c, 0x04)
            }
            mstore(0x60, 0) // Restore the zero slot.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Recovers the signer's address from a message digest `hash`,
    /// and the EIP-2098 short form signature defined by `r` and `vs`.
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x00, hash)
            mstore(0x20, add(shr(255, vs), 27)) // `v`.
            mstore(0x40, r)
            mstore(0x60, shr(1, shl(1, vs))) // `s`.
            result :=
                mload(
                    staticcall(
                        gas(), // Amount of gas left for the transaction.
                        1, // Address of `ecrecover`.
                        0x00, // Start of input.
                        0x80, // Size of input.
                        0x01, // Start of output.
                        0x20 // Size of output.
                    )
                )
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            if iszero(returndatasize()) {
                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.
                revert(0x1c, 0x04)
            }
            mstore(0x60, 0) // Restore the zero slot.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Recovers the signer's address from a message digest `hash`,
    /// and the signature defined by `v`, `r`, `s`.
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)
        internal
        view
        returns (address result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x00, hash)
            mstore(0x20, and(v, 0xff))
            mstore(0x40, r)
            mstore(0x60, s)
            result :=
                mload(
                    staticcall(
                        gas(), // Amount of gas left for the transaction.
                        1, // Address of `ecrecover`.
                        0x00, // Start of input.
                        0x80, // Size of input.
                        0x01, // Start of output.
                        0x20 // Size of output.
                    )
                )
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            if iszero(returndatasize()) {
                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.
                revert(0x1c, 0x04)
            }
            mstore(0x60, 0) // Restore the zero slot.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   TRY-RECOVER OPERATIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    // WARNING!
    // These functions will NOT revert upon recovery failure.
    // Instead, they will return the zero address upon recovery failure.
    // It is critical that the returned address is NEVER compared against
    // a zero address (e.g. an uninitialized address variable).

    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.
    function tryRecover(bytes32 hash, bytes memory signature)
        internal
        view
        returns (address result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            result := 1
            let m := mload(0x40) // Cache the free memory pointer.
            for {} 1 {} {
                mstore(0x00, hash)
                mstore(0x40, mload(add(signature, 0x20))) // `r`.
                if eq(mload(signature), 64) {
                    let vs := mload(add(signature, 0x40))
                    mstore(0x20, add(shr(255, vs), 27)) // `v`.
                    mstore(0x60, shr(1, shl(1, vs))) // `s`.
                    break
                }
                if eq(mload(signature), 65) {
                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.
                    mstore(0x60, mload(add(signature, 0x40))) // `s`.
                    break
                }
                result := 0
                break
            }
            pop(
                staticcall(
                    gas(), // Amount of gas left for the transaction.
                    result, // Address of `ecrecover`.
                    0x00, // Start of input.
                    0x80, // Size of input.
                    0x40, // Start of output.
                    0x20 // Size of output.
                )
            )
            mstore(0x60, 0) // Restore the zero slot.
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            result := mload(xor(0x60, returndatasize()))
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.
    function tryRecoverCalldata(bytes32 hash, bytes calldata signature)
        internal
        view
        returns (address result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            result := 1
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x00, hash)
            for {} 1 {} {
                if eq(signature.length, 64) {
                    let vs := calldataload(add(signature.offset, 0x20))
                    mstore(0x20, add(shr(255, vs), 27)) // `v`.
                    mstore(0x40, calldataload(signature.offset)) // `r`.
                    mstore(0x60, shr(1, shl(1, vs))) // `s`.
                    break
                }
                if eq(signature.length, 65) {
                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.
                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.
                    break
                }
                result := 0
                break
            }
            pop(
                staticcall(
                    gas(), // Amount of gas left for the transaction.
                    result, // Address of `ecrecover`.
                    0x00, // Start of input.
                    0x80, // Size of input.
                    0x40, // Start of output.
                    0x20 // Size of output.
                )
            )
            mstore(0x60, 0) // Restore the zero slot.
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            result := mload(xor(0x60, returndatasize()))
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Recovers the signer's address from a message digest `hash`,
    /// and the EIP-2098 short form signature defined by `r` and `vs`.
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs)
        internal
        view
        returns (address result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x00, hash)
            mstore(0x20, add(shr(255, vs), 27)) // `v`.
            mstore(0x40, r)
            mstore(0x60, shr(1, shl(1, vs))) // `s`.
            pop(
                staticcall(
                    gas(), // Amount of gas left for the transaction.
                    1, // Address of `ecrecover`.
                    0x00, // Start of input.
                    0x80, // Size of input.
                    0x40, // Start of output.
                    0x20 // Size of output.
                )
            )
            mstore(0x60, 0) // Restore the zero slot.
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            result := mload(xor(0x60, returndatasize()))
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Recovers the signer's address from a message digest `hash`,
    /// and the signature defined by `v`, `r`, `s`.
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)
        internal
        view
        returns (address result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x00, hash)
            mstore(0x20, and(v, 0xff))
            mstore(0x40, r)
            mstore(0x60, s)
            pop(
                staticcall(
                    gas(), // Amount of gas left for the transaction.
                    1, // Address of `ecrecover`.
                    0x00, // Start of input.
                    0x80, // Size of input.
                    0x40, // Start of output.
                    0x20 // Size of output.
                )
            )
            mstore(0x60, 0) // Restore the zero slot.
            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.
            result := mload(xor(0x60, returndatasize()))
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     HASHING OPERATIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns an Ethereum Signed Message, created from a `hash`.
    /// This produces a hash corresponding to the one signed with the
    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)
    /// JSON-RPC method as part of EIP-191.
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x20, hash) // Store into scratch space for keccak256.
            mstore(0x00, "\x00\x00\x00\x00\x19Ethereum Signed Message:\n32") // 28 bytes.
            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.
        }
    }

    /// @dev Returns an Ethereum Signed Message, created from `s`.
    /// This produces a hash corresponding to the one signed with the
    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)
    /// JSON-RPC method as part of EIP-191.
    /// Note: Supports lengths of `s` up to 999999 bytes.
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {
        /// @solidity memory-safe-assembly
        assembly {
            let sLength := mload(s)
            let o := 0x20
            mstore(o, "\x19Ethereum Signed Message:\n") // 26 bytes, zero-right-padded.
            mstore(0x00, 0x00)
            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.
            for { let temp := sLength } 1 {} {
                o := sub(o, 1)
                mstore8(o, add(48, mod(temp, 10)))
                temp := div(temp, 10)
                if iszero(temp) { break }
            }
            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.
            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.
            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))
            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.
            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))
            mstore(s, sLength) // Restore the length.
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   EMPTY CALLDATA HELPERS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns an empty calldata bytes.
    function emptySignature() internal pure returns (bytes calldata signature) {
        /// @solidity memory-safe-assembly
        assembly {
            signature.length := 0
        }
    }
}

File 6 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (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;
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@solady/=lib/solady/src/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solady/=lib/solady/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_oracleAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"InvalidClaimNonce","type":"error"},{"inputs":[],"name":"InvalidClaimSignature","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"BridgedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBlock","type":"uint256"}],"name":"CancelClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"ClaimToken","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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"oldBlock","type":"uint256"},{"internalType":"uint256","name":"newBlock","type":"uint256"}],"name":"cancelClaimAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"oldBlock","type":"uint256"},{"internalType":"uint256","name":"newBlock","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getClaimAmountAfterFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getClaimAmountFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracleAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"setClaimNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setFeePercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracleAddress","type":"address"}],"name":"setOracleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052606460025534801561001557600080fd5b50604051610e49380380610e4983398101604081905261003491610101565b338061005a57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61006381610099565b506000805460ff60a01b191690556001600160a01b03918216608052600180546001600160a01b0319169190921617905561013b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100fe57600080fd5b50565b6000806040838503121561011457600080fd5b825161011f816100e9565b6020840151909250610130816100e9565b809150509250929050565b608051610cde61016b6000396000818161020f015281816103b7015281816106c901526107bb0152610cde6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638456cb59116100a2578063a9678c6911610071578063a9678c6914610244578063ae06c1b714610257578063cf5034601461026a578063d96073cf1461027d578063f2fde38b1461029057600080fd5b80638456cb59146101dd5780638da5cb5b146101e55780639d76ea581461020a578063a89ae4ba1461023157600080fd5b80633ee22fcd116100e95780633ee22fcd1461017c5780634c69c00f1461019c5780635c975abb146101af578063715018a6146101cc5780637fd6f15c146101d457600080fd5b80631d9156f31461011b57806323b04b1714610141578063315a095d146101565780633485530714610169575b600080fd5b61012e610129366004610aaf565b6102a3565b6040519081526020015b60405180910390f35b61015461014f366004610ae4565b6102d2565b005b610154610164366004610aaf565b610393565b610154610177366004610b17565b610430565b61012e61018a366004610b41565b60036020526000908152604090205481565b6101546101aa366004610b41565b610454565b600054600160a01b900460ff166040519015158152602001610138565b61015461047e565b61012e60025481565b610154610492565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610138565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b6001546101f2906001600160a01b031681565b61012e610252366004610aaf565b6104bc565b610154610265366004610aaf565b6104cf565b610154610278366004610b63565b610525565b61015461028b366004610c02565b610791565b61015461029e366004610b41565b610876565b60006127106002546127106102b89190610c3a565b6102c29084610c4d565b6102cc9190610c64565b92915050565b6102da6108b4565b6001600160a01b038316600090815260036020526040902054839083908390821415806103075750438210155b806103125750818111155b15610330576040516372c025e160e01b815260040160405180910390fd5b6001600160a01b0386166000818152600360209081526040918290208790558151928352820187905281018590527fd2cc471e93d024a61d77a9ae46fe38596e6fb862874eb4a6e85c023a5d350b7d9060600160405180910390a1505050505050565b61039b6108b4565b60405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610408573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042c9190610c86565b5050565b6104386108b4565b6001600160a01b03909116600090815260036020526040902055565b61045c6108b4565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6104866108b4565b61049060006108e1565b565b61049a6108b4565b600054600160a01b900460ff16156104b457610490610931565b610490610986565b6000612710600254836102c29190610c4d565b6104d76108b4565b6127108111156105205760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a590814195c98d95b9d608a1b60448201526064015b60405180910390fd5b600255565b61052d6109c9565b6001600160a01b0386166000908152600360205260409020548690859085908214158061055a5750438210155b806105655750818111155b15610583576040516372c025e160e01b815260040160405180910390fd5b6040516bffffffffffffffffffffffff1960608b901b1660208201526034810189905260548101889052607481018790526000906094016040516020818303038152906040528051906020012090506000610603826020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c60042090565b600154604080516020601f8b018190048102820181019092528981529293506001600160a01b0390911691610655918491908b908b90819084018382808284376000920191909152506109f492505050565b6001600160a01b03161461067c57604051638964e19b60e01b815260040160405180910390fd5b6001600160a01b038b1660009081526003602052604081208990556106a08b6102a3565b60405163a9059cbb60e01b81526001600160a01b038e81166004830152602482018390529192507f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044016020604051808303816000875af1158015610714573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107389190610c86565b50604080516001600160a01b038e168152602081018390529081018a90527f7f4752786b0cfdd93a4b6e1f0e393299418bbc5c583bc16bc0edd3f3ae193e0e9060600160405180910390a1505050505050505050505050565b6107996109c9565b6040516323b872dd60e01b8152336004820152306024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af115801561080c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108309190610c86565b5060408051338152602081018490529081018290527f294df2f8d130b42c9abe40aedd41fc384586d3132095700423d4666157a4d5439060600160405180910390a15050565b61087e6108b4565b6001600160a01b0381166108a857604051631e4fbdf760e01b815260006004820152602401610517565b6108b1816108e1565b50565b6000546001600160a01b031633146104905760405163118cdaa760e01b8152336004820152602401610517565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610939610a85565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61098e6109c9565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109693390565b600054600160a01b900460ff16156104905760405163d93c066560e01b815260040160405180910390fd5b6040516001908360005260208301516040526040835103610a3057604083015160ff81901c601b016020526001600160ff1b0316606052610a56565b6041835103610a5157606083015160001a6020526040830151606052610a56565b600091505b6020600160806000855afa5191503d610a7757638baa579f6000526004601cfd5b600060605260405292915050565b600054600160a01b900460ff1661049057604051638dfc202b60e01b815260040160405180910390fd5b600060208284031215610ac157600080fd5b5035919050565b80356001600160a01b0381168114610adf57600080fd5b919050565b600080600060608486031215610af957600080fd5b610b0284610ac8565b95602085013595506040909401359392505050565b60008060408385031215610b2a57600080fd5b610b3383610ac8565b946020939093013593505050565b600060208284031215610b5357600080fd5b610b5c82610ac8565b9392505050565b60008060008060008060a08789031215610b7c57600080fd5b610b8587610ac8565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff80821115610bb757600080fd5b818901915089601f830112610bcb57600080fd5b813581811115610bda57600080fd5b8a6020828501011115610bec57600080fd5b6020830194508093505050509295509295509295565b60008060408385031215610c1557600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b818103818111156102cc576102cc610c24565b80820281158282048414176102cc576102cc610c24565b600082610c8157634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610c9857600080fd5b81518015158114610b5c57600080fdfea2646970667358221220d855a1dcbcfc962f10601360f9b0e955f7a98cfe9d3e2a3b5ff046a0a767efcf64736f6c63430008150033000000000000000000000000299a1503e88433c0fd1bd68625c25c5a703eb64f000000000000000000000000cdf528d22c3b120f9df38b42ebddb89b4f31fe00

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638456cb59116100a2578063a9678c6911610071578063a9678c6914610244578063ae06c1b714610257578063cf5034601461026a578063d96073cf1461027d578063f2fde38b1461029057600080fd5b80638456cb59146101dd5780638da5cb5b146101e55780639d76ea581461020a578063a89ae4ba1461023157600080fd5b80633ee22fcd116100e95780633ee22fcd1461017c5780634c69c00f1461019c5780635c975abb146101af578063715018a6146101cc5780637fd6f15c146101d457600080fd5b80631d9156f31461011b57806323b04b1714610141578063315a095d146101565780633485530714610169575b600080fd5b61012e610129366004610aaf565b6102a3565b6040519081526020015b60405180910390f35b61015461014f366004610ae4565b6102d2565b005b610154610164366004610aaf565b610393565b610154610177366004610b17565b610430565b61012e61018a366004610b41565b60036020526000908152604090205481565b6101546101aa366004610b41565b610454565b600054600160a01b900460ff166040519015158152602001610138565b61015461047e565b61012e60025481565b610154610492565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610138565b6101f27f000000000000000000000000299a1503e88433c0fd1bd68625c25c5a703eb64f81565b6001546101f2906001600160a01b031681565b61012e610252366004610aaf565b6104bc565b610154610265366004610aaf565b6104cf565b610154610278366004610b63565b610525565b61015461028b366004610c02565b610791565b61015461029e366004610b41565b610876565b60006127106002546127106102b89190610c3a565b6102c29084610c4d565b6102cc9190610c64565b92915050565b6102da6108b4565b6001600160a01b038316600090815260036020526040902054839083908390821415806103075750438210155b806103125750818111155b15610330576040516372c025e160e01b815260040160405180910390fd5b6001600160a01b0386166000818152600360209081526040918290208790558151928352820187905281018590527fd2cc471e93d024a61d77a9ae46fe38596e6fb862874eb4a6e85c023a5d350b7d9060600160405180910390a1505050505050565b61039b6108b4565b60405163a9059cbb60e01b8152336004820152602481018290527f000000000000000000000000299a1503e88433c0fd1bd68625c25c5a703eb64f6001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610408573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042c9190610c86565b5050565b6104386108b4565b6001600160a01b03909116600090815260036020526040902055565b61045c6108b4565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6104866108b4565b61049060006108e1565b565b61049a6108b4565b600054600160a01b900460ff16156104b457610490610931565b610490610986565b6000612710600254836102c29190610c4d565b6104d76108b4565b6127108111156105205760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a590814195c98d95b9d608a1b60448201526064015b60405180910390fd5b600255565b61052d6109c9565b6001600160a01b0386166000908152600360205260409020548690859085908214158061055a5750438210155b806105655750818111155b15610583576040516372c025e160e01b815260040160405180910390fd5b6040516bffffffffffffffffffffffff1960608b901b1660208201526034810189905260548101889052607481018790526000906094016040516020818303038152906040528051906020012090506000610603826020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c60042090565b600154604080516020601f8b018190048102820181019092528981529293506001600160a01b0390911691610655918491908b908b90819084018382808284376000920191909152506109f492505050565b6001600160a01b03161461067c57604051638964e19b60e01b815260040160405180910390fd5b6001600160a01b038b1660009081526003602052604081208990556106a08b6102a3565b60405163a9059cbb60e01b81526001600160a01b038e81166004830152602482018390529192507f000000000000000000000000299a1503e88433c0fd1bd68625c25c5a703eb64f9091169063a9059cbb906044016020604051808303816000875af1158015610714573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107389190610c86565b50604080516001600160a01b038e168152602081018390529081018a90527f7f4752786b0cfdd93a4b6e1f0e393299418bbc5c583bc16bc0edd3f3ae193e0e9060600160405180910390a1505050505050505050505050565b6107996109c9565b6040516323b872dd60e01b8152336004820152306024820152604481018390527f000000000000000000000000299a1503e88433c0fd1bd68625c25c5a703eb64f6001600160a01b0316906323b872dd906064016020604051808303816000875af115801561080c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108309190610c86565b5060408051338152602081018490529081018290527f294df2f8d130b42c9abe40aedd41fc384586d3132095700423d4666157a4d5439060600160405180910390a15050565b61087e6108b4565b6001600160a01b0381166108a857604051631e4fbdf760e01b815260006004820152602401610517565b6108b1816108e1565b50565b6000546001600160a01b031633146104905760405163118cdaa760e01b8152336004820152602401610517565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610939610a85565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61098e6109c9565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109693390565b600054600160a01b900460ff16156104905760405163d93c066560e01b815260040160405180910390fd5b6040516001908360005260208301516040526040835103610a3057604083015160ff81901c601b016020526001600160ff1b0316606052610a56565b6041835103610a5157606083015160001a6020526040830151606052610a56565b600091505b6020600160806000855afa5191503d610a7757638baa579f6000526004601cfd5b600060605260405292915050565b600054600160a01b900460ff1661049057604051638dfc202b60e01b815260040160405180910390fd5b600060208284031215610ac157600080fd5b5035919050565b80356001600160a01b0381168114610adf57600080fd5b919050565b600080600060608486031215610af957600080fd5b610b0284610ac8565b95602085013595506040909401359392505050565b60008060408385031215610b2a57600080fd5b610b3383610ac8565b946020939093013593505050565b600060208284031215610b5357600080fd5b610b5c82610ac8565b9392505050565b60008060008060008060a08789031215610b7c57600080fd5b610b8587610ac8565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff80821115610bb757600080fd5b818901915089601f830112610bcb57600080fd5b813581811115610bda57600080fd5b8a6020828501011115610bec57600080fd5b6020830194508093505050509295509295509295565b60008060408385031215610c1557600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b818103818111156102cc576102cc610c24565b80820281158282048414176102cc576102cc610c24565b600082610c8157634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610c9857600080fd5b81518015158114610b5c57600080fdfea2646970667358221220d855a1dcbcfc962f10601360f9b0e955f7a98cfe9d3e2a3b5ff046a0a767efcf64736f6c63430008150033

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

000000000000000000000000299a1503e88433c0fd1bd68625c25c5a703eb64f000000000000000000000000cdf528d22c3b120f9df38b42ebddb89b4f31fe00

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x299a1503E88433C0Fd1BD68625C25C5a703eb64f
Arg [1] : _oracleAddress (address): 0xCDF528D22c3b120f9df38b42ebdDb89B4F31FE00

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000299a1503e88433c0fd1bd68625c25c5a703eb64f
Arg [1] : 000000000000000000000000cdf528d22c3b120f9df38b42ebddb89b4f31fe00


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.