Contract 0xfb29BaCA83307264d00bd8A068f2d19463606608 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x810d125e76752f6c704e2d11bb83d5d4af77a806bb3ff3e11622cd5af5f3df1fUpdate272892212022-01-07 19:36:23273 days 2 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.013358514031
0x69ad353076fd6d3afd7852f74217f5f470bebcfcf7d2cf68c2e8020cb057ac2dUpdate272892142022-01-07 19:36:18273 days 2 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.015008117371
0x39f4a994fffd0bb57a6ae8c79302575dd3ff484c107ffbcd6e20bab97ad468edUpdate272892112022-01-07 19:36:16273 days 2 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.015008117371
0xb17b37bcc7d317727e6da7bccefbf8dc4c6cfacbc791f6bdb6706840f781b8c1Update272869132022-01-07 19:04:26273 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.011248350454
0xac5c5d05bb8eb752ce8e80e1075428a758da9586a9e1b497c0fc15dbbe35cc3dUpdate272869082022-01-07 19:04:22273 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.014823873706
0x3fa94bdc290156ce1414ca4db2dac852add0142fe21c0a00c44fed8509286404Update272869022022-01-07 19:04:18273 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.014823873706
0x48d66e2c1eaaa8a6efd457eabcef58c452a3d301b9b07e899aa17644248f3289Update272868932022-01-07 19:04:11273 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.014823873706
0xfa04551df60bb7444d128241f7534309baa0371aa12f2276a80a529b3bba4f81Update272868802022-01-07 19:04:01273 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.014839122454
0xa4689a72beca2cd2ef2725c98ff1427ba59caa296e3d8a8a086f4931f1cd9c42Update263157092021-12-28 18:45:33283 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.018689161217
0xfc1a297ec867ae7934756afd50472a393e8c0137562bc6c8cc6705fb4622c7cdUpdate263157072021-12-28 18:45:30283 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.021475551035
0x0d05a19c040170c5db49da6c2811eec18bac5fd5caeab706aff415a1bcb9317bUpdate262922892021-12-28 13:06:54283 days 9 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.018889965693
0xc2c116eb9f474047d69abd247e7e7f9ff4026c2705af50a9d018cb4e48e7144eUpdate262922852021-12-28 13:06:51283 days 9 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.018889965693
0x474b6ba3f5e9797f6f20b3376e80a96e886e7d7a464b42b0e3464a86c1b8941eUpdate262922372021-12-28 13:06:14283 days 9 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.018889965693
0x46c302ff6baa1d84ee824c9b22590cfbb408f56ca71cd90b6e5146c9602d46a8Update262922332021-12-28 13:06:11283 days 9 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.018885446781
0x51a821a2acd46735a0a7695d6a6dc4363b6fbc0f361747d23a1cd8030a1caab2Update262920142021-12-28 13:03:20283 days 9 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.02253634154
0x579025fbb1ac51020a95c5717c481809a7b71ca70293e5ee49871fb2d5d56aebUpdate262173202021-12-27 18:48:22284 days 3 hrs agoScarab Finance: Deployer IN  0xfb29baca83307264d00bd8a068f2d194636066080 FTM0.0254116112
0xc9c9e85f793ca599ddce3889b3bee444f86508607b853dea7c1df16ec6d172160x60806040261824072021-12-27 10:13:23284 days 12 hrs agoScarab Finance: Deployer IN  Contract Creation0 FTM0.24165287538
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xc9c9e85f793ca599ddce3889b3bee444f86508607b853dea7c1df16ec6d17216261824072021-12-27 10:13:23284 days 12 hrs ago Scarab Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xf201A50275Bd56c1F6347222d58F8099C5e7b3D5

Contract Name:
Oracle

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2021-12-23
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

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

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

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

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
    }

}

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

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

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

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

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

60806040523480156200001157600080fd5b50604051620016b0380380620016b0833981810160405260608110156200003757600080fd5b508051602082015160409092015190919081816000806200005762000462565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000ab62000462565b600180546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36002839055600382905560058190556200011e828462000466602090811b62000c5717901c565b6004908155600880546001600160a01b0319166001600160a01b03898116919091179182905560408051630dfe168160e01b81529051929091169550630dfe16819450808301935060209290829003018186803b1580156200017f57600080fd5b505afa15801562000194573d6000803e3d6000fd5b505050506040513d6020811015620001ab57600080fd5b5051600680546001600160a01b0319166001600160a01b039283161790556008546040805163d21220a760e01b81529051919092169163d21220a7916004808301926020929190829003018186803b1580156200020757600080fd5b505afa1580156200021c573d6000803e3d6000fd5b505050506040513d60208110156200023357600080fd5b5051600780546001600160a01b0319166001600160a01b0392831617905560085460408051635909c0d560e01b815290519190921691635909c0d5916004808301926020929190829003018186803b1580156200028f57600080fd5b505afa158015620002a4573d6000803e3d6000fd5b505050506040513d6020811015620002bb57600080fd5b505160095560085460408051635a3d549360e01b815290516001600160a01b0390921691635a3d549391600480820192602092909190829003018186803b1580156200030657600080fd5b505afa1580156200031b573d6000803e3d6000fd5b505050506040513d60208110156200033257600080fd5b5051600a5560085460408051630240bc6b60e21b8152905160009283926001600160a01b0390911691630902f1ac91600480820192606092909190829003018186803b1580156200038257600080fd5b505afa15801562000397573d6000803e3d6000fd5b505050506040513d6060811015620003ae57600080fd5b50805160208201516040909201516008805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055925090506001600160701b038216158015906200040557506001600160701b03811615155b62000457576040805162461bcd60e51b815260206004820152601360248201527f4f7261636c653a204e4f5f524553455256455300000000000000000000000000604482015290519081900360640190fd5b5050505050620004c4565b3390565b600082821115620004be576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6111dc80620004d46000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063715018a6116100c3578063ba5224581161007c578063ba52245814610304578063c5700a021461030c578063c5967c261461032d578063c828371e14610335578063d21220a71461033d578063f2fde38b1461034557610158565b8063715018a6146102d45780638da5cb5b146102dc578063a2e62045146102e4578063a6bb4539146102ec578063a8aa1b31146102f4578063b97dd9e2146102fc57610158565b80634456eda2116101155780634456eda214610250578063570ca7351461026c5780635909c0d5146102745780635a3d54931461027c5780635e6aaf2c146102845780636808a128146102a857610158565b80630ceb2cef1461015d5780630dfe16811461017c5780630f3a9f65146101a05780631ed24195146101bd57806329605e77146101d75780633ddac953146101fd575b600080fd5b61017a6004803603602081101561017357600080fd5b503561036b565b005b6101846103b9565b604080516001600160a01b039092168252519081900360200190f35b61017a600480360360208110156101b657600080fd5b50356103c8565b6101c5610474565b60408051918252519081900360200190f35b61017a600480360360208110156101ed57600080fd5b50356001600160a01b031661047a565b6102296004803603604081101561021357600080fd5b506001600160a01b0381351690602001356104fa565b6040805171ffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102586105d0565b604080519115158252519081900360200190f35b6101846105f6565b6101c5610605565b6101c561060b565b61028c610611565b604080516001600160e01b039092168252519081900360200190f35b610229600480360360408110156102be57600080fd5b506001600160a01b038135169060200135610620565b61017a6106f6565b6101846107b4565b61017a6107c3565b61028c610ad3565b610184610ae2565b6101c5610af1565b6101c5610af7565b610314610afd565b6040805163ffffffff9092168252519081900360200190f35b6101c5610b10565b6101c5610b2e565b610184610b34565b61017a6004803603602081101561035b57600080fd5b50356001600160a01b0316610b43565b6001546001600160a01b031633146103b45760405162461bcd60e51b81526004018080602001828103825260248152602001806111606024913960400191505060405180910390fd5b600555565b6006546001600160a01b031681565b6001546001600160a01b031633146104115760405162461bcd60e51b81526004018080602001828103825260248152602001806111606024913960400191505060405180910390fd5b610e10811015801561042657506202a3008111155b61046f576040805162461bcd60e51b81526020600482015260156024820152745f706572696f643a206f7574206f662072616e676560581b604482015290519081900360640190fd5b600255565b60025490565b610482610cb4565b6001600160a01b03166104936107b4565b6001600160a01b0316146104ee576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6104f781610cb8565b50565b6006546000906001600160a01b0384811691161415610546576040805160208101909152600b546001600160e01b0316815261053f9061053a9084610d55565b610dd3565b90506105ca565b6007546001600160a01b038481169116146105a0576040805162461bcd60e51b815260206004820152601560248201527427b930b1b6329d1024a72b20a624a22faa27a5a2a760591b604482015290519081900360640190fd5b6040805160208101909152600c546001600160e01b031681526105c79061053a9084610d55565b90505b92915050565b6001546000906001600160a01b03166105e7610cb4565b6001600160a01b031614905090565b6001546001600160a01b031690565b60095481565b600a5481565b600c546001600160e01b031681565b60085460009081908190819061063e906001600160a01b0316610dda565b600854600654939650919450925063ffffffff600160a01b909104168203906001600160a01b03888116911614156106ae576106a761053a8760405180602001604052808563ffffffff166009548a038161069557fe5b046001600160e01b0316905290610d55565b94506106ec565b6007546001600160a01b03888116911614156106ec576106e961053a8760405180602001604052808563ffffffff16600a5489038161069557fe5b94505b5050505092915050565b6106fe610cb4565b6001600160a01b031661070f6107b4565b6001600160a01b03161461076a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60006107cd610b10565b90508042101561096e576107df6105f6565b6001600160a01b0316336001600160a01b03161461082e5760405162461bcd60e51b815260040180806020018281038252602a815260200180611109602a913960400191505060405180910390fd5b6008546000908190819061084a906001600160a01b0316610dda565b600854929550909350915063ffffffff600160a01b909104811682039081166108765750505050610969565b60405180602001604052808263ffffffff1660095487038161089457fe5b046001600160e01b039081169091529051600b80546001600160e01b031916919092161790556040805160208101909152600a54819063ffffffff8416908603816108db57fe5b046001600160e01b039081169091529051600c80546001600160e01b031916919092161790556009849055600a8390556008805463ffffffff60a01b1916600160a01b63ffffffff851602179055604080518581526020810185905281517fd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902929181900390910190a1505050505b6104f7565b6008546000908190819061098a906001600160a01b0316610dda565b600854929550909350915063ffffffff600160a01b909104811682039081166109b65750505050610aa9565b60405180602001604052808263ffffffff166009548703816109d457fe5b046001600160e01b039081169091529051600b80546001600160e01b031916919092161790556040805160208101909152600a54819063ffffffff841690860381610a1b57fe5b046001600160e01b039081169091529051600c80546001600160e01b031916919092161790556009849055600a8390556008805463ffffffff60a01b1916600160a01b63ffffffff851602179055604080518581526020810185905281517fd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902929181900390910190a1505050505b6004819055600580546001019055610abf610b10565b905080421015610ace576104f7565b610aa9565b600b546001600160e01b031681565b6008546001600160a01b031681565b60055490565b60045490565b600854600160a01b900463ffffffff1681565b6000610b29600254600454610fa990919063ffffffff16565b905090565b60035490565b6007546001600160a01b031681565b610b4b610cb4565b6001600160a01b0316610b5c6107b4565b6001600160a01b031614610bb7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610bfc5760405162461bcd60e51b81526004018080602001828103825260268152602001806110e36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115610cae576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b6001600160a01b038116610cfd5760405162461bcd60e51b815260040180806020018281038252602d815260200180611133602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b610d5d6110bd565b6000821580610d8357505082516001600160e01b031682810290838281610d8057fe5b04145b610dbe5760405162461bcd60e51b81526004018080602001828103825260238152602001806111846023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b6000806000610de7611003565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b158015610e2257600080fd5b505afa158015610e36573d6000803e3d6000fd5b505050506040513d6020811015610e4c57600080fd5b505160408051635a3d549360e01b815290519194506001600160a01b03861691635a3d549391600480820192602092909190829003018186803b158015610e9257600080fd5b505afa158015610ea6573d6000803e3d6000fd5b505050506040513d6020811015610ebc57600080fd5b505160408051630240bc6b60e21b81529051919350600091829182916001600160a01b03891691630902f1ac916004808301926060929190829003018186803b158015610f0857600080fd5b505afa158015610f1c573d6000803e3d6000fd5b505050506040513d6060811015610f3257600080fd5b5080516020820151604090920151909450909250905063ffffffff80821690851614610f9f5780840363ffffffff8116610f6c848661100d565b516001600160e01b031602969096019563ffffffff8116610f8d858561100d565b516001600160e01b0316029590950194505b5050509193909250565b6000828201838110156105c7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b63ffffffff421690565b6110156110d0565b6000826001600160701b031611611073576040805162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b16816110a857fe5b046001600160e01b0316815250905092915050565b6040518060200160405280600081525090565b6040805160208101909152600081529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345706f63683a206f6e6c79206f70657261746f7220616c6c6f77656420666f72207072652d65706f63686f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f726f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f724669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a2646970667358221220def9803b65b86f65490b6d1006b6d429a15a4b00bc8af9ff5983d255094d600b64736f6c634300060c003300000000000000000000000078e70ef4ee5cc72fc25a8bda4519c45594ccd8d400000000000000000000000000000000000000000000000000000000000054600000000000000000000000000000000000000000000000000000000061d096a0

Deployed ByteCode Sourcemap

19623:3645:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15027:89;;;;;;;;;;;;;;;;-1:-1:-1;15027:89:0;;:::i;:::-;;19786:21;;;:::i;:::-;;;;-1:-1:-1;;;;;19786:21:0;;;;;;;;;;;;;;14840:179;;;;;;;;;;;;;;;;-1:-1:-1;14840:179:0;;:::i;14386:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;2808:115;;;;;;;;;;;;;;;;-1:-1:-1;2808:115:0;-1:-1:-1;;;;;2808:115:0;;:::i;22106:363::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22106:363:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2700:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;2472:85;;;:::i;19931:35::-;;;:::i;19973:::-;;;:::i;20063:41::-;;;:::i;:::-;;;;-1:-1:-1;;;;;20063:41:0;;;;;;;;;;;;;;22477:706;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22477:706:0;;;;;;;;:::i;1610:148::-;;;:::i;959:87::-;;;:::i;20988:1008::-;;;:::i;20015:41::-;;;:::i;19842:26::-;;;:::i;14290:88::-;;;:::i;14574:97::-;;;:::i;19892:32::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14679:107;;;:::i;14477:89::-;;;:::i;19814:21::-;;;:::i;1913:244::-;;;;;;;;;;;;;;;;-1:-1:-1;1913:244:0;-1:-1:-1;;;;;1913:244:0;;:::i;15027:89::-;2608:9;;-1:-1:-1;;;;;2608:9:0;2621:10;2608:23;2600:72;;;;-1:-1:-1;;;2600:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15094:5:::1;:14:::0;15027:89::o;19786:21::-;;;-1:-1:-1;;;;;19786:21:0;;:::o;14840:179::-;2608:9;;-1:-1:-1;;;;;2608:9:0;2621:10;2608:23;2600:72;;;;-1:-1:-1;;;2600:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14928:7:::1;14917;:18;;:41;;;;;14950:8;14939:7;:19;;14917:41;14909:75;;;::::0;;-1:-1:-1;;;14909:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14909:75:0;;;;;;;;;;;;;::::1;;14995:6;:16:::0;14840:179::o;14386:83::-;14455:6;;14386:83;:::o;2808:115::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2884:31:::1;2902:12;2884:17;:31::i;:::-;2808:115:::0;:::o;22106:363::-;22225:6;;22181:17;;-1:-1:-1;;;;;22215:16:0;;;22225:6;;22215:16;22211:251;;;22260:17;;;;;;;;;:13;:17;-1:-1:-1;;;;;22260:17:0;;;:40;;:28;;22278:9;22260:17;:28::i;:::-;:38;:40::i;:::-;22248:52;;22211:251;;;22351:6;;-1:-1:-1;;;;;22341:16:0;;;22351:6;;22341:16;22333:50;;;;;-1:-1:-1;;;22333:50:0;;;;;;;;;;;;-1:-1:-1;;;22333:50:0;;;;;;;;;;;;;;;22410:17;;;;;;;;;:13;:17;-1:-1:-1;;;;;22410:17:0;;;:40;;:28;;22428:9;22410:17;:28::i;:40::-;22398:52;;22211:251;22106:363;;;;:::o;2700:100::-;2783:9;;2743:4;;-1:-1:-1;;;;;2783:9:0;2767:12;:10;:12::i;:::-;-1:-1:-1;;;;;2767:25:0;;2760:32;;2700:100;:::o;2472:85::-;2540:9;;-1:-1:-1;;;;;2540:9:0;2472:85;:::o;19931:35::-;;;;:::o;19973:::-;;;;:::o;20063:41::-;;;-1:-1:-1;;;;;20063:41:0;;:::o;22477:706::-;22713:4;;22549:18;;;;;;;;22658:61;;-1:-1:-1;;;;;22713:4:0;22658:46;:61::i;:::-;22768:18;;22834:6;;22580:139;;-1:-1:-1;22580:139:0;;-1:-1:-1;22580:139:0;-1:-1:-1;22768:18:0;-1:-1:-1;;;22768:18:0;;;;22751:35;;;-1:-1:-1;;;;;22824:16:0;;;22834:6;;22824:16;22820:356;;;22870:113;:101;22961:9;22870:86;;;;;;;;22943:11;22899:55;;22919:20;;22900:16;:39;22899:55;;;;;;-1:-1:-1;;;;;22870:86:0;;;:90;;:101::i;:113::-;22857:126;;22820:356;;;23015:6;;-1:-1:-1;;;;;23005:16:0;;;23015:6;;23005:16;23001:175;;;23051:113;:101;23142:9;23051:86;;;;;;;;23124:11;23080:55;;23100:20;;23081:16;:39;23080:55;;;;23051:113;23038:126;;23001:175;22477:706;;;;;;;;:::o;1610:148::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1717:1:::1;1701:6:::0;;1680:40:::1;::::0;-1:-1:-1;;;;;1701:6:0;;::::1;::::0;1680:40:::1;::::0;1717:1;;1680:40:::1;1748:1;1731:19:::0;;-1:-1:-1;;;;;;1731:19:0::1;::::0;;1610:148::o;959:87::-;1005:7;1032:6;-1:-1:-1;;;;;1032:6:0;959:87;:::o;20988:1008::-;13768:23;13794:16;:14;:16::i;:::-;13768:42;;13831:15;13825:3;:21;13821:404;;;13885:10;:8;:10::i;:::-;-1:-1:-1;;;;;13871:24:0;:10;-1:-1:-1;;;;;13871:24:0;;13863:79;;;;-1:-1:-1;;;13863:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21170:4:::1;::::0;21038:24:::1;::::0;;;;;21115:61:::1;::::0;-1:-1:-1;;;;;21170:4:0::1;21115:46;:61::i;:::-;21225:18;::::0;21037:139;;-1:-1:-1;21037:139:0;;-1:-1:-1;21037:139:0;-1:-1:-1;21225:18:0::1;-1:-1:-1::0;;;21225:18:0;;::::1;::::0;::::1;21208:35:::0;::::1;::::0;21283:16;::::1;21279:95;;21356:7;;;;;;21279:95;21580:86;;;;;;;;21653:11;21609:55;;21629:20;;21610:16;:39;21609:55;;;;;;-1:-1:-1::0;;;;;21580:86:0;;::::1;::::0;;;21564:102;;:13:::1;:102:::0;;-1:-1:-1;;;;;;21564:102:0::1;::::0;;;::::1;;::::0;;21693:86:::1;::::0;;::::1;::::0;::::1;::::0;;;21742:20:::1;::::0;21693:86;;21722:55:::1;::::0;::::1;::::0;21723:39;::::1;21722:55:::0;::::1;;;;;-1:-1:-1::0;;;;;21693:86:0;;::::1;::::0;;;21677:102;;:13:::1;:102:::0;;-1:-1:-1;;;;;;21677:102:0::1;::::0;;;::::1;;::::0;;21792:20:::1;:39:::0;;;21842:20:::1;:39:::0;;;21892:18:::1;:35:::0;;-1:-1:-1;;;;21892:35:0::1;-1:-1:-1::0;;;21892:35:0::1;::::0;::::1;;;::::0;;21945:43:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;13957:1;;;;;13821:404:::0;;;21170:4:::1;::::0;21038:24:::1;::::0;;;;;21115:61:::1;::::0;-1:-1:-1;;;;;21170:4:0::1;21115:46;:61::i;:::-;21225:18;::::0;21037:139;;-1:-1:-1;21037:139:0;;-1:-1:-1;21037:139:0;-1:-1:-1;21225:18:0::1;-1:-1:-1::0;;;21225:18:0;;::::1;::::0;::::1;21208:35:::0;::::1;::::0;21283:16;::::1;21279:95;;21356:7;;;;;;21279:95;21580:86;;;;;;;;21653:11;21609:55;;21629:20;;21610:16;:39;21609:55;;;;;;-1:-1:-1::0;;;;;21580:86:0;;::::1;::::0;;;21564:102;;:13:::1;:102:::0;;-1:-1:-1;;;;;;21564:102:0::1;::::0;;;::::1;;::::0;;21693:86:::1;::::0;;::::1;::::0;::::1;::::0;;;21742:20:::1;::::0;21693:86;;21722:55:::1;::::0;::::1;::::0;21723:39;::::1;21722:55:::0;::::1;;;;;-1:-1:-1::0;;;;;21693:86:0;;::::1;::::0;;;21677:102;;:13:::1;:102:::0;;-1:-1:-1;;;;;;21677:102:0::1;::::0;;;::::1;;::::0;;21792:20:::1;:39:::0;;;21842:20:::1;:39:::0;;;21892:18:::1;:35:::0;;-1:-1:-1;;;;21892:35:0::1;-1:-1:-1::0;;;21892:35:0::1;::::0;::::1;;;::::0;;21945:43:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;13991:1;;;;;14037:13:::0;:31;;;14089:5;14087:7;;;;;;14131:16;:14;:16::i;:::-;14113:34;;14176:15;14170:3;:21;14166:32;;;14193:5;;14166:32;14009:205;;20015:41;;;-1:-1:-1;;;;;20015:41:0;;:::o;19842:26::-;;;-1:-1:-1;;;;;19842:26:0;;:::o;14290:88::-;14365:5;;14290:88;:::o;14574:97::-;14650:13;;14574:97;:::o;19892:32::-;;;-1:-1:-1;;;19892:32:0;;;;;:::o;14679:107::-;14726:7;14753:25;14771:6;;14753:13;;:17;;:25;;;;:::i;:::-;14746:32;;14679:107;:::o;14477:89::-;14549:9;;14477:89;:::o;19814:21::-;;;-1:-1:-1;;;;;19814:21:0;;:::o;1913:244::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2002:22:0;::::1;1994:73;;;;-1:-1:-1::0;;;1994:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2104:6;::::0;;2083:38:::1;::::0;-1:-1:-1;;;;;2083:38:0;;::::1;::::0;2104:6;::::1;::::0;2083:38:::1;::::0;::::1;2132:6;:17:::0;;-1:-1:-1;;;;;;2132:17:0::1;-1:-1:-1::0;;;;;2132:17:0;;;::::1;::::0;;;::::1;::::0;;1913:244::o;5784:158::-;5842:7;5875:1;5870;:6;;5862:49;;;;;-1:-1:-1;;;5862:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5929:5:0;;;5784:158::o;95:106::-;183:10;95:106;:::o;2931:257::-;-1:-1:-1;;;;;3008:26:0;;3000:84;;;;-1:-1:-1;;;3000:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3100:45;;-1:-1:-1;;;;;3100:45:0;;;3128:1;;3100:45;;3128:1;;3100:45;3156:9;:24;;-1:-1:-1;;;;;;3156:24:0;-1:-1:-1;;;;;3156:24:0;;;;;;;;;;2931:257::o;11502:265::-;11572:16;;:::i;:::-;11601:9;11629:6;;;:60;;-1:-1:-1;;11681:7:0;;-1:-1:-1;;;;;11673:16:0;11644:20;;;;11668:1;11644:20;11668:1;11639:30;;;;;:50;11629:60;11621:108;;;;-1:-1:-1;;;11621:108:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11747:12;;;;;;;;;;;;;11502:265;-1:-1:-1;;;11502:265:0:o;12468:130::-;12568:7;10653:3;12568:21;;12468:130::o;18269:1136::-;18380:24;18419;18458:21;18524:23;:21;:23::i;:::-;18507:40;;18592:4;-1:-1:-1;;;;;18577:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18577:43:0;18650;;;-1:-1:-1;;;18650:43:0;;;;18577;;-1:-1:-1;;;;;;18650:41:0;;;;;:43;;;;;18577;;18650;;;;;;;;:41;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18650:43:0;18873:34;;;-1:-1:-1;;;18873:34:0;;;;18650:43;;-1:-1:-1;18808:16:0;;;;;;-1:-1:-1;;;;;18873:32:0;;;;;:34;;;;;;;;;;;;;;:32;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18873:34:0;;;;;;;;;;;;;-1:-1:-1;18873:34:0;;-1:-1:-1;18873:34:0;-1:-1:-1;18922:36:0;;;;;;;;18918:480;;19044:35;;;19190:65;;;19198:39;19218:8;19228;19198:19;:39::i;:::-;:42;-1:-1:-1;;;;;19190:51:0;:65;19170:85;;;;;19321:65;;;19329:39;19349:8;19359;19329:19;:39::i;:::-;:42;-1:-1:-1;;;;;19321:51:0;:65;19301:85;;;;;-1:-1:-1;18918:480:0;18269:1136;;;;;;;;:::o;5322:179::-;5380:7;5412:5;;;5436:6;;;;5428:46;;;;;-1:-1:-1;;;5428:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;18042:121;18131:23;:15;:23;;18042:121::o;11923:246::-;12004:16;;:::i;:::-;12055:1;12041:11;-1:-1:-1;;;;;12041:15:0;;12033:51;;;;;-1:-1:-1;;;12033:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12102:59;;;;;;;;;;-1:-1:-1;;;;;12112:48:0;;-1:-1:-1;;;10653:3:0;12113:32;;;;12112:48;;;;;;-1:-1:-1;;;;;12102:59:0;;;;12095:66;;11923:246;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://def9803b65b86f65490b6d1006b6d429a15a4b00bc8af9ff5983d255094d600b
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.