ETH Price: $3,806.04 (+1.78%)
Gas: 5 Gwei

Contract

0x1bF0f4aF65C6367B4D1d7e9b48287a3b9702C0CC
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Remove From Allo...195321212024-03-28 10:49:3559 days ago1711622975IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0008480929.37443369
Make Offer185525432023-11-12 1:25:11196 days ago1699752311IN
0x1bF0f4aF...b9702C0CC
0 ETH0.005008321.62891168
Make Offer185524802023-11-12 1:12:23196 days ago1699751543IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0043471820.54708908
Add To Allow Lis...183907122023-10-20 9:42:23219 days ago1697794943IN
0x1bF0f4aF...b9702C0CC
0 ETH0.001332949.2430319
Make Offer183008992023-10-07 20:08:47231 days ago1696709327IN
0x1bF0f4aF...b9702C0CC
0 ETH0.001345255.40959515
Cancel Offer183008632023-10-07 20:01:35231 days ago1696708895IN
0x1bF0f4aF...b9702C0CC
0 ETH0.000408894.88771308
Cancel Offer183008592023-10-07 20:00:47231 days ago1696708847IN
0x1bF0f4aF...b9702C0CC
0 ETH0.000442275.13311113
Make Offer181927932023-09-22 17:13:47246 days ago1695402827IN
0x1bF0f4aF...b9702C0CC
0 ETH0.003074611.56928089
Add To Allow Lis...180711072023-09-05 15:15:23263 days ago1693926923IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0025305617.54767571
Add To Allow Lis...180710982023-09-05 15:13:23263 days ago1693926803IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0026356318.27620936
Add To Allow Lis...180710902023-09-05 15:11:35263 days ago1693926695IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0024885817.26518449
Add To Allow Lis...180710782023-09-05 15:09:11263 days ago1693926551IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0023449416.2604924
Add To Allow Lis...180710302023-09-05 14:59:23263 days ago1693925963IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0019526713.53924421
Add To Allow Lis...180710152023-09-05 14:56:23263 days ago1693925783IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0021385814.8295688
Add To Allow Lis...180710002023-09-05 14:53:23263 days ago1693925603IN
0x1bF0f4aF...b9702C0CC
0 ETH0.002135114.80540355
Add To Allow Lis...180709922023-09-05 14:51:47263 days ago1693925507IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0021610314.98522538
Add To Allow Lis...180709782023-09-05 14:48:59263 days ago1693925339IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0021499514.90841816
Add To Allow Lis...180709702023-09-05 14:47:23263 days ago1693925243IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0020338214.10196878
Add To Allow Lis...180709592023-09-05 14:45:11263 days ago1693925111IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0023382716.21429386
Add To Allow Lis...180709262023-09-05 14:38:35263 days ago1693924715IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0026157218.13967013
Transfer Ownersh...180708692023-09-05 14:26:59263 days ago1693924019IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0005117817.87720996
Make Offer180704892023-09-05 13:10:59263 days ago1693919459IN
0x1bF0f4aF...b9702C0CC
0 ETH0.003469413.52505428
Add To Allow Lis...180637982023-09-04 14:45:47264 days ago1693838747IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0033609723.30596939
Add To Allow Lis...180637922023-09-04 14:44:35264 days ago1693838675IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0038401923.806165
Transfer Ownersh...180637112023-09-04 14:28:11264 days ago1693837691IN
0x1bF0f4aF...b9702C0CC
0 ETH0.0009726233.97450776
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:
WAVYP2PEscrow

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : WAVYP2PEscrow.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract WAVYP2PEscrow is ReentrancyGuard, Ownable {
    using SafeERC20 for IERC20;

    struct allowedTokens {
        bool isAllowed;
        string tokenName;
        IERC20 tokenAddress;
        uint decimals;
    }

    allowedTokens[] public allowedTokensList;
    mapping(IERC20 => bool) public isAllowed;

    struct Offer {
        uint sendTokenId;
        uint256 sendAmount;
        uint receiveTokenId;
        uint256 receiveAmount;
        uint256 minReceiveAmount;
        address listerAddress;
        uint256 status; // 0 - active, 1 - completed, 2 - revoked
    }

    Offer[] public offerDetails;
    uint256 feeInBips = 25; 
    address feeWallet = 0xFD182B1f0C71558dAE29CbFfBdb84D3Ef8643779;

    event tokenAdded(uint tokenId, string tokenName, IERC20 tokenAddress, uint decimals);
    event OfferCreated(uint256 indexed offerId, address indexed createdBy, uint sendTokenId, uint256 sendAmount, uint receiveTokenId, uint256 receiveAmount, uint256 minReceiveAmount);
    event offerUpdated(uint256 offerId, uint256 receiveAmount, uint256 minReceiveAmount);
    event offerRevoked(uint256 offerId);
    event offerAccepted(uint256 offerId, uint256 amount);
    event offerCompleted(uint256 offerId);

    function addToAllowList(string memory _tokenName, IERC20 _tokenAddress, uint _decimals) external onlyOwner {
        allowedTokensList.push(allowedTokens(true, _tokenName, _tokenAddress, _decimals));
        isAllowed[_tokenAddress] = true;
        emit tokenAdded(allowedTokensList.length - 1, _tokenName, _tokenAddress, _decimals);
    }

    function removeFromAllowList(uint _tokenId) external onlyOwner {
        require(isAllowed[allowedTokensList[_tokenId].tokenAddress], "Not valid token Id or token already disabled");
        isAllowed[allowedTokensList[_tokenId].tokenAddress] = false;
    }

    function makeOffer(uint _sendTokenId, uint256 _sendAmount, uint _receiveTokenId, uint256 _receiveAmount, uint256 _minReceiveAmount) external {
        require(isAllowed[allowedTokensList[_sendTokenId].tokenAddress], "Token being sold is not allowed");
        require(isAllowed[allowedTokensList[_receiveTokenId].tokenAddress], "Token to be received is not allowed"); 
        require(_minReceiveAmount <= _receiveAmount, "Minimum receivable amount cannot be greater than the receive amount");

        IERC20 _token = allowedTokensList[_sendTokenId].tokenAddress;
        uint256 fee = calculateFee(_sendAmount);
        uint256 transferAmount = _sendAmount + fee;

        require(_token.balanceOf(msg.sender) >= transferAmount, "Insufficient balance");
        require(_token.allowance(msg.sender, address(this)) >= transferAmount, "Insufficient allowance");

        _token.safeTransferFrom(msg.sender, address(this), _sendAmount);
        _token.safeTransferFrom(msg.sender, feeWallet, fee);
        offerDetails.push(Offer(_sendTokenId, _sendAmount, _receiveTokenId, _receiveAmount, _minReceiveAmount, msg.sender, 0));

        emit OfferCreated(offerDetails.length - 1, msg.sender, _sendTokenId, _sendAmount, _receiveTokenId, _receiveAmount, _minReceiveAmount);
    }

    function calculateFee(uint256 _amount) private view returns (uint256) {
        return _amount * feeInBips / 10000;
    }

    function acceptOffer(uint256 _offerId, uint256 _amount) external nonReentrant {
        Offer storage _offer = offerDetails[_offerId];
        require(_offer.status == 0, "Offer not available");
        require(_offer.receiveAmount >= _amount, "Amount is greater than what listing expects");
        require(_amount >= _offer.minReceiveAmount, "Amount should be more than minimum Receivable amount");

        IERC20 _sendToken = allowedTokensList[_offer.sendTokenId].tokenAddress;
        IERC20 _receiveToken = allowedTokensList[_offer.receiveTokenId].tokenAddress;

        uint256 fee = calculateFee(_amount);

        require(_receiveToken.balanceOf(msg.sender) >= _amount + fee, "Insufficient balance");
        require(_receiveToken.allowance(msg.sender, address(this)) >= _amount + fee, "Insufficient allowance");

        uint256 proportionalSendAmount =  _offer.sendAmount * _amount / _offer.receiveAmount;
        _offer.sendAmount -= proportionalSendAmount;
        _offer.receiveAmount -= _amount;

        _receiveToken.safeTransferFrom(msg.sender, feeWallet, fee);
        _receiveToken.safeTransferFrom(msg.sender, _offer.listerAddress, _amount);
        _sendToken.safeTransfer(msg.sender, proportionalSendAmount);

        emit offerAccepted(_offerId, _amount);

        if(_offer.receiveAmount == 0) {
            _offer.status = 1;
            emit offerCompleted(_offerId);
        } else if(_offer.receiveAmount < _offer.minReceiveAmount) {
            _offer.minReceiveAmount = _offer.receiveAmount;
        }
    }

    function cancelOffer(uint256 _offerId) external nonReentrant {
        Offer storage _offer = offerDetails[_offerId];
        require(_offer.status == 0, "Offer not available");
        require(_offer.listerAddress == msg.sender, "Caller has not created the offer");
        IERC20 _sendToken = allowedTokensList[_offer.sendTokenId].tokenAddress;
        _sendToken.safeTransfer(_offer.listerAddress, _offer.sendAmount);
        _offer.status = 2;

        emit offerRevoked(_offerId);
    }

    function updateOffer(uint256 _offerId, uint256 _receiveAmount, uint256 _minReceiveAmount) external {
        Offer storage _offer = offerDetails[_offerId];
        require(_offer.status == 0, "Offer not available");
        require(_offer.listerAddress == msg.sender, "Caller has not created the offer");
        require(_minReceiveAmount <= _receiveAmount, "Minimum receivable amount cannot be greater than the receive amount");

        _offer.minReceiveAmount = _minReceiveAmount;
        _offer.receiveAmount = _receiveAmount;
        emit offerUpdated(_offerId, _receiveAmount, _minReceiveAmount);
    }

    function setFeeDetails(uint256 _fee, address _feeWallet) external onlyOwner {
        feeInBips = _fee;
        feeWallet = _feeWallet;
    }

    function withdrawFee() external onlyOwner {
        for (uint i=0; i< allowedTokensList.length; i++) {
            uint256 balance = allowedTokensList[i].tokenAddress.balanceOf(address(this));
            if(balance > 0) {
                allowedTokensList[i].tokenAddress.transferFrom(address(this), feeWallet, balance);
            }
        }
    }
}

File 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 5 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../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 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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    /**
     * @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);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

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

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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.isContract(address(token));
    }
}

File 6 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

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

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
        }
    }
}

File 8 of 8 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @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.
 */
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].
     */
    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 9 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":true,"internalType":"address","name":"createdBy","type":"address"},{"indexed":false,"internalType":"uint256","name":"sendTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sendAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receiveTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receiveAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minReceiveAmount","type":"uint256"}],"name":"OfferCreated","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":"uint256","name":"offerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"offerAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offerId","type":"uint256"}],"name":"offerCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offerId","type":"uint256"}],"name":"offerRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receiveAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minReceiveAmount","type":"uint256"}],"name":"offerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenName","type":"string"},{"indexed":false,"internalType":"contract IERC20","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"decimals","type":"uint256"}],"name":"tokenAdded","type":"event"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"acceptOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_decimals","type":"uint256"}],"name":"addToAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedTokensList","outputs":[{"internalType":"bool","name":"isAllowed","type":"bool"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"contract IERC20","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"}],"name":"cancelOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"isAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sendTokenId","type":"uint256"},{"internalType":"uint256","name":"_sendAmount","type":"uint256"},{"internalType":"uint256","name":"_receiveTokenId","type":"uint256"},{"internalType":"uint256","name":"_receiveAmount","type":"uint256"},{"internalType":"uint256","name":"_minReceiveAmount","type":"uint256"}],"name":"makeOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"offerDetails","outputs":[{"internalType":"uint256","name":"sendTokenId","type":"uint256"},{"internalType":"uint256","name":"sendAmount","type":"uint256"},{"internalType":"uint256","name":"receiveTokenId","type":"uint256"},{"internalType":"uint256","name":"receiveAmount","type":"uint256"},{"internalType":"uint256","name":"minReceiveAmount","type":"uint256"},{"internalType":"address","name":"listerAddress","type":"address"},{"internalType":"uint256","name":"status","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"removeFromAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_feeWallet","type":"address"}],"name":"setFeeDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offerId","type":"uint256"},{"internalType":"uint256","name":"_receiveAmount","type":"uint256"},{"internalType":"uint256","name":"_minReceiveAmount","type":"uint256"}],"name":"updateOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526019600555600680546001600160a01b03191673fd182b1f0c71558dae29cbffbdb84d3ef864377917905534801561003b57600080fd5b50600160005561004a3361004f565b6100a1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ddf806100b06000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063be5f7f221161008c578063e941fa7811610066578063e941fa781461021f578063ef706adf14610227578063f2fde38b1461023a578063fc6c02e31461024d57600080fd5b8063be5f7f22146101d6578063c36dd739146101e9578063d1d6b0871461020c57600080fd5b806381257bd5116100c857806381257bd51461011f578063829a10be146101325780638da5cb5b14610188578063babcc539146101a357600080fd5b80631032c610146100ef578063301d027a14610104578063715018a614610117575b600080fd5b6101026100fd366004611821565b610260565b005b610102610112366004611862565b610383565b6101026103b2565b61010261012d366004611892565b6103c6565b6101456101403660046118b4565b610835565b60408051978852602088019690965294860193909352606085019190915260808401526001600160a01b031660a083015260c082015260e0015b60405180910390f35b6001546040516001600160a01b03909116815260200161017f565b6101c66101b13660046118dd565b60036020526000908152604090205460ff1681565b604051901515815260200161017f565b6101026101e4366004611901565b61088d565b6101fc6101f73660046118b4565b610da2565b60405161017f949392919061198c565b61010261021a3660046119d9565b610e74565b610102610fc0565b6101026102353660046118b4565b61112b565b6101026102483660046118dd565b61126f565b61010261025b3660046118b4565b6112e5565b60006004848154811061027557610275611aa4565b9060005260206000209060070201905080600601546000146102b25760405162461bcd60e51b81526004016102a990611aba565b60405180910390fd5b60058101546001600160a01b0316331461030e5760405162461bcd60e51b815260206004820181905260248201527f43616c6c657220686173206e6f74206372656174656420746865206f6666657260448201526064016102a9565b8282111561032e5760405162461bcd60e51b81526004016102a990611ae7565b600481018290556003810183905560408051858152602081018590529081018390527f8aa1cff8ff75d3ed81827e427962d17193230724289fb281379f94405a01e6799060600160405180910390a150505050565b61038b6113ee565b600591909155600680546001600160a01b0319166001600160a01b03909216919091179055565b6103ba6113ee565b6103c46000611448565b565b6103ce61149a565b6000600483815481106103e3576103e3611aa4565b9060005260206000209060070201905080600601546000146104175760405162461bcd60e51b81526004016102a990611aba565b818160030154101561047f5760405162461bcd60e51b815260206004820152602b60248201527f416d6f756e742069732067726561746572207468616e2077686174206c69737460448201526a696e67206578706563747360a81b60648201526084016102a9565b80600401548210156104f05760405162461bcd60e51b815260206004820152603460248201527f416d6f756e742073686f756c64206265206d6f7265207468616e206d696e696d6044820152731d5b48149958d95a5d98589b1948185b5bdd5b9d60621b60648201526084016102a9565b6000600282600001548154811061050957610509611aa4565b60009182526020822060026004909202018101548482015482546001600160a01b03909216945090811061053f5761053f611aa4565b600091825260208220600260049092020101546001600160a01b03169150610566856114f3565b90506105728186611b66565b6040516370a0823160e01b81523360048201526001600160a01b038416906370a0823190602401602060405180830381865afa1580156105b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105da9190611b79565b101561061f5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102a9565b6106298186611b66565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0384169063dd62ed3e90604401602060405180830381865afa158015610673573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106979190611b79565b10156106de5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102a9565b600084600301548686600101546106f59190611b92565b6106ff9190611ba9565b9050808560010160008282546107159190611bcb565b92505081905550858560030160008282546107309190611bcb565b9091555050600654610751906001600160a01b038581169133911685611516565b600585015461076f906001600160a01b038581169133911689611516565b6107836001600160a01b0385163383611587565b60408051888152602081018890527f47bac4011ebb3043397f2a7081408307a44fbf81f49bdb2c327df72b84120e3d910160405180910390a1846003015460000361080757600160068601556040518781527f300fd8887141226e1d2229be52e8378040ec704efb9eb942be57265c0039b4469060200160405180910390a1610822565b84600401548560030154101561082257600385015460048601555b50505050506108316001600055565b5050565b6004818154811061084557600080fd5b60009182526020909120600790910201805460018201546002830154600384015460048501546005860154600690960154949650929491939092916001600160a01b03169087565b60036000600287815481106108a4576108a4611aa4565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166109215760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e206265696e6720736f6c64206973206e6f7420616c6c6f7765640060448201526064016102a9565b600360006002858154811061093857610938611aa4565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166109c15760405162461bcd60e51b815260206004820152602360248201527f546f6b656e20746f206265207265636569766564206973206e6f7420616c6c6f6044820152621dd95960ea1b60648201526084016102a9565b818111156109e15760405162461bcd60e51b81526004016102a990611ae7565b6000600286815481106109f6576109f6611aa4565b600091825260208220600260049092020101546001600160a01b03169150610a1d866114f3565b90506000610a2b8288611b66565b6040516370a0823160e01b815233600482015290915081906001600160a01b038516906370a0823190602401602060405180830381865afa158015610a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a989190611b79565b1015610add5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102a9565b604051636eb1769f60e11b815233600482015230602482015281906001600160a01b0385169063dd62ed3e90604401602060405180830381865afa158015610b29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4d9190611b79565b1015610b945760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102a9565b610ba96001600160a01b03841633308a611516565b600654610bc5906001600160a01b038581169133911685611516565b6040805160e0810182528981526020810189815291810188815260608201888152608083018881523360a08501818152600060c0870181815260048054600180820183559382905298517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b6007909a02998a015598517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c89015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d88015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e87015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f86015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a0850180546001600160a01b0319166001600160a01b0390921691909117905591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a1909301929092559154610d499190611bcb565b604080518b8152602081018b905290810189905260608101889052608081018790527fe8b57af78bd22fe640ef71d8fbd847da90a37549e7a72c7889beb5c05e4e4c4a9060a00160405180910390a35050505050505050565b60028181548110610db257600080fd5b60009182526020909120600490910201805460018201805460ff909216935090610ddb90611bde565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0790611bde565b8015610e545780601f10610e2957610100808354040283529160200191610e54565b820191906000526020600020905b815481529060010190602001808311610e3757829003601f168201915b50505050600283015460039093015491926001600160a01b031691905084565b610e7c6113ee565b604080516080810182526001808252602082018681526001600160a01b038616938301939093526060820184905260028054918201815560005281517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace6004909202918201805460ff191691151591909117815592519192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf90910190610f249082611c66565b50604082810151600283810180546001600160a01b0319166001600160a01b03938416179055606090940151600393840155851660009081526020929092529020805460ff1916600190811790915590547f85b084052b3e7060200536e1d30cebb79d0128000f1ef489541b796cb39a52f891610fa091611bcb565b848484604051610fb39493929190611d26565b60405180910390a1505050565b610fc86113ee565b60005b60025481101561112857600060028281548110610fea57610fea611aa4565b60009182526020909120600491820201600201546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015611043573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110679190611b79565b90508015611115576002828154811061108257611082611aa4565b60009182526020909120600491820201600201546006546040516323b872dd60e01b815230938101939093526001600160a01b0390811660248401526044830184905216906323b872dd906064016020604051808303816000875af11580156110ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111139190611d3f565b505b508061112081611d61565b915050610fcb565b50565b61113361149a565b60006004828154811061114857611148611aa4565b90600052602060002090600702019050806006015460001461117c5760405162461bcd60e51b81526004016102a990611aba565b60058101546001600160a01b031633146111d85760405162461bcd60e51b815260206004820181905260248201527f43616c6c657220686173206e6f74206372656174656420746865206f6666657260448201526064016102a9565b600060028260000154815481106111f1576111f1611aa4565b6000918252602090912060026004909202010154600583015460018401546001600160a01b0392831693506112299284921690611587565b600260068301556040518381527fbabc0cdb91347e5ad6d23a143e126dc7920a53c6661790f92833b347f1efb2b29060200160405180910390a150506111286001600055565b6112776113ee565b6001600160a01b0381166112dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102a9565b61112881611448565b6112ed6113ee565b600360006002838154811061130457611304611aa4565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166113965760405162461bcd60e51b815260206004820152602c60248201527f4e6f742076616c696420746f6b656e204964206f7220746f6b656e20616c726560448201526b18591e48191a5cd8589b195960a21b60648201526084016102a9565b600060036000600284815481106113af576113af611aa4565b60009182526020808320600492909202909101600201546001600160a01b031683528201929092526040019020805460ff191691151591909117905550565b6001546001600160a01b031633146103c45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102a9565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600054036114ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102a9565b6002600055565b6000612710600554836115069190611b92565b6115109190611ba9565b92915050565b6040516001600160a01b03808516602483015283166044820152606481018290526115819085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526115bc565b50505050565b6040516001600160a01b0383166024820152604481018290526115b790849063a9059cbb60e01b9060640161154a565b505050565b6000611611826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116919092919063ffffffff16565b90508051600014806116325750808060200190518101906116329190611d3f565b6115b75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a9565b60606116a084846000856116a8565b949350505050565b6060824710156117095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102a9565b600080866001600160a01b031685876040516117259190611d7a565b60006040518083038185875af1925050503d8060008114611762576040519150601f19603f3d011682016040523d82523d6000602084013e611767565b606091505b509150915061177887838387611783565b979650505050505050565b606083156117f25782516000036117eb576001600160a01b0385163b6117eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a9565b50816116a0565b6116a083838151156118075781518083602001fd5b8060405162461bcd60e51b81526004016102a99190611d96565b60008060006060848603121561183657600080fd5b505081359360208301359350604090920135919050565b6001600160a01b038116811461112857600080fd5b6000806040838503121561187557600080fd5b8235915060208301356118878161184d565b809150509250929050565b600080604083850312156118a557600080fd5b50508035926020909101359150565b6000602082840312156118c657600080fd5b5035919050565b80356118d88161184d565b919050565b6000602082840312156118ef57600080fd5b81356118fa8161184d565b9392505050565b600080600080600060a0868803121561191957600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60005b8381101561195757818101518382015260200161193f565b50506000910152565b6000815180845261197881602086016020860161193c565b601f01601f19169290920160200192915050565b84151581526080602082015260006119a76080830186611960565b6001600160a01b03949094166040830152506060015292915050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156119ee57600080fd5b833567ffffffffffffffff80821115611a0657600080fd5b818601915086601f830112611a1a57600080fd5b813581811115611a2c57611a2c6119c3565b604051601f8201601f19908116603f01168101908382118183101715611a5457611a546119c3565b81604052828152896020848701011115611a6d57600080fd5b826020860160208301376000602084830101528097505050505050611a94602085016118cd565b9150604084013590509250925092565b634e487b7160e01b600052603260045260246000fd5b6020808252601390820152724f66666572206e6f7420617661696c61626c6560681b604082015260600190565b60208082526043908201527f4d696e696d756d2072656365697661626c6520616d6f756e742063616e6e6f7460408201527f2062652067726561746572207468616e20746865207265636569766520616d6f6060820152621d5b9d60ea1b608082015260a00190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561151057611510611b50565b600060208284031215611b8b57600080fd5b5051919050565b808202811582820484141761151057611510611b50565b600082611bc657634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561151057611510611b50565b600181811c90821680611bf257607f821691505b602082108103611c1257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156115b757600081815260208120601f850160051c81016020861015611c3f5750805b601f850160051c820191505b81811015611c5e57828155600101611c4b565b505050505050565b815167ffffffffffffffff811115611c8057611c806119c3565b611c9481611c8e8454611bde565b84611c18565b602080601f831160018114611cc95760008415611cb15750858301515b600019600386901b1c1916600185901b178555611c5e565b600085815260208120601f198616915b82811015611cf857888601518255948401946001909101908401611cd9565b5085821015611d165787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8481526080602082015260006119a76080830186611960565b600060208284031215611d5157600080fd5b815180151581146118fa57600080fd5b600060018201611d7357611d73611b50565b5060010190565b60008251611d8c81846020870161193c565b9190910192915050565b6020815260006118fa602083018461196056fea2646970667358221220bb9424c5b7bc53877cf8233e3ca1dbb88104cbab7e49d797d331024a35d9896f64736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063be5f7f221161008c578063e941fa7811610066578063e941fa781461021f578063ef706adf14610227578063f2fde38b1461023a578063fc6c02e31461024d57600080fd5b8063be5f7f22146101d6578063c36dd739146101e9578063d1d6b0871461020c57600080fd5b806381257bd5116100c857806381257bd51461011f578063829a10be146101325780638da5cb5b14610188578063babcc539146101a357600080fd5b80631032c610146100ef578063301d027a14610104578063715018a614610117575b600080fd5b6101026100fd366004611821565b610260565b005b610102610112366004611862565b610383565b6101026103b2565b61010261012d366004611892565b6103c6565b6101456101403660046118b4565b610835565b60408051978852602088019690965294860193909352606085019190915260808401526001600160a01b031660a083015260c082015260e0015b60405180910390f35b6001546040516001600160a01b03909116815260200161017f565b6101c66101b13660046118dd565b60036020526000908152604090205460ff1681565b604051901515815260200161017f565b6101026101e4366004611901565b61088d565b6101fc6101f73660046118b4565b610da2565b60405161017f949392919061198c565b61010261021a3660046119d9565b610e74565b610102610fc0565b6101026102353660046118b4565b61112b565b6101026102483660046118dd565b61126f565b61010261025b3660046118b4565b6112e5565b60006004848154811061027557610275611aa4565b9060005260206000209060070201905080600601546000146102b25760405162461bcd60e51b81526004016102a990611aba565b60405180910390fd5b60058101546001600160a01b0316331461030e5760405162461bcd60e51b815260206004820181905260248201527f43616c6c657220686173206e6f74206372656174656420746865206f6666657260448201526064016102a9565b8282111561032e5760405162461bcd60e51b81526004016102a990611ae7565b600481018290556003810183905560408051858152602081018590529081018390527f8aa1cff8ff75d3ed81827e427962d17193230724289fb281379f94405a01e6799060600160405180910390a150505050565b61038b6113ee565b600591909155600680546001600160a01b0319166001600160a01b03909216919091179055565b6103ba6113ee565b6103c46000611448565b565b6103ce61149a565b6000600483815481106103e3576103e3611aa4565b9060005260206000209060070201905080600601546000146104175760405162461bcd60e51b81526004016102a990611aba565b818160030154101561047f5760405162461bcd60e51b815260206004820152602b60248201527f416d6f756e742069732067726561746572207468616e2077686174206c69737460448201526a696e67206578706563747360a81b60648201526084016102a9565b80600401548210156104f05760405162461bcd60e51b815260206004820152603460248201527f416d6f756e742073686f756c64206265206d6f7265207468616e206d696e696d6044820152731d5b48149958d95a5d98589b1948185b5bdd5b9d60621b60648201526084016102a9565b6000600282600001548154811061050957610509611aa4565b60009182526020822060026004909202018101548482015482546001600160a01b03909216945090811061053f5761053f611aa4565b600091825260208220600260049092020101546001600160a01b03169150610566856114f3565b90506105728186611b66565b6040516370a0823160e01b81523360048201526001600160a01b038416906370a0823190602401602060405180830381865afa1580156105b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105da9190611b79565b101561061f5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102a9565b6106298186611b66565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0384169063dd62ed3e90604401602060405180830381865afa158015610673573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106979190611b79565b10156106de5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102a9565b600084600301548686600101546106f59190611b92565b6106ff9190611ba9565b9050808560010160008282546107159190611bcb565b92505081905550858560030160008282546107309190611bcb565b9091555050600654610751906001600160a01b038581169133911685611516565b600585015461076f906001600160a01b038581169133911689611516565b6107836001600160a01b0385163383611587565b60408051888152602081018890527f47bac4011ebb3043397f2a7081408307a44fbf81f49bdb2c327df72b84120e3d910160405180910390a1846003015460000361080757600160068601556040518781527f300fd8887141226e1d2229be52e8378040ec704efb9eb942be57265c0039b4469060200160405180910390a1610822565b84600401548560030154101561082257600385015460048601555b50505050506108316001600055565b5050565b6004818154811061084557600080fd5b60009182526020909120600790910201805460018201546002830154600384015460048501546005860154600690960154949650929491939092916001600160a01b03169087565b60036000600287815481106108a4576108a4611aa4565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166109215760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e206265696e6720736f6c64206973206e6f7420616c6c6f7765640060448201526064016102a9565b600360006002858154811061093857610938611aa4565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166109c15760405162461bcd60e51b815260206004820152602360248201527f546f6b656e20746f206265207265636569766564206973206e6f7420616c6c6f6044820152621dd95960ea1b60648201526084016102a9565b818111156109e15760405162461bcd60e51b81526004016102a990611ae7565b6000600286815481106109f6576109f6611aa4565b600091825260208220600260049092020101546001600160a01b03169150610a1d866114f3565b90506000610a2b8288611b66565b6040516370a0823160e01b815233600482015290915081906001600160a01b038516906370a0823190602401602060405180830381865afa158015610a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a989190611b79565b1015610add5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102a9565b604051636eb1769f60e11b815233600482015230602482015281906001600160a01b0385169063dd62ed3e90604401602060405180830381865afa158015610b29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4d9190611b79565b1015610b945760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102a9565b610ba96001600160a01b03841633308a611516565b600654610bc5906001600160a01b038581169133911685611516565b6040805160e0810182528981526020810189815291810188815260608201888152608083018881523360a08501818152600060c0870181815260048054600180820183559382905298517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b6007909a02998a015598517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c89015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d88015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e87015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f86015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a0850180546001600160a01b0319166001600160a01b0390921691909117905591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a1909301929092559154610d499190611bcb565b604080518b8152602081018b905290810189905260608101889052608081018790527fe8b57af78bd22fe640ef71d8fbd847da90a37549e7a72c7889beb5c05e4e4c4a9060a00160405180910390a35050505050505050565b60028181548110610db257600080fd5b60009182526020909120600490910201805460018201805460ff909216935090610ddb90611bde565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0790611bde565b8015610e545780601f10610e2957610100808354040283529160200191610e54565b820191906000526020600020905b815481529060010190602001808311610e3757829003601f168201915b50505050600283015460039093015491926001600160a01b031691905084565b610e7c6113ee565b604080516080810182526001808252602082018681526001600160a01b038616938301939093526060820184905260028054918201815560005281517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace6004909202918201805460ff191691151591909117815592519192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf90910190610f249082611c66565b50604082810151600283810180546001600160a01b0319166001600160a01b03938416179055606090940151600393840155851660009081526020929092529020805460ff1916600190811790915590547f85b084052b3e7060200536e1d30cebb79d0128000f1ef489541b796cb39a52f891610fa091611bcb565b848484604051610fb39493929190611d26565b60405180910390a1505050565b610fc86113ee565b60005b60025481101561112857600060028281548110610fea57610fea611aa4565b60009182526020909120600491820201600201546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015611043573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110679190611b79565b90508015611115576002828154811061108257611082611aa4565b60009182526020909120600491820201600201546006546040516323b872dd60e01b815230938101939093526001600160a01b0390811660248401526044830184905216906323b872dd906064016020604051808303816000875af11580156110ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111139190611d3f565b505b508061112081611d61565b915050610fcb565b50565b61113361149a565b60006004828154811061114857611148611aa4565b90600052602060002090600702019050806006015460001461117c5760405162461bcd60e51b81526004016102a990611aba565b60058101546001600160a01b031633146111d85760405162461bcd60e51b815260206004820181905260248201527f43616c6c657220686173206e6f74206372656174656420746865206f6666657260448201526064016102a9565b600060028260000154815481106111f1576111f1611aa4565b6000918252602090912060026004909202010154600583015460018401546001600160a01b0392831693506112299284921690611587565b600260068301556040518381527fbabc0cdb91347e5ad6d23a143e126dc7920a53c6661790f92833b347f1efb2b29060200160405180910390a150506111286001600055565b6112776113ee565b6001600160a01b0381166112dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102a9565b61112881611448565b6112ed6113ee565b600360006002838154811061130457611304611aa4565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166113965760405162461bcd60e51b815260206004820152602c60248201527f4e6f742076616c696420746f6b656e204964206f7220746f6b656e20616c726560448201526b18591e48191a5cd8589b195960a21b60648201526084016102a9565b600060036000600284815481106113af576113af611aa4565b60009182526020808320600492909202909101600201546001600160a01b031683528201929092526040019020805460ff191691151591909117905550565b6001546001600160a01b031633146103c45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102a9565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600054036114ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102a9565b6002600055565b6000612710600554836115069190611b92565b6115109190611ba9565b92915050565b6040516001600160a01b03808516602483015283166044820152606481018290526115819085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526115bc565b50505050565b6040516001600160a01b0383166024820152604481018290526115b790849063a9059cbb60e01b9060640161154a565b505050565b6000611611826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116919092919063ffffffff16565b90508051600014806116325750808060200190518101906116329190611d3f565b6115b75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a9565b60606116a084846000856116a8565b949350505050565b6060824710156117095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102a9565b600080866001600160a01b031685876040516117259190611d7a565b60006040518083038185875af1925050503d8060008114611762576040519150601f19603f3d011682016040523d82523d6000602084013e611767565b606091505b509150915061177887838387611783565b979650505050505050565b606083156117f25782516000036117eb576001600160a01b0385163b6117eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a9565b50816116a0565b6116a083838151156118075781518083602001fd5b8060405162461bcd60e51b81526004016102a99190611d96565b60008060006060848603121561183657600080fd5b505081359360208301359350604090920135919050565b6001600160a01b038116811461112857600080fd5b6000806040838503121561187557600080fd5b8235915060208301356118878161184d565b809150509250929050565b600080604083850312156118a557600080fd5b50508035926020909101359150565b6000602082840312156118c657600080fd5b5035919050565b80356118d88161184d565b919050565b6000602082840312156118ef57600080fd5b81356118fa8161184d565b9392505050565b600080600080600060a0868803121561191957600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60005b8381101561195757818101518382015260200161193f565b50506000910152565b6000815180845261197881602086016020860161193c565b601f01601f19169290920160200192915050565b84151581526080602082015260006119a76080830186611960565b6001600160a01b03949094166040830152506060015292915050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156119ee57600080fd5b833567ffffffffffffffff80821115611a0657600080fd5b818601915086601f830112611a1a57600080fd5b813581811115611a2c57611a2c6119c3565b604051601f8201601f19908116603f01168101908382118183101715611a5457611a546119c3565b81604052828152896020848701011115611a6d57600080fd5b826020860160208301376000602084830101528097505050505050611a94602085016118cd565b9150604084013590509250925092565b634e487b7160e01b600052603260045260246000fd5b6020808252601390820152724f66666572206e6f7420617661696c61626c6560681b604082015260600190565b60208082526043908201527f4d696e696d756d2072656365697661626c6520616d6f756e742063616e6e6f7460408201527f2062652067726561746572207468616e20746865207265636569766520616d6f6060820152621d5b9d60ea1b608082015260a00190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561151057611510611b50565b600060208284031215611b8b57600080fd5b5051919050565b808202811582820484141761151057611510611b50565b600082611bc657634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561151057611510611b50565b600181811c90821680611bf257607f821691505b602082108103611c1257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156115b757600081815260208120601f850160051c81016020861015611c3f5750805b601f850160051c820191505b81811015611c5e57828155600101611c4b565b505050505050565b815167ffffffffffffffff811115611c8057611c806119c3565b611c9481611c8e8454611bde565b84611c18565b602080601f831160018114611cc95760008415611cb15750858301515b600019600386901b1c1916600185901b178555611c5e565b600085815260208120601f198616915b82811015611cf857888601518255948401946001909101908401611cd9565b5085821015611d165787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8481526080602082015260006119a76080830186611960565b600060208284031215611d5157600080fd5b815180151581146118fa57600080fd5b600060018201611d7357611d73611b50565b5060010190565b60008251611d8c81846020870161193c565b9190910192915050565b6020815260006118fa602083018461196056fea2646970667358221220bb9424c5b7bc53877cf8233e3ca1dbb88104cbab7e49d797d331024a35d9896f64736f6c63430008120033

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.