Contract 0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee3

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc0df56ea1f8a3ad9a999ce5583c83c669ffb791a5e13901c09432625761f98eeSet Gov124724962022-03-23 11:52:5954 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0027857100
0xe4915bb697fd42924431b05d975b149d1c9480d028bf3e172fbc08ad5fe24000Set Token Config124724922022-03-23 11:52:5154 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0091439100
0x1e7278fbfe49e399b08a132c0bc2b0e8e6aee00c932ab0e3b1f6d3ebfaa42d39Set Token Config124724892022-03-23 11:52:4454 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0091451100
0xebed7f4b161bbeb1790c0c65aa68ddbd5ff67da6d2a2e46b52552322a807ae42Set Token Config124724852022-03-23 11:52:3654 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0091451100
0x04f1217327815b4b8e3a8e3ba1c82e256e94cab0d487fa3a98bc72abf101f2f3Set Token Config124724822022-03-23 11:52:3054 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0071539100
0x327d9a799f5c715f40e989f24d2ac0f8a2880f1973f7400ba40f6fc8ef996ff3Set Token Config124724762022-03-23 11:52:1954 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0071539100
0xb8aa4cbfd31a3e9b714cd2e653ddff58114af17a6b125cf9221abfdd9a4048b6Set Token Config124724732022-03-23 11:52:1054 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0071539100
0x7c172fc049d8324087ecff457e4ed437a28fc6eb384ed421739550ea3507d77fSet Is Amm Enabl...124724702022-03-23 11:52:0354 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0029293100
0x7849f8df43e59dcf4ca1814449088375f6892cdf7eb2cfe81f5d73f6d389dd7cSet Secondary Pr...124724672022-03-23 11:51:5754 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0046671100
0x73b2671754772a4f0604a23401fc9c9bd459bcfc20207fa19a7193f259327d61Set Price Sample...124724632022-03-23 11:51:5054 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0028622100
0x6341549d15b89177703e514b245b1a137dc4ad08d88de013d16fe9656a2e320bSet Max Strict P...124724602022-03-23 11:51:4454 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  0x81b7e71a1d9e08a6ca016a0f4d6fa50dbce89ee30 AVAX0.0045817100
0xc653e2e45a2080f971befb71d730bced1e4ae81df9f0d1b61dbca901f06679db0x60806040124724572022-03-23 11:51:3754 days 3 hrs ago0x5f799f365fa8a2b60ac0429c48b153ca5a6f0cf8 IN  Contract Creation0 AVAX0.19019100
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

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

Contract Name:
VaultPriceFeed

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2022-03-22
*/

// Sources flattened with hardhat v2.9.1 https://hardhat.org

// File contracts/libraries/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// File contracts/core/interfaces/IVaultPriceFeed.sol


pragma solidity 0.6.12;

interface IVaultPriceFeed {
    function adjustmentBasisPoints(address _token) external view returns (uint256);
    function isAdjustmentAdditive(address _token) external view returns (bool);
    function setAdjustment(address _token, bool _isAdditive, uint256 _adjustmentBps) external;
    function setUseV2Pricing(bool _useV2Pricing) external;
    function setIsAmmEnabled(bool _isEnabled) external;
    function setIsSecondaryPriceEnabled(bool _isEnabled) external;
    function setSpreadBasisPoints(address _token, uint256 _spreadBasisPoints) external;
    function setSpreadThresholdBasisPoints(uint256 _spreadThresholdBasisPoints) external;
    function setFavorPrimaryPrice(bool _favorPrimaryPrice) external;
    function setPriceSampleSpace(uint256 _priceSampleSpace) external;
    function setMaxStrictPriceDeviation(uint256 _maxStrictPriceDeviation) external;
    function getPrice(address _token, bool _maximise, bool _includeAmmPrice, bool _useSwapPricing) external view returns (uint256);
    function getAmmPrice(address _token) external view returns (uint256);
    function getPrimaryPrice(address _token, bool _maximise) external view returns (uint256);
    function setTokenConfig(
        address _token,
        address _priceFeed,
        uint256 _priceDecimals,
        bool _isStrictStable
    ) external;
}


// File contracts/oracle/interfaces/IPriceFeed.sol


pragma solidity 0.6.12;

interface IPriceFeed {
    function description() external view returns (string memory);
    function aggregator() external view returns (address);
    function latestAnswer() external view returns (int256);
    function latestRound() external view returns (uint80);
    function getRoundData(uint80 roundId) external view returns (uint80, int256, uint256, uint256, uint80);
}


// File contracts/oracle/interfaces/ISecondaryPriceFeed.sol


pragma solidity 0.6.12;

interface ISecondaryPriceFeed {
    function getPrice(address _token, uint256 _referencePrice, bool _maximise) external view returns (uint256);
}


// File contracts/oracle/interfaces/IChainlinkFlags.sol


pragma solidity 0.6.12;

interface IChainlinkFlags {
  function getFlag(address) external view returns (bool);
}


// File contracts/amm/interfaces/IPancakePair.sol


pragma solidity >=0.5.0;

interface IPancakePair {
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
}


// File contracts/core/VaultPriceFeed.sol






pragma solidity 0.6.12;

contract VaultPriceFeed is IVaultPriceFeed {
    using SafeMath for uint256;

    uint256 public constant PRICE_PRECISION = 10 ** 30;
    uint256 public constant ONE_USD = PRICE_PRECISION;
    uint256 public constant BASIS_POINTS_DIVISOR = 10000;
    uint256 public constant MAX_SPREAD_BASIS_POINTS = 50;
    uint256 public constant MAX_ADJUSTMENT_INTERVAL = 2 hours;
    uint256 public constant MAX_ADJUSTMENT_BASIS_POINTS = 20;

    // Identifier of the Sequencer offline flag on the Flags contract
    address constant private FLAG_ARBITRUM_SEQ_OFFLINE = address(bytes20(bytes32(uint256(keccak256("chainlink.flags.arbitrum-seq-offline")) - 1)));

    address public gov;
    address public chainlinkFlags;

    bool public isAmmEnabled = true;
    bool public isSecondaryPriceEnabled = true;
    bool public useV2Pricing = false;
    bool public favorPrimaryPrice = false;
    uint256 public priceSampleSpace = 3;
    uint256 public maxStrictPriceDeviation = 0;
    address public secondaryPriceFeed;
    uint256 public spreadThresholdBasisPoints = 30;

    address public btc;
    address public eth;
    address public bnb;
    address public bnbBusd;
    address public ethBnb;
    address public btcBnb;

    mapping (address => address) public priceFeeds;
    mapping (address => uint256) public priceDecimals;
    mapping (address => uint256) public spreadBasisPoints;
    // Chainlink can return prices for stablecoins
    // that differs from 1 USD by a larger percentage than stableSwapFeeBasisPoints
    // we use strictStableTokens to cap the price to 1 USD
    // this allows us to configure stablecoins like DAI as being a stableToken
    // while not being a strictStableToken
    mapping (address => bool) public strictStableTokens;

    mapping (address => uint256) public override adjustmentBasisPoints;
    mapping (address => bool) public override isAdjustmentAdditive;
    mapping (address => uint256) public lastAdjustmentTimings;

    modifier onlyGov() {
        require(msg.sender == gov, "VaultPriceFeed: forbidden");
        _;
    }

    constructor() public {
        gov = msg.sender;
    }

    function setGov(address _gov) external onlyGov {
        gov = _gov;
    }

    function setChainlinkFlags(address _chainlinkFlags) external onlyGov {
        chainlinkFlags = _chainlinkFlags;
    }

    function setAdjustment(address _token, bool _isAdditive, uint256 _adjustmentBps) external override onlyGov {
        require(
            lastAdjustmentTimings[_token].add(MAX_ADJUSTMENT_INTERVAL) < block.timestamp,
            "VaultPriceFeed: adjustment frequency exceeded"
        );
        require(_adjustmentBps <= MAX_ADJUSTMENT_BASIS_POINTS, "invalid _adjustmentBps");
        isAdjustmentAdditive[_token] = _isAdditive;
        adjustmentBasisPoints[_token] = _adjustmentBps;
        lastAdjustmentTimings[_token] = block.timestamp;
    }

    function setUseV2Pricing(bool _useV2Pricing) external override onlyGov {
        useV2Pricing = _useV2Pricing;
    }

    function setIsAmmEnabled(bool _isEnabled) external override onlyGov {
        isAmmEnabled = _isEnabled;
    }

    function setIsSecondaryPriceEnabled(bool _isEnabled) external override onlyGov {
        isSecondaryPriceEnabled = _isEnabled;
    }

    function setSecondaryPriceFeed(address _secondaryPriceFeed) external onlyGov {
        secondaryPriceFeed = _secondaryPriceFeed;
    }

    function setTokens(address _btc, address _eth, address _bnb) external onlyGov {
        btc = _btc;
        eth = _eth;
        bnb = _bnb;
    }

    function setPairs(address _bnbBusd, address _ethBnb, address _btcBnb) external onlyGov {
        bnbBusd = _bnbBusd;
        ethBnb = _ethBnb;
        btcBnb = _btcBnb;
    }

    function setSpreadBasisPoints(address _token, uint256 _spreadBasisPoints) external override onlyGov {
        require(_spreadBasisPoints <= MAX_SPREAD_BASIS_POINTS, "VaultPriceFeed: invalid _spreadBasisPoints");
        spreadBasisPoints[_token] = _spreadBasisPoints;
    }

    function setSpreadThresholdBasisPoints(uint256 _spreadThresholdBasisPoints) external override onlyGov {
        spreadThresholdBasisPoints = _spreadThresholdBasisPoints;
    }

    function setFavorPrimaryPrice(bool _favorPrimaryPrice) external override onlyGov {
        favorPrimaryPrice = _favorPrimaryPrice;
    }

    function setPriceSampleSpace(uint256 _priceSampleSpace) external override onlyGov {
        require(_priceSampleSpace > 0, "VaultPriceFeed: invalid _priceSampleSpace");
        priceSampleSpace = _priceSampleSpace;
    }

    function setMaxStrictPriceDeviation(uint256 _maxStrictPriceDeviation) external override onlyGov {
        maxStrictPriceDeviation = _maxStrictPriceDeviation;
    }

    function setTokenConfig(
        address _token,
        address _priceFeed,
        uint256 _priceDecimals,
        bool _isStrictStable
    ) external override onlyGov {
        priceFeeds[_token] = _priceFeed;
        priceDecimals[_token] = _priceDecimals;
        strictStableTokens[_token] = _isStrictStable;
    }

    function getPrice(address _token, bool _maximise, bool _includeAmmPrice, bool /* _useSwapPricing */) public override view returns (uint256) {
        uint256 price = useV2Pricing ? getPriceV2(_token, _maximise, _includeAmmPrice) : getPriceV1(_token, _maximise, _includeAmmPrice);

        uint256 adjustmentBps = adjustmentBasisPoints[_token];
        if (adjustmentBps > 0) {
            bool isAdditive = isAdjustmentAdditive[_token];
            if (isAdditive) {
                price = price.mul(BASIS_POINTS_DIVISOR.add(adjustmentBps)).div(BASIS_POINTS_DIVISOR);
            } else {
                price = price.mul(BASIS_POINTS_DIVISOR.sub(adjustmentBps)).div(BASIS_POINTS_DIVISOR);
            }
        }

        return price;
    }

    function getPriceV1(address _token, bool _maximise, bool _includeAmmPrice) public view returns (uint256) {
        uint256 price = getPrimaryPrice(_token, _maximise);

        if (_includeAmmPrice && isAmmEnabled) {
            uint256 ammPrice = getAmmPrice(_token);
            if (ammPrice > 0) {
                if (_maximise && ammPrice > price) {
                    price = ammPrice;
                }
                if (!_maximise && ammPrice < price) {
                    price = ammPrice;
                }
            }
        }

        if (isSecondaryPriceEnabled) {
            price = getSecondaryPrice(_token, price, _maximise);
        }

        if (strictStableTokens[_token]) {
            uint256 delta = price > ONE_USD ? price.sub(ONE_USD) : ONE_USD.sub(price);
            if (delta <= maxStrictPriceDeviation) {
                return ONE_USD;
            }

            // if _maximise and price is e.g. 1.02, return 1.02
            if (_maximise && price > ONE_USD) {
                return price;
            }

            // if !_maximise and price is e.g. 0.98, return 0.98
            if (!_maximise && price < ONE_USD) {
                return price;
            }

            return ONE_USD;
        }

        uint256 _spreadBasisPoints = spreadBasisPoints[_token];

        if (_maximise) {
            return price.mul(BASIS_POINTS_DIVISOR.add(_spreadBasisPoints)).div(BASIS_POINTS_DIVISOR);
        }

        return price.mul(BASIS_POINTS_DIVISOR.sub(_spreadBasisPoints)).div(BASIS_POINTS_DIVISOR);
    }

    function getPriceV2(address _token, bool _maximise, bool _includeAmmPrice) public view returns (uint256) {
        uint256 price = getPrimaryPrice(_token, _maximise);

        if (_includeAmmPrice && isAmmEnabled) {
            price = getAmmPriceV2(_token, _maximise, price);
        }

        if (isSecondaryPriceEnabled) {
            price = getSecondaryPrice(_token, price, _maximise);
        }

        if (strictStableTokens[_token]) {
            uint256 delta = price > ONE_USD ? price.sub(ONE_USD) : ONE_USD.sub(price);
            if (delta <= maxStrictPriceDeviation) {
                return ONE_USD;
            }

            // if _maximise and price is e.g. 1.02, return 1.02
            if (_maximise && price > ONE_USD) {
                return price;
            }

            // if !_maximise and price is e.g. 0.98, return 0.98
            if (!_maximise && price < ONE_USD) {
                return price;
            }

            return ONE_USD;
        }

        uint256 _spreadBasisPoints = spreadBasisPoints[_token];

        if (_maximise) {
            return price.mul(BASIS_POINTS_DIVISOR.add(_spreadBasisPoints)).div(BASIS_POINTS_DIVISOR);
        }

        return price.mul(BASIS_POINTS_DIVISOR.sub(_spreadBasisPoints)).div(BASIS_POINTS_DIVISOR);
    }

    function getAmmPriceV2(address _token, bool _maximise, uint256 _primaryPrice) public view returns (uint256) {
        uint256 ammPrice = getAmmPrice(_token);
        if (ammPrice == 0) {
            return _primaryPrice;
        }

        uint256 diff = ammPrice > _primaryPrice ? ammPrice.sub(_primaryPrice) : _primaryPrice.sub(ammPrice);
        if (diff.mul(BASIS_POINTS_DIVISOR) < _primaryPrice.mul(spreadThresholdBasisPoints)) {
            if (favorPrimaryPrice) {
                return _primaryPrice;
            }
            return ammPrice;
        }

        if (_maximise && ammPrice > _primaryPrice) {
            return ammPrice;
        }

        if (!_maximise && ammPrice < _primaryPrice) {
            return ammPrice;
        }

        return _primaryPrice;
    }

    function getPrimaryPrice(address _token, bool _maximise) public override view returns (uint256) {
        address priceFeedAddress = priceFeeds[_token];
        require(priceFeedAddress != address(0), "VaultPriceFeed: invalid price feed");

        if (chainlinkFlags != address(0)) {
            bool isRaised = IChainlinkFlags(chainlinkFlags).getFlag(FLAG_ARBITRUM_SEQ_OFFLINE);
            if (isRaised) {
                    // If flag is raised we shouldn't perform any critical operations
                revert("Chainlink feeds are not being updated");
            }
        }

        IPriceFeed priceFeed = IPriceFeed(priceFeedAddress);

        uint256 price = 0;
        uint80 roundId = priceFeed.latestRound();

        for (uint80 i = 0; i < priceSampleSpace; i++) {
            if (roundId <= i) { break; }
            uint256 p;

            if (i == 0) {
                int256 _p = priceFeed.latestAnswer();
                require(_p > 0, "VaultPriceFeed: invalid price");
                p = uint256(_p);
            } else {
                (, int256 _p, , ,) = priceFeed.getRoundData(roundId - i);
                require(_p > 0, "VaultPriceFeed: invalid price");
                p = uint256(_p);
            }

            if (price == 0) {
                price = p;
                continue;
            }

            if (_maximise && p > price) {
                price = p;
                continue;
            }

            if (!_maximise && p < price) {
                price = p;
            }
        }

        require(price > 0, "VaultPriceFeed: could not fetch price");
        // normalise price precision
        uint256 _priceDecimals = priceDecimals[_token];
        return price.mul(PRICE_PRECISION).div(10 ** _priceDecimals);
    }

    function getSecondaryPrice(address _token, uint256 _referencePrice, bool _maximise) public view returns (uint256) {
        if (secondaryPriceFeed == address(0)) { return _referencePrice; }
        return ISecondaryPriceFeed(secondaryPriceFeed).getPrice(_token, _referencePrice, _maximise);
    }

    function getAmmPrice(address _token) public override view returns (uint256) {
        if (_token == bnb) {
            // for bnbBusd, reserve0: BNB, reserve1: BUSD
            return getPairPrice(bnbBusd, true);
        }

        if (_token == eth) {
            uint256 price0 = getPairPrice(bnbBusd, true);
            // for ethBnb, reserve0: ETH, reserve1: BNB
            uint256 price1 = getPairPrice(ethBnb, true);
            // this calculation could overflow if (price0 / 10**30) * (price1 / 10**30) is more than 10**17
            return price0.mul(price1).div(PRICE_PRECISION);
        }

        if (_token == btc) {
            uint256 price0 = getPairPrice(bnbBusd, true);
            // for btcBnb, reserve0: BTC, reserve1: BNB
            uint256 price1 = getPairPrice(btcBnb, true);
            // this calculation could overflow if (price0 / 10**30) * (price1 / 10**30) is more than 10**17
            return price0.mul(price1).div(PRICE_PRECISION);
        }

        return 0;
    }

    // if divByReserve0: calculate price as reserve1 / reserve0
    // if !divByReserve1: calculate price as reserve0 / reserve1
    function getPairPrice(address _pair, bool _divByReserve0) public view returns (uint256) {
        (uint256 reserve0, uint256 reserve1, ) = IPancakePair(_pair).getReserves();
        if (_divByReserve0) {
            if (reserve0 == 0) { return 0; }
            return reserve1.mul(PRICE_PRECISION).div(reserve0);
        }
        if (reserve1 == 0) { return 0; }
        return reserve0.mul(PRICE_PRECISION).div(reserve1);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ADJUSTMENT_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ADJUSTMENT_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SPREAD_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ONE_USD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"adjustmentBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bnb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bnbBusd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"btc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"btcBnb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainlinkFlags","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethBnb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"favorPrimaryPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getAmmPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_maximise","type":"bool"},{"internalType":"uint256","name":"_primaryPrice","type":"uint256"}],"name":"getAmmPriceV2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"},{"internalType":"bool","name":"_divByReserve0","type":"bool"}],"name":"getPairPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_maximise","type":"bool"},{"internalType":"bool","name":"_includeAmmPrice","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_maximise","type":"bool"},{"internalType":"bool","name":"_includeAmmPrice","type":"bool"}],"name":"getPriceV1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_maximise","type":"bool"},{"internalType":"bool","name":"_includeAmmPrice","type":"bool"}],"name":"getPriceV2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_maximise","type":"bool"}],"name":"getPrimaryPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_referencePrice","type":"uint256"},{"internalType":"bool","name":"_maximise","type":"bool"}],"name":"getSecondaryPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdjustmentAdditive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAmmEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSecondaryPriceEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastAdjustmentTimings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxStrictPriceDeviation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"priceDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"priceFeeds","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceSampleSpace","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondaryPriceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_isAdditive","type":"bool"},{"internalType":"uint256","name":"_adjustmentBps","type":"uint256"}],"name":"setAdjustment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_chainlinkFlags","type":"address"}],"name":"setChainlinkFlags","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_favorPrimaryPrice","type":"bool"}],"name":"setFavorPrimaryPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"setIsAmmEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"setIsSecondaryPriceEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxStrictPriceDeviation","type":"uint256"}],"name":"setMaxStrictPriceDeviation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bnbBusd","type":"address"},{"internalType":"address","name":"_ethBnb","type":"address"},{"internalType":"address","name":"_btcBnb","type":"address"}],"name":"setPairs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceSampleSpace","type":"uint256"}],"name":"setPriceSampleSpace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_secondaryPriceFeed","type":"address"}],"name":"setSecondaryPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_spreadBasisPoints","type":"uint256"}],"name":"setSpreadBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_spreadThresholdBasisPoints","type":"uint256"}],"name":"setSpreadThresholdBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"uint256","name":"_priceDecimals","type":"uint256"},{"internalType":"bool","name":"_isStrictStable","type":"bool"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_btc","type":"address"},{"internalType":"address","name":"_eth","type":"address"},{"internalType":"address","name":"_bnb","type":"address"}],"name":"setTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useV2Pricing","type":"bool"}],"name":"setUseV2Pricing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"spreadBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"spreadThresholdBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strictStableTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useV2Pricing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040526001805461ffff60b01b1960ff60a81b1960ff60a01b19909216600160a01b1791909116600160a81b171690556003600281905560009055601e60055534801561004d57600080fd5b50600080546001600160a01b03191633179055611fc58061006f6000396000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c80630957aed9146102615780631193c8091461027b578063126082cf1461029f57806312d43a51146102a75780632fa03b8f146102af5780632fbfe3d3146102ce5780632fc3a70a146102eb57806330536ee514610329578063378e7bf7146103455780633d949c5f1461034d5780633eba8d36146103835780633ebbc601146103b75780633f0c3bb7146103bf578063443be209146103c757806348cac277146103ff57806349a876e4146104255780634a4b1f4f1461042d5780634b9ade471461043557806356c8c2c114610473578063593d9e80146104a1578063604f37e9146104a957806367781c0e146104c85780636ce8a44b146104d05780636fc80708146104f6578063717cfe7a146104fe578063732391b414610524578063826e055f1461055a5780638b86616c146105805780638c7c9e0c1461058857806393f690741461059057806395082d25146104c8578063971bd396146105c857806397dfade7146105d05780639917dc74146105d85780639a0a6635146105f75780639b18dc471461061d5780639b889380146106255780639dcb511a14610651578063a27ea38614610677578063a28d57d81461069d578063a2ad7b93146106a5578063a39c73a3146106d3578063b02a2de4146106db578063b731dd871461070f578063b8f611051461072c578063c2138d8c14610752578063cefe0f2114610778578063cfad57a21461079e578063d694376c146107c4578063e4440e02146107f8578063eb1c92a914610800578063fd34ec401461081f575b600080fd5b61026961083e565b60408051918252519081900360200190f35b610283610843565b604080516001600160a01b039092168252519081900360200190f35b610269610852565b610283610858565b6102cc600480360360208110156102c557600080fd5b5035610867565b005b6102cc600480360360208110156102e457600080fd5b50356108f8565b6102696004803603608081101561030157600080fd5b506001600160a01b03813516906020810135151590604081013515159060600135151561094a565b610331610a08565b604080519115158252519081900360200190f35b610269610a18565b6102696004803603606081101561036357600080fd5b506001600160a01b03813516906020810135151590604001351515610a1e565b6102696004803603606081101561039957600080fd5b506001600160a01b0381351690602081013590604001351515610bf2565b610331610ca0565b610331610cb0565b6102cc600480360360608110156103dd57600080fd5b506001600160a01b038135811691602081013582169160409091013516610cc0565b6102696004803603602081101561041557600080fd5b50356001600160a01b0316610d4c565b610283610d5e565b610269610d6d565b6102cc6004803603608081101561044b57600080fd5b506001600160a01b038135811691602081013590911690604081013590606001351515610d72565b6102696004803603604081101561048957600080fd5b506001600160a01b0381351690602001351515610e14565b610331611241565b6102cc600480360360208110156104bf57600080fd5b50351515611251565b6102696112bc565b610331600480360360208110156104e657600080fd5b50356001600160a01b03166112cc565b6102696112e1565b6102696004803603602081101561051457600080fd5b50356001600160a01b03166112e7565b6102696004803603606081101561053a57600080fd5b506001600160a01b038135169060208101351515906040013515156112f9565b6102cc6004803603602081101561057057600080fd5b50356001600160a01b031661134e565b6102836113bd565b6102836113cc565b6102cc600480360360608110156105a657600080fd5b506001600160a01b0381358116916020810135821691604090910135166113db565b610283611467565b610283611476565b6102cc600480360360208110156105ee57600080fd5b50351515611485565b6102cc6004803603602081101561060d57600080fd5b50356001600160a01b03166114f0565b61026961155f565b6102cc6004803603604081101561063b57600080fd5b506001600160a01b038135169060200135611565565b6102836004803603602081101561066757600080fd5b50356001600160a01b031661160e565b6102696004803603602081101561068d57600080fd5b50356001600160a01b0316611629565b61028361163b565b610269600480360360408110156106bb57600080fd5b506001600160a01b038135169060200135151561164a565b610269611737565b610269600480360360608110156106f157600080fd5b506001600160a01b038135169060208101351515906040013561173d565b6102cc6004803603602081101561072557600080fd5b5035611805565b6103316004803603602081101561074257600080fd5b50356001600160a01b0316611857565b6102696004803603602081101561076857600080fd5b50356001600160a01b031661186c565b6102696004803603602081101561078e57600080fd5b50356001600160a01b031661196b565b6102cc600480360360208110156107b457600080fd5b50356001600160a01b031661197d565b6102cc600480360360608110156107da57600080fd5b506001600160a01b03813516906020810135151590604001356119ec565b610283611b2f565b6102cc6004803603602081101561081657600080fd5b50351515611b3e565b6102cc6004803603602081101561083557600080fd5b50351515611ba9565b603281565b600a546001600160a01b031681565b61271081565b6000546001600160a01b031681565b6000546001600160a01b031633146108b4576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600081116108f35760405162461bcd60e51b8152600401808060200182810382526029815260200180611e436029913960400191505060405180910390fd5b600255565b6000546001600160a01b03163314610945576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600355565b6001546000908190600160b01b900460ff166109705761096b868686610a1e565b61097b565b61097b8686866112f9565b6001600160a01b03871660009081526010602052604090205490915080156109fe576001600160a01b03871660009081526011602052604090205460ff1680156109e6576109df6127106109d96109d28286611c14565b8690611c6c565b90611cc5565b92506109fc565b6109f96127106109d96109d28286611d04565b92505b505b5095945050505050565b600154600160b01b900460ff1681565b60035481565b600080610a2b8585610e14565b9050828015610a435750600154600160a01b900460ff165b15610a88576000610a538661186c565b90508015610a8657848015610a6757508181115b15610a70578091505b84158015610a7d57508181105b15610a86578091505b505b600154600160a81b900460ff1615610aa857610aa5858286610bf2565b90505b6001600160a01b0385166000908152600f602052604090205460ff1615610b9157600068327cb2734119d3b7a9601e1b8211610af957610af468327cb2734119d3b7a9601e1b83611d04565b610b0f565b610b0f8268327cb2734119d3b7a9601e1b611d04565b90506003548111610b305768327cb2734119d3b7a9601e1b92505050610beb565b848015610b48575068327cb2734119d3b7a9601e1b82115b15610b5557509050610beb565b84158015610b6e575068327cb2734119d3b7a9601e1b82105b15610b7b57509050610beb565b68327cb2734119d3b7a9601e1b92505050610beb565b6001600160a01b0385166000908152600e60205260409020548415610bd357610bca6127106109d9610bc38285611c14565b8590611c6c565b92505050610beb565b610be66127106109d9610bc38285611d04565b925050505b9392505050565b6004546000906001600160a01b0316610c0c575081610beb565b6004805460408051630ffd9c6d60e31b81526001600160a01b038881169482019490945260248101879052851515604482015290519290911691637fece36891606480820192602092909190829003018186803b158015610c6c57600080fd5b505afa158015610c80573d6000803e3d6000fd5b505050506040513d6020811015610c9657600080fd5b5051949350505050565b600154600160a81b900460ff1681565b600154600160a01b900460ff1681565b6000546001600160a01b03163314610d0d576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600680546001600160a01b039485166001600160a01b031991821617909155600780549385169382169390931790925560088054919093169116179055565b60106020526000908152604090205481565b6008546001600160a01b031681565b601481565b6000546001600160a01b03163314610dbf576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b6001600160a01b039384166000908152600c6020908152604080832080546001600160a01b0319169690971695909517909555600d855283812092909255600f90935220805460ff1916911515919091179055565b6001600160a01b038083166000908152600c602052604081205490911680610e6d5760405162461bcd60e51b8152600401808060200182810382526022815260200180611f6e6022913960400191505060405180910390fd5b6001546001600160a01b031615610f4a5760015460408051631abf23ff60e11b815273a438451d6458044c3c8cd2f6f31c91ac882a6d91600482015290516000926001600160a01b03169163357e47fe916024808301926020929190829003018186803b158015610edd57600080fd5b505afa158015610ef1573d6000803e3d6000fd5b505050506040513d6020811015610f0757600080fd5b505190508015610f485760405162461bcd60e51b8152600401808060200182810382526025815260200180611eff6025913960400191505060405180910390fd5b505b6000819050600080826001600160a01b031663668a0f026040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8b57600080fd5b505afa158015610f9f573d6000803e3d6000fd5b505050506040513d6020811015610fb557600080fd5b5051905060005b600254816001600160501b031610156111bc57806001600160501b0316826001600160501b031611610fed576111bc565b60006001600160501b0382166110b0576000856001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561103857600080fd5b505afa15801561104c573d6000803e3d6000fd5b505050506040513d602081101561106257600080fd5b50519050600081136110a9576040805162461bcd60e51b815260206004820152601d6024820152600080516020611f4e833981519152604482015290519081900360640190fd5b9050611178565b6000856001600160a01b0316639a6fc8f58486036040518263ffffffff1660e01b815260040180826001600160501b0316815260200191505060a06040518083038186803b15801561110157600080fd5b505afa158015611115573d6000803e3d6000fd5b505050506040513d60a081101561112b57600080fd5b5060200151905060008113611175576040805162461bcd60e51b815260206004820152601d6024820152600080516020611f4e833981519152604482015290519081900360640190fd5b90505b836111845792506111b4565b87801561119057508381115b1561119c5792506111b4565b871580156111a957508381105b156111b2578093505b505b600101610fbc565b50600082116111fc5760405162461bcd60e51b8152600401808060200182810382526025815260200180611e6c6025913960400191505060405180910390fd5b6001600160a01b0387166000908152600d6020526040902054611233600a82900a6109d98568327cb2734119d3b7a9601e1b611c6c565b955050505050505b92915050565b600154600160b81b900460ff1681565b6000546001600160a01b0316331461129e576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b60018054911515600160b81b0260ff60b81b19909216919091179055565b68327cb2734119d3b7a9601e1b81565b60116020526000908152604090205460ff1681565b60025481565b60126020526000908152604090205481565b6000806113068585610e14565b905082801561131e5750600154600160a01b900460ff165b15610a885761132e85858361173d565b905060015460ff600160a81b9091041615610aa857610aa5858286610bf2565b6000546001600160a01b0316331461139b576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6007546001600160a01b031681565b6000546001600160a01b03163314611428576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600980546001600160a01b039485166001600160a01b031991821617909155600a805493851693821693909317909255600b8054919093169116179055565b600b546001600160a01b031681565b6009546001600160a01b031681565b6000546001600160a01b031633146114d2576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b60018054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b0316331461153d576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b611c2081565b6000546001600160a01b031633146115b2576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b60328111156115f25760405162461bcd60e51b815260040180806020018281038252602a815260200180611f24602a913960400191505060405180910390fd5b6001600160a01b039091166000908152600e6020526040902055565b600c602052600090815260409020546001600160a01b031681565b600e6020526000908152604090205481565b6006546001600160a01b031681565b6000806000846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561168857600080fd5b505afa15801561169c573d6000803e3d6000fd5b505050506040513d60608110156116b257600080fd5b5080516020909101516001600160701b039182169350169050831561170457816116e15760009250505061123b565b6116fb826109d98368327cb2734119d3b7a9601e1b611c6c565b9250505061123b565b806117145760009250505061123b565b61172e816109d98468327cb2734119d3b7a9601e1b611c6c565b95945050505050565b60055481565b6000806117498561186c565b9050806117595782915050610beb565b60008382116117715761176c8483611d04565b61177b565b61177b8285611d04565b905061179260055485611c6c90919063ffffffff16565b61179e82612710611c6c565b10156117c857600154600160b81b900460ff16156117c0578392505050610beb565b509050610beb565b8480156117d457508382115b156117e157509050610beb565b841580156117ee57508382105b156117fb57509050610beb565b5091949350505050565b6000546001600160a01b03163314611852576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600555565b600f6020526000908152604090205460ff1681565b6008546000906001600160a01b03838116911614156118a35760095461189c906001600160a01b0316600161164a565b9050611966565b6007546001600160a01b0383811691161415611915576009546000906118d3906001600160a01b0316600161164a565b600a549091506000906118f0906001600160a01b0316600161164a565b905061190c68327cb2734119d3b7a9601e1b6109d98484611c6c565b92505050611966565b6006546001600160a01b038381169116141561196257600954600090611945906001600160a01b0316600161164a565b600b549091506000906118f0906001600160a01b0316600161164a565b5060005b919050565b600d6020526000908152604090205481565b6000546001600160a01b031633146119ca576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a39576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b6001600160a01b0383166000908152601260205260409020544290611a6090611c20611c14565b10611a9c5760405162461bcd60e51b815260040180806020018281038252602d815260200180611eb2602d913960400191505060405180910390fd5b6014811115611aeb576040805162461bcd60e51b8152602060048201526016602482015275696e76616c6964205f61646a7573746d656e7442707360501b604482015290519081900360640190fd5b6001600160a01b03929092166000908152601160209081526040808320805460ff191694151594909417909355601081528282209390935560129092529020429055565b6001546001600160a01b031681565b6000546001600160a01b03163314611b8b576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b60018054911515600160a81b0260ff60a81b19909216919091179055565b6000546001600160a01b03163314611bf6576040805162461bcd60e51b81526020600482015260196024820152600080516020611edf833981519152604482015290519081900360640190fd5b60018054911515600160b01b0260ff60b01b19909216919091179055565b600082820183811015610beb576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b600082611c7b5750600061123b565b82820282848281611c8857fe5b0414610beb5760405162461bcd60e51b8152600401808060200182810382526021815260200180611e916021913960400191505060405180910390fd5b6000610beb83836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250611d46565b6000610beb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611de8565b60008183611dd25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d97578181015183820152602001611d7f565b50505050905090810190601f168015611dc45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611dde57fe5b0495945050505050565b60008184841115611e3a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d97578181015183820152602001611d7f565b50505090039056fe5661756c745072696365466565643a20696e76616c6964205f707269636553616d706c6553706163655661756c745072696365466565643a20636f756c64206e6f74206665746368207072696365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775661756c745072696365466565643a2061646a7573746d656e74206672657175656e63792065786365656465645661756c745072696365466565643a20666f7262696464656e00000000000000436861696e6c696e6b20666565647320617265206e6f74206265696e6720757064617465645661756c745072696365466565643a20696e76616c6964205f7370726561644261736973506f696e74735661756c745072696365466565643a20696e76616c69642070726963650000005661756c745072696365466565643a20696e76616c69642070726963652066656564a2646970667358221220022d75aca7c75069e057798876f9680565e4c3f3b8abd17495accdb132bce2b364736f6c634300060c0033

Deployed ByteCode Sourcemap

8131:13456:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8388:52;;;:::i;:::-;;;;;;;;;;;;;;;;9321:21;;;:::i;:::-;;;;-1:-1:-1;;;;;9321:21:0;;;;;;;;;;;;;;8329:52;;;:::i;8798:18::-;;;:::i;12580:223::-;;;;;;;;;;;;;;;;-1:-1:-1;12580:223:0;;:::i;:::-;;12811:165;;;;;;;;;;;;;;;;-1:-1:-1;12811:165:0;;:::i;13321:758::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;13321:758:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;8948:32::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;9073:42;;;:::i;14087:1593::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14087:1593:0;;;;;;;;;;;;;;;;;:::i;19673:299::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;19673:299:0;;;;;;;;;;;;;;;:::i;8899:42::-;;;:::i;8861:31::-;;;:::i;11622:149::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;11622:149:0;;;;;;;;;;;;;;;;;;;:::i;9929:66::-;;;;;;;;;;;;;;;;-1:-1:-1;9929:66:0;-1:-1:-1;;;;;9929:66:0;;:::i;9267:18::-;;;:::i;8511:56::-;;;:::i;12984:329::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;12984:329:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;17842:1823::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17842:1823:0;;;;;;;;;;:::i;8987:37::-;;;:::i;12434:138::-;;;;;;;;;;;;;;;;-1:-1:-1;12434:138:0;;;;:::i;8273:49::-;;;:::i;10002:62::-;;;;;;;;;;;;;;;;-1:-1:-1;10002:62:0;-1:-1:-1;;;;;10002:62:0;;:::i;9031:35::-;;;:::i;10071:57::-;;;;;;;;;;;;;;;;-1:-1:-1;10071:57:0;-1:-1:-1;;;;;10071:57:0;;:::i;15688:1329::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15688:1329:0;;;;;;;;;;;;;;;;;:::i;10398:120::-;;;;;;;;;;;;;;;;-1:-1:-1;10398:120:0;-1:-1:-1;;;;;10398:120:0;;:::i;9122:33::-;;;:::i;9242:18::-;;;:::i;11779:178::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;11779:178:0;;;;;;;;;;;;;;;;;;;:::i;9349:21::-;;;:::i;9292:22::-;;;:::i;11216:112::-;;;;;;;;;;;;;;;;-1:-1:-1;11216:112:0;;;;:::i;11478:136::-;;;;;;;;;;;;;;;;-1:-1:-1;11478:136:0;-1:-1:-1;;;;;11478:136:0;;:::i;8447:57::-;;;:::i;11965:276::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;11965:276:0;;;;;;;;:::i;9379:46::-;;;;;;;;;;;;;;;;-1:-1:-1;9379:46:0;-1:-1:-1;;;;;9379:46:0;;:::i;9488:53::-;;;;;;;;;;;;;;;;-1:-1:-1;9488:53:0;-1:-1:-1;;;;;9488:53:0;;:::i;9217:18::-;;;:::i;21147:437::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21147:437:0;;;;;;;;;;:::i;9162:46::-;;;:::i;17025:809::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17025:809:0;;;;;;;;;;;;;;;:::i;12249:177::-;;;;;;;;;;;;;;;;-1:-1:-1;12249:177:0;;:::i;9869:51::-;;;;;;;;;;;;;;;;-1:-1:-1;9869:51:0;-1:-1:-1;;;;;9869:51:0;;:::i;19980:1028::-;;;;;;;;;;;;;;;;-1:-1:-1;19980:1028:0;-1:-1:-1;;;;;19980:1028:0;;:::i;9432:49::-;;;;;;;;;;;;;;;;-1:-1:-1;9432:49:0;-1:-1:-1;;;;;9432:49:0;;:::i;10314:76::-;;;;;;;;;;;;;;;;-1:-1:-1;10314:76:0;-1:-1:-1;;;;;10314:76:0;;:::i;10526:556::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;10526:556:0;;;;;;;;;;;;;;;:::i;8823:29::-;;;:::i;11336:134::-;;;;;;;;;;;;;;;;-1:-1:-1;11336:134:0;;;;:::i;11090:118::-;;;;;;;;;;;;;;;;-1:-1:-1;11090:118:0;;;;:::i;8388:52::-;8438:2;8388:52;:::o;9321:21::-;;;-1:-1:-1;;;;;9321:21:0;;:::o;8329:52::-;8376:5;8329:52;:::o;8798:18::-;;;-1:-1:-1;;;;;8798:18:0;;:::o;12580:223::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;12701:1:::1;12681:17;:21;12673:75;;;;-1:-1:-1::0;;;12673:75:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12759:16;:36:::0;12580:223::o;12811:165::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;12918:23:::1;:50:::0;12811:165::o;13321:758::-;13488:12;;13452:7;;;;-1:-1:-1;;;13488:12:0;;;;:112;;13553:47;13564:6;13572:9;13583:16;13553:10;:47::i;:::-;13488:112;;;13503:47;13514:6;13522:9;13533:16;13503:10;:47::i;:::-;-1:-1:-1;;;;;13637:29:0;;13613:21;13637:29;;;:21;:29;;;;;;13472:128;;-1:-1:-1;13681:17:0;;13677:370;;-1:-1:-1;;;;;13733:28:0;;13715:15;13733:28;;;:20;:28;;;;;;;;13776:260;;;;13819:76;8376:5;13819:50;13829:39;8376:5;13854:13;13829:24;:39::i;:::-;13819:5;;:9;:50::i;:::-;:54;;:76::i;:::-;13811:84;;13776:260;;;13944:76;8376:5;13944:50;13954:39;8376:5;13979:13;13954:24;:39::i;13944:76::-;13936:84;;13776:260;13677:370;;-1:-1:-1;14066:5:0;13321:758;-1:-1:-1;;;;;13321:758:0:o;8948:32::-;;;-1:-1:-1;;;8948:32:0;;;;;:::o;9073:42::-;;;;:::o;14087:1593::-;14183:7;14203:13;14219:34;14235:6;14243:9;14219:15;:34::i;:::-;14203:50;;14270:16;:32;;;;-1:-1:-1;14290:12:0;;-1:-1:-1;;;14290:12:0;;;;14270:32;14266:376;;;14319:16;14338:19;14350:6;14338:11;:19::i;:::-;14319:38;-1:-1:-1;14376:12:0;;14372:259;;14413:9;:29;;;;;14437:5;14426:8;:16;14413:29;14409:94;;;14475:8;14467:16;;14409:94;14526:9;14525:10;:30;;;;;14550:5;14539:8;:16;14525:30;14521:95;;;14588:8;14580:16;;14521:95;14266:376;;14658:23;;-1:-1:-1;;;14658:23:0;;;;14654:107;;;14706:43;14724:6;14732:5;14739:9;14706:17;:43::i;:::-;14698:51;;14654:107;-1:-1:-1;;;;;14777:26:0;;;;;;:18;:26;;;;;;;;14773:590;;;14820:13;-1:-1:-1;;;14836:5:0;:15;:57;;14875:18;-1:-1:-1;;;14887:5:0;14875:11;:18::i;:::-;14836:57;;;14854:18;:5;-1:-1:-1;;;14854:9:0;:18::i;:::-;14820:73;;14921:23;;14912:5;:32;14908:87;;-1:-1:-1;;;14965:14:0;;;;;;14908:87;15080:9;:28;;;;;-1:-1:-1;;;15093:5:0;:15;15080:28;15076:81;;;-1:-1:-1;15136:5:0;-1:-1:-1;15129:12:0;;15076:81;15244:9;15243:10;:29;;;;;-1:-1:-1;;;15257:5:0;:15;15243:29;15239:82;;;-1:-1:-1;15300:5:0;-1:-1:-1;15293:12:0;;15239:82;-1:-1:-1;;;15337:14:0;;;;;;14773:590;-1:-1:-1;;;;;15404:25:0;;15375:26;15404:25;;;:17;:25;;;;;;15442:130;;;;15479:81;8376:5;15479:55;15489:44;8376:5;15514:18;15489:24;:44::i;:::-;15479:5;;:9;:55::i;:81::-;15472:88;;;;;;15442:130;15591:81;8376:5;15591:55;15601:44;8376:5;15626:18;15601:24;:44::i;15591:81::-;15584:88;;;;14087:1593;;;;;;:::o;19673:299::-;19802:18;;19778:7;;-1:-1:-1;;;;;19802:18:0;19798:65;;-1:-1:-1;19845:15:0;19838:22;;19798:65;19900:18;;;19880:84;;;-1:-1:-1;;;19880:84:0;;-1:-1:-1;;;;;19880:84:0;;;;;;;;;;;;;;;;;;;;;;;;;19900:18;;;;;19880:48;;:84;;;;;;;;;;;;;;;19900:18;19880:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19880:84:0;;19673:299;-1:-1:-1;;;;19673:299:0:o;8899:42::-;;;-1:-1:-1;;;8899:42:0;;;;;:::o;8861:31::-;;;-1:-1:-1;;;8861:31:0;;;;;:::o;11622:149::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;11711:3:::1;:10:::0;;-1:-1:-1;;;;;11711:10:0;;::::1;-1:-1:-1::0;;;;;;11711:10:0;;::::1;;::::0;;;11732:3:::1;:10:::0;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;11753:3:::1;:10:::0;;;;;::::1;::::0;::::1;;::::0;;11622:149::o;9929:66::-;;;;;;;;;;;;;:::o;9267:18::-;;;-1:-1:-1;;;;;9267:18:0;;:::o;8511:56::-;8565:2;8511:56;:::o;12984:329::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;13170:18:0;;::::1;;::::0;;;:10:::1;:18;::::0;;;;;;;:31;;-1:-1:-1;;;;;;13170:31:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;13212:13:::1;:21:::0;;;;;:38;;;;13261:18:::1;:26:::0;;;;:44;;-1:-1:-1;;13261:44:0::1;::::0;::::1;;::::0;;;::::1;::::0;;12984:329::o;17842:1823::-;-1:-1:-1;;;;;17976:18:0;;;17929:7;17976:18;;;:10;:18;;;;;;17929:7;;17976:18;18013:30;18005:77;;;;-1:-1:-1;;;18005:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18099:14;;-1:-1:-1;;;;;18099:14:0;:28;18095:340;;18176:14;;18160:66;;;-1:-1:-1;;;18160:66:0;;8700:89;18160:66;;;;;;18144:13;;-1:-1:-1;;;;;18176:14:0;;18160:39;;:66;;;;;;;;;;;;;;18176:14;18160:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18160:66:0;;-1:-1:-1;18241:183:0;;;;18361:47;;-1:-1:-1;;;18361:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18241:183;18095:340;;18447:20;18481:16;18447:51;;18511:13;18539:14;18556:9;-1:-1:-1;;;;;18556:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18556:23:0;;-1:-1:-1;18597:8:0;18592:829;18615:16;;18611:1;-1:-1:-1;;;;;18611:20:0;;18592:829;;;18668:1;-1:-1:-1;;;;;18657:12:0;:7;-1:-1:-1;;;;;18657:12:0;;18653:28;;18673:5;;18653:28;18695:9;-1:-1:-1;;;;;18725:6:0;;18721:382;;18752:9;18764;-1:-1:-1;;;;;18764:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18764:24:0;;-1:-1:-1;18820:1:0;18815:6;;18807:48;;;;;-1:-1:-1;;;18807:48:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18807:48:0;;;;;;;;;;;;;;;18886:2;-1:-1:-1;18721:382:0;;;18933:9;18951;-1:-1:-1;;;;;18951:22:0;;18984:1;18974:7;:11;18951:35;;;;;;;;;;;;;-1:-1:-1;;;;;18951:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18951:35:0;;;;-1:-1:-1;19018:1:0;19013:6;;19005:48;;;;;-1:-1:-1;;;19005:48:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19005:48:0;;;;;;;;;;;;;;;19084:2;-1:-1:-1;18721:382:0;19123:10;19119:87;;19162:1;-1:-1:-1;19182:8:0;;19119:87;19226:9;:22;;;;;19243:5;19239:1;:9;19226:22;19222:99;;;19277:1;-1:-1:-1;19297:8:0;;19222:99;19342:9;19341:10;:23;;;;;19359:5;19355:1;:9;19341:23;19337:73;;;19393:1;19385:9;;19337:73;18592:829;;18633:3;;18592:829;;;;19449:1;19441:5;:9;19433:59;;;;-1:-1:-1;;;19433:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19566:21:0;;19541:22;19566:21;;;:13;:21;;;;;;19605:52;19636:2;:20;;;19605:26;:5;-1:-1:-1;;;19605:9:0;:26::i;:52::-;19598:59;;;;;;;17842:1823;;;;;:::o;8987:37::-;;;-1:-1:-1;;;8987:37:0;;;;;:::o;12434:138::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;12526:17:::1;:38:::0;;;::::1;;-1:-1:-1::0;;;12526:38:0::1;-1:-1:-1::0;;;;12526:38:0;;::::1;::::0;;;::::1;::::0;;12434:138::o;8273:49::-;-1:-1:-1;;;8273:49:0;:::o;10002:62::-;;;;;;;;;;;;;;;:::o;9031:35::-;;;;:::o;10071:57::-;;;;;;;;;;;;;:::o;15688:1329::-;15784:7;15804:13;15820:34;15836:6;15844:9;15820:15;:34::i;:::-;15804:50;;15871:16;:32;;;;-1:-1:-1;15891:12:0;;-1:-1:-1;;;15891:12:0;;;;15871:32;15867:112;;;15928:39;15942:6;15950:9;15961:5;15928:13;:39::i;:::-;15920:47;;15995:23;;;-1:-1:-1;;;15995:23:0;;;;15991:107;;;16043:43;16061:6;16069:5;16076:9;16043:17;:43::i;10398:120::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;10478:14:::1;:32:::0;;-1:-1:-1;;;;;;10478:32:0::1;-1:-1:-1::0;;;;;10478:32:0;;;::::1;::::0;;;::::1;::::0;;10398:120::o;9122:33::-;;;-1:-1:-1;;;;;9122:33:0;;:::o;9242:18::-;;;-1:-1:-1;;;;;9242:18:0;;:::o;11779:178::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;11877:7:::1;:18:::0;;-1:-1:-1;;;;;11877:18:0;;::::1;-1:-1:-1::0;;;;;;11877:18:0;;::::1;;::::0;;;11906:6:::1;:16:::0;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;11933:6:::1;:16:::0;;;;;::::1;::::0;::::1;;::::0;;11779:178::o;9349:21::-;;;-1:-1:-1;;;;;9349:21:0;;:::o;9292:22::-;;;-1:-1:-1;;;;;9292:22:0;;:::o;11216:112::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;11295:12:::1;:25:::0;;;::::1;;-1:-1:-1::0;;;11295:25:0::1;-1:-1:-1::0;;;;11295:25:0;;::::1;::::0;;;::::1;::::0;;11216:112::o;11478:136::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;11566:18:::1;:40:::0;;-1:-1:-1;;;;;;11566:40:0::1;-1:-1:-1::0;;;;;11566:40:0;;;::::1;::::0;;;::::1;::::0;;11478:136::o;8447:57::-;8497:7;8447:57;:::o;11965:276::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;8438:2:::1;12084:18;:45;;12076:100;;;;-1:-1:-1::0;;;12076:100:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;12187:25:0;;::::1;;::::0;;;:17:::1;:25;::::0;;;;:46;11965:276::o;9379:46::-;;;;;;;;;;;;-1:-1:-1;;;;;9379:46:0;;:::o;9488:53::-;;;;;;;;;;;;;:::o;9217:18::-;;;-1:-1:-1;;;;;9217:18:0;;:::o;21147:437::-;21226:7;21247:16;21265;21300:5;-1:-1:-1;;;;;21287:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21287:33:0;;;;;;;-1:-1:-1;;;;;21246:74:0;;;;-1:-1:-1;21246:74:0;;-1:-1:-1;21331:143:0;;;;21370:13;21366:32;;21394:1;21387:8;;;;;;21366:32;21419:43;21453:8;21419:29;:8;-1:-1:-1;;;21419:12:0;:29::i;:43::-;21412:50;;;;;;21331:143;21488:13;21484:32;;21512:1;21505:8;;;;;;21484:32;21533:43;21567:8;21533:29;:8;-1:-1:-1;;;21533:12:0;:29::i;:43::-;21526:50;21147:437;-1:-1:-1;;;;;21147:437:0:o;9162:46::-;;;;:::o;17025:809::-;17124:7;17144:16;17163:19;17175:6;17163:11;:19::i;:::-;17144:38;-1:-1:-1;17197:13:0;17193:66;;17234:13;17227:20;;;;;17193:66;17271:12;17297:13;17286:8;:24;:84;;17343:27;:13;17361:8;17343:17;:27::i;:::-;17286:84;;;17313:27;:8;17326:13;17313:12;:27::i;:::-;17271:99;;17418:45;17436:26;;17418:13;:17;;:45;;;;:::i;:::-;17385:30;:4;8376:5;17385:8;:30::i;:::-;:78;17381:218;;;17484:17;;-1:-1:-1;;;17484:17:0;;;;17480:78;;;17529:13;17522:20;;;;;;17480:78;-1:-1:-1;17579:8:0;-1:-1:-1;17572:15:0;;17381:218;17615:9;:37;;;;;17639:13;17628:8;:24;17615:37;17611:85;;;-1:-1:-1;17676:8:0;-1:-1:-1;17669:15:0;;17611:85;17713:9;17712:10;:38;;;;;17737:13;17726:8;:24;17712:38;17708:86;;;-1:-1:-1;17774:8:0;-1:-1:-1;17767:15:0;;17708:86;-1:-1:-1;17813:13:0;;17025:809;-1:-1:-1;;;;17025:809:0:o;12249:177::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;12362:26:::1;:56:::0;12249:177::o;9869:51::-;;;;;;;;;;;;;;;:::o;19980:1028::-;20081:3;;20047:7;;-1:-1:-1;;;;;20071:13:0;;;20081:3;;20071:13;20067:139;;;20180:7;;20167:27;;-1:-1:-1;;;;;20180:7:0;;20167:12;:27::i;:::-;20160:34;;;;20067:139;20232:3;;-1:-1:-1;;;;;20222:13:0;;;20232:3;;20222:13;20218:375;;;20282:7;;20252:14;;20269:27;;-1:-1:-1;;;;;20282:7:0;;20269:12;:27::i;:::-;20398:6;;20252:44;;-1:-1:-1;20368:14:0;;20385:26;;-1:-1:-1;;;;;20398:6:0;;20385:12;:26::i;:::-;20368:43;-1:-1:-1;20542:39:0;-1:-1:-1;;;20542:18:0;:6;20368:43;20542:10;:18::i;:39::-;20535:46;;;;;;20218:375;20619:3;;-1:-1:-1;;;;;20609:13:0;;;20619:3;;20609:13;20605:375;;;20669:7;;20639:14;;20656:27;;-1:-1:-1;;;;;20669:7:0;;20656:12;:27::i;:::-;20785:6;;20639:44;;-1:-1:-1;20755:14:0;;20772:26;;-1:-1:-1;;;;;20785:6:0;;20772:12;:26::i;20605:375::-;-1:-1:-1;20999:1:0;19980:1028;;;;:::o;9432:49::-;;;;;;;;;;;;;:::o;10314:76::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;10372:3:::1;:10:::0;;-1:-1:-1;;;;;;10372:10:0::1;-1:-1:-1::0;;;;;10372:10:0;;;::::1;::::0;;;::::1;::::0;;10314:76::o;10526:556::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;10666:29:0;::::1;;::::0;;;:21:::1;:29;::::0;;;;;10727:15:::1;::::0;10666:58:::1;::::0;8497:7:::1;10666:33;:58::i;:::-;:76;10644:171;;;;-1:-1:-1::0;;;10644:171:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8565:2;10834:14;:45;;10826:80;;;::::0;;-1:-1:-1;;;10826:80:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;10826:80:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;10917:28:0;;;::::1;;::::0;;;:20:::1;:28;::::0;;;;;;;:42;;-1:-1:-1;;10917:42:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;10970:21:::1;:29:::0;;;;;:46;;;;11027:21:::1;:29:::0;;;;;11059:15:::1;11027:47:::0;;10526:556::o;8823:29::-;;;-1:-1:-1;;;;;8823:29:0;;:::o;11336:134::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;11426:23:::1;:36:::0;;;::::1;;-1:-1:-1::0;;;11426:36:0::1;-1:-1:-1::0;;;;11426:36:0;;::::1;::::0;;;::::1;::::0;;11336:134::o;11090:118::-;10189:3;;-1:-1:-1;;;;;10189:3:0;10175:10;:17;10167:55;;;;;-1:-1:-1;;;10167:55:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10167:55:0;;;;;;;;;;;;;;;11172:12:::1;:28:::0;;;::::1;;-1:-1:-1::0;;;11172:28:0::1;-1:-1:-1::0;;;;11172:28:0;;::::1;::::0;;;::::1;::::0;;11090:118::o;1015:181::-;1073:7;1105:5;;;1129:6;;;;1121:46;;;;;-1:-1:-1;;;1121:46:0;;;;;;;;;;;;-1:-1:-1;;;1121:46:0;;;;;;;;;;;;;;2369:471;2427:7;2672:6;2668:47;;-1:-1:-1;2702:1:0;2695:8;;2668:47;2739:5;;;2743:1;2739;:5;:1;2763:5;;;;;:10;2755:56;;;;-1:-1:-1;;;2755:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3316:132;3374:7;3401:39;3405:1;3408;3401:39;;;;;;;;;;;;;-1:-1:-1;;;3401:39:0;;;:3;:39::i;1479:136::-;1537:7;1564:43;1568:1;1571;1564:43;;;;;;;;;;;;;;;;;:3;:43::i;3944:278::-;4030:7;4065:12;4058:5;4050:28;;;;-1:-1:-1;;;4050:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4089:9;4105:1;4101;:5;;;;;;;3944:278;-1:-1:-1;;;;;3944:278:0:o;1918:192::-;2004:7;2040:12;2032:6;;;;2024:29;;;;-1:-1:-1;;;2024:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2076:5:0;;;1918:192::o

Swarm Source

ipfs://022d75aca7c75069e057798876f9680565e4c3f3b8abd17495accdb132bce2b3
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.