FTM Price: $0.47 (+0.28%)
Gas: 52 GWei

Contract

0x26c9C3f9e430FF1025946a2bC619ED0AAA0a8eE9
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Update320620552022-02-27 1:47:59732 days 16 hrs ago1645926479IN
0x26c9C3...AA0a8eE9
0 FTM0.06337031924.952
Update315677192022-02-21 1:14:45738 days 16 hrs ago1645406085IN
0x26c9C3...AA0a8eE9
0 FTM0.0120909176.4787
Update315565972022-02-20 22:29:53738 days 19 hrs ago1645396193IN
0x26c9C3...AA0a8eE9
0 FTM0.01543115225.2329
Update315562382022-02-20 22:21:56738 days 19 hrs ago1645395716IN
0x26c9C3...AA0a8eE9
0 FTM0.01296856189.289
Update315213622022-02-20 13:50:57739 days 3 hrs ago1645365057IN
0x26c9C3...AA0a8eE9
0 FTM0.01172289171.1072
Update315174952022-02-20 12:53:57739 days 4 hrs ago1645361637IN
0x26c9C3...AA0a8eE9
0 FTM0.0103018150.3649
Update314633682022-02-19 23:01:43739 days 18 hrs ago1645311703IN
0x26c9C3...AA0a8eE9
0 FTM0.01417274206.8651
Update314506182022-02-19 19:58:09739 days 21 hrs ago1645300689IN
0x26c9C3...AA0a8eE9
0 FTM0.01659081242.1592
Update314505972022-02-19 19:57:52739 days 21 hrs ago1645300672IN
0x26c9C3...AA0a8eE9
0 FTM0.01659081242.1592
Update314247472022-02-19 13:28:37740 days 4 hrs ago1645277317IN
0x26c9C3...AA0a8eE9
0 FTM0.018052263.4868
Update314129742022-02-19 10:14:12740 days 7 hrs ago1645265652IN
0x26c9C3...AA0a8eE9
0 FTM0.01106772161.5444
Update314124222022-02-19 10:06:35740 days 7 hrs ago1645265195IN
0x26c9C3...AA0a8eE9
0 FTM0.01016787148.4101
Update313784042022-02-19 1:46:26740 days 16 hrs ago1645235186IN
0x26c9C3...AA0a8eE9
0 FTM0.01050554153.3388
Update303207862022-02-08 2:06:09751 days 15 hrs ago1644285969IN
0x26c9C3...AA0a8eE9
0 FTM0.02274388281.4175
Update302738392022-02-07 14:06:27752 days 3 hrs ago1644242787IN
0x26c9C3...AA0a8eE9
0 FTM0.02102134260.104
Update301984712022-02-06 19:18:10752 days 22 hrs ago1644175090IN
0x26c9C3...AA0a8eE9
0 FTM0.02343731342.0907
Update301775492022-02-06 14:07:55753 days 3 hrs ago1644156475IN
0x26c9C3...AA0a8eE9
0 FTM0.02357136344.0473
Update301759442022-02-06 13:44:41753 days 4 hrs ago1644155081IN
0x26c9C3...AA0a8eE9
0 FTM0.02554901372.913
Update301294612022-02-06 2:05:26753 days 15 hrs ago1644113126IN
0x26c9C3...AA0a8eE9
0 FTM0.02916312360.8449
Update301049972022-02-05 20:09:43753 days 21 hrs ago1644091783IN
0x26c9C3...AA0a8eE9
0 FTM0.02117148309.0187
Update301049732022-02-05 20:09:21753 days 21 hrs ago1644091761IN
0x26c9C3...AA0a8eE9
0 FTM0.02081957303.8821
Update301042552022-02-05 19:59:16753 days 21 hrs ago1644091156IN
0x26c9C3...AA0a8eE9
0 FTM0.01995107291.2056
Update301019302022-02-05 19:25:13753 days 22 hrs ago1644089113IN
0x26c9C3...AA0a8eE9
0 FTM0.01908856278.6164
Update300802402022-02-05 14:09:22754 days 3 hrs ago1644070162IN
0x26c9C3...AA0a8eE9
0 FTM0.05075303740.7904
Update300801782022-02-05 14:08:19754 days 3 hrs ago1644070099IN
0x26c9C3...AA0a8eE9
0 FTM0.05861218855.5024
View all transactions

Latest 1 internal transaction

Parent Txn Hash Block From To Value
288474472022-01-23 19:50:03766 days 22 hrs ago1642967403  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Oracle

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 99999 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at ftmscan.com on 2022-01-27
*/

// File: @openzeppelin/contracts/utils/Context.sol



pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol



pragma solidity >=0.6.0 <0.8.0;


// File: contracts/owner/Operator.sol



pragma solidity 0.6.12;



contract Operator is Context, Ownable {
    address private _operator;

    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);

    constructor() internal {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);
    }

    function operator() public view returns (address) {
        return _operator;
    }

    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }

    function isOperator() public view returns (bool) {
        return _msgSender() == _operator;
    }

    function transferOperator(address newOperator_) public onlyOwner {
        _transferOperator(newOperator_);
    }

    function _transferOperator(address newOperator_) internal {
        require(newOperator_ != address(0), "operator: zero address given for new operator");
        emit OperatorTransferred(address(0), newOperator_);
        _operator = newOperator_;
    }
}
// File: contracts/interfaces/IUniswapV2Pair.sol


pragma solidity ^0.6.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint256 value);
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to);
    event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to);
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to) external returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}
// File: contracts/lib/Babylonian.sol


pragma solidity ^0.6.0;

library Babylonian {
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
        // else z = 0
    }
}
// File: contracts/lib/FixedPoint.sol


pragma solidity ^0.6.0;


// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
library FixedPoint {
    // range: [0, 2**112 - 1]
    // resolution: 1 / 2**112
    struct uq112x112 {
        uint224 _x;
    }

    // range: [0, 2**144 - 1]
    // resolution: 1 / 2**112
    struct uq144x112 {
        uint256 _x;
    }

    uint8 private constant RESOLUTION = 112;
    uint256 private constant Q112 = uint256(1) << RESOLUTION;
    uint256 private constant Q224 = Q112 << RESOLUTION;

    // encode a uint112 as a UQ112x112
    function encode(uint112 x) internal pure returns (uq112x112 memory) {
        return uq112x112(uint224(x) << RESOLUTION);
    }

    // encodes a uint144 as a UQ144x112
    function encode144(uint144 x) internal pure returns (uq144x112 memory) {
        return uq144x112(uint256(x) << RESOLUTION);
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function div(uq112x112 memory self, uint112 x) internal pure returns (uq112x112 memory) {
        require(x != 0, "FixedPoint: DIV_BY_ZERO");
        return uq112x112(self._x / uint224(x));
    }

    // multiply a UQ112x112 by a uint, returning a UQ144x112
    // reverts on overflow
    function mul(uq112x112 memory self, uint256 y) internal pure returns (uq144x112 memory) {
        uint256 z;
        require(y == 0 || (z = uint256(self._x) * y) / y == uint256(self._x), "FixedPoint: MULTIPLICATION_OVERFLOW");
        return uq144x112(z);
    }

    // returns a UQ112x112 which represents the ratio of the numerator to the denominator
    // equivalent to encode(numerator).div(denominator)
    function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {
        require(denominator > 0, "FixedPoint: DIV_BY_ZERO");
        return uq112x112((uint224(numerator) << RESOLUTION) / denominator);
    }

    // decode a UQ112x112 into a uint112 by truncating after the radix point
    function decode(uq112x112 memory self) internal pure returns (uint112) {
        return uint112(self._x >> RESOLUTION);
    }

    // decode a UQ144x112 into a uint144 by truncating after the radix point
    function decode144(uq144x112 memory self) internal pure returns (uint144) {
        return uint144(self._x >> RESOLUTION);
    }

    // take the reciprocal of a UQ112x112
    function reciprocal(uq112x112 memory self) internal pure returns (uq112x112 memory) {
        require(self._x != 0, "FixedPoint: ZERO_RECIPROCAL");
        return uq112x112(uint224(Q224 / self._x));
    }

    // square root of a UQ112x112
    function sqrt(uq112x112 memory self) internal pure returns (uq112x112 memory) {
        return uq112x112(uint224(Babylonian.sqrt(uint256(self._x)) << 56));
    }
}
// File: contracts/lib/UniswapV2OracleLibrary.sol


pragma solidity 0.6.12;



// library with helper methods for oracles that are concerned with computing average prices
library UniswapV2OracleLibrary {
    using FixedPoint for *;

    // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]
    function currentBlockTimestamp() internal view returns (uint32) {
        return uint32(block.timestamp % 2**32);
    }

    // produces the cumulative price using counterfactuals to save gas and avoid a call to sync.
    function currentCumulativePrices(address pair)
        internal
        view
        returns (
            uint256 price0Cumulative,
            uint256 price1Cumulative,
            uint32 blockTimestamp
        )
    {
        blockTimestamp = currentBlockTimestamp();
        price0Cumulative = IUniswapV2Pair(pair).price0CumulativeLast();
        price1Cumulative = IUniswapV2Pair(pair).price1CumulativeLast();

        // if time has elapsed since the last update on the pair, mock the accumulated price values
        (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IUniswapV2Pair(pair).getReserves();
        if (blockTimestampLast != blockTimestamp) {
            // subtraction overflow is desired
            uint32 timeElapsed = blockTimestamp - blockTimestampLast;
            // addition overflow is desired
            // counterfactual
            price0Cumulative += uint256(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;
            // counterfactual
            price1Cumulative += uint256(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;
        }
    }
}
// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// File: contracts/utils/Epoch.sol


pragma solidity ^0.6.0;



contract Epoch is Operator {
    using SafeMath for uint256;

    uint256 private period;
    uint256 private startTime;
    uint256 private lastEpochTime;
    uint256 private epoch;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        uint256 _period,
        uint256 _startTime,
        uint256 _startEpoch
    ) public {
        period = _period;
        startTime = _startTime;
        epoch = _startEpoch;
        lastEpochTime = startTime.sub(period);
    }

    /* ========== Modifier ========== */

    modifier checkStartTime {
        require(now >= startTime, 'Epoch: not started yet');

        _;
    }

    modifier checkEpoch {
        uint256 _nextEpochPoint = nextEpochPoint();
        if (now < _nextEpochPoint) {
            require(msg.sender == operator(), 'Epoch: only operator allowed for pre-epoch');
            _;
        } else {
            _;

            for (;;) {
                lastEpochTime = _nextEpochPoint;
                ++epoch;
                _nextEpochPoint = nextEpochPoint();
                if (now < _nextEpochPoint) break;
            }
        }
    }

    /* ========== VIEW FUNCTIONS ========== */

    function getCurrentEpoch() public view returns (uint256) {
        return epoch;
    }

    function getPeriod() public view returns (uint256) {
        return period;
    }

    function getStartTime() public view returns (uint256) {
        return startTime;
    }

    function getLastEpochTime() public view returns (uint256) {
        return lastEpochTime;
    }

    function nextEpochPoint() public view returns (uint256) {
        return lastEpochTime.add(period);
    }

    /* ========== GOVERNANCE ========== */

    function setPeriod(uint256 _period) external onlyOperator {
        require(_period >= 1 hours && _period <= 48 hours, '_period: out of range');
        period = _period;
    }

    function setEpoch(uint256 _epoch) external onlyOperator {
        epoch = _epoch;
    }
}
// File: contracts/Oracle.sol


pragma solidity 0.6.12;







/*
  ______                __       _______
 /_  __/___  ____ ___  / /_     / ____(_)___  ____ _____  ________
  / / / __ \/ __ `__ \/ __ \   / /_  / / __ \/ __ `/ __ \/ ___/ _ \
 / / / /_/ / / / / / / /_/ /  / __/ / / / / / /_/ / / / / /__/  __/
/_/  \____/_/ /_/ /_/_.___/  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/

    http://tomb.finance
*/
// fixed window oracle that recomputes the average price for the entire period once every period
// note that the price average is only guaranteed to be over at least 1 period, but may be over a longer period
contract Oracle is Epoch {
    using FixedPoint for *;
    using SafeMath for uint256;

    /* ========== STATE VARIABLES ========== */

    // uniswap
    address public token0;
    address public token1;
    IUniswapV2Pair public pair;

    // oracle
    uint32 public blockTimestampLast;
    uint256 public price0CumulativeLast;
    uint256 public price1CumulativeLast;
    FixedPoint.uq112x112 public price0Average;
    FixedPoint.uq112x112 public price1Average;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        IUniswapV2Pair _pair,
        uint256 _period,
        uint256 _startTime
    ) public Epoch(_period, _startTime, 0) {
        pair = _pair;
        token0 = pair.token0();
        token1 = pair.token1();
        price0CumulativeLast = pair.price0CumulativeLast(); // fetch the current accumulated price value (1 / 0)
        price1CumulativeLast = pair.price1CumulativeLast(); // fetch the current accumulated price value (0 / 1)
        uint112 reserve0;
        uint112 reserve1;
        (reserve0, reserve1, blockTimestampLast) = pair.getReserves();
        require(reserve0 != 0 && reserve1 != 0, "Oracle: NO_RESERVES"); // ensure that there's liquidity in the pair
    }

    /* ========== MUTABLE FUNCTIONS ========== */

    /** @dev Updates 1-day EMA price from Uniswap.  */
    function update() external checkEpoch {
        (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) = UniswapV2OracleLibrary.currentCumulativePrices(address(pair));
        uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired

        if (timeElapsed == 0) {
            // prevent divided by zero
            return;
        }

        // overflow is desired, casting never truncates
        // cumulative price is in (uq112x112 price * seconds) units so we simply wrap it after division by time elapsed
        price0Average = FixedPoint.uq112x112(uint224((price0Cumulative - price0CumulativeLast) / timeElapsed));
        price1Average = FixedPoint.uq112x112(uint224((price1Cumulative - price1CumulativeLast) / timeElapsed));

        price0CumulativeLast = price0Cumulative;
        price1CumulativeLast = price1Cumulative;
        blockTimestampLast = blockTimestamp;

        emit Updated(price0Cumulative, price1Cumulative);
    }

    // note this will always return 0 before update has been called successfully for the first time.
    function consult(address _token, uint256 _amountIn) external view returns (uint144 amountOut) {
        if (_token == token0) {
            amountOut = price0Average.mul(_amountIn).decode144();
        } else {
            require(_token == token1, "Oracle: INVALID_TOKEN");
            amountOut = price1Average.mul(_amountIn).decode144();
        }
    }

    function twap(address _token, uint256 _amountIn) external view returns (uint144 _amountOut) {
        (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) = UniswapV2OracleLibrary.currentCumulativePrices(address(pair));
        uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
        if (_token == token0) {
            _amountOut = FixedPoint.uq112x112(uint224((price0Cumulative - price0CumulativeLast) / timeElapsed)).mul(_amountIn).decode144();
        } else if (_token == token1) {
            _amountOut = FixedPoint.uq112x112(uint224((price1Cumulative - price1CumulativeLast) / timeElapsed)).mul(_amountIn).decode144();
        }
    }

    event Updated(uint256 price0CumulativeLast, uint256 price1CumulativeLast);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUniswapV2Pair","name":"_pair","type":"address"},{"internalType":"uint256","name":"_period","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price0CumulativeLast","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price1CumulativeLast","type":"uint256"}],"name":"Updated","type":"event"},{"inputs":[],"name":"blockTimestampLast","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"consult","outputs":[{"internalType":"uint144","name":"amountOut","type":"uint144"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastEpochTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextEpochPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price0Average","outputs":[{"internalType":"uint224","name":"_x","type":"uint224"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price1Average","outputs":[{"internalType":"uint224","name":"_x","type":"uint224"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_epoch","type":"uint256"}],"name":"setEpoch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"setPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"twap","outputs":[{"internalType":"uint144","name":"_amountOut","type":"uint144"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162001d1638038062001d16833981810160405260608110156200003757600080fd5b508051602082015160409092015190919081816000806200005762000462565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000ab62000462565b600180546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36002839055600382905560058190556200011e828462000466602090811b6200113617901c565b6004908155600880546001600160a01b0319166001600160a01b03898116919091179182905560408051630dfe168160e01b81529051929091169550630dfe16819450808301935060209290829003018186803b1580156200017f57600080fd5b505afa15801562000194573d6000803e3d6000fd5b505050506040513d6020811015620001ab57600080fd5b5051600680546001600160a01b0319166001600160a01b039283161790556008546040805163d21220a760e01b81529051919092169163d21220a7916004808301926020929190829003018186803b1580156200020757600080fd5b505afa1580156200021c573d6000803e3d6000fd5b505050506040513d60208110156200023357600080fd5b5051600780546001600160a01b0319166001600160a01b0392831617905560085460408051635909c0d560e01b815290519190921691635909c0d5916004808301926020929190829003018186803b1580156200028f57600080fd5b505afa158015620002a4573d6000803e3d6000fd5b505050506040513d6020811015620002bb57600080fd5b505160095560085460408051635a3d549360e01b815290516001600160a01b0390921691635a3d549391600480820192602092909190829003018186803b1580156200030657600080fd5b505afa1580156200031b573d6000803e3d6000fd5b505050506040513d60208110156200033257600080fd5b5051600a5560085460408051630240bc6b60e21b8152905160009283926001600160a01b0390911691630902f1ac91600480820192606092909190829003018186803b1580156200038257600080fd5b505afa15801562000397573d6000803e3d6000fd5b505050506040513d6060811015620003ae57600080fd5b50805160208201516040909201516008805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055925090506001600160701b038216158015906200040557506001600160701b03811615155b62000457576040805162461bcd60e51b815260206004820152601360248201527f4f7261636c653a204e4f5f524553455256455300000000000000000000000000604482015290519081900360640190fd5b5050505050620004c4565b3390565b600082821115620004be576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b61184280620004d46000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063ba5224581161008c578063c828371e11610066578063c828371e146103be578063d21220a7146103c6578063f2fde38b146103ce57610198565b8063ba5224581461038d578063c5700a0214610395578063c5967c26146103b657610198565b8063a6bb4539116100bd578063a6bb453914610375578063a8aa1b311461037d578063b97dd9e21461038557610198565b8063715018a61461035d5780638da5cb5b14610365578063a2e620451461036d57610198565b80634456eda2116101455780635a3d54931161011f5780635a3d5493146102e35780635e6aaf2c146102eb5780636808a1281461032457610198565b80634456eda2146102b7578063570ca735146102d35780635909c0d5146102db57610198565b80631ed24195116101765780631ed241951461020a57806329605e77146102245780633ddac9531461025757610198565b80630ceb2cef1461019d5780630dfe1681146101bc5780630f3a9f65146101ed575b600080fd5b6101ba600480360360208110156101b357600080fd5b5035610401565b005b6101c4610476565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101ba6004803603602081101561020357600080fd5b5035610492565b610212610587565b60408051918252519081900360200190f35b6101ba6004803603602081101561023a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661058d565b6102906004803603604081101561026d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610641565b6040805171ffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102bf61077d565b604080519115158252519081900360200190f35b6101c46107bd565b6102126107d9565b6102126107df565b6102f36107e5565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102906004803603604081101561033a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610809565b6101ba61092c565b6101c4610a43565b6101ba610a5f565b6102f3610ee5565b6101c4610f09565b610212610f25565b610212610f2b565b61039d610f31565b6040805163ffffffff9092168252519081900360200190f35b610212610f55565b610212610f73565b6101c4610f79565b6101ba600480360360208110156103e457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610f95565b60015473ffffffffffffffffffffffffffffffffffffffff163314610471576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806117c66024913960400191505060405180910390fd5b600555565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff163314610502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806117c66024913960400191505060405180910390fd5b610e10811015801561051757506202a3008111155b61058257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5f706572696f643a206f7574206f662072616e67650000000000000000000000604482015290519081900360640190fd5b600255565b60025490565b6105956111ad565b73ffffffffffffffffffffffffffffffffffffffff166105b3610a43565b73ffffffffffffffffffffffffffffffffffffffff161461063557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61063e816111b1565b50565b60065460009073ffffffffffffffffffffffffffffffffffffffff848116911614156106af576040805160208101909152600b547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681526106a8906106a390846112a7565b611354565b9050610777565b60075473ffffffffffffffffffffffffffffffffffffffff84811691161461073857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f7261636c653a20494e56414c49445f544f4b454e0000000000000000000000604482015290519081900360640190fd5b6040805160208101909152600c547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152610774906106a390846112a7565b90505b92915050565b60015460009073ffffffffffffffffffffffffffffffffffffffff166107a16111ad565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b60015473ffffffffffffffffffffffffffffffffffffffff1690565b60095481565b600a5481565b600c547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681565b6008546000908190819081906108349073ffffffffffffffffffffffffffffffffffffffff1661135b565b600854600654939650919450925063ffffffff740100000000000000000000000000000000000000009091041682039073ffffffffffffffffffffffffffffffffffffffff888116911614156108d7576108d06106a38760405180602001604052808563ffffffff166009548a03816108a957fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169052906112a7565b9450610922565b60075473ffffffffffffffffffffffffffffffffffffffff888116911614156109225761091f6106a38760405180602001604052808563ffffffff16600a548903816108a957fe5b94505b5050505092915050565b6109346111ad565b73ffffffffffffffffffffffffffffffffffffffff16610952610a43565b73ffffffffffffffffffffffffffffffffffffffff16146109d457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a69610f55565b905080421015610cdf57610a7b6107bd565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610afe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061176f602a913960400191505060405180910390fd5b60085460009081908190610b279073ffffffffffffffffffffffffffffffffffffffff1661135b565b600854929550909350915063ffffffff7401000000000000000000000000000000000000000090910481168203908116610b645750505050610cda565b60405180602001604052808263ffffffff16600954870381610b8257fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600b80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556040805160208101909152600a54819063ffffffff841690860381610bf657fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600c80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556009849055600a839055600880547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff851602179055604080518581526020810185905281517fd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902929181900390910190a1505050505b61063e565b60085460009081908190610d089073ffffffffffffffffffffffffffffffffffffffff1661135b565b600854929550909350915063ffffffff7401000000000000000000000000000000000000000090910481168203908116610d455750505050610ebb565b60405180602001604052808263ffffffff16600954870381610d6357fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600b80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556040805160208101909152600a54819063ffffffff841690860381610dd757fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600c80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556009849055600a839055600880547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff851602179055604080518581526020810185905281517fd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902929181900390910190a1505050505b6004819055600580546001019055610ed1610f55565b905080421015610ee05761063e565b610ebb565b600b547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60055490565b60045490565b60085474010000000000000000000000000000000000000000900463ffffffff1681565b6000610f6e6002546004546115ad90919063ffffffff16565b905090565b60035490565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b610f9d6111ad565b73ffffffffffffffffffffffffffffffffffffffff16610fbb610a43565b73ffffffffffffffffffffffffffffffffffffffff161461103d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166110a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806117496026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000828211156111a757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b73ffffffffffffffffffffffffffffffffffffffff811661121d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180611799602d913960400191505060405180910390fd5b60405173ffffffffffffffffffffffffffffffffffffffff8216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6112af611723565b60008215806112ea57505082517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16828102908382816112e757fe5b04145b61133f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806117ea6023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b6000806000611368611621565b90508373ffffffffffffffffffffffffffffffffffffffff16635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b1580156113b057600080fd5b505afa1580156113c4573d6000803e3d6000fd5b505050506040513d60208110156113da57600080fd5b5051604080517f5a3d5493000000000000000000000000000000000000000000000000000000008152905191945073ffffffffffffffffffffffffffffffffffffffff861691635a3d549391600480820192602092909190829003018186803b15801561144657600080fd5b505afa15801561145a573d6000803e3d6000fd5b505050506040513d602081101561147057600080fd5b5051604080517f0902f1ac00000000000000000000000000000000000000000000000000000000815290519193506000918291829173ffffffffffffffffffffffffffffffffffffffff891691630902f1ac916004808301926060929190829003018186803b1580156114e257600080fd5b505afa1580156114f6573d6000803e3d6000fd5b505050506040513d606081101561150c57600080fd5b5080516020820151604090920151909450909250905063ffffffff808216908516146115a35780840363ffffffff8116611546848661162b565b517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602969096019563ffffffff811661157c858561162b565b517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16029590950194505b5050509193909250565b60008282018381101561077457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b63ffffffff421690565b611633611736565b6000826dffffffffffffffffffffffffffff16116116b257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806dffffffffffffffffffffffffffff84167bffffffffffffffffffffffffffff0000000000000000000000000000607087901b16816116f957fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16815250905092915050565b6040518060200160405280600081525090565b6040805160208101909152600081529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345706f63683a206f6e6c79206f70657261746f7220616c6c6f77656420666f72207072652d65706f63686f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f726f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f724669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a2646970667358221220b92389a3619532825da5885ccb06f447dbc932212cf53994b2db873b13c9930164736f6c634300060c0033000000000000000000000000dc71a6160322ad78dab0abb47c7a581cfe9709ee00000000000000000000000000000000000000000000000000000000000054600000000000000000000000000000000000000000000000000000000061edb3c0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063ba5224581161008c578063c828371e11610066578063c828371e146103be578063d21220a7146103c6578063f2fde38b146103ce57610198565b8063ba5224581461038d578063c5700a0214610395578063c5967c26146103b657610198565b8063a6bb4539116100bd578063a6bb453914610375578063a8aa1b311461037d578063b97dd9e21461038557610198565b8063715018a61461035d5780638da5cb5b14610365578063a2e620451461036d57610198565b80634456eda2116101455780635a3d54931161011f5780635a3d5493146102e35780635e6aaf2c146102eb5780636808a1281461032457610198565b80634456eda2146102b7578063570ca735146102d35780635909c0d5146102db57610198565b80631ed24195116101765780631ed241951461020a57806329605e77146102245780633ddac9531461025757610198565b80630ceb2cef1461019d5780630dfe1681146101bc5780630f3a9f65146101ed575b600080fd5b6101ba600480360360208110156101b357600080fd5b5035610401565b005b6101c4610476565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101ba6004803603602081101561020357600080fd5b5035610492565b610212610587565b60408051918252519081900360200190f35b6101ba6004803603602081101561023a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661058d565b6102906004803603604081101561026d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610641565b6040805171ffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102bf61077d565b604080519115158252519081900360200190f35b6101c46107bd565b6102126107d9565b6102126107df565b6102f36107e5565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102906004803603604081101561033a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610809565b6101ba61092c565b6101c4610a43565b6101ba610a5f565b6102f3610ee5565b6101c4610f09565b610212610f25565b610212610f2b565b61039d610f31565b6040805163ffffffff9092168252519081900360200190f35b610212610f55565b610212610f73565b6101c4610f79565b6101ba600480360360208110156103e457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610f95565b60015473ffffffffffffffffffffffffffffffffffffffff163314610471576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806117c66024913960400191505060405180910390fd5b600555565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff163314610502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806117c66024913960400191505060405180910390fd5b610e10811015801561051757506202a3008111155b61058257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5f706572696f643a206f7574206f662072616e67650000000000000000000000604482015290519081900360640190fd5b600255565b60025490565b6105956111ad565b73ffffffffffffffffffffffffffffffffffffffff166105b3610a43565b73ffffffffffffffffffffffffffffffffffffffff161461063557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61063e816111b1565b50565b60065460009073ffffffffffffffffffffffffffffffffffffffff848116911614156106af576040805160208101909152600b547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681526106a8906106a390846112a7565b611354565b9050610777565b60075473ffffffffffffffffffffffffffffffffffffffff84811691161461073857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4f7261636c653a20494e56414c49445f544f4b454e0000000000000000000000604482015290519081900360640190fd5b6040805160208101909152600c547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152610774906106a390846112a7565b90505b92915050565b60015460009073ffffffffffffffffffffffffffffffffffffffff166107a16111ad565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b60015473ffffffffffffffffffffffffffffffffffffffff1690565b60095481565b600a5481565b600c547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681565b6008546000908190819081906108349073ffffffffffffffffffffffffffffffffffffffff1661135b565b600854600654939650919450925063ffffffff740100000000000000000000000000000000000000009091041682039073ffffffffffffffffffffffffffffffffffffffff888116911614156108d7576108d06106a38760405180602001604052808563ffffffff166009548a03816108a957fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169052906112a7565b9450610922565b60075473ffffffffffffffffffffffffffffffffffffffff888116911614156109225761091f6106a38760405180602001604052808563ffffffff16600a548903816108a957fe5b94505b5050505092915050565b6109346111ad565b73ffffffffffffffffffffffffffffffffffffffff16610952610a43565b73ffffffffffffffffffffffffffffffffffffffff16146109d457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a69610f55565b905080421015610cdf57610a7b6107bd565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610afe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061176f602a913960400191505060405180910390fd5b60085460009081908190610b279073ffffffffffffffffffffffffffffffffffffffff1661135b565b600854929550909350915063ffffffff7401000000000000000000000000000000000000000090910481168203908116610b645750505050610cda565b60405180602001604052808263ffffffff16600954870381610b8257fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600b80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556040805160208101909152600a54819063ffffffff841690860381610bf657fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600c80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556009849055600a839055600880547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff851602179055604080518581526020810185905281517fd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902929181900390910190a1505050505b61063e565b60085460009081908190610d089073ffffffffffffffffffffffffffffffffffffffff1661135b565b600854929550909350915063ffffffff7401000000000000000000000000000000000000000090910481168203908116610d455750505050610ebb565b60405180602001604052808263ffffffff16600954870381610d6357fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600b80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556040805160208101909152600a54819063ffffffff841690860381610dd757fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081169091529051600c80547fffffffff0000000000000000000000000000000000000000000000000000000016919092161790556009849055600a839055600880547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff851602179055604080518581526020810185905281517fd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902929181900390910190a1505050505b6004819055600580546001019055610ed1610f55565b905080421015610ee05761063e565b610ebb565b600b547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60055490565b60045490565b60085474010000000000000000000000000000000000000000900463ffffffff1681565b6000610f6e6002546004546115ad90919063ffffffff16565b905090565b60035490565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b610f9d6111ad565b73ffffffffffffffffffffffffffffffffffffffff16610fbb610a43565b73ffffffffffffffffffffffffffffffffffffffff161461103d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166110a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806117496026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000828211156111a757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b73ffffffffffffffffffffffffffffffffffffffff811661121d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180611799602d913960400191505060405180910390fd5b60405173ffffffffffffffffffffffffffffffffffffffff8216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6112af611723565b60008215806112ea57505082517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16828102908382816112e757fe5b04145b61133f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806117ea6023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b6000806000611368611621565b90508373ffffffffffffffffffffffffffffffffffffffff16635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b1580156113b057600080fd5b505afa1580156113c4573d6000803e3d6000fd5b505050506040513d60208110156113da57600080fd5b5051604080517f5a3d5493000000000000000000000000000000000000000000000000000000008152905191945073ffffffffffffffffffffffffffffffffffffffff861691635a3d549391600480820192602092909190829003018186803b15801561144657600080fd5b505afa15801561145a573d6000803e3d6000fd5b505050506040513d602081101561147057600080fd5b5051604080517f0902f1ac00000000000000000000000000000000000000000000000000000000815290519193506000918291829173ffffffffffffffffffffffffffffffffffffffff891691630902f1ac916004808301926060929190829003018186803b1580156114e257600080fd5b505afa1580156114f6573d6000803e3d6000fd5b505050506040513d606081101561150c57600080fd5b5080516020820151604090920151909450909250905063ffffffff808216908516146115a35780840363ffffffff8116611546848661162b565b517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602969096019563ffffffff811661157c858561162b565b517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16029590950194505b5050509193909250565b60008282018381101561077457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b63ffffffff421690565b611633611736565b6000826dffffffffffffffffffffffffffff16116116b257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806dffffffffffffffffffffffffffff84167bffffffffffffffffffffffffffff0000000000000000000000000000607087901b16816116f957fe5b047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16815250905092915050565b6040518060200160405280600081525090565b6040805160208101909152600081529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345706f63683a206f6e6c79206f70657261746f7220616c6c6f77656420666f72207072652d65706f63686f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f726f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f724669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a2646970667358221220b92389a3619532825da5885ccb06f447dbc932212cf53994b2db873b13c9930164736f6c634300060c0033

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

000000000000000000000000dc71a6160322ad78dab0abb47c7a581cfe9709ee00000000000000000000000000000000000000000000000000000000000054600000000000000000000000000000000000000000000000000000000061edb3c0

-----Decoded View---------------
Arg [0] : _pair (address): 0xDc71A6160322ad78DaB0abb47C7A581cFE9709Ee
Arg [1] : _period (uint256): 21600
Arg [2] : _startTime (uint256): 1642968000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000dc71a6160322ad78dab0abb47c7a581cfe9709ee
Arg [1] : 0000000000000000000000000000000000000000000000000000000000005460
Arg [2] : 0000000000000000000000000000000000000000000000000000000061edb3c0


Deployed Bytecode Sourcemap

22592:3645:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21862:89;;;;;;;;;;;;;;;;-1:-1:-1;21862:89:0;;:::i;:::-;;22755:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21675:179;;;;;;;;;;;;;;;;-1:-1:-1;21675:179:0;;:::i;21221:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;4119:115;;;;;;;;;;;;;;;;-1:-1:-1;4119:115:0;;;;:::i;25075:363::-;;;;;;;;;;;;;;;;-1:-1:-1;25075:363:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4011:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;3783:85;;;:::i;22900:35::-;;;:::i;22942:::-;;;:::i;23032:41::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25446:706;;;;;;;;;;;;;;;;-1:-1:-1;25446:706:0;;;;;;;;;:::i;2752:148::-;;;:::i;2101:87::-;;;:::i;23957:1008::-;;;:::i;22984:41::-;;;:::i;22811:26::-;;;:::i;21125:88::-;;;:::i;21409:97::-;;;:::i;22861:32::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21514:107;;;:::i;21312:89::-;;;:::i;22783:21::-;;;:::i;3055:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3055:244:0;;;;:::i;21862:89::-;3919:9;;:23;:9;3932:10;3919:23;3911:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21929:5:::1;:14:::0;21862:89::o;22755:21::-;;;;;;:::o;21675:179::-;3919:9;;:23;:9;3932:10;3919:23;3911:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21763:7:::1;21752;:18;;:41;;;;;21785:8;21774:7;:19;;21752:41;21744:75;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;21830:6;:16:::0;21675:179::o;21221:83::-;21290:6;;21221:83;:::o;4119:115::-;2332:12;:10;:12::i;:::-;2321:23;;:7;:5;:7::i;:::-;:23;;;2313:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4195:31:::1;4213:12;4195:17;:31::i;:::-;4119:115:::0;:::o;25075:363::-;25194:6;;25150:17;;25194:6;25184:16;;;25194:6;;25184:16;25180:251;;;25229:17;;;;;;;;;:13;:17;;;;;:40;;:28;;25247:9;25229:17;:28::i;:::-;:38;:40::i;:::-;25217:52;;25180:251;;;25320:6;;;25310:16;;;25320:6;;25310:16;25302:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25379:17;;;;;;;;;:13;:17;;;;;:40;;:28;;25397:9;25379:17;:28::i;:40::-;25367:52;;25180:251;25075:363;;;;:::o;4011:100::-;4094:9;;4054:4;;4094:9;;4078:12;:10;:12::i;:::-;:25;;;4071:32;;4011:100;:::o;3783:85::-;3851:9;;;;3783:85;:::o;22900:35::-;;;;:::o;22942:::-;;;;:::o;23032:41::-;;;;;;:::o;25446:706::-;25682:4;;25518:18;;;;;;;;25627:61;;25682:4;;25627:46;:61::i;:::-;25737:18;;25803:6;;25549:139;;-1:-1:-1;25549:139:0;;-1:-1:-1;25549:139:0;-1:-1:-1;25737:18:0;;;;;;25720:35;;;25803:6;25793:16;;;25803:6;;25793:16;25789:356;;;25839:113;:101;25930:9;25839:86;;;;;;;;25912:11;25868:55;;25888:20;;25869:16;:39;25868:55;;;;;;25839:86;;;;:90;;:101::i;:113::-;25826:126;;25789:356;;;25984:6;;;25974:16;;;25984:6;;25974:16;25970:175;;;26020:113;:101;26111:9;26020:86;;;;;;;;26093:11;26049:55;;26069:20;;26050:16;:39;26049:55;;;;26020:113;26007:126;;25970:175;25446:706;;;;;;;;:::o;2752:148::-;2332:12;:10;:12::i;:::-;2321:23;;:7;:5;:7::i;:::-;:23;;;2313:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2859:1:::1;2843:6:::0;;2822:40:::1;::::0;::::1;2843:6:::0;;::::1;::::0;2822:40:::1;::::0;2859:1;;2822:40:::1;2890:1;2873:19:::0;;;::::1;::::0;;2752:148::o;2101:87::-;2147:7;2174:6;;;2101:87;:::o;23957:1008::-;20603:23;20629:16;:14;:16::i;:::-;20603:42;;20666:15;20660:3;:21;20656:404;;;20720:10;:8;:10::i;:::-;20706:24;;:10;:24;;;20698:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24139:4:::1;::::0;24007:24:::1;::::0;;;;;24084:61:::1;::::0;24139:4:::1;;24084:46;:61::i;:::-;24194:18;::::0;24006:139;;-1:-1:-1;24006:139:0;;-1:-1:-1;24006:139:0;-1:-1:-1;24194:18:0::1;::::0;;;::::1;::::0;::::1;24177:35:::0;::::1;::::0;24252:16;::::1;24248:95;;24325:7;;;;;;24248:95;24549:86;;;;;;;;24622:11;24578:55;;24598:20;;24579:16;:39;24578:55;;;;;;24549:86;::::0;;::::1;::::0;;;24533:102;;:13:::1;:102:::0;;;::::1;::::0;;;::::1;;::::0;;24662:86:::1;::::0;;::::1;::::0;::::1;::::0;;;24711:20:::1;::::0;24662:86;;24691:55:::1;::::0;::::1;::::0;24692:39;::::1;24691:55:::0;::::1;;;;;24662:86;::::0;;::::1;::::0;;;24646:102;;:13:::1;:102:::0;;;::::1;::::0;;;::::1;;::::0;;24761:20:::1;:39:::0;;;24811:20:::1;:39:::0;;;24861:18:::1;:35:::0;;;::::1;::::0;::::1;::::0;::::1;;;::::0;;24914:43:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;20792:1;;;;;20656:404:::0;;;24139:4:::1;::::0;24007:24:::1;::::0;;;;;24084:61:::1;::::0;24139:4:::1;;24084:46;:61::i;:::-;24194:18;::::0;24006:139;;-1:-1:-1;24006:139:0;;-1:-1:-1;24006:139:0;-1:-1:-1;24194:18:0::1;::::0;;;::::1;::::0;::::1;24177:35:::0;::::1;::::0;24252:16;::::1;24248:95;;24325:7;;;;;;24248:95;24549:86;;;;;;;;24622:11;24578:55;;24598:20;;24579:16;:39;24578:55;;;;;;24549:86;::::0;;::::1;::::0;;;24533:102;;:13:::1;:102:::0;;;::::1;::::0;;;::::1;;::::0;;24662:86:::1;::::0;;::::1;::::0;::::1;::::0;;;24711:20:::1;::::0;24662:86;;24691:55:::1;::::0;::::1;::::0;24692:39;::::1;24691:55:::0;::::1;;;;;24662:86;::::0;;::::1;::::0;;;24646:102;;:13:::1;:102:::0;;;::::1;::::0;;;::::1;;::::0;;24761:20:::1;:39:::0;;;24811:20:::1;:39:::0;;;24861:18:::1;:35:::0;;;::::1;::::0;::::1;::::0;::::1;;;::::0;;24914:43:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;20826:1;;;;;20872:13:::0;:31;;;20924:5;20922:7;;;;;;20966:16;:14;:16::i;:::-;20948:34;;21011:15;21005:3;:21;21001:32;;;21028:5;;21001:32;20844:205;;22984:41;;;;;;:::o;22811:26::-;;;;;;:::o;21125:88::-;21200:5;;21125:88;:::o;21409:97::-;21485:13;;21409:97;:::o;22861:32::-;;;;;;;;;:::o;21514:107::-;21561:7;21588:25;21606:6;;21588:13;;:17;;:25;;;;:::i;:::-;21581:32;;21514:107;:::o;21312:89::-;21384:9;;21312:89;:::o;22783:21::-;;;;;;:::o;3055:244::-;2332:12;:10;:12::i;:::-;2321:23;;:7;:5;:7::i;:::-;:23;;;2313:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3144:22:::1;::::0;::::1;3136:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3246:6;::::0;;3225:38:::1;::::0;::::1;::::0;;::::1;::::0;3246:6;::::1;::::0;3225:38:::1;::::0;::::1;3274:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;3055:244::o;15628:158::-;15686:7;15719:1;15714;:6;;15706:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15773:5:0;;;15628:158::o;636:106::-;724:10;636:106;:::o;4242:257::-;4319:26;;;4311:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4411:45;;;;;;4439:1;;4411:45;;4439:1;;4411:45;4467:9;:24;;;;;;;;;;;;;;;4242:257::o;9075:265::-;9145:16;;:::i;:::-;9174:9;9202:6;;;:60;;-1:-1:-1;;9254:7:0;;9246:16;;9217:20;;;;9241:1;9217:20;9241:1;9212:30;;;;;:50;9202:60;9194:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9320:12;;;;;;;;;;;;;9075:265;-1:-1:-1;;;9075:265:0:o;10041:130::-;10141:7;8226:3;10141:21;;10041:130::o;11228:1136::-;11339:24;11378;11417:21;11483:23;:21;:23::i;:::-;11466:40;;11551:4;11536:41;;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11536:43:0;11609;;;;;;;;11536;;-1:-1:-1;11609:41:0;;;;;;:43;;;;;11536;;11609;;;;;;;;:41;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11609:43:0;11832:34;;;;;;;;11609:43;;-1:-1:-1;11767:16:0;;;;;;11832:32;;;;;;:34;;;;;;;;;;;;;;:32;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11832:34:0;;;;;;;;;;;;;-1:-1:-1;11832:34:0;;-1:-1:-1;11832:34:0;-1:-1:-1;11881:36:0;;;;;;;;11877:480;;12003:35;;;12149:65;;;12157:39;12177:8;12187;12157:19;:39::i;:::-;:42;12149:51;;:65;12129:85;;;;;12280:65;;;12288:39;12308:8;12318;12288:19;:39::i;:::-;:42;12280:51;;:65;12260:85;;;;;-1:-1:-1;11877:480:0;11228:1136;;;;;;;;:::o;15166:179::-;15224:7;15256:5;;;15280:6;;;;15272:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11001:121;11090:23;:15;:23;;11001:121::o;9496:246::-;9577:16;;:::i;:::-;9628:1;9614:11;:15;;;9606:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9675:59;;;;;;;;;;9685:48;;;9686:32;8226:3;9686:32;;;;9685:48;;;;;;9675:59;;;;;9668:66;;9496:246;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://b92389a3619532825da5885ccb06f447dbc932212cf53994b2db873b13c99301

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

Txn 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.