ETH Price: $2,602.87 (-2.85%)

Contract

0x84B76eFe02a8A151AF697A62f7ba59FB082b7e5f

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x020100001054682162023-06-12 2:00:09609 days ago1686535209IN
0x84B76eFe...B082b7e5f
0 ETH0.000019216290.00019825
0x410400001054682162023-06-12 2:00:09609 days ago1686535209IN
0x84B76eFe...B082b7e5f
0 ETH0.0000192942090.00019825
0x420000001054682152023-06-12 2:00:07609 days ago1686535207IN
0x84B76eFe...B082b7e5f
0 ETH0.0000202390330.00019825
0x410400351054681252023-06-12 1:57:07609 days ago1686535027IN
0x84B76eFe...B082b7e5f
0 ETH0.0000200410230.00015007
0x430000551054681062023-06-12 1:56:29609 days ago1686534989IN
0x84B76eFe...B082b7e5f
0 ETH0.0000210653510.00015718
0x010400351054680852023-06-12 1:55:47609 days ago1686534947IN
0x84B76eFe...B082b7e5f
0 ETH0.000018986040.00014932
0x410400351054680812023-06-12 1:55:39609 days ago1686534939IN
0x84B76eFe...B082b7e5f
0 ETH0.000019617230.00021791
0x430400351054680792023-06-12 1:55:35609 days ago1686534935IN
0x84B76eFe...B082b7e5f
0 ETH0.0000231323350.00014949
0x4301007e1054680712023-06-12 1:55:19609 days ago1686534919IN
0x84B76eFe...B082b7e5f
0 ETH0.0000237695150.00015809
0x410400351054680692023-06-12 1:55:15609 days ago1686534915IN
0x84B76eFe...B082b7e5f
0 ETH0.0000211005140.00030775
0x410400351054680682023-06-12 1:55:13609 days ago1686534913IN
0x84B76eFe...B082b7e5f
0 ETH0.0000212269320.00030784
0x410400351054680682023-06-12 1:55:13609 days ago1686534913IN
0x84B76eFe...B082b7e5f
0 ETH0.0000210971730.00025442
0x410400351054680682023-06-12 1:55:13609 days ago1686534913IN
0x84B76eFe...B082b7e5f
0 ETH0.0000212213030.00017617
0x4301007e1054680392023-06-12 1:54:15609 days ago1686534855IN
0x84B76eFe...B082b7e5f
0 ETH0.0000215294620.00015539
0x010400351054679922023-06-12 1:52:41609 days ago1686534761IN
0x84B76eFe...B082b7e5f
0 ETH0.0000194799020.00016268
0x010400351054679552023-06-12 1:51:27609 days ago1686534687IN
0x84B76eFe...B082b7e5f
0 ETH0.0000191747490.00016982
0x410400351054679252023-06-12 1:50:27609 days ago1686534627IN
0x84B76eFe...B082b7e5f
0 ETH0.0000187299370.00019994
0x410400351054679242023-06-12 1:50:25609 days ago1686534625IN
0x84B76eFe...B082b7e5f
0 ETH0.0000187292460.00018593
0x410400351054679232023-06-12 1:50:23609 days ago1686534623IN
0x84B76eFe...B082b7e5f
0 ETH0.0000195898870.00017998
0x410400351054678672023-06-12 1:48:31609 days ago1686534511IN
0x84B76eFe...B082b7e5f
0 ETH0.0000194246470.00031142
0x020400351054678662023-06-12 1:48:29609 days ago1686534509IN
0x84B76eFe...B082b7e5f
0 ETH0.0000194591220.00019485
0x010400351054678592023-06-12 1:48:15609 days ago1686534495IN
0x84B76eFe...B082b7e5f
0 ETH0.0000190204960.00018711
0x010400351054678572023-06-12 1:48:11609 days ago1686534491IN
0x84B76eFe...B082b7e5f
0 ETH0.0000195722580.00020035
0x410400351054678452023-06-12 1:47:47609 days ago1686534467IN
0x84B76eFe...B082b7e5f
0 ETH0.0000208074290.00018799
0x420400351054678262023-06-12 1:47:09609 days ago1686534429IN
0x84B76eFe...B082b7e5f
0 ETH0.0000207332820.0001877
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1054682162023-06-12 2:00:09609 days ago1686535209
0x84B76eFe...B082b7e5f
0 ETH
1054682162023-06-12 2:00:09609 days ago1686535209
0x84B76eFe...B082b7e5f
0 ETH
1054682162023-06-12 2:00:09609 days ago1686535209
0x84B76eFe...B082b7e5f
0 ETH
1054682162023-06-12 2:00:09609 days ago1686535209
0x84B76eFe...B082b7e5f
0 ETH
1054682162023-06-12 2:00:09609 days ago1686535209
0x84B76eFe...B082b7e5f
0 ETH
1054682152023-06-12 2:00:07609 days ago1686535207
0x84B76eFe...B082b7e5f
0 ETH
1054682152023-06-12 2:00:07609 days ago1686535207
0x84B76eFe...B082b7e5f
0 ETH
1054682152023-06-12 2:00:07609 days ago1686535207
0x84B76eFe...B082b7e5f
0 ETH
1054681252023-06-12 1:57:07609 days ago1686535027
0x84B76eFe...B082b7e5f
0 ETH
1054681252023-06-12 1:57:07609 days ago1686535027
0x84B76eFe...B082b7e5f
0 ETH
1054681062023-06-12 1:56:29609 days ago1686534989
0x84B76eFe...B082b7e5f
0 ETH
1054681062023-06-12 1:56:29609 days ago1686534989
0x84B76eFe...B082b7e5f
0 ETH
1054681062023-06-12 1:56:29609 days ago1686534989
0x84B76eFe...B082b7e5f
0 ETH
1054681062023-06-12 1:56:29609 days ago1686534989
0x84B76eFe...B082b7e5f
0 ETH
1054680852023-06-12 1:55:47609 days ago1686534947
0x84B76eFe...B082b7e5f
0 ETH
1054680852023-06-12 1:55:47609 days ago1686534947
0x84B76eFe...B082b7e5f
0 ETH
1054680812023-06-12 1:55:39609 days ago1686534939
0x84B76eFe...B082b7e5f
0 ETH
1054680812023-06-12 1:55:39609 days ago1686534939
0x84B76eFe...B082b7e5f
0 ETH
1054680792023-06-12 1:55:35609 days ago1686534935
0x84B76eFe...B082b7e5f
0 ETH
1054680792023-06-12 1:55:35609 days ago1686534935
0x84B76eFe...B082b7e5f
0 ETH
1054680792023-06-12 1:55:35609 days ago1686534935
0x84B76eFe...B082b7e5f
0 ETH
1054680792023-06-12 1:55:35609 days ago1686534935
0x84B76eFe...B082b7e5f
0 ETH
1054680712023-06-12 1:55:19609 days ago1686534919
0x84B76eFe...B082b7e5f
0 ETH
1054680712023-06-12 1:55:19609 days ago1686534919
0x84B76eFe...B082b7e5f
0 ETH
1054680712023-06-12 1:55:19609 days ago1686534919
0x84B76eFe...B082b7e5f
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WooracleV2Zip

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 7 : WooracleV2Zip.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.14;

/*

░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝

*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

import {IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IWooracleV2} from "./interfaces/IWooracleV2.sol";

import "./libraries/TransferHelper.sol";

/// @title Wooracle V2 contract for L2
contract WooracleV2Zip {
    mapping(uint8 => address) public bases;

    IWooracleV2 public wooracle;

    modifier onlyAdmin() {
        require(wooracle.isAdmin(msg.sender), "WooracleV2Zip: !Admin");
        _;
    }

    constructor(address _wooracle) {
        wooracle = IWooracleV2(_wooracle);
    }

    function setWooracle(address _wooracle) external onlyAdmin {
        wooracle = IWooracleV2(_wooracle);
    }

    function setBase(uint8 _id, address _base) external onlyAdmin {
        require(getBase(_id) == address(0), "WooracleV2Zip: !id_SET_ALREADY");
        bases[_id] = _base;
    }

    function getBase(uint8 _id) public view returns (address) {
        address[5] memory CONST_BASES = [
            // mload
            // NOTE: Update token address for different chains
            0x4200000000000000000000000000000000000006, // WETH
            0x68f180fcCe6836688e9084f035309E29Bf0A2095, // WBTC
            0x871f2F2ff935FD1eD867842FF2a7bfD051A5E527, // WOO
            0x94b008aA00579c1307B0EF2c499aD98a8ce58e58, // USDT
            0x4200000000000000000000000000000000000042 // OP
        ];

        return _id < 5 ? CONST_BASES[_id] : bases[_id];
    }

    /* ----- External Functions ----- */

    // https://docs.soliditylang.org/en/v0.8.12/contracts.html#fallback-function
    // prettier-ignore
    fallback (bytes calldata _input) external onlyAdmin returns (bytes memory _output) {
        /*
            2 bit: 0: post prices, 1: post states, 2,3: for future operations
            6 bits: length

            post prices:
               [price] -->
                  base token: 8 bites (1 byte)
                  price data: 32 bits = (27, 5)

            post states:
               [states] -->
                  base token: 8 bites (1 byte)
                  price:      32 bits (4 bytes) = (27, 5)
                  k coeff:    16 bits (2 bytes) = (11, 5)
                  s spread:   16 bits (2 bytes) = (11, 5)
        */
        uint256 x = _input.length;
        require(x > 0, "WooracleV2Zip: !calldata");

        uint8 firstByte = uint8(bytes1(_input[0]));
        uint8 op = firstByte >> 6; // 11000000
        uint8 len = firstByte & 0x3F; // 00111111
        if (op == 0) {
            // post prices list
            address base;
            uint128 p;
            for (uint256 i = 0; i < len; ++i) {
                base = getBase(uint8(bytes1(_input[1 + i * 5:1 + i * 5 + 1])));
                p = _price(uint32(bytes4(_input[1 + i * 5 + 1:1 + i * 5 + 5])));
                wooracle.postPrice(base, p);
            }
        } else if (op == 1) {
            // post states list
            address base;
            uint128 p;
            uint64 s;
            uint64 k;
            for (uint256 i = 0; i < len; ++i) {
                base = getBase(uint8(bytes1(_input[1 + i * 9:1 + i * 9 + 1])));
                p = _price(uint32(bytes4(_input[1 + i * 9 + 1:1 + i * 9 + 5])));
                s = _ks(uint16(bytes2(_input[1 + i * 9 + 5:1 + i * 9 + 7])));
                k = _ks(uint16(bytes2(_input[1 + i * 9 + 7:1 + i * 9 + 9])));
                wooracle.postState(base, p, s, k);
            }
        } else {
            // not supported
        }
    }

    function _price(uint32 b) internal pure returns (uint128) {
        return uint128((b >> 5) * (10**(b & 0x1F))); // 0x1F = 00011111
    }

    function _ks(uint16 b) internal pure returns (uint64) {
        return uint64((b >> 5) * (10**(b & 0x1F)));
    }

    function inCaseTokenGotStuck(address stuckToken) external onlyAdmin {
        if (stuckToken == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) {
            TransferHelper.safeTransferETH(msg.sender, address(this).balance);
        } else {
            uint256 amount = IERC20(stuckToken).balanceOf(address(this));
            TransferHelper.safeTransfer(stuckToken, msg.sender, amount);
        }
    }
}

File 2 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 3 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 4 of 7 : 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 5 of 7 : 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 6 of 7 : IWooracleV2.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.14;

/*

░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝

*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/// @title The oracle V2 interface by Woo.Network.
/// @notice update and posted the latest price info by Woo.
interface IWooracleV2 {
    struct State {
        uint128 price;
        uint64 spread;
        uint64 coeff;
        bool woFeasible;
    }

    /// @notice Wooracle spread value
    function woSpread(address base) external view returns (uint64);

    /// @notice Wooracle coeff value
    function woCoeff(address base) external view returns (uint64);

    /// @notice Wooracle state for the specified base token
    function woState(address base) external view returns (State memory);

    /// @notice Chainlink oracle address for the specified base token
    function cloAddress(address base) external view returns (address clo);

    /// @notice ChainLink price of the base token / quote token
    function cloPrice(address base) external view returns (uint256 price, uint256 timestamp);

    /// @notice Wooracle price of the base token
    function woPrice(address base) external view returns (uint128 price, uint256 timestamp);

    /// @notice Returns Woooracle price if available, otherwise fallback to ChainLink
    function price(address base) external view returns (uint256 priceNow, bool feasible);

    /// @notice Updates the Wooracle price for the specified base token
    function postPrice(address base, uint128 newPrice) external;

    function postState(
        address base,
        uint128 newPrice,
        uint64 newSpread,
        uint64 newCoeff
    ) external;

    /// @notice State of the specified base token.
    function state(address base) external view returns (State memory);

    /// @notice The price decimal for the specified base token (e.g. 8)
    function decimals(address base) external view returns (uint8);

    /// @notice The quote token for calculating WooPP query price
    function quoteToken() external view returns (address);

    /// @notice last updated timestamp
    function timestamp() external view returns (uint256);

    /// @notice Flag for Wooracle price feasible
    function isWoFeasible(address base) external view returns (bool);

    /// @notice Flag for account admin
    function isAdmin(address account) external view returns (bool);
}

File 7 of 7 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::safeApprove: approve failed"
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::safeTransfer: transfer failed"
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::transferFrom: transferFrom failed"
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, "TransferHelper::safeTransferETH: ETH transfer failed");
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_wooracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"bases","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_id","type":"uint8"}],"name":"getBase","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stuckToken","type":"address"}],"name":"inCaseTokenGotStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_id","type":"uint8"},{"internalType":"address","name":"_base","type":"address"}],"name":"setBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wooracle","type":"address"}],"name":"setWooracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wooracle","outputs":[{"internalType":"contract IWooracleV2","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161144738038061144783398101604081905261002f91610054565b600180546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6113b4806100936000396000f3fe608060405234801561001057600080fd5b50600436106100715760003560e01c8063bc8530f911610050578063bc8530f91461062b578063c32025a41461064b578063e1a4e72a1461065e57610071565b806269dc6d146105a45780635ab2566c14610603578063a1ae849014610616575b6001546040517f24d7806c000000000000000000000000000000000000000000000000000000008152336004820152600091369160609173ffffffffffffffffffffffffffffffffffffffff16906324d7806c90602401602060405180830381865afa1580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101099190610f3a565b610174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e000000000000000000000060448201526064015b60405180910390fd5b81806101dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c6556325a69703a202163616c6c646174610000000000000000604482015260640161016b565b6000848460008181106101f1576101f1610f5c565b919091013560f881901c925060fe1c9050603f8216600082900361039b5760008060005b8360ff168110156103935761027b8a8a610230846005610fba565b61023b906001610ff7565b90610247856005610fba565b610252906001610ff7565b61025d906001610ff7565b9261026a9392919061100f565b61027391611039565b60f81c610671565b92506102e38a8a61028d846005610fba565b610298906001610ff7565b6102a3906001610ff7565b906102af856005610fba565b6102ba906001610ff7565b6102c5906005610ff7565b926102d29392919061100f565b6102db91611081565b60e01c61075a565b6001546040517fd5bade0700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff8416602483015292945091169063d5bade0790604401600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050508061038c906110c7565b9050610215565b505050610595565b8160ff166001036105955760008060008060005b8560ff1681101561058f576103e18c8c6103ca846009610fba565b6103d5906001610ff7565b90610247856009610fba565b94506104158c8c6103f3846009610fba565b6103fe906001610ff7565b610409906001610ff7565b906102af856009610fba565b935061047d8c8c610427846009610fba565b610432906001610ff7565b61043d906005610ff7565b90610449856009610fba565b610454906001610ff7565b61045f906007610ff7565b9261046c9392919061100f565b610475916110ff565b60f01c610784565b92506104c78c8c61048f846009610fba565b61049a906001610ff7565b6104a5906007610ff7565b906104b1856009610fba565b6104bc906001610ff7565b61045f906009610ff7565b6001546040517f71ea920500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301526fffffffffffffffffffffffffffffffff8816602483015267ffffffffffffffff8088166044840152841660648301529294509116906371ea920590608401600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b5050505080610588906110c7565b90506103af565b50505050505b50505050915050805190602001f35b6105da6105b236600461115b565b60006020819052908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6105da61061136600461115b565b610671565b61062961062436600461119a565b6107a6565b005b6001546105da9073ffffffffffffffffffffffffffffffffffffffff1681565b6106296106593660046111b5565b6108e5565b61062961066c36600461119a565b610abd565b6040805160a08101825273420000000000000000000000000000000000000681527368f180fcce6836688e9084f035309e29bf0a2095602082015273871f2f2ff935fd1ed867842ff2a7bfd051a5e527918101919091527394b008aa00579c1307b0ef2c499ad98a8ce58e5860608201527342000000000000000000000000000000000000426080820152600090600560ff8416106107385760ff831660009081526020819052604090205473ffffffffffffffffffffffffffffffffffffffff16610753565b808360ff166005811061074d5761074d610f5c565b60200201515b9392505050565b600061076a601f8316600a611308565b61077e906307ffffff600585901c16610fba565b92915050565b6000610794601f8316600a61131a565b61077e906107ff600585901c16610fba565b6001546040517f24d7806c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116906324d7806c90602401602060405180830381865afa158015610814573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108389190610f3a565b61089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e0000000000000000000000604482015260640161016b565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6001546040517f24d7806c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116906324d7806c90602401602060405180830381865afa158015610953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190610f3a565b6109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e0000000000000000000000604482015260640161016b565b60006109e883610671565b73ffffffffffffffffffffffffffffffffffffffff1614610a65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f576f6f7261636c6556325a69703a202169645f5345545f414c52454144590000604482015260640161016b565b60ff91909116600090815260208190526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6001546040517f24d7806c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116906324d7806c90602401602060405180830381865afa158015610b2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4f9190610f3a565b610bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e0000000000000000000000604482015260640161016b565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee03610bf357610bf03347610c95565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610c60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c84919061132a565b9050610c91823383610da4565b5050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051610ccc9190611343565b60006040518083038185875af1925050503d8060008114610d09576040519150601f19603f3d011682016040523d82523d6000602084013e610d0e565b606091505b5050905080610d9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c6564000000000000000000000000606482015260840161016b565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610e3b9190611343565b6000604051808303816000865af19150503d8060008114610e78576040519150601f19603f3d011682016040523d82523d6000602084013e610e7d565b606091505b5091509150818015610ea7575080511580610ea7575080806020019051810190610ea79190610f3a565b610f33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c656400000000000000000000000000000000000000606482015260840161016b565b5050505050565b600060208284031215610f4c57600080fd5b8151801515811461075357600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610ff257610ff2610f8b565b500290565b6000821982111561100a5761100a610f8b565b500190565b6000808585111561101f57600080fd5b8386111561102c57600080fd5b5050820193919092039150565b7fff0000000000000000000000000000000000000000000000000000000000000081358181169160018510156110795780818660010360031b1b83161692505b505092915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081358181169160048510156110795760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110f8576110f8610f8b565b5060010190565b7fffff00000000000000000000000000000000000000000000000000000000000081358181169160028510156110795760029490940360031b84901b1690921692915050565b803560ff8116811461115657600080fd5b919050565b60006020828403121561116d57600080fd5b61075382611145565b803573ffffffffffffffffffffffffffffffffffffffff8116811461115657600080fd5b6000602082840312156111ac57600080fd5b61075382611176565b600080604083850312156111c857600080fd5b6111d183611145565b91506111df60208401611176565b90509250929050565b600181815b8085111561124157817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561122757611227610f8b565b8085161561123457918102915b93841c93908002906111ed565b509250929050565b6000826112585750600161077e565b816112655750600061077e565b816001811461127b5760028114611285576112a1565b600191505061077e565b60ff84111561129657611296610f8b565b50506001821b61077e565b5060208310610133831016604e8410600b84101617156112c4575081810a61077e565b6112ce83836111e8565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561130057611300610f8b565b029392505050565b600061075363ffffffff841683611249565b600061075361ffff841683611249565b60006020828403121561133c57600080fd5b5051919050565b6000825160005b81811015611364576020818601810151858301520161134a565b81811115611373576000828501525b50919091019291505056fea26469706673582212205bf0a72a8468ea8fda59643946c001b3855db5d8a8538c494be85f6f554b14e364736f6c634300080e0033000000000000000000000000464959ad46e64046b891f562cff202a465d522f3

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100715760003560e01c8063bc8530f911610050578063bc8530f91461062b578063c32025a41461064b578063e1a4e72a1461065e57610071565b806269dc6d146105a45780635ab2566c14610603578063a1ae849014610616575b6001546040517f24d7806c000000000000000000000000000000000000000000000000000000008152336004820152600091369160609173ffffffffffffffffffffffffffffffffffffffff16906324d7806c90602401602060405180830381865afa1580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101099190610f3a565b610174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e000000000000000000000060448201526064015b60405180910390fd5b81806101dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c6556325a69703a202163616c6c646174610000000000000000604482015260640161016b565b6000848460008181106101f1576101f1610f5c565b919091013560f881901c925060fe1c9050603f8216600082900361039b5760008060005b8360ff168110156103935761027b8a8a610230846005610fba565b61023b906001610ff7565b90610247856005610fba565b610252906001610ff7565b61025d906001610ff7565b9261026a9392919061100f565b61027391611039565b60f81c610671565b92506102e38a8a61028d846005610fba565b610298906001610ff7565b6102a3906001610ff7565b906102af856005610fba565b6102ba906001610ff7565b6102c5906005610ff7565b926102d29392919061100f565b6102db91611081565b60e01c61075a565b6001546040517fd5bade0700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff8416602483015292945091169063d5bade0790604401600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050508061038c906110c7565b9050610215565b505050610595565b8160ff166001036105955760008060008060005b8560ff1681101561058f576103e18c8c6103ca846009610fba565b6103d5906001610ff7565b90610247856009610fba565b94506104158c8c6103f3846009610fba565b6103fe906001610ff7565b610409906001610ff7565b906102af856009610fba565b935061047d8c8c610427846009610fba565b610432906001610ff7565b61043d906005610ff7565b90610449856009610fba565b610454906001610ff7565b61045f906007610ff7565b9261046c9392919061100f565b610475916110ff565b60f01c610784565b92506104c78c8c61048f846009610fba565b61049a906001610ff7565b6104a5906007610ff7565b906104b1856009610fba565b6104bc906001610ff7565b61045f906009610ff7565b6001546040517f71ea920500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301526fffffffffffffffffffffffffffffffff8816602483015267ffffffffffffffff8088166044840152841660648301529294509116906371ea920590608401600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b5050505080610588906110c7565b90506103af565b50505050505b50505050915050805190602001f35b6105da6105b236600461115b565b60006020819052908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6105da61061136600461115b565b610671565b61062961062436600461119a565b6107a6565b005b6001546105da9073ffffffffffffffffffffffffffffffffffffffff1681565b6106296106593660046111b5565b6108e5565b61062961066c36600461119a565b610abd565b6040805160a08101825273420000000000000000000000000000000000000681527368f180fcce6836688e9084f035309e29bf0a2095602082015273871f2f2ff935fd1ed867842ff2a7bfd051a5e527918101919091527394b008aa00579c1307b0ef2c499ad98a8ce58e5860608201527342000000000000000000000000000000000000426080820152600090600560ff8416106107385760ff831660009081526020819052604090205473ffffffffffffffffffffffffffffffffffffffff16610753565b808360ff166005811061074d5761074d610f5c565b60200201515b9392505050565b600061076a601f8316600a611308565b61077e906307ffffff600585901c16610fba565b92915050565b6000610794601f8316600a61131a565b61077e906107ff600585901c16610fba565b6001546040517f24d7806c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116906324d7806c90602401602060405180830381865afa158015610814573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108389190610f3a565b61089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e0000000000000000000000604482015260640161016b565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6001546040517f24d7806c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116906324d7806c90602401602060405180830381865afa158015610953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190610f3a565b6109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e0000000000000000000000604482015260640161016b565b60006109e883610671565b73ffffffffffffffffffffffffffffffffffffffff1614610a65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f576f6f7261636c6556325a69703a202169645f5345545f414c52454144590000604482015260640161016b565b60ff91909116600090815260208190526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6001546040517f24d7806c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116906324d7806c90602401602060405180830381865afa158015610b2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4f9190610f3a565b610bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f576f6f7261636c6556325a69703a202141646d696e0000000000000000000000604482015260640161016b565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee03610bf357610bf03347610c95565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610c60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c84919061132a565b9050610c91823383610da4565b5050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051610ccc9190611343565b60006040518083038185875af1925050503d8060008114610d09576040519150601f19603f3d011682016040523d82523d6000602084013e610d0e565b606091505b5050905080610d9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c6564000000000000000000000000606482015260840161016b565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610e3b9190611343565b6000604051808303816000865af19150503d8060008114610e78576040519150601f19603f3d011682016040523d82523d6000602084013e610e7d565b606091505b5091509150818015610ea7575080511580610ea7575080806020019051810190610ea79190610f3a565b610f33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c656400000000000000000000000000000000000000606482015260840161016b565b5050505050565b600060208284031215610f4c57600080fd5b8151801515811461075357600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610ff257610ff2610f8b565b500290565b6000821982111561100a5761100a610f8b565b500190565b6000808585111561101f57600080fd5b8386111561102c57600080fd5b5050820193919092039150565b7fff0000000000000000000000000000000000000000000000000000000000000081358181169160018510156110795780818660010360031b1b83161692505b505092915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081358181169160048510156110795760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110f8576110f8610f8b565b5060010190565b7fffff00000000000000000000000000000000000000000000000000000000000081358181169160028510156110795760029490940360031b84901b1690921692915050565b803560ff8116811461115657600080fd5b919050565b60006020828403121561116d57600080fd5b61075382611145565b803573ffffffffffffffffffffffffffffffffffffffff8116811461115657600080fd5b6000602082840312156111ac57600080fd5b61075382611176565b600080604083850312156111c857600080fd5b6111d183611145565b91506111df60208401611176565b90509250929050565b600181815b8085111561124157817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561122757611227610f8b565b8085161561123457918102915b93841c93908002906111ed565b509250929050565b6000826112585750600161077e565b816112655750600061077e565b816001811461127b5760028114611285576112a1565b600191505061077e565b60ff84111561129657611296610f8b565b50506001821b61077e565b5060208310610133831016604e8410600b84101617156112c4575081810a61077e565b6112ce83836111e8565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561130057611300610f8b565b029392505050565b600061075363ffffffff841683611249565b600061075361ffff841683611249565b60006020828403121561133c57600080fd5b5051919050565b6000825160005b81811015611364576020818601810151858301520161134a565b81811115611373576000828501525b50919091019291505056fea26469706673582212205bf0a72a8468ea8fda59643946c001b3855db5d8a8538c494be85f6f554b14e364736f6c634300080e0033

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

000000000000000000000000464959ad46e64046b891f562cff202a465d522f3

-----Decoded View---------------
Arg [0] : _wooracle (address): 0x464959aD46e64046B891F562cFF202a465D522F3

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000464959ad46e64046b891f562cff202a465d522f3


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
[ Download: CSV Export  ]
[ 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.