MATIC Price: $0.717723 (-1.00%)
Gas: 36 GWei
 
Transaction Hash
Method
Block
From
To
Value
Add To Allow Lis...571852042024-05-20 13:09:392 days ago1716210579IN
0x0f57b17b...8D060e30A
0 MATIC0.0043254130.0054818
Make Offer566867692024-05-07 14:46:5415 days ago1715093214IN
0x0f57b17b...8D060e30A
0 MATIC0.0064714530.00000009
Accept Offer566867322024-05-07 14:45:3415 days ago1715093134IN
0x0f57b17b...8D060e30A
0 MATIC0.0036700830.00000011
Accept Offer566806822024-05-07 10:51:5015 days ago1715079110IN
0x0f57b17b...8D060e30A
0 MATIC0.0035241330.00000003
Make Offer566805702024-05-07 10:47:5015 days ago1715078870IN
0x0f57b17b...8D060e30A
0 MATIC0.0064714530.00000006
Make Offer561668222024-04-23 15:25:5529 days ago1713885955IN
0x0f57b17b...8D060e30A
0 MATIC0.03884956182.49597201
Make Offer561193022024-04-22 9:57:5630 days ago1713779876IN
0x0f57b17b...8D060e30A
0 MATIC0.02326163102.68947359
Accept Offer561192392024-04-22 9:55:4230 days ago1713779742IN
0x0f57b17b...8D060e30A
0 MATIC0.01328794101.27776421
Cancel Offer556975162024-04-11 9:51:4341 days ago1712829103IN
0x0f57b17b...8D060e30A
0 MATIC0.02909429332.20249581
Cancel Offer556974842024-04-11 9:50:3541 days ago1712829035IN
0x0f57b17b...8D060e30A
0 MATIC0.03390473339.75058505
Make Offer556971812024-04-11 9:39:1941 days ago1712828359IN
0x0f57b17b...8D060e30A
0 MATIC0.07001675302.48739423
Accept Offer556970402024-04-11 9:34:2141 days ago1712828061IN
0x0f57b17b...8D060e30A
0 MATIC0.03745357318.83250924
Make Offer555829982024-04-08 9:24:1844 days ago1712568258IN
0x0f57b17b...8D060e30A
0 MATIC0.03877574179.68456187
Accept Offer554720402024-04-05 12:15:4447 days ago1712319344IN
0x0f57b17b...8D060e30A
0 MATIC0.04089544263
Make Offer554705442024-04-05 11:17:3947 days ago1712315859IN
0x0f57b17b...8D060e30A
0 MATIC0.02633738122.12058975
Cancel Offer554699452024-04-05 10:53:4747 days ago1712314427IN
0x0f57b17b...8D060e30A
0 MATIC0.01244682115.20358533
Make Offer554626402024-04-05 6:16:4647 days ago1712297806IN
0x0f57b17b...8D060e30A
0 MATIC0.0222997298.47439219
Make Offer554625642024-04-05 6:14:0447 days ago1712297644IN
0x0f57b17b...8D060e30A
0 MATIC0.02318684102.37016717
Make Offer554624812024-04-05 6:11:0847 days ago1712297468IN
0x0f57b17b...8D060e30A
0 MATIC0.02738676120.93849141
Cancel Offer554412102024-04-04 16:36:4348 days ago1712248603IN
0x0f57b17b...8D060e30A
0 MATIC0.01477065168.65327228
Cancel Offer554411152024-04-04 16:32:4948 days ago1712248369IN
0x0f57b17b...8D060e30A
0 MATIC0.01003021130.25916643
Make Offer554410592024-04-04 16:30:5148 days ago1712248251IN
0x0f57b17b...8D060e30A
0 MATIC0.03152094146.12310574
Make Offer554403572024-04-04 16:04:2348 days ago1712246663IN
0x0f57b17b...8D060e30A
0 MATIC0.03043477134.39832953
Make Offer554402012024-04-04 15:58:5148 days ago1712246331IN
0x0f57b17b...8D060e30A
0 MATIC0.02268647100.1822665
Make Offer554400942024-04-04 15:55:0348 days ago1712246103IN
0x0f57b17b...8D060e30A
0 MATIC0.02686624118.61478069
View all transactions

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xb72DD165...1AD638Dc0
The constructor portion of the code might be different and could alter the actual behaviour of the contract

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;
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 2 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 2 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-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;

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

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

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

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

    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");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 2 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 2 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;
    }
}

File 2 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
     * ====
     *
     * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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 2 of 8 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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);
}

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

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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063babcc5391161008c578063d1d6b08711610066578063d1d6b087146101f1578063ef706adf14610204578063f2fde38b14610217578063fc6c02e31461022a57600080fd5b8063babcc53914610188578063be5f7f22146101bb578063c36dd739146101ce57600080fd5b80631032c610146100d4578063301d027a146100e9578063715018a6146100fc57806381257bd514610104578063829a10be146101175780638da5cb5b1461016d575b600080fd5b6100e76100e23660046116c6565b61023d565b005b6100e76100f7366004611707565b610360565b6100e761038f565b6100e7610112366004611737565b6103a3565b61012a610125366004611759565b61085d565b60408051978852602088019690965294860193909352606085019190915260808401526001600160a01b031660a083015260c082015260e0015b60405180910390f35b6001546040516001600160a01b039091168152602001610164565b6101ab610196366004611782565b60036020526000908152604090205460ff1681565b6040519015158152602001610164565b6100e76101c936600461179f565b6108b5565b6101e16101dc366004611759565b610dca565b604051610164949392919061182a565b6100e76101ff366004611877565b610e9c565b6100e7610212366004611759565b610fe8565b6100e7610225366004611782565b61117a565b6100e7610238366004611759565b6111f3565b60006004848154811061025257610252611942565b90600052602060002090600702019050806006015460001461028f5760405162461bcd60e51b815260040161028690611958565b60405180910390fd5b60058101546001600160a01b031633146102eb5760405162461bcd60e51b815260206004820181905260248201527f43616c6c657220686173206e6f74206372656174656420746865206f666665726044820152606401610286565b8282111561030b5760405162461bcd60e51b815260040161028690611985565b600481018290556003810183905560408051858152602081018590529081018390527f8aa1cff8ff75d3ed81827e427962d17193230724289fb281379f94405a01e6799060600160405180910390a150505050565b6103686112fc565b600591909155600680546001600160a01b0319166001600160a01b03909216919091179055565b6103976112fc565b6103a16000611356565b565b6002600054036103f55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610286565b60026000908155600480548490811061041057610410611942565b9060005260206000209060070201905080600601546000146104445760405162461bcd60e51b815260040161028690611958565b81816003015410156104ac5760405162461bcd60e51b815260206004820152602b60248201527f416d6f756e742069732067726561746572207468616e2077686174206c69737460448201526a696e67206578706563747360a81b6064820152608401610286565b806004015482101561051d5760405162461bcd60e51b815260206004820152603460248201527f416d6f756e742073686f756c64206265206d6f7265207468616e206d696e696d6044820152731d5b48149958d95a5d98589b1948185b5bdd5b9d60621b6064820152608401610286565b6000600282600001548154811061053657610536611942565b60009182526020822060026004909202018101548482015482546001600160a01b03909216945090811061056c5761056c611942565b600091825260208220600260049092020101546001600160a01b03169150610593856113a8565b905061059f8186611a04565b6040516370a0823160e01b81523360048201526001600160a01b038416906370a0823190602401602060405180830381865afa1580156105e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106079190611a17565b101561064c5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610286565b6106568186611a04565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0384169063dd62ed3e90604401602060405180830381865afa1580156106a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c49190611a17565b101561070b5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606401610286565b600084600301548686600101546107229190611a30565b61072c9190611a47565b9050808560010160008282546107429190611a69565b925050819055508585600301600082825461075d9190611a69565b909155505060065461077e906001600160a01b0385811691339116856113cb565b600585015461079c906001600160a01b0385811691339116896113cb565b6107b06001600160a01b038516338361143c565b60408051888152602081018890527f47bac4011ebb3043397f2a7081408307a44fbf81f49bdb2c327df72b84120e3d910160405180910390a1846003015460000361083457600160068601556040518781527f300fd8887141226e1d2229be52e8378040ec704efb9eb942be57265c0039b4469060200160405180910390a161084f565b84600401548560030154101561084f57600385015460048601555b505060016000555050505050565b6004818154811061086d57600080fd5b60009182526020909120600790910201805460018201546002830154600384015460048501546005860154600690960154949650929491939092916001600160a01b03169087565b60036000600287815481106108cc576108cc611942565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166109495760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e206265696e6720736f6c64206973206e6f7420616c6c6f776564006044820152606401610286565b600360006002858154811061096057610960611942565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166109e95760405162461bcd60e51b815260206004820152602360248201527f546f6b656e20746f206265207265636569766564206973206e6f7420616c6c6f6044820152621dd95960ea1b6064820152608401610286565b81811115610a095760405162461bcd60e51b815260040161028690611985565b600060028681548110610a1e57610a1e611942565b600091825260208220600260049092020101546001600160a01b03169150610a45866113a8565b90506000610a538288611a04565b6040516370a0823160e01b815233600482015290915081906001600160a01b038516906370a0823190602401602060405180830381865afa158015610a9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac09190611a17565b1015610b055760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610286565b604051636eb1769f60e11b815233600482015230602482015281906001600160a01b0385169063dd62ed3e90604401602060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b759190611a17565b1015610bbc5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606401610286565b610bd16001600160a01b03841633308a6113cb565b600654610bed906001600160a01b0385811691339116856113cb565b6040805160e0810182528981526020810189815291810188815260608201888152608083018881523360a08501818152600060c0870181815260048054600180820183559382905298517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b6007909a02998a015598517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c89015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d88015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e87015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f86015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a0850180546001600160a01b0319166001600160a01b0390921691909117905591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a1909301929092559154610d719190611a69565b604080518b8152602081018b905290810189905260608101889052608081018790527fe8b57af78bd22fe640ef71d8fbd847da90a37549e7a72c7889beb5c05e4e4c4a9060a00160405180910390a35050505050505050565b60028181548110610dda57600080fd5b60009182526020909120600490910201805460018201805460ff909216935090610e0390611a7c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2f90611a7c565b8015610e7c5780601f10610e5157610100808354040283529160200191610e7c565b820191906000526020600020905b815481529060010190602001808311610e5f57829003601f168201915b50505050600283015460039093015491926001600160a01b031691905084565b610ea46112fc565b604080516080810182526001808252602082018681526001600160a01b038616938301939093526060820184905260028054918201815560005281517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace6004909202918201805460ff191691151591909117815592519192917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf90910190610f4c9082611b04565b50604082810151600283810180546001600160a01b0319166001600160a01b03938416179055606090940151600393840155851660009081526020929092529020805460ff1916600190811790915590547f85b084052b3e7060200536e1d30cebb79d0128000f1ef489541b796cb39a52f891610fc891611a69565b848484604051610fdb9493929190611bc4565b60405180910390a1505050565b60026000540361103a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610286565b60026000908155600480548390811061105557611055611942565b9060005260206000209060070201905080600601546000146110895760405162461bcd60e51b815260040161028690611958565b60058101546001600160a01b031633146110e55760405162461bcd60e51b815260206004820181905260248201527f43616c6c657220686173206e6f74206372656174656420746865206f666665726044820152606401610286565b600060028260000154815481106110fe576110fe611942565b6000918252602090912060026004909202010154600583015460018401546001600160a01b039283169350611136928492169061143c565b600260068301556040518381527fbabc0cdb91347e5ad6d23a143e126dc7920a53c6661790f92833b347f1efb2b29060200160405180910390a15050600160005550565b6111826112fc565b6001600160a01b0381166111e75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610286565b6111f081611356565b50565b6111fb6112fc565b600360006002838154811061121257611212611942565b60009182526020808320600260049093020191909101546001600160a01b0316835282019290925260400190205460ff166112a45760405162461bcd60e51b815260206004820152602c60248201527f4e6f742076616c696420746f6b656e204964206f7220746f6b656e20616c726560448201526b18591e48191a5cd8589b195960a21b6064820152608401610286565b600060036000600284815481106112bd576112bd611942565b60009182526020808320600492909202909101600201546001600160a01b031683528201929092526040019020805460ff191691151591909117905550565b6001546001600160a01b031633146103a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610286565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000612710600554836113bb9190611a30565b6113c59190611a47565b92915050565b6040516001600160a01b03808516602483015283166044820152606481018290526114369085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611471565b50505050565b6040516001600160a01b03831660248201526044810182905261146c90849063a9059cbb60e01b906064016113ff565b505050565b60006114c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115439092919063ffffffff16565b80519091501561146c57808060200190518101906114e49190611bdd565b61146c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610286565b6060611552848460008561155c565b90505b9392505050565b6060824710156115bd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610286565b6001600160a01b0385163b6116145760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610286565b600080866001600160a01b031685876040516116309190611bff565b60006040518083038185875af1925050503d806000811461166d576040519150601f19603f3d011682016040523d82523d6000602084013e611672565b606091505b509150915061168282828661168d565b979650505050505050565b6060831561169c575081611555565b8251156116ac5782518084602001fd5b8160405162461bcd60e51b81526004016102869190611c1b565b6000806000606084860312156116db57600080fd5b505081359360208301359350604090920135919050565b6001600160a01b03811681146111f057600080fd5b6000806040838503121561171a57600080fd5b82359150602083013561172c816116f2565b809150509250929050565b6000806040838503121561174a57600080fd5b50508035926020909101359150565b60006020828403121561176b57600080fd5b5035919050565b803561177d816116f2565b919050565b60006020828403121561179457600080fd5b8135611555816116f2565b600080600080600060a086880312156117b757600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60005b838110156117f55781810151838201526020016117dd565b50506000910152565b600081518084526118168160208601602086016117da565b601f01601f19169290920160200192915050565b841515815260806020820152600061184560808301866117fe565b6001600160a01b03949094166040830152506060015292915050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561188c57600080fd5b833567ffffffffffffffff808211156118a457600080fd5b818601915086601f8301126118b857600080fd5b8135818111156118ca576118ca611861565b604051601f8201601f19908116603f011681019083821181831017156118f2576118f2611861565b8160405282815289602084870101111561190b57600080fd5b82602086016020830137600060208483010152809750505050505061193260208501611772565b9150604084013590509250925092565b634e487b7160e01b600052603260045260246000fd5b6020808252601390820152724f66666572206e6f7420617661696c61626c6560681b604082015260600190565b60208082526043908201527f4d696e696d756d2072656365697661626c6520616d6f756e742063616e6e6f7460408201527f2062652067726561746572207468616e20746865207265636569766520616d6f6060820152621d5b9d60ea1b608082015260a00190565b634e487b7160e01b600052601160045260246000fd5b808201808211156113c5576113c56119ee565b600060208284031215611a2957600080fd5b5051919050565b80820281158282048414176113c5576113c56119ee565b600082611a6457634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156113c5576113c56119ee565b600181811c90821680611a9057607f821691505b602082108103611ab057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561146c57600081815260208120601f850160051c81016020861015611add5750805b601f850160051c820191505b81811015611afc57828155600101611ae9565b505050505050565b815167ffffffffffffffff811115611b1e57611b1e611861565b611b3281611b2c8454611a7c565b84611ab6565b602080601f831160018114611b675760008415611b4f5750858301515b600019600386901b1c1916600185901b178555611afc565b600085815260208120601f198616915b82811015611b9657888601518255948401946001909101908401611b77565b5085821015611bb45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b84815260806020820152600061184560808301866117fe565b600060208284031215611bef57600080fd5b8151801515811461155557600080fd5b60008251611c118184602087016117da565b9190910192915050565b60208152600061155560208301846117fe56fea2646970667358221220aa736c974d3b66c870e160b4c8cac776ef382d8fb7179d0d09819aba268514df64736f6c63430008120033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.