ETH Price: $3,463.02 (-5.77%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Base214725472024-12-24 13:12:3514 days ago1735045955IN
0x8dD0Fea5...5d8B151BA
0 ETH0.001783498.44137326
Withdraw Quote214561922024-12-22 6:17:4716 days ago1734848267IN
0x8dD0Fea5...5d8B151BA
0 ETH0.00111476.01803971
Withdraw Base214561882024-12-22 6:16:5916 days ago1734848219IN
0x8dD0Fea5...5d8B151BA
0 ETH0.001164866.38091787
Withdraw Quote214069352024-12-15 9:10:1123 days ago1734253811IN
0x8dD0Fea5...5d8B151BA
0 ETH0.001102255.47680081
Withdraw Quote213718942024-12-10 11:46:1128 days ago1733831171IN
0x8dD0Fea5...5d8B151BA
0 ETH0.002672715.93687755
Withdraw Base213718832024-12-10 11:43:4728 days ago1733831027IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0028011414.96487457
Withdraw Quote213556242024-12-08 5:16:2330 days ago1733634983IN
0x8dD0Fea5...5d8B151BA
0 ETH0.001540968.49459185
Withdraw Base213556222024-12-08 5:15:5930 days ago1733634959IN
0x8dD0Fea5...5d8B151BA
0 ETH0.000609858.5
Withdraw Base213556162024-12-08 5:14:4730 days ago1733634887IN
0x8dD0Fea5...5d8B151BA
0 ETH0.001578428.43259456
Withdraw Quote213519332024-12-07 16:53:5931 days ago1733590439IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0031960317.09400722
Withdraw Quote213518542024-12-07 16:38:1131 days ago1733589491IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0033064118.22479345
Withdraw Base213266622024-12-04 4:10:5934 days ago1733285459IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0033648115.92768319
Withdraw Quote212933002024-11-29 12:17:4739 days ago1732882667IN
0x8dD0Fea5...5d8B151BA
0 ETH0.00161479.62711016
Withdraw Base212932802024-11-29 12:13:4739 days ago1732882427IN
0x8dD0Fea5...5d8B151BA
0 ETH0.001867699.97802075
Withdraw Quote212728352024-11-26 15:31:4742 days ago1732635107IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0030588115.19840137
Withdraw Base212357162024-11-21 11:10:4747 days ago1732187447IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0027590414.73850765
Withdraw Quote212258742024-11-20 2:10:2348 days ago1732068623IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0023398912.89738766
Withdraw Base212258682024-11-20 2:09:1148 days ago1732068551IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0025207812.54872543
Withdraw Base212148962024-11-18 13:26:5950 days ago1731936419IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0026854712.71048516
Withdraw Quote212048892024-11-17 3:58:1151 days ago1731815891IN
0x8dD0Fea5...5d8B151BA
0 ETH0.001805289.95066414
Withdraw Base212048862024-11-17 3:57:3551 days ago1731815855IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0021956310.77877141
Withdraw Quote211972922024-11-16 2:33:1152 days ago1731724391IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0025312915.09024392
Withdraw Base211972872024-11-16 2:32:1152 days ago1731724331IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0025981313.87890957
Withdraw Quote211972762024-11-16 2:29:5952 days ago1731724199IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0025023513.58644473
Withdraw Base211972642024-11-16 2:27:3552 days ago1731724055IN
0x8dD0Fea5...5d8B151BA
0 ETH0.0025880813.52188256
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:
DODOV1Proxy

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : DODOV1Proxy.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

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

interface IDODO {
    function withdrawBase(uint256 amount) external returns (uint256);

    function withdrawQuote(uint256 amount) external returns (uint256);

    function withdrawAllBase() external returns (uint256);

    function withdrawAllQuote() external returns (uint256);

    function _BASE_CAPITAL_TOKEN_() external view returns (address);

    function _QUOTE_CAPITAL_TOKEN_() external view returns (address);

    function _BASE_TOKEN_() external returns (address);

    function _QUOTE_TOKEN_() external returns (address);

    function getExpectedTarget() external view returns (uint256 baseTarget, uint256 quoteTarget);

    function getTotalBaseCapital() external view returns (uint256);

    function getTotalQuoteCapital() external view returns (uint256);

    function getBaseCapitalBalanceOf(address lp) external view returns (uint256);

    function getQuoteCapitalBalanceOf(address lp) external view returns (uint256);
}

interface IDODOLpToken {
    function balanceOf(address owner) external view returns (uint256);
    function transfer(address to, uint256 amount) external returns (bool);
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

contract DODOV1Proxy is Ownable {
    using SafeERC20 for IERC20;

    // 1. calculate the required amount of dlp token
    // 2. user transfer dlp to this proxy
    // 3. this proxy call withdraw
    // 4. this proxy receive token
    // 5. check return amount
    // 6. send token to user
    function withdrawBase(address pool, uint256 amount, uint256 minReceive) external returns (uint256 returnAmount) {
        (uint256 baseTarget, ) = IDODO(pool).getExpectedTarget();
        uint256 totalBaseCapital = IDODO(pool).getTotalBaseCapital();
        require(totalBaseCapital > 0, "NO_BASE_LP");
        uint256 requireBaseCapital = divCeil(amount * totalBaseCapital, baseTarget);

        address baseLPToken = IDODO(pool)._BASE_CAPITAL_TOKEN_();
        IDODOLpToken(baseLPToken).transferFrom(msg.sender, address(this), requireBaseCapital);
        
        returnAmount = IDODO(pool).withdrawBase(amount);
        require(returnAmount >= minReceive, "return amount not enough");

        address baseToken = IDODO(pool)._BASE_TOKEN_();
        IERC20(baseToken).safeTransfer(msg.sender, returnAmount);
    }

    function withdrawQuote(address pool, uint256 amount, uint256 minReceive) external returns (uint256 returnAmount) {
        (, uint256 quoteTarget) = IDODO(pool).getExpectedTarget();
        uint256 totalQuoteCapital = IDODO(pool).getTotalQuoteCapital();
        require(totalQuoteCapital > 0, "NO_QUOTE_LP");
        uint256 requireQuoteCapital = divCeil(amount * totalQuoteCapital, quoteTarget);

        address quoteLPToken = IDODO(pool)._QUOTE_CAPITAL_TOKEN_();
        IDODOLpToken(quoteLPToken).transferFrom(msg.sender, address(this), requireQuoteCapital);

        returnAmount = IDODO(pool).withdrawQuote(amount);
        require(returnAmount >= minReceive, "return amount not enough");

        address quoteToken = IDODO(pool)._QUOTE_TOKEN_();
        IERC20(quoteToken).safeTransfer(msg.sender, returnAmount);
    }


    function withdrawAllBase(address pool, uint256 minReceive) external returns (uint256 returnAmount) {
        address baseLPToken = IDODO(pool)._BASE_CAPITAL_TOKEN_();
        uint256 dlpBalance = IDODOLpToken(baseLPToken).balanceOf(msg.sender);
        IDODOLpToken(baseLPToken).transferFrom(msg.sender, address(this), dlpBalance);
        
        returnAmount = IDODO(pool).withdrawAllBase();
        require(returnAmount >= minReceive, "return amount not enough");

        address baseToken = IDODO(pool)._BASE_TOKEN_();
        IERC20(baseToken).safeTransfer(msg.sender, returnAmount);
    }

    function withdrawAllQuote(address pool, uint256 minReceive) external returns (uint256 returnAmount) {
        address quoteLPToken = IDODO(pool)._QUOTE_CAPITAL_TOKEN_();
        uint256 dlpBalance = IDODOLpToken(quoteLPToken).balanceOf(msg.sender);
        IDODOLpToken(quoteLPToken).transferFrom(msg.sender, address(this), dlpBalance);
        
        returnAmount = IDODO(pool).withdrawAllQuote();
        require(returnAmount >= minReceive, "return amount not enough");

        address quoteToken = IDODO(pool)._QUOTE_TOKEN_();
        IERC20(quoteToken).safeTransfer(msg.sender, returnAmount);
    }

    function divCeil(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 quotient = a / b;
        uint256 remainder = a - quotient * b;
        if (remainder > 0) {
            return quotient + 1;
        } else {
            return quotient;
        }
    }

    function withdrawLeftToken(address token) external onlyOwner {
        uint256 balance = IERC20(token).balanceOf(address(this));
        IERC20(token).safeTransfer(msg.sender, balance);
    }
}

File 2 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 3 of 7 : 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 4 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 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 5 of 7 : 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);
}

File 6 of 7 : 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 7 of 7 : 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"minReceive","type":"uint256"}],"name":"withdrawAllBase","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"minReceive","type":"uint256"}],"name":"withdrawAllQuote","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReceive","type":"uint256"}],"name":"withdrawBase","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawLeftToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReceive","type":"uint256"}],"name":"withdrawQuote","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e508061010d6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063a77febfc1161005b578063a77febfc14610101578063de3a5a0b14610131578063f2fde38b14610161578063f7cdbb101461017d57610088565b8063092b955d1461008d578063715018a6146100bd5780638202dada146100c75780638da5cb5b146100e3575b600080fd5b6100a760048036038101906100a29190611562565b6101ad565b6040516100b491906115b1565b60405180910390f35b6100c561047f565b005b6100e160048036038101906100dc91906115cc565b610493565b005b6100eb610548565b6040516100f89190611608565b60405180910390f35b61011b60048036038101906101169190611623565b610571565b60405161012891906115b1565b60405180910390f35b61014b60048036038101906101469190611623565b610915565b60405161015891906115b1565b60405180910390f35b61017b600480360381019061017691906115cc565b610cb9565b005b61019760048036038101906101929190611562565b610d3c565b6040516101a491906115b1565b60405180910390f35b6000808373ffffffffffffffffffffffffffffffffffffffff1663d689107c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021f919061168b565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161025c9190611608565b602060405180830381865afa158015610279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029d91906116cd565b90508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016102dc939291906116fa565b6020604051808303816000875af11580156102fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031f9190611769565b508473ffffffffffffffffffffffffffffffffffffffff1663d47eaa376040518163ffffffff1660e01b81526004016020604051808303816000875af115801561036d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039191906116cd565b9250838310156103d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103cd906117f3565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff16634a248d2a6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610425573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610449919061168b565b905061047633858373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505092915050565b610487611094565b6104916000611112565b565b61049b611094565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104d69190611608565b602060405180830381865afa1580156104f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051791906116cd565b905061054433828473ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000808473ffffffffffffffffffffffffffffffffffffffff1663ffa642256040518163ffffffff1660e01b81526004016040805180830381865afa1580156105be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e29190611813565b50905060008573ffffffffffffffffffffffffffffffffffffffff16630cd1667d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610632573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065691906116cd565b90506000811161069b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106929061189f565b60405180910390fd5b60006106b282876106ac91906118ee565b846111d6565b905060008773ffffffffffffffffffffffffffffffffffffffff1663d689107c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610701573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610725919061168b565b90508073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610764939291906116fa565b6020604051808303816000875af1158015610783573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a79190611769565b508773ffffffffffffffffffffffffffffffffffffffff1663f98bea15886040518263ffffffff1660e01b81526004016107e191906115b1565b6020604051808303816000875af1158015610800573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082491906116cd565b945085851015610869576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610860906117f3565b60405180910390fd5b60008873ffffffffffffffffffffffffffffffffffffffff16634a248d2a6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156108b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dc919061168b565b905061090933878373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505050509392505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663ffa642256040518163ffffffff1660e01b81526004016040805180830381865afa158015610962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109869190611813565b91505060008573ffffffffffffffffffffffffffffffffffffffff16632aa82c656040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906116cd565b905060008111610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a369061197c565b60405180910390fd5b6000610a568287610a5091906118ee565b846111d6565b905060008773ffffffffffffffffffffffffffffffffffffffff1663ac1fbc986040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac9919061168b565b90508073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610b08939291906116fa565b6020604051808303816000875af1158015610b27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4b9190611769565b508773ffffffffffffffffffffffffffffffffffffffff1663c0a5f6ff886040518263ffffffff1660e01b8152600401610b8591906115b1565b6020604051808303816000875af1158015610ba4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc891906116cd565b945085851015610c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c04906117f3565b60405180910390fd5b60008873ffffffffffffffffffffffffffffffffffffffff1663d4b970466040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c80919061168b565b9050610cad33878373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505050509392505050565b610cc1611094565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2790611a0e565b60405180910390fd5b610d3981611112565b50565b6000808373ffffffffffffffffffffffffffffffffffffffff1663ac1fbc986040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dae919061168b565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610deb9190611608565b602060405180830381865afa158015610e08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2c91906116cd565b90508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610e6b939291906116fa565b6020604051808303816000875af1158015610e8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eae9190611769565b508473ffffffffffffffffffffffffffffffffffffffff1663c59203af6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2091906116cd565b925083831015610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c906117f3565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1663d4b970466040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610fb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd8919061168b565b905061100533858373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505092915050565b61108f8363a9059cbb60e01b848460405160240161102d929190611a2e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061122d565b505050565b61109c6112f4565b73ffffffffffffffffffffffffffffffffffffffff166110ba610548565b73ffffffffffffffffffffffffffffffffffffffff1614611110576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110790611aa3565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082846111e59190611af2565b9050600083826111f591906118ee565b856112009190611b23565b90506000811115611221576001826112189190611b57565b92505050611227565b81925050505b92915050565b600061128f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112fc9092919063ffffffff16565b90506000815111156112ef57808060200190518101906112af9190611769565b6112ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e590611bfd565b60405180910390fd5b5b505050565b600033905090565b606061130b8484600085611314565b90509392505050565b606082471015611359576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135090611c8f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113829190611d20565b60006040518083038185875af1925050503d80600081146113bf576040519150601f19603f3d011682016040523d82523d6000602084013e6113c4565b606091505b50915091506113d5878383876113e1565b92505050949350505050565b6060831561144357600083510361143b576113fb85611456565b61143a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143190611d83565b60405180910390fd5b5b82905061144e565b61144d8383611479565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561148c5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c09190611df8565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006114f9826114ce565b9050919050565b611509816114ee565b811461151457600080fd5b50565b60008135905061152681611500565b92915050565b6000819050919050565b61153f8161152c565b811461154a57600080fd5b50565b60008135905061155c81611536565b92915050565b60008060408385031215611579576115786114c9565b5b600061158785828601611517565b92505060206115988582860161154d565b9150509250929050565b6115ab8161152c565b82525050565b60006020820190506115c660008301846115a2565b92915050565b6000602082840312156115e2576115e16114c9565b5b60006115f084828501611517565b91505092915050565b611602816114ee565b82525050565b600060208201905061161d60008301846115f9565b92915050565b60008060006060848603121561163c5761163b6114c9565b5b600061164a86828701611517565b935050602061165b8682870161154d565b925050604061166c8682870161154d565b9150509250925092565b60008151905061168581611500565b92915050565b6000602082840312156116a1576116a06114c9565b5b60006116af84828501611676565b91505092915050565b6000815190506116c781611536565b92915050565b6000602082840312156116e3576116e26114c9565b5b60006116f1848285016116b8565b91505092915050565b600060608201905061170f60008301866115f9565b61171c60208301856115f9565b61172960408301846115a2565b949350505050565b60008115159050919050565b61174681611731565b811461175157600080fd5b50565b6000815190506117638161173d565b92915050565b60006020828403121561177f5761177e6114c9565b5b600061178d84828501611754565b91505092915050565b600082825260208201905092915050565b7f72657475726e20616d6f756e74206e6f7420656e6f7567680000000000000000600082015250565b60006117dd601883611796565b91506117e8826117a7565b602082019050919050565b6000602082019050818103600083015261180c816117d0565b9050919050565b6000806040838503121561182a576118296114c9565b5b6000611838858286016116b8565b9250506020611849858286016116b8565b9150509250929050565b7f4e4f5f424153455f4c5000000000000000000000000000000000000000000000600082015250565b6000611889600a83611796565b915061189482611853565b602082019050919050565b600060208201905081810360008301526118b88161187c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006118f98261152c565b91506119048361152c565b92508282026119128161152c565b91508282048414831517611929576119286118bf565b5b5092915050565b7f4e4f5f51554f54455f4c50000000000000000000000000000000000000000000600082015250565b6000611966600b83611796565b915061197182611930565b602082019050919050565b6000602082019050818103600083015261199581611959565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006119f8602683611796565b9150611a038261199c565b604082019050919050565b60006020820190508181036000830152611a27816119eb565b9050919050565b6000604082019050611a4360008301856115f9565b611a5060208301846115a2565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611a8d602083611796565b9150611a9882611a57565b602082019050919050565b60006020820190508181036000830152611abc81611a80565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611afd8261152c565b9150611b088361152c565b925082611b1857611b17611ac3565b5b828204905092915050565b6000611b2e8261152c565b9150611b398361152c565b9250828203905081811115611b5157611b506118bf565b5b92915050565b6000611b628261152c565b9150611b6d8361152c565b9250828201905080821115611b8557611b846118bf565b5b92915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611be7602a83611796565b9150611bf282611b8b565b604082019050919050565b60006020820190508181036000830152611c1681611bda565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c79602683611796565b9150611c8482611c1d565b604082019050919050565b60006020820190508181036000830152611ca881611c6c565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611ce3578082015181840152602081019050611cc8565b60008484015250505050565b6000611cfa82611caf565b611d048185611cba565b9350611d14818560208601611cc5565b80840191505092915050565b6000611d2c8284611cef565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611d6d601d83611796565b9150611d7882611d37565b602082019050919050565b60006020820190508181036000830152611d9c81611d60565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611dca82611da3565b611dd48185611796565b9350611de4818560208601611cc5565b611ded81611dae565b840191505092915050565b60006020820190508181036000830152611e128184611dbf565b90509291505056fea2646970667358221220a8148876c10fe6da1b3c936971ae2d4acc0e7d19bde4c291552728add7321fbd64736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063a77febfc1161005b578063a77febfc14610101578063de3a5a0b14610131578063f2fde38b14610161578063f7cdbb101461017d57610088565b8063092b955d1461008d578063715018a6146100bd5780638202dada146100c75780638da5cb5b146100e3575b600080fd5b6100a760048036038101906100a29190611562565b6101ad565b6040516100b491906115b1565b60405180910390f35b6100c561047f565b005b6100e160048036038101906100dc91906115cc565b610493565b005b6100eb610548565b6040516100f89190611608565b60405180910390f35b61011b60048036038101906101169190611623565b610571565b60405161012891906115b1565b60405180910390f35b61014b60048036038101906101469190611623565b610915565b60405161015891906115b1565b60405180910390f35b61017b600480360381019061017691906115cc565b610cb9565b005b61019760048036038101906101929190611562565b610d3c565b6040516101a491906115b1565b60405180910390f35b6000808373ffffffffffffffffffffffffffffffffffffffff1663d689107c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021f919061168b565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161025c9190611608565b602060405180830381865afa158015610279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029d91906116cd565b90508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016102dc939291906116fa565b6020604051808303816000875af11580156102fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031f9190611769565b508473ffffffffffffffffffffffffffffffffffffffff1663d47eaa376040518163ffffffff1660e01b81526004016020604051808303816000875af115801561036d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039191906116cd565b9250838310156103d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103cd906117f3565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff16634a248d2a6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610425573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610449919061168b565b905061047633858373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505092915050565b610487611094565b6104916000611112565b565b61049b611094565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104d69190611608565b602060405180830381865afa1580156104f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051791906116cd565b905061054433828473ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000808473ffffffffffffffffffffffffffffffffffffffff1663ffa642256040518163ffffffff1660e01b81526004016040805180830381865afa1580156105be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e29190611813565b50905060008573ffffffffffffffffffffffffffffffffffffffff16630cd1667d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610632573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065691906116cd565b90506000811161069b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106929061189f565b60405180910390fd5b60006106b282876106ac91906118ee565b846111d6565b905060008773ffffffffffffffffffffffffffffffffffffffff1663d689107c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610701573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610725919061168b565b90508073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610764939291906116fa565b6020604051808303816000875af1158015610783573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a79190611769565b508773ffffffffffffffffffffffffffffffffffffffff1663f98bea15886040518263ffffffff1660e01b81526004016107e191906115b1565b6020604051808303816000875af1158015610800573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082491906116cd565b945085851015610869576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610860906117f3565b60405180910390fd5b60008873ffffffffffffffffffffffffffffffffffffffff16634a248d2a6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156108b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dc919061168b565b905061090933878373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505050509392505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663ffa642256040518163ffffffff1660e01b81526004016040805180830381865afa158015610962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109869190611813565b91505060008573ffffffffffffffffffffffffffffffffffffffff16632aa82c656040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906116cd565b905060008111610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a369061197c565b60405180910390fd5b6000610a568287610a5091906118ee565b846111d6565b905060008773ffffffffffffffffffffffffffffffffffffffff1663ac1fbc986040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac9919061168b565b90508073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610b08939291906116fa565b6020604051808303816000875af1158015610b27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4b9190611769565b508773ffffffffffffffffffffffffffffffffffffffff1663c0a5f6ff886040518263ffffffff1660e01b8152600401610b8591906115b1565b6020604051808303816000875af1158015610ba4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc891906116cd565b945085851015610c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c04906117f3565b60405180910390fd5b60008873ffffffffffffffffffffffffffffffffffffffff1663d4b970466040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c80919061168b565b9050610cad33878373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505050509392505050565b610cc1611094565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2790611a0e565b60405180910390fd5b610d3981611112565b50565b6000808373ffffffffffffffffffffffffffffffffffffffff1663ac1fbc986040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dae919061168b565b905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610deb9190611608565b602060405180830381865afa158015610e08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2c91906116cd565b90508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610e6b939291906116fa565b6020604051808303816000875af1158015610e8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eae9190611769565b508473ffffffffffffffffffffffffffffffffffffffff1663c59203af6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2091906116cd565b925083831015610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c906117f3565b60405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1663d4b970466040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610fb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd8919061168b565b905061100533858373ffffffffffffffffffffffffffffffffffffffff1661100e9092919063ffffffff16565b50505092915050565b61108f8363a9059cbb60e01b848460405160240161102d929190611a2e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061122d565b505050565b61109c6112f4565b73ffffffffffffffffffffffffffffffffffffffff166110ba610548565b73ffffffffffffffffffffffffffffffffffffffff1614611110576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110790611aa3565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082846111e59190611af2565b9050600083826111f591906118ee565b856112009190611b23565b90506000811115611221576001826112189190611b57565b92505050611227565b81925050505b92915050565b600061128f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112fc9092919063ffffffff16565b90506000815111156112ef57808060200190518101906112af9190611769565b6112ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e590611bfd565b60405180910390fd5b5b505050565b600033905090565b606061130b8484600085611314565b90509392505050565b606082471015611359576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135090611c8f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113829190611d20565b60006040518083038185875af1925050503d80600081146113bf576040519150601f19603f3d011682016040523d82523d6000602084013e6113c4565b606091505b50915091506113d5878383876113e1565b92505050949350505050565b6060831561144357600083510361143b576113fb85611456565b61143a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143190611d83565b60405180910390fd5b5b82905061144e565b61144d8383611479565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561148c5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c09190611df8565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006114f9826114ce565b9050919050565b611509816114ee565b811461151457600080fd5b50565b60008135905061152681611500565b92915050565b6000819050919050565b61153f8161152c565b811461154a57600080fd5b50565b60008135905061155c81611536565b92915050565b60008060408385031215611579576115786114c9565b5b600061158785828601611517565b92505060206115988582860161154d565b9150509250929050565b6115ab8161152c565b82525050565b60006020820190506115c660008301846115a2565b92915050565b6000602082840312156115e2576115e16114c9565b5b60006115f084828501611517565b91505092915050565b611602816114ee565b82525050565b600060208201905061161d60008301846115f9565b92915050565b60008060006060848603121561163c5761163b6114c9565b5b600061164a86828701611517565b935050602061165b8682870161154d565b925050604061166c8682870161154d565b9150509250925092565b60008151905061168581611500565b92915050565b6000602082840312156116a1576116a06114c9565b5b60006116af84828501611676565b91505092915050565b6000815190506116c781611536565b92915050565b6000602082840312156116e3576116e26114c9565b5b60006116f1848285016116b8565b91505092915050565b600060608201905061170f60008301866115f9565b61171c60208301856115f9565b61172960408301846115a2565b949350505050565b60008115159050919050565b61174681611731565b811461175157600080fd5b50565b6000815190506117638161173d565b92915050565b60006020828403121561177f5761177e6114c9565b5b600061178d84828501611754565b91505092915050565b600082825260208201905092915050565b7f72657475726e20616d6f756e74206e6f7420656e6f7567680000000000000000600082015250565b60006117dd601883611796565b91506117e8826117a7565b602082019050919050565b6000602082019050818103600083015261180c816117d0565b9050919050565b6000806040838503121561182a576118296114c9565b5b6000611838858286016116b8565b9250506020611849858286016116b8565b9150509250929050565b7f4e4f5f424153455f4c5000000000000000000000000000000000000000000000600082015250565b6000611889600a83611796565b915061189482611853565b602082019050919050565b600060208201905081810360008301526118b88161187c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006118f98261152c565b91506119048361152c565b92508282026119128161152c565b91508282048414831517611929576119286118bf565b5b5092915050565b7f4e4f5f51554f54455f4c50000000000000000000000000000000000000000000600082015250565b6000611966600b83611796565b915061197182611930565b602082019050919050565b6000602082019050818103600083015261199581611959565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006119f8602683611796565b9150611a038261199c565b604082019050919050565b60006020820190508181036000830152611a27816119eb565b9050919050565b6000604082019050611a4360008301856115f9565b611a5060208301846115a2565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611a8d602083611796565b9150611a9882611a57565b602082019050919050565b60006020820190508181036000830152611abc81611a80565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611afd8261152c565b9150611b088361152c565b925082611b1857611b17611ac3565b5b828204905092915050565b6000611b2e8261152c565b9150611b398361152c565b9250828203905081811115611b5157611b506118bf565b5b92915050565b6000611b628261152c565b9150611b6d8361152c565b9250828201905080821115611b8557611b846118bf565b5b92915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611be7602a83611796565b9150611bf282611b8b565b604082019050919050565b60006020820190508181036000830152611c1681611bda565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c79602683611796565b9150611c8482611c1d565b604082019050919050565b60006020820190508181036000830152611ca881611c6c565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611ce3578082015181840152602081019050611cc8565b60008484015250505050565b6000611cfa82611caf565b611d048185611cba565b9350611d14818560208601611cc5565b80840191505092915050565b6000611d2c8284611cef565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611d6d601d83611796565b9150611d7882611d37565b602082019050919050565b60006020820190508181036000830152611d9c81611d60565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611dca82611da3565b611dd48185611796565b9350611de4818560208601611cc5565b611ded81611dae565b840191505092915050565b60006020820190508181036000830152611e128184611dbf565b90509291505056fea2646970667358221220a8148876c10fe6da1b3c936971ae2d4acc0e7d19bde4c291552728add7321fbd64736f6c63430008120033

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.