ETH Price: $3,227.03 (+3.00%)

Contract

0x565C9EB432f4AE9633e50e1213AB4f23D8f31f54
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Update Rates91239652019-12-18 4:41:441854 days ago1576644104IN
Synthetix: Old Exchange Rates 6
0 ETH0.0026188518.75
Update Rates91239622019-12-18 4:40:271854 days ago1576644027IN
Synthetix: Old Exchange Rates 6
0 ETH0.0025640212.5
Update Rates91239482019-12-18 4:36:111854 days ago1576643771IN
Synthetix: Old Exchange Rates 6
0 ETH0.0026994112.5
Update Rates91239342019-12-18 4:32:171854 days ago1576643537IN
Synthetix: Old Exchange Rates 6
0 ETH0.0040919711.88
Update Rates91239272019-12-18 4:30:171854 days ago1576643417IN
Synthetix: Old Exchange Rates 6
0 ETH0.0033808911.88
Update Rates91239092019-12-18 4:24:291854 days ago1576643069IN
Synthetix: Old Exchange Rates 6
0 ETH0.0014524212.09
Update Rates91238692019-12-18 4:16:141854 days ago1576642574IN
Synthetix: Old Exchange Rates 6
0 ETH0.0023001610.38
Update Rates91238612019-12-18 4:14:261854 days ago1576642466IN
Synthetix: Old Exchange Rates 6
0 ETH0.0009581710.38
Update Rates91238522019-12-18 4:12:101854 days ago1576642330IN
Synthetix: Old Exchange Rates 6
0 ETH0.0053355518.75
Update Rates91238392019-12-18 4:08:161854 days ago1576642096IN
Synthetix: Old Exchange Rates 6
0 ETH0.0015712912.46
Update Rates91238302019-12-18 4:06:311854 days ago1576641991IN
Synthetix: Old Exchange Rates 6
0 ETH0.0023093618.75
Update Rates91238232019-12-18 4:04:181854 days ago1576641858IN
Synthetix: Old Exchange Rates 6
0 ETH0.0017183512.46
Update Rates91238122019-12-18 4:00:251854 days ago1576641625IN
Synthetix: Old Exchange Rates 6
0 ETH0.0016042510
Update Rates91237912019-12-18 3:56:131854 days ago1576641373IN
Synthetix: Old Exchange Rates 6
0 ETH0.0013546812.5
Update Rates91237832019-12-18 3:52:071854 days ago1576641127IN
Synthetix: Old Exchange Rates 6
0 ETH0.0008283510
Update Rates91237782019-12-18 3:50:251854 days ago1576641025IN
Synthetix: Old Exchange Rates 6
0 ETH0.0020845213.34
Update Rates91237462019-12-18 3:44:161854 days ago1576640656IN
Synthetix: Old Exchange Rates 6
0 ETH0.0013493310
Update Rates91237412019-12-18 3:42:511854 days ago1576640571IN
Synthetix: Old Exchange Rates 6
0 ETH0.0019384610
Update Rates91237312019-12-18 3:40:311854 days ago1576640431IN
Synthetix: Old Exchange Rates 6
0 ETH0.0037378913.34
Update Rates91237262019-12-18 3:37:311854 days ago1576640251IN
Synthetix: Old Exchange Rates 6
0 ETH0.0025444810
Update Rates91237162019-12-18 3:34:011854 days ago1576640041IN
Synthetix: Old Exchange Rates 6
0 ETH0.0044561613.34
Update Rates91237082019-12-18 3:32:271854 days ago1576639947IN
Synthetix: Old Exchange Rates 6
0 ETH0.003954715
Update Rates91236922019-12-18 3:28:101854 days ago1576639690IN
Synthetix: Old Exchange Rates 6
0 ETH0.0039687612.5
Update Rates91236742019-12-18 3:20:581854 days ago1576639258IN
Synthetix: Old Exchange Rates 6
0 ETH0.0012595311.66
Update Rates91236672019-12-18 3:18:001854 days ago1576639080IN
Synthetix: Old Exchange Rates 6
0 ETH0.0022770615
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ExchangeRates

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-11-21
*/

/* ===============================================
* Flattened with Solidifier by Coinage
* 
* https://solidifier.coina.ge
* ===============================================
*/


pragma solidity ^0.4.24;

/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, reverts on 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-solidity/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b);

    return c;
  }

  /**
  * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b > 0); // Solidity only automatically asserts when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
  * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a);
    uint256 c = a - b;

    return c;
  }

  /**
  * @dev Adds two numbers, reverts on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a);

    return c;
  }

  /**
  * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
  * reverts when dividing by zero.
  */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}


/*

-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------

file:       SafeDecimalMath.sol
version:    2.0
author:     Kevin Brown
            Gavin Conway
date:       2018-10-18

-----------------------------------------------------------------
MODULE DESCRIPTION
-----------------------------------------------------------------

A library providing safe mathematical operations for division and
multiplication with the capability to round or truncate the results
to the nearest increment. Operations can return a standard precision
or high precision decimal. High precision decimals are useful for
example when attempting to calculate percentages or fractions
accurately.

-----------------------------------------------------------------
*/


/**
 * @title Safely manipulate unsigned fixed-point decimals at a given precision level.
 * @dev Functions accepting uints in this contract and derived contracts
 * are taken to be such fixed point decimals of a specified precision (either standard
 * or high).
 */
library SafeDecimalMath {

    using SafeMath for uint;

    /* Number of decimal places in the representations. */
    uint8 public constant decimals = 18;
    uint8 public constant highPrecisionDecimals = 27;

    /* The number representing 1.0. */
    uint public constant UNIT = 10 ** uint(decimals);

    /* The number representing 1.0 for higher fidelity numbers. */
    uint public constant PRECISE_UNIT = 10 ** uint(highPrecisionDecimals);
    uint private constant UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR = 10 ** uint(highPrecisionDecimals - decimals);

    /** 
     * @return Provides an interface to UNIT.
     */
    function unit()
        external
        pure
        returns (uint)
    {
        return UNIT;
    }

    /** 
     * @return Provides an interface to PRECISE_UNIT.
     */
    function preciseUnit()
        external
        pure 
        returns (uint)
    {
        return PRECISE_UNIT;
    }

    /**
     * @return The result of multiplying x and y, interpreting the operands as fixed-point
     * decimals.
     * 
     * @dev A unit factor is divided out after the product of x and y is evaluated,
     * so that product must be less than 2**256. As this is an integer division,
     * the internal division always rounds down. This helps save on gas. Rounding
     * is more expensive on gas.
     */
    function multiplyDecimal(uint x, uint y)
        internal
        pure
        returns (uint)
    {
        /* Divide by UNIT to remove the extra factor introduced by the product. */
        return x.mul(y) / UNIT;
    }

    /**
     * @return The result of safely multiplying x and y, interpreting the operands
     * as fixed-point decimals of the specified precision unit.
     *
     * @dev The operands should be in the form of a the specified unit factor which will be
     * divided out after the product of x and y is evaluated, so that product must be
     * less than 2**256.
     *
     * Unlike multiplyDecimal, this function rounds the result to the nearest increment.
     * Rounding is useful when you need to retain fidelity for small decimal numbers
     * (eg. small fractions or percentages).
     */
    function _multiplyDecimalRound(uint x, uint y, uint precisionUnit)
        private
        pure
        returns (uint)
    {
        /* Divide by UNIT to remove the extra factor introduced by the product. */
        uint quotientTimesTen = x.mul(y) / (precisionUnit / 10);

        if (quotientTimesTen % 10 >= 5) {
            quotientTimesTen += 10;
        }

        return quotientTimesTen / 10;
    }

    /**
     * @return The result of safely multiplying x and y, interpreting the operands
     * as fixed-point decimals of a precise unit.
     *
     * @dev The operands should be in the precise unit factor which will be
     * divided out after the product of x and y is evaluated, so that product must be
     * less than 2**256.
     *
     * Unlike multiplyDecimal, this function rounds the result to the nearest increment.
     * Rounding is useful when you need to retain fidelity for small decimal numbers
     * (eg. small fractions or percentages).
     */
    function multiplyDecimalRoundPrecise(uint x, uint y)
        internal
        pure
        returns (uint)
    {
        return _multiplyDecimalRound(x, y, PRECISE_UNIT);
    }

    /**
     * @return The result of safely multiplying x and y, interpreting the operands
     * as fixed-point decimals of a standard unit.
     *
     * @dev The operands should be in the standard unit factor which will be
     * divided out after the product of x and y is evaluated, so that product must be
     * less than 2**256.
     *
     * Unlike multiplyDecimal, this function rounds the result to the nearest increment.
     * Rounding is useful when you need to retain fidelity for small decimal numbers
     * (eg. small fractions or percentages).
     */
    function multiplyDecimalRound(uint x, uint y)
        internal
        pure
        returns (uint)
    {
        return _multiplyDecimalRound(x, y, UNIT);
    }

    /**
     * @return The result of safely dividing x and y. The return value is a high
     * precision decimal.
     * 
     * @dev y is divided after the product of x and the standard precision unit
     * is evaluated, so the product of x and UNIT must be less than 2**256. As
     * this is an integer division, the result is always rounded down.
     * This helps save on gas. Rounding is more expensive on gas.
     */
    function divideDecimal(uint x, uint y)
        internal
        pure
        returns (uint)
    {
        /* Reintroduce the UNIT factor that will be divided out by y. */
        return x.mul(UNIT).div(y);
    }

    /**
     * @return The result of safely dividing x and y. The return value is as a rounded
     * decimal in the precision unit specified in the parameter.
     *
     * @dev y is divided after the product of x and the specified precision unit
     * is evaluated, so the product of x and the specified precision unit must
     * be less than 2**256. The result is rounded to the nearest increment.
     */
    function _divideDecimalRound(uint x, uint y, uint precisionUnit)
        private
        pure
        returns (uint)
    {
        uint resultTimesTen = x.mul(precisionUnit * 10).div(y);

        if (resultTimesTen % 10 >= 5) {
            resultTimesTen += 10;
        }

        return resultTimesTen / 10;
    }

    /**
     * @return The result of safely dividing x and y. The return value is as a rounded
     * standard precision decimal.
     *
     * @dev y is divided after the product of x and the standard precision unit
     * is evaluated, so the product of x and the standard precision unit must
     * be less than 2**256. The result is rounded to the nearest increment.
     */
    function divideDecimalRound(uint x, uint y)
        internal
        pure
        returns (uint)
    {
        return _divideDecimalRound(x, y, UNIT);
    }

    /**
     * @return The result of safely dividing x and y. The return value is as a rounded
     * high precision decimal.
     *
     * @dev y is divided after the product of x and the high precision unit
     * is evaluated, so the product of x and the high precision unit must
     * be less than 2**256. The result is rounded to the nearest increment.
     */
    function divideDecimalRoundPrecise(uint x, uint y)
        internal
        pure
        returns (uint)
    {
        return _divideDecimalRound(x, y, PRECISE_UNIT);
    }

    /**
     * @dev Convert a standard decimal representation to a high precision one.
     */
    function decimalToPreciseDecimal(uint i)
        internal
        pure
        returns (uint)
    {
        return i.mul(UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR);
    }

    /**
     * @dev Convert a high precision decimal to a standard decimal representation.
     */
    function preciseDecimalToDecimal(uint i)
        internal
        pure
        returns (uint)
    {
        uint quotientTimesTen = i / (UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR / 10);

        if (quotientTimesTen % 10 >= 5) {
            quotientTimesTen += 10;
        }

        return quotientTimesTen / 10;
    }

}


/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------

file:       Owned.sol
version:    1.1
author:     Anton Jurisevic
            Dominic Romanowski

date:       2018-2-26

-----------------------------------------------------------------
MODULE DESCRIPTION
-----------------------------------------------------------------

An Owned contract, to be inherited by other contracts.
Requires its owner to be explicitly set in the constructor.
Provides an onlyOwner access modifier.

To change owner, the current owner must nominate the next owner,
who then has to accept the nomination. The nomination can be
cancelled before it is accepted by the new owner by having the
previous owner change the nomination (setting it to 0).

-----------------------------------------------------------------
*/


/**
 * @title A contract with an owner.
 * @notice Contract ownership can be transferred by first nominating the new owner,
 * who must then accept the ownership, which prevents accidental incorrect ownership transfers.
 */
contract Owned {
    address public owner;
    address public nominatedOwner;

    /**
     * @dev Owned Constructor
     */
    constructor(address _owner)
        public
    {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    /**
     * @notice Nominate a new owner of this contract.
     * @dev Only the current owner may nominate a new owner.
     */
    function nominateNewOwner(address _owner)
        external
        onlyOwner
    {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    /**
     * @notice Accept the nomination to be owner.
     */
    function acceptOwnership()
        external
    {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner
    {
        require(msg.sender == owner, "Only the contract owner may perform this action");
        _;
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------

file:       SelfDestructible.sol
version:    1.2
author:     Anton Jurisevic

date:       2018-05-29

-----------------------------------------------------------------
MODULE DESCRIPTION
-----------------------------------------------------------------

This contract allows an inheriting contract to be destroyed after
its owner indicates an intention and then waits for a period
without changing their mind. All ether contained in the contract
is forwarded to a nominated beneficiary upon destruction.

-----------------------------------------------------------------
*/


/**
 * @title A contract that can be destroyed by its owner after a delay elapses.
 */
contract SelfDestructible is Owned {
    
    uint public initiationTime;
    bool public selfDestructInitiated;
    address public selfDestructBeneficiary;
    uint public constant SELFDESTRUCT_DELAY = 4 weeks;

    /**
     * @dev Constructor
     * @param _owner The account which controls this contract.
     */
    constructor(address _owner)
        Owned(_owner)
        public
    {
        require(_owner != address(0), "Owner must not be zero");
        selfDestructBeneficiary = _owner;
        emit SelfDestructBeneficiaryUpdated(_owner);
    }

    /**
     * @notice Set the beneficiary address of this contract.
     * @dev Only the contract owner may call this. The provided beneficiary must be non-null.
     * @param _beneficiary The address to pay any eth contained in this contract to upon self-destruction.
     */
    function setSelfDestructBeneficiary(address _beneficiary)
        external
        onlyOwner
    {
        require(_beneficiary != address(0), "Beneficiary must not be zero");
        selfDestructBeneficiary = _beneficiary;
        emit SelfDestructBeneficiaryUpdated(_beneficiary);
    }

    /**
     * @notice Begin the self-destruction counter of this contract.
     * Once the delay has elapsed, the contract may be self-destructed.
     * @dev Only the contract owner may call this.
     */
    function initiateSelfDestruct()
        external
        onlyOwner
    {
        initiationTime = now;
        selfDestructInitiated = true;
        emit SelfDestructInitiated(SELFDESTRUCT_DELAY);
    }

    /**
     * @notice Terminate and reset the self-destruction timer.
     * @dev Only the contract owner may call this.
     */
    function terminateSelfDestruct()
        external
        onlyOwner
    {
        initiationTime = 0;
        selfDestructInitiated = false;
        emit SelfDestructTerminated();
    }

    /**
     * @notice If the self-destruction delay has elapsed, destroy this contract and
     * remit any ether it owns to the beneficiary address.
     * @dev Only the contract owner may call this.
     */
    function selfDestruct()
        external
        onlyOwner
    {
        require(selfDestructInitiated, "Self Destruct not yet initiated");
        require(initiationTime + SELFDESTRUCT_DELAY < now, "Self destruct delay not met");
        address beneficiary = selfDestructBeneficiary;
        emit SelfDestructed(beneficiary);
        selfdestruct(beneficiary);
    }

    event SelfDestructTerminated();
    event SelfDestructed(address beneficiary);
    event SelfDestructInitiated(uint selfDestructDelay);
    event SelfDestructBeneficiaryUpdated(address newBeneficiary);
}


/*
-----------------------------------------------------------------
MODULE DESCRIPTION
-----------------------------------------------------------------

A contract that any other contract in the Synthetix system can query
for the current market value of various assets, including
crypto assets as well as various fiat assets.

This contract assumes that rate updates will completely update
all rates to their current values. If a rate shock happens
on a single asset, the oracle will still push updated rates
for all other assets.

-----------------------------------------------------------------
*/


/**
 * @title The repository for exchange rates
 */

contract ExchangeRates is SelfDestructible {


    using SafeMath for uint;
    using SafeDecimalMath for uint;

    struct RateAndUpdatedTime {
        uint216 rate;
        uint40 time;
    }

    // Exchange rates and update times stored by currency code, e.g. 'SNX', or 'sUSD'
    mapping(bytes32 => RateAndUpdatedTime) private _rates;

    // The address of the oracle which pushes rate updates to this contract
    address public oracle;

    // Do not allow the oracle to submit times any further forward into the future than this constant.
    uint constant ORACLE_FUTURE_LIMIT = 10 minutes;

    // How long will the contract assume the rate of any asset is correct
    uint public rateStalePeriod = 3 hours;


    // Each participating currency in the XDR basket is represented as a currency key with
    // equal weighting.
    // There are 5 participating currencies, so we'll declare that clearly.
    bytes32[5] public xdrParticipants;

    // A conveience mapping for checking if a rate is a XDR participant
    mapping(bytes32 => bool) public isXDRParticipant;

    // For inverted prices, keep a mapping of their entry, limits and frozen status
    struct InversePricing {
        uint entryPoint;
        uint upperLimit;
        uint lowerLimit;
        bool frozen;
    }
    mapping(bytes32 => InversePricing) public inversePricing;
    bytes32[] public invertedKeys;

    //
    // ========== CONSTRUCTOR ==========

    /**
     * @dev Constructor
     * @param _owner The owner of this contract.
     * @param _oracle The address which is able to update rate information.
     * @param _currencyKeys The initial currency keys to store (in order).
     * @param _newRates The initial currency amounts for each currency (in order).
     */
    constructor(
        // SelfDestructible (Ownable)
        address _owner,

        // Oracle values - Allows for rate updates
        address _oracle,
        bytes32[] _currencyKeys,
        uint[] _newRates
    )
        /* Owned is initialised in SelfDestructible */
        SelfDestructible(_owner)
        public
    {
        require(_currencyKeys.length == _newRates.length, "Currency key length and rate length must match.");

        oracle = _oracle;

        // The sUSD rate is always 1 and is never stale.
        _setRate("sUSD", SafeDecimalMath.unit(), now);

        // These are the currencies that make up the XDR basket.
        // These are hard coded because:
        //  - This way users can depend on the calculation and know it won't change for this deployment of the contract.
        //  - Adding new currencies would likely introduce some kind of weighting factor, which
        //    isn't worth preemptively adding when all of the currencies in the current basket are weighted at 1.
        //  - The expectation is if this logic needs to be updated, we'll simply deploy a new version of this contract
        //    then point the system at the new version.
        xdrParticipants = [
            bytes32("sUSD"),
            bytes32("sAUD"),
            bytes32("sCHF"),
            bytes32("sEUR"),
            bytes32("sGBP")
        ];

        // Mapping the XDR participants is cheaper than looping the xdrParticipants array to check if they exist
        isXDRParticipant[bytes32("sUSD")] = true;
        isXDRParticipant[bytes32("sAUD")] = true;
        isXDRParticipant[bytes32("sCHF")] = true;
        isXDRParticipant[bytes32("sEUR")] = true;
        isXDRParticipant[bytes32("sGBP")] = true;

        internalUpdateRates(_currencyKeys, _newRates, now);
    }

    function rates(bytes32 code) public view returns(uint256) {
        return uint256(_rates[code].rate);
    }

    function lastRateUpdateTimes(bytes32 code) public view returns(uint256) {
        return uint256(_rates[code].time);
    }

    function _setRate(bytes32 code, uint256 rate, uint256 time) internal {
        _rates[code] = RateAndUpdatedTime({
            rate: uint216(rate),
            time: uint40(time)
        });
    }

    /* ========== SETTERS ========== */

    /**
     * @notice Set the rates stored in this contract
     * @param currencyKeys The currency keys you wish to update the rates for (in order)
     * @param newRates The rates for each currency (in order)
     * @param timeSent The timestamp of when the update was sent, specified in seconds since epoch (e.g. the same as the now keyword in solidity).contract
     *                 This is useful because transactions can take a while to confirm, so this way we know how old the oracle's datapoint was exactly even
     *                 if it takes a long time for the transaction to confirm.
     */
    function updateRates(bytes32[] currencyKeys, uint[] newRates, uint timeSent)
        external
        onlyOracle
        returns(bool)
    {
        return internalUpdateRates(currencyKeys, newRates, timeSent);
    }

    /**
     * @notice Internal function which sets the rates stored in this contract
     * @param currencyKeys The currency keys you wish to update the rates for (in order)
     * @param newRates The rates for each currency (in order)
     * @param timeSent The timestamp of when the update was sent, specified in seconds since epoch (e.g. the same as the now keyword in solidity).contract
     *                 This is useful because transactions can take a while to confirm, so this way we know how old the oracle's datapoint was exactly even
     *                 if it takes a long time for the transaction to confirm.
     */
    function internalUpdateRates(bytes32[] currencyKeys, uint[] newRates, uint timeSent)
        internal
        returns(bool)
    {
        require(currencyKeys.length == newRates.length, "Currency key array length must match rates array length.");
        require(timeSent < (now + ORACLE_FUTURE_LIMIT), "Time is too far into the future");

        bool recomputeXDRRate = false;

        // Loop through each key and perform update.
        for (uint i = 0; i < currencyKeys.length; i++) {
            bytes32 currencyKey = currencyKeys[i];

            // Should not set any rate to zero ever, as no asset will ever be
            // truely worthless and still valid. In this scenario, we should
            // delete the rate and remove it from the system.
            require(newRates[i] != 0, "Zero is not a valid rate, please call deleteRate instead.");
            require(currencyKey != "sUSD", "Rate of sUSD cannot be updated, it's always UNIT.");

            // We should only update the rate if it's at least the same age as the last rate we've got.
            if (timeSent < lastRateUpdateTimes(currencyKey)) {
                continue;
            }

            newRates[i] = rateOrInverted(currencyKey, newRates[i]);

            // Ok, go ahead with the update.
            _setRate(currencyKey, newRates[i], timeSent);

            // Flag if XDR needs to be recomputed. Note: sUSD is not sent and assumed $1
            if (!recomputeXDRRate && isXDRParticipant[currencyKey]) {
                recomputeXDRRate = true;
            }
        }

        emit RatesUpdated(currencyKeys, newRates);

        if (recomputeXDRRate) {
            // Now update our XDR rate.
            updateXDRRate(timeSent);
        }

        return true;
    }

    /**
     * @notice Internal function to get the inverted rate, if any, and mark an inverted
     *  key as frozen if either limits are reached.
     *
     * Inverted rates are ones that take a regular rate, perform a simple calculation (double entryPrice and
     * subtract the rate) on them and if the result of the calculation is over or under predefined limits, it freezes the
     * rate at that limit, preventing any future rate updates.
     *
     * For example, if we have an inverted rate iBTC with the following parameters set:
     * - entryPrice of 200
     * - upperLimit of 300
     * - lower of 100
     *
     * if this function is invoked with params iETH and 184 (or rather 184e18),
     * then the rate would be: 200 * 2 - 184 = 216. 100 < 216 < 200, so the rate would be 216,
     * and remain unfrozen.
     *
     * If this function is then invoked with params iETH and 301 (or rather 301e18),
     * then the rate would be: 200 * 2 - 301 = 99. 99 < 100, so the rate would be 100 and the
     * rate would become frozen, no longer accepting future price updates until the synth is unfrozen
     * by the owner function: setInversePricing().
     *
     * @param currencyKey The price key to lookup
     * @param rate The rate for the given price key
     */
    function rateOrInverted(bytes32 currencyKey, uint rate) internal returns (uint) {
        // if an inverse mapping exists, adjust the price accordingly
        InversePricing storage inverse = inversePricing[currencyKey];
        if (inverse.entryPoint <= 0) {
            return rate;
        }

        // set the rate to the current rate initially (if it's frozen, this is what will be returned)
        uint newInverseRate = rates(currencyKey);

        // get the new inverted rate if not frozen
        if (!inverse.frozen) {
            uint doubleEntryPoint = inverse.entryPoint.mul(2);
            if (doubleEntryPoint <= rate) {
                // avoid negative numbers for unsigned ints, so set this to 0
                // which by the requirement that lowerLimit be > 0 will
                // cause this to freeze the price to the lowerLimit
                newInverseRate = 0;
            } else {
                newInverseRate = doubleEntryPoint.sub(rate);
            }

            // now if new rate hits our limits, set it to the limit and freeze
            if (newInverseRate >= inverse.upperLimit) {
                newInverseRate = inverse.upperLimit;
            } else if (newInverseRate <= inverse.lowerLimit) {
                newInverseRate = inverse.lowerLimit;
            }

            if (newInverseRate == inverse.upperLimit || newInverseRate == inverse.lowerLimit) {
                inverse.frozen = true;
                emit InversePriceFrozen(currencyKey);
            }
        }

        return newInverseRate;
    }

    /**
     * @notice Update the Synthetix Drawing Rights exchange rate based on other rates already updated.
     */
    function updateXDRRate(uint timeSent)
        internal
    {
        uint total = 0;

        for (uint i = 0; i < xdrParticipants.length; i++) {
            total = rates(xdrParticipants[i]).add(total);
        }

        // Set the rate and update time
        _setRate("XDR", total, timeSent);

        // Emit our updated event separate to the others to save
        // moving data around between arrays.
        bytes32[] memory eventCurrencyCode = new bytes32[](1);
        eventCurrencyCode[0] = "XDR";

        uint[] memory eventRate = new uint[](1);
        eventRate[0] = rates("XDR");

        emit RatesUpdated(eventCurrencyCode, eventRate);
    }

    /**
     * @notice Delete a rate stored in the contract
     * @param currencyKey The currency key you wish to delete the rate for
     */
    function deleteRate(bytes32 currencyKey)
        external
        onlyOracle
    {
        require(rates(currencyKey) > 0, "Rate is zero");

        delete _rates[currencyKey];

        emit RateDeleted(currencyKey);
    }

    /**
     * @notice Set the Oracle that pushes the rate information to this contract
     * @param _oracle The new oracle address
     */
    function setOracle(address _oracle)
        external
        onlyOwner
    {
        oracle = _oracle;
        emit OracleUpdated(oracle);
    }

    /**
     * @notice Set the stale period on the updated rate variables
     * @param _time The new rateStalePeriod
     */
    function setRateStalePeriod(uint _time)
        external
        onlyOwner
    {
        rateStalePeriod = _time;
        emit RateStalePeriodUpdated(rateStalePeriod);
    }

    /**
     * @notice Set an inverse price up for the currency key.
     *
     * An inverse price is one which has an entryPoint, an uppper and a lower limit. Each update, the
     * rate is calculated as double the entryPrice minus the current rate. If this calculation is
     * above or below the upper or lower limits respectively, then the rate is frozen, and no more
     * rate updates will be accepted.
     *
     * @param currencyKey The currency to update
     * @param entryPoint The entry price point of the inverted price
     * @param upperLimit The upper limit, at or above which the price will be frozen
     * @param lowerLimit The lower limit, at or below which the price will be frozen
     * @param freeze Whether or not to freeze this rate immediately. Note: no frozen event will be configured
     * @param freezeAtUpperLimit When the freeze flag is true, this flag indicates whether the rate
     * to freeze at is the upperLimit or lowerLimit..
     */
    function setInversePricing(bytes32 currencyKey, uint entryPoint, uint upperLimit, uint lowerLimit, bool freeze, bool freezeAtUpperLimit)
        external onlyOwner
    {
        require(entryPoint > 0, "entryPoint must be above 0");
        require(lowerLimit > 0, "lowerLimit must be above 0");
        require(upperLimit > entryPoint, "upperLimit must be above the entryPoint");
        require(upperLimit < entryPoint.mul(2), "upperLimit must be less than double entryPoint");
        require(lowerLimit < entryPoint, "lowerLimit must be below the entryPoint");

        if (inversePricing[currencyKey].entryPoint <= 0) {
            // then we are adding a new inverse pricing, so add this
            invertedKeys.push(currencyKey);
        }
        inversePricing[currencyKey].entryPoint = entryPoint;
        inversePricing[currencyKey].upperLimit = upperLimit;
        inversePricing[currencyKey].lowerLimit = lowerLimit;
        inversePricing[currencyKey].frozen = freeze;

        emit InversePriceConfigured(currencyKey, entryPoint, upperLimit, lowerLimit);

        // When indicating to freeze, we need to know the rate to freeze it at - either upper or lower
        // this is useful in situations where ExchangeRates is updated and there are existing inverted
        // rates already frozen in the current contract that need persisting across the upgrade
        if (freeze) {
            emit InversePriceFrozen(currencyKey);

            _setRate(currencyKey, freezeAtUpperLimit ? upperLimit : lowerLimit, now);
        }
    }

    /**
     * @notice Remove an inverse price for the currency key
     * @param currencyKey The currency to remove inverse pricing for
     */
    function removeInversePricing(bytes32 currencyKey) external onlyOwner
    {
        require(inversePricing[currencyKey].entryPoint > 0, "No inverted price exists");

        inversePricing[currencyKey].entryPoint = 0;
        inversePricing[currencyKey].upperLimit = 0;
        inversePricing[currencyKey].lowerLimit = 0;
        inversePricing[currencyKey].frozen = false;

        // now remove inverted key from array
        for (uint i = 0; i < invertedKeys.length; i++) {
            if (invertedKeys[i] == currencyKey) {
                delete invertedKeys[i];

                // Copy the last key into the place of the one we just deleted
                // If there's only one key, this is array[0] = array[0].
                // If we're deleting the last one, it's also a NOOP in the same way.
                invertedKeys[i] = invertedKeys[invertedKeys.length - 1];

                // Decrease the size of the array by one.
                invertedKeys.length--;

                // Track the event
                emit InversePriceConfigured(currencyKey, 0, 0, 0);

                return;
            }
        }
    }
    /* ========== VIEWS ========== */

    /**
     * @notice A function that lets you easily convert an amount in a source currency to an amount in the destination currency
     * @param sourceCurrencyKey The currency the amount is specified in
     * @param sourceAmount The source amount, specified in UNIT base
     * @param destinationCurrencyKey The destination currency
     */
    function effectiveValue(bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey)
        public
        view
        rateNotStale(sourceCurrencyKey)
        rateNotStale(destinationCurrencyKey)
        returns (uint)
    {
        // If there's no change in the currency, then just return the amount they gave us
        if (sourceCurrencyKey == destinationCurrencyKey) return sourceAmount;

        // Calculate the effective value by going from source -> USD -> destination
        return sourceAmount.multiplyDecimalRound(rateForCurrency(sourceCurrencyKey))
            .divideDecimalRound(rateForCurrency(destinationCurrencyKey));
    }

    /**
     * @notice Retrieve the rate for a specific currency
     */
    function rateForCurrency(bytes32 currencyKey)
        public
        view
        returns (uint)
    {
        return rates(currencyKey);
    }

    /**
     * @notice Retrieve the rates for a list of currencies
     */
    function ratesForCurrencies(bytes32[] currencyKeys)
        public
        view
        returns (uint[])
    {
        uint[] memory _localRates = new uint[](currencyKeys.length);

        for (uint i = 0; i < currencyKeys.length; i++) {
            _localRates[i] = rates(currencyKeys[i]);
        }

        return _localRates;
    }

    /**
     * @notice Retrieve the rates and isAnyStale for a list of currencies
     */
    function ratesAndStaleForCurrencies(bytes32[] currencyKeys)
        public
        view
        returns (uint[], bool)
    {
        uint[] memory _localRates = new uint[](currencyKeys.length);

        bool anyRateStale = false;
        uint period = rateStalePeriod;
        for (uint i = 0; i < currencyKeys.length; i++) {
            RateAndUpdatedTime memory rateAndUpdateTime = _rates[currencyKeys[i]];
            _localRates[i] = uint256(rateAndUpdateTime.rate);
            if (!anyRateStale) {
                anyRateStale = (currencyKeys[i] != "sUSD" && uint256(rateAndUpdateTime.time).add(period) < now);
            }
        }

        return (_localRates, anyRateStale);
    }

    /**
     * @notice Retrieve a list of last update times for specific currencies
     */
    function lastRateUpdateTimeForCurrency(bytes32 currencyKey)
        public
        view
        returns (uint)
    {
        return lastRateUpdateTimes(currencyKey);
    }

    /**
     * @notice Retrieve the last update time for a specific currency
     */
    function lastRateUpdateTimesForCurrencies(bytes32[] currencyKeys)
        public
        view
        returns (uint[])
    {
        uint[] memory lastUpdateTimes = new uint[](currencyKeys.length);

        for (uint i = 0; i < currencyKeys.length; i++) {
            lastUpdateTimes[i] = lastRateUpdateTimes(currencyKeys[i]);
        }

        return lastUpdateTimes;
    }

    /**
     * @notice Check if a specific currency's rate hasn't been updated for longer than the stale period.
     */
    function rateIsStale(bytes32 currencyKey)
        public
        view
        returns (bool)
    {
        // sUSD is a special case and is never stale.
        if (currencyKey == "sUSD") return false;

        return lastRateUpdateTimes(currencyKey).add(rateStalePeriod) < now;
    }

    /**
     * @notice Check if any rate is frozen (cannot be exchanged into)
     */
    function rateIsFrozen(bytes32 currencyKey)
        external
        view
        returns (bool)
    {
        return inversePricing[currencyKey].frozen;
    }


    /**
     * @notice Check if any of the currency rates passed in haven't been updated for longer than the stale period.
     */
    function anyRateIsStale(bytes32[] currencyKeys)
        external
        view
        returns (bool)
    {
        // Loop through each key and check whether the data point is stale.
        uint256 i = 0;

        while (i < currencyKeys.length) {
            // sUSD is a special case and is never false
            if (currencyKeys[i] != "sUSD" && lastRateUpdateTimes(currencyKeys[i]).add(rateStalePeriod) < now) {
                return true;
            }
            i += 1;
        }

        return false;
    }

    /* ========== MODIFIERS ========== */

    modifier rateNotStale(bytes32 currencyKey) {
        require(!rateIsStale(currencyKey), "Rate stale or nonexistant currency");
        _;
    }

    modifier onlyOracle
    {
        require(msg.sender == oracle, "Only the oracle can perform this action");
        _;
    }

    /* ========== EVENTS ========== */

    event OracleUpdated(address newOracle);
    event RateStalePeriodUpdated(uint rateStalePeriod);
    event RatesUpdated(bytes32[] currencyKeys, uint[] newRates);
    event RateDeleted(bytes32 currencyKey);
    event InversePriceConfigured(bytes32 currencyKey, uint entryPoint, uint upperLimit, uint lowerLimit);
    event InversePriceFrozen(bytes32 currencyKey);
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"rateIsStale","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"currencyKeys","type":"bytes32[]"}],"name":"lastRateUpdateTimesForCurrencies","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rateStalePeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"initiationTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"setSelfDestructBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"currencyKeys","type":"bytes32[]"}],"name":"anyRateIsStale","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"invertedKeys","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"terminateSelfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"lastRateUpdateTimeForCurrency","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"deleteRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"sourceCurrencyKey","type":"bytes32"},{"name":"sourceAmount","type":"uint256"},{"name":"destinationCurrencyKey","type":"bytes32"}],"name":"effectiveValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"inversePricing","outputs":[{"name":"entryPoint","type":"uint256"},{"name":"upperLimit","type":"uint256"},{"name":"lowerLimit","type":"uint256"},{"name":"frozen","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_time","type":"uint256"}],"name":"setRateStalePeriod","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"oracle","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"isXDRParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"selfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"SELFDESTRUCT_DELAY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"xdrParticipants","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"rateForCurrency","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"rateIsFrozen","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"currencyKey","type":"bytes32"},{"name":"entryPoint","type":"uint256"},{"name":"upperLimit","type":"uint256"},{"name":"lowerLimit","type":"uint256"},{"name":"freeze","type":"bool"},{"name":"freezeAtUpperLimit","type":"bool"}],"name":"setInversePricing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"selfDestructInitiated","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"currencyKeys","type":"bytes32[]"}],"name":"ratesAndStaleForCurrencies","outputs":[{"name":"","type":"uint256[]"},{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"initiateSelfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"currencyKeys","type":"bytes32[]"},{"name":"newRates","type":"uint256[]"},{"name":"timeSent","type":"uint256"}],"name":"updateRates","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"currencyKeys","type":"bytes32[]"}],"name":"ratesForCurrencies","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"selfDestructBeneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"removeInversePricing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"code","type":"bytes32"}],"name":"lastRateUpdateTimes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"code","type":"bytes32"}],"name":"rates","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_owner","type":"address"},{"name":"_oracle","type":"address"},{"name":"_currencyKeys","type":"bytes32[]"},{"name":"_newRates","type":"uint256[]"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOracle","type":"address"}],"name":"OracleUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"rateStalePeriod","type":"uint256"}],"name":"RateStalePeriodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"currencyKeys","type":"bytes32[]"},{"indexed":false,"name":"newRates","type":"uint256[]"}],"name":"RatesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"currencyKey","type":"bytes32"}],"name":"RateDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"currencyKey","type":"bytes32"},{"indexed":false,"name":"entryPoint","type":"uint256"},{"indexed":false,"name":"upperLimit","type":"uint256"},{"indexed":false,"name":"lowerLimit","type":"uint256"}],"name":"InversePriceConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"currencyKey","type":"bytes32"}],"name":"InversePriceFrozen","type":"event"},{"anonymous":false,"inputs":[],"name":"SelfDestructTerminated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"beneficiary","type":"address"}],"name":"SelfDestructed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"selfDestructDelay","type":"uint256"}],"name":"SelfDestructInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newBeneficiary","type":"address"}],"name":"SelfDestructBeneficiaryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"}]

6080604052612a306006553480156200001757600080fd5b5060405162003a1e38038062003a1e83398101604090815281516020830151918301516060840151919390810191018380600160a060020a0381161515620000c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b60008054600160a060020a031916600160a060020a038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150600160a060020a03811615156200019157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f776e6572206d757374206e6f74206265207a65726f00000000000000000000604482015290519081900360640190fd5b60038054600160a060020a038316610100810261010060a860020a03199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a15080518251146200028257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f43757272656e6379206b6579206c656e67746820616e642072617465206c656e60448201527f677468206d757374206d617463682e0000000000000000000000000000000000606482015290519081900360840190fd5b82600560006101000a815481600160a060020a030219169083600160a060020a031602179055506200036d7f73555344000000000000000000000000000000000000000000000000000000007384d626b2bb4d0f064067e4bf80fce7055d8f3e7b63907af6c06040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156200032f57600080fd5b505af415801562000344573d6000803e3d6000fd5b505050506040513d60208110156200035b57600080fd5b50514264010000000062000565810204565b6040805160a0810182527f735553440000000000000000000000000000000000000000000000000000000081527f734155440000000000000000000000000000000000000000000000000000000060208201527f7343484600000000000000000000000000000000000000000000000000000000918101919091527f734555520000000000000000000000000000000000000000000000000000000060608201527f734742500000000000000000000000000000000000000000000000000000000060808201526200044490600790600562000e43565b50600c6020527f79bb76ef73b66cf929edfc1bfdef8047b96cd9134267b9fac9979b75874aa19a8054600160ff1991821681179092557f554b1686fc05f861ab1f5f624df3840bbf4b91904ac5c3fb12d263759d202fe480548216831790557fe51d8f9798dfb952fc6291e82d5d94c7f98eaca8956e69e52320ab396da1f73a80548216831790557f6adcb1867e0699b45ac0755323ad23f60ab3bff6897a71d5b5c1fa8f103d83dc80548216831790557f73474250000000000000000000000000000000000000000000000000000000006000527f87ae4117f6bf46d2faad000ff57d190ee545c8824e2a7869323bca8c1fa8a23f805490911690911790556200055a828242640100000000620005f0810204565b505050505062000ea8565b604080518082018252600160d860020a03938416815264ffffffffff9283166020808301918252600096875260049052919094209351845491519092167b01000000000000000000000000000000000000000000000000000000029183167fffffffffff00000000000000000000000000000000000000000000000000000090911617909116179055565b600080600080855187511415156200068f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f43757272656e6379206b6579206172726179206c656e677468206d757374206d60448201527f61746368207261746573206172726179206c656e6774682e0000000000000000606482015290519081900360840190fd5b426102580185106200070257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f54696d6520697320746f6f2066617220696e746f207468652066757475726500604482015290519081900360640190fd5b60009250600091505b86518210156200096b5786828151811015156200072457fe5b90602001906020020151905085828151811015156200073f57fe5b602090810290910101511515620007dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f5a65726f206973206e6f7420612076616c696420726174652c20706c6561736560448201527f2063616c6c2064656c6574655261746520696e73746561642e00000000000000606482015290519081900360840190fd5b7f73555344000000000000000000000000000000000000000000000000000000008114156200089357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f52617465206f6620735553442063616e6e6f7420626520757064617465642c2060448201527f6974277320616c7761797320554e49542e000000000000000000000000000000606482015290519081900360840190fd5b620008a78164010000000062000a41810204565b851015620008b5576200095f565b620008e8818784815181101515620008c957fe5b9060200190602002015162000a79640100000000026401000000009004565b8683815181101515620008f757fe5b602090810290910101528551620009379082908890859081106200091757fe5b906020019060200201518762000565640100000000026401000000009004565b821580156200095457506000818152600c602052604090205460ff165b156200095f57600192505b6001909101906200070b565b600080516020620039fe8339815191528787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015620009c3578181015183820152602001620009a9565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101562000a04578181015183820152602001620009ea565b5050505090500194505050505060405180910390a1821562000a345762000a348564010000000062000baa810204565b5060019695505050505050565b6000908152600460205260409020547b01000000000000000000000000000000000000000000000000000000900464ffffffffff1690565b6000828152600d60205260408120805482908190811062000a9d5784935062000ba1565b62000ab18664010000000062000dc0810204565b600384015490925060ff16151562000b9d57825462000ae09060026401000000006200221e62000ddb82021704565b905084811162000af4576000915062000b11565b62000b0e818664010000000062002aa262000e1882021704565b91505b6001830154821062000b2a578260010154915062000b3e565b6002830154821162000b3e57826002015491505b826001015482148062000b545750826002015482145b1562000b9d5760038301805460ff191660011790556040805187815290517f4b3d3f51dab37576ab4ca08ebdb81d4a4c587f25df5cc1f9a620a7faff84aba89181900360200190a15b8193505b50505092915050565b6000806060805b600583101562000c065762000bf88462000be36007866005811062000bd257fe5b015464010000000062000dc0810204565b90640100000000620021db62000e3082021704565b935060019092019162000bb1565b62000c3c7f5844520000000000000000000000000000000000000000000000000000000000858764010000000062000565810204565b60408051600180825281830190925290602080830190803883390190505091507f584452000000000000000000000000000000000000000000000000000000000082600081518110151562000c8d57fe5b602090810290910101526040805160018082528183019092529081602001602082028038833901905050905062000ced7f584452000000000000000000000000000000000000000000000000000000000064010000000062000dc0810204565b81600081518110151562000cfd57fe5b9060200190602002018181525050600080516020620039fe8339815191528282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101562000d6357818101518382015260200162000d49565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101562000da457818101518382015260200162000d8a565b5050505090500194505050505060405180910390a15050505050565b600090815260046020526040902054600160d860020a031690565b60008083151562000df0576000915062000e11565b5082820282848281151562000e0157fe5b041462000e0d57600080fd5b8091505b5092915050565b6000808383111562000e2957600080fd5b5050900390565b60008282018381101562000e0d57600080fd5b826005810192821562000e76579160200282015b8281111562000e76578251825560209092019160019091019062000e57565b5062000e8492915062000e88565b5090565b62000ea591905b8082111562000e84576000815560010162000e8f565b90565b612b468062000eb86000396000f3006080604052600436106101b55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416629919c081146101ba57806305a046e5146101e65780630ee4951b1461028b5780631627540c146102b257806317c70de4146102e257806320714f88146102f75780632d227674146103255780632ea913d4146103455780633278c9601461035d578063446144ad14610372578063459388491461038a57806353a47bb7146103a2578063654a60ac146103e0578063728dec29146103fe57806379ba50971461043e57806379cb657a146104535780637adbf9731461046b5780637dc0d1d0146104995780638208e677146104ae5780638da5cb5b146104c65780639cb8a26a146104db578063a461fc82146104f0578063aa687daf14610505578063ac82f6081461051d578063af3aea8614610535578063b199c7641461054d578063b8225dec14610578578063babcb4231461058d578063bd32aa4414610641578063bfa005ce14610656578063c2c8a67614610685578063c58aaae6146106da578063c8e6f395146106ef578063ce8480ea14610707578063dc7262051461071f575b600080fd5b3480156101c657600080fd5b506101d2600435610737565b604080519115158252519081900360200190f35b3480156101f257600080fd5b506040805160206004803580820135838102808601850190965280855261023b9536959394602494938501929182918501908490808284375094975061078e9650505050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561027757818101518382015260200161025f565b505050509050019250505060405180910390f35b34801561029757600080fd5b506102a0610816565b60408051918252519081900360200190f35b3480156102be57600080fd5b506102e073ffffffffffffffffffffffffffffffffffffffff6004351661081c565b005b3480156102ee57600080fd5b506102a0610941565b34801561030357600080fd5b506102e073ffffffffffffffffffffffffffffffffffffffff60043516610947565b34801561033157600080fd5b506101d26004803560248101910135610af7565b34801561035157600080fd5b506102a0600435610b92565b34801561036957600080fd5b506102e0610bb1565b34801561037e57600080fd5b506102a0600435610cb5565b34801561039657600080fd5b506102e0600435610cc6565b3480156103ae57600080fd5b506103b7610e32565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156103ec57600080fd5b506102a0600435602435604435610e4e565b34801561040a57600080fd5b50610416600435610fd5565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561044a57600080fd5b506102e0610fff565b34801561045f57600080fd5b506102e0600435611150565b34801561047757600080fd5b506102e073ffffffffffffffffffffffffffffffffffffffff60043516611237565b3480156104a557600080fd5b506103b7611362565b3480156104ba57600080fd5b506101d260043561137e565b3480156104d257600080fd5b506103b7611393565b3480156104e757600080fd5b506102e06113af565b3480156104fc57600080fd5b506102a06115b8565b34801561051157600080fd5b506102a06004356115bf565b34801561052957600080fd5b506102a06004356115d3565b34801561054157600080fd5b506101d26004356115de565b34801561055957600080fd5b506102e0600435602435604435606435608435151560a43515156115f6565b34801561058457600080fd5b506101d2611a83565b34801561059957600080fd5b50604080516020600480358082013583810280860185019096528085526105e295369593946024949385019291829185019084908082843750949750611a8c9650505050505050565b604051808060200183151515158152602001828103825284818151815260200191508051906020019060200280838360005b8381101561062c578181015183820152602001610614565b50505050905001935050505060405180910390f35b34801561064d57600080fd5b506102e0611c0b565b34801561066257600080fd5b506101d26024600480358281019290820135918135918201910135604435611d1e565b34801561069157600080fd5b506040805160206004803580820135838102808601850190965280855261023b95369593946024949385019291829185019084908082843750949750611e3a9650505050505050565b3480156106e657600080fd5b506103b7611ebb565b3480156106fb57600080fd5b506102e0600435611edc565b34801561071357600080fd5b506102a0600435612174565b34801561072b57600080fd5b506102a06004356121ac565b60007f735553440000000000000000000000000000000000000000000000000000000082141561076957506000610789565b4261078560065461077985612174565b9063ffffffff6121db16565b1090505b919050565b606080600083516040519080825280602002602001820160405280156107be578160200160208202803883390190505b509150600090505b835181101561080f576107ef84828151811015156107e057fe5b90602001906020020151612174565b82828151811015156107fd57fe5b602090810290910101526001016107c6565b5092915050565b60065481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108c857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b60025481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109f357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b73ffffffffffffffffffffffffffffffffffffffff81161515610a7757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f42656e6566696369617279206d757374206e6f74206265207a65726f00000000604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff831661010081027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a150565b6000805b82811015610b8857838382818110610b0f57fe5b9050602002013560001916600019167f735553440000000000000000000000000000000000000000000000000000000014158015610b72575042610b706006546107798787868181101515610b6057fe5b9050602002013560001916612174565b105b15610b80576001915061080f565b600101610afb565b5060009392505050565b600e805482908110610ba057fe5b600091825260209091200154905081565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c5d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60006002819055600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556040517f6adcc7125002935e0aa31697538ebbd65cfddf20431eb6ecdcfc3e238bfd082c9190a1565b6000610cc082612174565b92915050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610d7257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f6e6c7920746865206f7261636c652063616e20706572666f726d207468697360448201527f20616374696f6e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6000610d7d826121ac565b11610de957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f52617465206973207a65726f0000000000000000000000000000000000000000604482015290519081900360640190fd5b600081815260046020908152604080832092909255815183815291517fe69d655565c7ff1353d8eaeea62fb7904fa9696987431ec351be288c865f1ae19281900390910190a150565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600083610e5a81610737565b15610eec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f52617465207374616c65206f72206e6f6e6578697374616e742063757272656e60448201527f6379000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b82610ef681610737565b15610f8857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f52617465207374616c65206f72206e6f6e6578697374616e742063757272656e60448201527f6379000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b85841415610f9857849250610fcc565b610fc9610fa4856115d3565b610fbd610fb0896115d3565b889063ffffffff6121f416565b9063ffffffff61220916565b92505b50509392505050565b600d6020526000908152604090208054600182015460028301546003909301549192909160ff1684565b60015473ffffffffffffffffffffffffffffffffffffffff1633146110ab57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146111fc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60068190556040805182815290517f16529d8c407b08938da67de7fa4319199baffce4f5d1971f812cc770b0237e669181900360200190a150565b60005473ffffffffffffffffffffffffffffffffffffffff1633146112e357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff838116919091179182905560408051929091168252517f3df77beb5db05fcdd70a30fc8adf3f83f9501b68579455adbd100b8180940394916020908290030190a150565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b600c6020526000908152604090205460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6000805473ffffffffffffffffffffffffffffffffffffffff16331461145c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60035460ff1615156114cf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f53656c66204465737472756374206e6f742079657420696e6974696174656400604482015290519081900360640190fd5b426224ea006002540110151561154657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f53656c662064657374727563742064656c6179206e6f74206d65740000000000604482015290519081900360640190fd5b506003546040805173ffffffffffffffffffffffffffffffffffffffff61010090930492909216808352905190917f8a09e1677ced846cb537dc2b172043bd05a1a81ad7e0033a7ef8ba762df990b7919081900360200190a18073ffffffffffffffffffffffffffffffffffffffff16ff5b6224ea0081565b600781600581106115cc57fe5b0154905081565b6000610cc0826121ac565b6000908152600d602052604090206003015460ff1690565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116a257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b6000851161171157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f656e747279506f696e74206d7573742062652061626f76652030000000000000604482015290519081900360640190fd5b6000831161178057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6c6f7765724c696d6974206d7573742062652061626f76652030000000000000604482015290519081900360640190fd5b84841161181457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f75707065724c696d6974206d7573742062652061626f76652074686520656e7460448201527f7279506f696e7400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b61182585600263ffffffff61221e16565b84106118b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f75707065724c696d6974206d757374206265206c657373207468616e20646f7560448201527f626c6520656e747279506f696e74000000000000000000000000000000000000606482015290519081900360840190fd5b84831061194c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f6c6f7765724c696d6974206d7573742062652062656c6f772074686520656e7460448201527f7279506f696e7400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6000868152600d60205260408120541161199657600e80546001810182556000919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd018690555b6000868152600d6020908152604091829020878155600181018790556002810186905560030180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151517905581518881529081018790528082018690526060810185905290517f37efb38e92b0f94698f6df0c9070e2f00946862a042ac09e34ae8c547684240a916080908290030190a18115611a7b576040805187815290517f4b3d3f51dab37576ab4ca08ebdb81d4a4c587f25df5cc1f9a620a7faff84aba89181900360200190a1611a7b8682611a735784611a75565b855b4261224c565b505050505050565b60035460ff1681565b6060600060606000806000611a9f612ab9565b8751604051908082528060200260200182016040528015611aca578160200160208202803883390190505b509450600093506006549250600091505b8751821015611bfd57600460008984815181101515611af657fe5b60209081029190910181015182528181019290925260409081016000208151808301909252547affffffffffffffffffffffffffffffffffffffffffffffffffffff81168083527b0100000000000000000000000000000000000000000000000000000090910464ffffffffff16928201929092528651909250869084908110611b7c57fe5b60209081029091010152831515611bf2578782815181101515611b9b57fe5b602090810290910101517f735553440000000000000000000000000000000000000000000000000000000014801590611bef575060208101514290611bed9064ffffffffff168563ffffffff6121db16565b105b93505b600190910190611adb565b509296919550909350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611cb757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b42600255600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055604080516224ea00815290517fcbd94ca75b8dc45c9d80c77e851670e78843c0d75180cb81db3e2158228fa9a69181900360200190a1565b60055460009073ffffffffffffffffffffffffffffffffffffffff163314611dcd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f6e6c7920746865206f7261636c652063616e20706572666f726d207468697360448201527f20616374696f6e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b611e308686808060200260200160405190810160405280939291908181526020018383602002808284375050604080516020808c0282810182019093528b82529095508b94508a9350839250850190849080828437508994506122eb9350505050565b9695505050505050565b60608060008351604051908082528060200260200182016040528015611e6a578160200160208202803883390190505b509150600090505b835181101561080f57611e9b8482815181101515611e8c57fe5b906020019060200201516121ac565b8282815181101515611ea957fe5b60209081029091010152600101611e72565b600354610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6000805473ffffffffffffffffffffffffffffffffffffffff163314611f8957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b6000828152600d60205260408120541161200457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4e6f20696e766572746564207072696365206578697374730000000000000000604482015290519081900360640190fd5b506000818152600d60205260408120818155600181018290556002810182905560030180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600e5481101561217057600e80548391908390811061206957fe5b600091825260209091200154141561216857600e80548290811061208957fe5b6000918252602082200155600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019081106120c457fe5b9060005260206000200154600e828154811015156120de57fe5b600091825260209091200155600e80549061211b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301612ad0565b5060408051838152600060208201819052818301819052606082015290517f37efb38e92b0f94698f6df0c9070e2f00946862a042ac09e34ae8c547684240a9181900360800190a1612170565b60010161204e565b5050565b6000908152600460205260409020547b01000000000000000000000000000000000000000000000000000000900464ffffffffff1690565b6000908152600460205260409020547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690565b6000828201838110156121ed57600080fd5b9392505050565b60006121ed8383670de0b6b3a7640000612701565b60006121ed8383670de0b6b3a7640000612740565b600080831515612231576000915061080f565b5082820282848281151561224157fe5b04146121ed57600080fd5b6040805180820182527affffffffffffffffffffffffffffffffffffffffffffffffffffff938416815264ffffffffff9283166020808301918252600096875260049052919094209351845491519092167b01000000000000000000000000000000000000000000000000000000029183167fffffffffff00000000000000000000000000000000000000000000000000000090911617909116179055565b6000806000808551875114151561238957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f43757272656e6379206b6579206172726179206c656e677468206d757374206d60448201527f61746368207261746573206172726179206c656e6774682e0000000000000000606482015290519081900360840190fd5b426102580185106123fb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f54696d6520697320746f6f2066617220696e746f207468652066757475726500604482015290519081900360640190fd5b60009250600091505b865182101561262a57868281518110151561241b57fe5b906020019060200201519050858281518110151561243557fe5b6020908102909101015115156124d257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f5a65726f206973206e6f7420612076616c696420726174652c20706c6561736560448201527f2063616c6c2064656c6574655261746520696e73746561642e00000000000000606482015290519081900360840190fd5b7f735553440000000000000000000000000000000000000000000000000000000081141561258757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f52617465206f6620735553442063616e6e6f7420626520757064617465642c2060448201527f6974277320616c7761797320554e49542e000000000000000000000000000000606482015290519081900360840190fd5b61259081612174565b85101561259c5761261f565b6125bd8187848151811015156125ae57fe5b90602001906020020151612772565b86838151811015156125cb57fe5b6020908102909101015285516125f99082908890859081106125e957fe5b906020019060200201518761224c565b8215801561261557506000818152600c602052604090205460ff165b1561261f57600192505b600190910190612404565b7f1bc0fc8997efa076f59b5ef02c315bc5390f7a6d24d661ce12128c01a3b0ba578787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612691578181015183820152602001612679565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156126d05781810151838201526020016126b8565b5050505090500194505050505060405180910390a182156126f4576126f485612898565b5060019695505050505050565b600080600a8304612718868663ffffffff61221e16565b81151561272157fe5b0490506005600a825b061061273457600a015b600a9004949350505050565b6000806127668461275a87600a870263ffffffff61221e16565b9063ffffffff612a7f16565b90506005600a8261272a565b6000828152600d6020526040812080548290819081106127945784935061288f565b61279d866121ac565b600384015490925060ff16151561288b5782546127c190600263ffffffff61221e16565b90508481116127d357600091506127e6565b6127e3818663ffffffff612aa216565b91505b600183015482106127fd5782600101549150612810565b6002830154821161281057826002015491505b82600101548214806128255750826002015482145b1561288b576003830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040805187815290517f4b3d3f51dab37576ab4ca08ebdb81d4a4c587f25df5cc1f9a620a7faff84aba89181900360200190a15b8193505b50505092915050565b6000806060805b60058310156128d0576128c384610779600786600581106128bc57fe5b01546121ac565b935060019092019161289f565b6128fb7f5844520000000000000000000000000000000000000000000000000000000000858761224c565b60408051600180825281830190925290602080830190803883390190505091507f584452000000000000000000000000000000000000000000000000000000000082600081518110151561294b57fe5b60209081029091010152604080516001808252818301909252908160200160208202803883390190505090506129a07f58445200000000000000000000000000000000000000000000000000000000006121ac565b8160008151811015156129af57fe5b90602001906020020181815250507f1bc0fc8997efa076f59b5ef02c315bc5390f7a6d24d661ce12128c01a3b0ba578282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612a24578181015183820152602001612a0c565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612a63578181015183820152602001612a4b565b5050505090500194505050505060405180910390a15050505050565b600080808311612a8e57600080fd5b8284811515612a9957fe5b04949350505050565b60008083831115612ab257600080fd5b5050900390565b604080518082019091526000808252602082015290565b815481835581811115612af457600083815260209020612af4918101908301612af9565b505050565b612b1791905b80821115612b135760008155600101612aff565b5090565b905600a165627a7a72305820bbc7242442660dfee32d10e6386336532fb10be1d626d342adbe6ce445c4eacd00291bc0fc8997efa076f59b5ef02c315bc5390f7a6d24d661ce12128c01a3b0ba57000000000000000000000000b64ff7a4a33acdf48d97dab0d764afd0f6176882000000000000000000000000ac1ed4fabbd5204e02950d68b6fc8c446ac95362000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001534e580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000010b8e1e406266975

Deployed Bytecode

0x6080604052600436106101b55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416629919c081146101ba57806305a046e5146101e65780630ee4951b1461028b5780631627540c146102b257806317c70de4146102e257806320714f88146102f75780632d227674146103255780632ea913d4146103455780633278c9601461035d578063446144ad14610372578063459388491461038a57806353a47bb7146103a2578063654a60ac146103e0578063728dec29146103fe57806379ba50971461043e57806379cb657a146104535780637adbf9731461046b5780637dc0d1d0146104995780638208e677146104ae5780638da5cb5b146104c65780639cb8a26a146104db578063a461fc82146104f0578063aa687daf14610505578063ac82f6081461051d578063af3aea8614610535578063b199c7641461054d578063b8225dec14610578578063babcb4231461058d578063bd32aa4414610641578063bfa005ce14610656578063c2c8a67614610685578063c58aaae6146106da578063c8e6f395146106ef578063ce8480ea14610707578063dc7262051461071f575b600080fd5b3480156101c657600080fd5b506101d2600435610737565b604080519115158252519081900360200190f35b3480156101f257600080fd5b506040805160206004803580820135838102808601850190965280855261023b9536959394602494938501929182918501908490808284375094975061078e9650505050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561027757818101518382015260200161025f565b505050509050019250505060405180910390f35b34801561029757600080fd5b506102a0610816565b60408051918252519081900360200190f35b3480156102be57600080fd5b506102e073ffffffffffffffffffffffffffffffffffffffff6004351661081c565b005b3480156102ee57600080fd5b506102a0610941565b34801561030357600080fd5b506102e073ffffffffffffffffffffffffffffffffffffffff60043516610947565b34801561033157600080fd5b506101d26004803560248101910135610af7565b34801561035157600080fd5b506102a0600435610b92565b34801561036957600080fd5b506102e0610bb1565b34801561037e57600080fd5b506102a0600435610cb5565b34801561039657600080fd5b506102e0600435610cc6565b3480156103ae57600080fd5b506103b7610e32565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156103ec57600080fd5b506102a0600435602435604435610e4e565b34801561040a57600080fd5b50610416600435610fd5565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561044a57600080fd5b506102e0610fff565b34801561045f57600080fd5b506102e0600435611150565b34801561047757600080fd5b506102e073ffffffffffffffffffffffffffffffffffffffff60043516611237565b3480156104a557600080fd5b506103b7611362565b3480156104ba57600080fd5b506101d260043561137e565b3480156104d257600080fd5b506103b7611393565b3480156104e757600080fd5b506102e06113af565b3480156104fc57600080fd5b506102a06115b8565b34801561051157600080fd5b506102a06004356115bf565b34801561052957600080fd5b506102a06004356115d3565b34801561054157600080fd5b506101d26004356115de565b34801561055957600080fd5b506102e0600435602435604435606435608435151560a43515156115f6565b34801561058457600080fd5b506101d2611a83565b34801561059957600080fd5b50604080516020600480358082013583810280860185019096528085526105e295369593946024949385019291829185019084908082843750949750611a8c9650505050505050565b604051808060200183151515158152602001828103825284818151815260200191508051906020019060200280838360005b8381101561062c578181015183820152602001610614565b50505050905001935050505060405180910390f35b34801561064d57600080fd5b506102e0611c0b565b34801561066257600080fd5b506101d26024600480358281019290820135918135918201910135604435611d1e565b34801561069157600080fd5b506040805160206004803580820135838102808601850190965280855261023b95369593946024949385019291829185019084908082843750949750611e3a9650505050505050565b3480156106e657600080fd5b506103b7611ebb565b3480156106fb57600080fd5b506102e0600435611edc565b34801561071357600080fd5b506102a0600435612174565b34801561072b57600080fd5b506102a06004356121ac565b60007f735553440000000000000000000000000000000000000000000000000000000082141561076957506000610789565b4261078560065461077985612174565b9063ffffffff6121db16565b1090505b919050565b606080600083516040519080825280602002602001820160405280156107be578160200160208202803883390190505b509150600090505b835181101561080f576107ef84828151811015156107e057fe5b90602001906020020151612174565b82828151811015156107fd57fe5b602090810290910101526001016107c6565b5092915050565b60065481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108c857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b60025481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109f357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b73ffffffffffffffffffffffffffffffffffffffff81161515610a7757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f42656e6566696369617279206d757374206e6f74206265207a65726f00000000604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff831661010081027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a150565b6000805b82811015610b8857838382818110610b0f57fe5b9050602002013560001916600019167f735553440000000000000000000000000000000000000000000000000000000014158015610b72575042610b706006546107798787868181101515610b6057fe5b9050602002013560001916612174565b105b15610b80576001915061080f565b600101610afb565b5060009392505050565b600e805482908110610ba057fe5b600091825260209091200154905081565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c5d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60006002819055600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556040517f6adcc7125002935e0aa31697538ebbd65cfddf20431eb6ecdcfc3e238bfd082c9190a1565b6000610cc082612174565b92915050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610d7257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f6e6c7920746865206f7261636c652063616e20706572666f726d207468697360448201527f20616374696f6e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6000610d7d826121ac565b11610de957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f52617465206973207a65726f0000000000000000000000000000000000000000604482015290519081900360640190fd5b600081815260046020908152604080832092909255815183815291517fe69d655565c7ff1353d8eaeea62fb7904fa9696987431ec351be288c865f1ae19281900390910190a150565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600083610e5a81610737565b15610eec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f52617465207374616c65206f72206e6f6e6578697374616e742063757272656e60448201527f6379000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b82610ef681610737565b15610f8857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f52617465207374616c65206f72206e6f6e6578697374616e742063757272656e60448201527f6379000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b85841415610f9857849250610fcc565b610fc9610fa4856115d3565b610fbd610fb0896115d3565b889063ffffffff6121f416565b9063ffffffff61220916565b92505b50509392505050565b600d6020526000908152604090208054600182015460028301546003909301549192909160ff1684565b60015473ffffffffffffffffffffffffffffffffffffffff1633146110ab57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146111fc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60068190556040805182815290517f16529d8c407b08938da67de7fa4319199baffce4f5d1971f812cc770b0237e669181900360200190a150565b60005473ffffffffffffffffffffffffffffffffffffffff1633146112e357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff838116919091179182905560408051929091168252517f3df77beb5db05fcdd70a30fc8adf3f83f9501b68579455adbd100b8180940394916020908290030190a150565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b600c6020526000908152604090205460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6000805473ffffffffffffffffffffffffffffffffffffffff16331461145c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60035460ff1615156114cf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f53656c66204465737472756374206e6f742079657420696e6974696174656400604482015290519081900360640190fd5b426224ea006002540110151561154657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f53656c662064657374727563742064656c6179206e6f74206d65740000000000604482015290519081900360640190fd5b506003546040805173ffffffffffffffffffffffffffffffffffffffff61010090930492909216808352905190917f8a09e1677ced846cb537dc2b172043bd05a1a81ad7e0033a7ef8ba762df990b7919081900360200190a18073ffffffffffffffffffffffffffffffffffffffff16ff5b6224ea0081565b600781600581106115cc57fe5b0154905081565b6000610cc0826121ac565b6000908152600d602052604090206003015460ff1690565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116a257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b6000851161171157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f656e747279506f696e74206d7573742062652061626f76652030000000000000604482015290519081900360640190fd5b6000831161178057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6c6f7765724c696d6974206d7573742062652061626f76652030000000000000604482015290519081900360640190fd5b84841161181457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f75707065724c696d6974206d7573742062652061626f76652074686520656e7460448201527f7279506f696e7400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b61182585600263ffffffff61221e16565b84106118b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f75707065724c696d6974206d757374206265206c657373207468616e20646f7560448201527f626c6520656e747279506f696e74000000000000000000000000000000000000606482015290519081900360840190fd5b84831061194c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f6c6f7765724c696d6974206d7573742062652062656c6f772074686520656e7460448201527f7279506f696e7400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6000868152600d60205260408120541161199657600e80546001810182556000919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd018690555b6000868152600d6020908152604091829020878155600181018790556002810186905560030180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151517905581518881529081018790528082018690526060810185905290517f37efb38e92b0f94698f6df0c9070e2f00946862a042ac09e34ae8c547684240a916080908290030190a18115611a7b576040805187815290517f4b3d3f51dab37576ab4ca08ebdb81d4a4c587f25df5cc1f9a620a7faff84aba89181900360200190a1611a7b8682611a735784611a75565b855b4261224c565b505050505050565b60035460ff1681565b6060600060606000806000611a9f612ab9565b8751604051908082528060200260200182016040528015611aca578160200160208202803883390190505b509450600093506006549250600091505b8751821015611bfd57600460008984815181101515611af657fe5b60209081029190910181015182528181019290925260409081016000208151808301909252547affffffffffffffffffffffffffffffffffffffffffffffffffffff81168083527b0100000000000000000000000000000000000000000000000000000090910464ffffffffff16928201929092528651909250869084908110611b7c57fe5b60209081029091010152831515611bf2578782815181101515611b9b57fe5b602090810290910101517f735553440000000000000000000000000000000000000000000000000000000014801590611bef575060208101514290611bed9064ffffffffff168563ffffffff6121db16565b105b93505b600190910190611adb565b509296919550909350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611cb757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b42600255600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055604080516224ea00815290517fcbd94ca75b8dc45c9d80c77e851670e78843c0d75180cb81db3e2158228fa9a69181900360200190a1565b60055460009073ffffffffffffffffffffffffffffffffffffffff163314611dcd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f6e6c7920746865206f7261636c652063616e20706572666f726d207468697360448201527f20616374696f6e00000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b611e308686808060200260200160405190810160405280939291908181526020018383602002808284375050604080516020808c0282810182019093528b82529095508b94508a9350839250850190849080828437508994506122eb9350505050565b9695505050505050565b60608060008351604051908082528060200260200182016040528015611e6a578160200160208202803883390190505b509150600090505b835181101561080f57611e9b8482815181101515611e8c57fe5b906020019060200201516121ac565b8282815181101515611ea957fe5b60209081029091010152600101611e72565b600354610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6000805473ffffffffffffffffffffffffffffffffffffffff163314611f8957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b6000828152600d60205260408120541161200457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4e6f20696e766572746564207072696365206578697374730000000000000000604482015290519081900360640190fd5b506000818152600d60205260408120818155600181018290556002810182905560030180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600e5481101561217057600e80548391908390811061206957fe5b600091825260209091200154141561216857600e80548290811061208957fe5b6000918252602082200155600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019081106120c457fe5b9060005260206000200154600e828154811015156120de57fe5b600091825260209091200155600e80549061211b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301612ad0565b5060408051838152600060208201819052818301819052606082015290517f37efb38e92b0f94698f6df0c9070e2f00946862a042ac09e34ae8c547684240a9181900360800190a1612170565b60010161204e565b5050565b6000908152600460205260409020547b01000000000000000000000000000000000000000000000000000000900464ffffffffff1690565b6000908152600460205260409020547affffffffffffffffffffffffffffffffffffffffffffffffffffff1690565b6000828201838110156121ed57600080fd5b9392505050565b60006121ed8383670de0b6b3a7640000612701565b60006121ed8383670de0b6b3a7640000612740565b600080831515612231576000915061080f565b5082820282848281151561224157fe5b04146121ed57600080fd5b6040805180820182527affffffffffffffffffffffffffffffffffffffffffffffffffffff938416815264ffffffffff9283166020808301918252600096875260049052919094209351845491519092167b01000000000000000000000000000000000000000000000000000000029183167fffffffffff00000000000000000000000000000000000000000000000000000090911617909116179055565b6000806000808551875114151561238957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f43757272656e6379206b6579206172726179206c656e677468206d757374206d60448201527f61746368207261746573206172726179206c656e6774682e0000000000000000606482015290519081900360840190fd5b426102580185106123fb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f54696d6520697320746f6f2066617220696e746f207468652066757475726500604482015290519081900360640190fd5b60009250600091505b865182101561262a57868281518110151561241b57fe5b906020019060200201519050858281518110151561243557fe5b6020908102909101015115156124d257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f5a65726f206973206e6f7420612076616c696420726174652c20706c6561736560448201527f2063616c6c2064656c6574655261746520696e73746561642e00000000000000606482015290519081900360840190fd5b7f735553440000000000000000000000000000000000000000000000000000000081141561258757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f52617465206f6620735553442063616e6e6f7420626520757064617465642c2060448201527f6974277320616c7761797320554e49542e000000000000000000000000000000606482015290519081900360840190fd5b61259081612174565b85101561259c5761261f565b6125bd8187848151811015156125ae57fe5b90602001906020020151612772565b86838151811015156125cb57fe5b6020908102909101015285516125f99082908890859081106125e957fe5b906020019060200201518761224c565b8215801561261557506000818152600c602052604090205460ff165b1561261f57600192505b600190910190612404565b7f1bc0fc8997efa076f59b5ef02c315bc5390f7a6d24d661ce12128c01a3b0ba578787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612691578181015183820152602001612679565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156126d05781810151838201526020016126b8565b5050505090500194505050505060405180910390a182156126f4576126f485612898565b5060019695505050505050565b600080600a8304612718868663ffffffff61221e16565b81151561272157fe5b0490506005600a825b061061273457600a015b600a9004949350505050565b6000806127668461275a87600a870263ffffffff61221e16565b9063ffffffff612a7f16565b90506005600a8261272a565b6000828152600d6020526040812080548290819081106127945784935061288f565b61279d866121ac565b600384015490925060ff16151561288b5782546127c190600263ffffffff61221e16565b90508481116127d357600091506127e6565b6127e3818663ffffffff612aa216565b91505b600183015482106127fd5782600101549150612810565b6002830154821161281057826002015491505b82600101548214806128255750826002015482145b1561288b576003830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040805187815290517f4b3d3f51dab37576ab4ca08ebdb81d4a4c587f25df5cc1f9a620a7faff84aba89181900360200190a15b8193505b50505092915050565b6000806060805b60058310156128d0576128c384610779600786600581106128bc57fe5b01546121ac565b935060019092019161289f565b6128fb7f5844520000000000000000000000000000000000000000000000000000000000858761224c565b60408051600180825281830190925290602080830190803883390190505091507f584452000000000000000000000000000000000000000000000000000000000082600081518110151561294b57fe5b60209081029091010152604080516001808252818301909252908160200160208202803883390190505090506129a07f58445200000000000000000000000000000000000000000000000000000000006121ac565b8160008151811015156129af57fe5b90602001906020020181815250507f1bc0fc8997efa076f59b5ef02c315bc5390f7a6d24d661ce12128c01a3b0ba578282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612a24578181015183820152602001612a0c565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612a63578181015183820152602001612a4b565b5050505090500194505050505060405180910390a15050505050565b600080808311612a8e57600080fd5b8284811515612a9957fe5b04949350505050565b60008083831115612ab257600080fd5b5050900390565b604080518082019091526000808252602082015290565b815481835581811115612af457600083815260209020612af4918101908301612af9565b505050565b612b1791905b80821115612b135760008155600101612aff565b5090565b905600a165627a7a72305820bbc7242442660dfee32d10e6386336532fb10be1d626d342adbe6ce445c4eacd0029

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

000000000000000000000000b64ff7a4a33acdf48d97dab0d764afd0f6176882000000000000000000000000ac1ed4fabbd5204e02950d68b6fc8c446ac95362000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001534e580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000010b8e1e406266975

-----Decoded View---------------
Arg [0] : _owner (address): 0xB64fF7a4a33Acdf48d97dab0D764afD0F6176882
Arg [1] : _oracle (address): 0xaC1ED4Fabbd5204E02950D68b6FC8c446AC95362
Arg [2] : _currencyKeys (bytes32[]): System.Byte[]
Arg [3] : _newRates (uint256[]): 1204961269793581429

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000b64ff7a4a33acdf48d97dab0d764afd0f6176882
Arg [1] : 000000000000000000000000ac1ed4fabbd5204e02950d68b6fc8c446ac95362
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 534e580000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 00000000000000000000000000000000000000000000000010b8e1e406266975


Libraries Used


Swarm Source

bzzr://bbc7242442660dfee32d10e6386336532fb10be1d626d342adbe6ce445c4eacd

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

The legacy address for Synthetix: Exchange Rates contract.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.