Contract 0x5f24d012556e579bb6b1d71036625a3e152dd35a

 
Ad
Ad
Txn Hash Method
Block
From
To
Value
0x94aefb1330392d4d4c1aeabeea59a498e096d29c1afa1e31f18ed69ddfe14b2cPurge80763282019-07-03 4:30:17720 days 15 hrs agoSynthetix: Deployer 2 IN  0x5f24d012556e579bb6b1d71036625a3e152dd35a0 Ether0.003890730
0x516408814d997e77a89544cb5bd173980a7bc2a3f73266f14220e15c57ec9631Purge80763052019-07-03 4:26:30720 days 15 hrs agoSynthetix: Deployer 2 IN  0x5f24d012556e579bb6b1d71036625a3e152dd35a0 Ether0.0012937530
0xe46af2c6e513760c7cc85da15851cf0ef827ed8dbb1b9311a0649a426fab676bSet Total Supply80761752019-07-03 3:56:51720 days 16 hrs agoSynthetix: Deployer 2 IN  0x5f24d012556e579bb6b1d71036625a3e152dd35a0 Ether0.0012793420
0xab5e6543142a93fcc980dbfa7704a435b1ce7fa4a93f627008031b8b5374eae00x6080604080761492019-07-03 3:50:38720 days 16 hrs agoSynthetix: Deployer 2 IN  Contract Creation0 Ether0.1053505820
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x0a24864596C54D79C825e64b281645249C14590C

Contract Name:
PurgeableSynth

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-07-10
*/

/* ===============================================
* 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 the zero address");
        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 the zero address");
        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 has not yet been initiated");
        require(initiationTime + SELFDESTRUCT_DELAY < now, "Self destruct delay has not yet elapsed");
        address beneficiary = selfDestructBeneficiary;
        emit SelfDestructed(beneficiary);
        selfdestruct(beneficiary);
    }

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


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

file:       ExchangeRates.sol
version:    1.0
author:     Kevin Brown
date:       2018-09-12

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

    // Exchange rates stored by currency code, e.g. 'SNX', or 'sUSD'
    mapping(bytes4 => uint) public rates;

    // Update times stored by currency code, e.g. 'SNX', or 'sUSD'
    mapping(bytes4 => uint) public lastRateUpdateTimes;

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

    // Lock exchanges until price update complete
    bool public priceUpdateLock = false;

    // 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.
    bytes4[5] public xdrParticipants;

    // For inverted prices, keep a mapping of their entry, limits and frozen status
    struct InversePricing {
        uint entryPoint;
        uint upperLimit;
        uint lowerLimit;
        bool frozen;
    }
    mapping(bytes4 => InversePricing) public inversePricing;
    bytes4[] 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,
        bytes4[] _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.
        rates["sUSD"] = SafeDecimalMath.unit();
        lastRateUpdateTimes["sUSD"] = 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 = [
            bytes4("sUSD"),
            bytes4("sAUD"),
            bytes4("sCHF"),
            bytes4("sEUR"),
            bytes4("sGBP")
        ];

        internalUpdateRates(_currencyKeys, _newRates, now);
    }

    /* ========== 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(bytes4[] 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(bytes4[] 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");

        // Loop through each key and perform update.
        for (uint i = 0; i < currencyKeys.length; 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(currencyKeys[i] != "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[currencyKeys[i]]) {
                continue;
            }

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

            // Ok, go ahead with the update.
            rates[currencyKeys[i]] = newRates[i];
            lastRateUpdateTimes[currencyKeys[i]] = timeSent;
        }

        emit RatesUpdated(currencyKeys, newRates);

        // Now update our XDR rate.
        updateXDRRate(timeSent);

        // If locked during a priceupdate then reset it
        if (priceUpdateLock) {
            priceUpdateLock = false;
        }

        return true;
    }

    /**
     * @notice Internal function to get the inverted rate, if any, and mark an inverted
     *  key as frozen if either limits are reached.
     * @param currencyKey The price key to lookup
     * @param rate The rate for the given price key
     */
    function rateOrInverted(bytes4 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
        rates["XDR"] = total;

        // Record that we updated the XDR rate.
        lastRateUpdateTimes["XDR"] = timeSent;

        // Emit our updated event separate to the others to save
        // moving data around between arrays.
        bytes4[] memory eventCurrencyCode = new bytes4[](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(bytes4 currencyKey)
        external
        onlyOracle
    {
        require(rates[currencyKey] > 0, "Rate is zero");

        delete rates[currencyKey];
        delete lastRateUpdateTimes[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 the the locked state for a priceUpdate call
     * @param _priceUpdateLock lock boolean flag
     */
    function setPriceUpdateLock(bool _priceUpdateLock)
        external
        onlyOracle
    {
        priceUpdateLock = _priceUpdateLock;
    }

    /**
     * @notice Set an inverse price up for the currency key
     * @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
     */
    function setInversePricing(bytes4 currencyKey, uint entryPoint, uint upperLimit, uint lowerLimit)
        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 = false;

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

    /**
     * @notice Remove an inverse price for the currency key
     * @param currencyKey The currency to remove inverse pricing for
     */
    function removeInversePricing(bytes4 currencyKey) external onlyOwner {
        inversePricing[currencyKey].entryPoint = 0;
        inversePricing[currencyKey].upperLimit = 0;
        inversePricing[currencyKey].lowerLimit = 0;
        inversePricing[currencyKey].frozen = false;

        // now remove inverted key from array
        for (uint8 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--;

                break;
            }
        }

        emit InversePriceConfigured(currencyKey, 0, 0, 0);
    }
    /* ========== 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(bytes4 sourceCurrencyKey, uint sourceAmount, bytes4 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(bytes4 currencyKey)
        public
        view
        returns (uint)
    {
        return rates[currencyKey];
    }

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

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

        return _rates;
    }

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

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

        for (uint8 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(bytes4 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(bytes4 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(bytes4[] 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(bytes4 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(bytes4[] currencyKeys, uint[] newRates);
    event RateDeleted(bytes4 currencyKey);
    event InversePriceConfigured(bytes4 currencyKey, uint entryPoint, uint upperLimit, uint lowerLimit);
    event InversePriceFrozen(bytes4 currencyKey);
}


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

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

date:       2018-05-15

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

This contract is used side by side with external state token
contracts, such as Synthetix and Synth.
It provides an easy way to upgrade contract logic while
maintaining all user balances and allowances. This is designed
to make the changeover as easy as possible, since mappings
are not so cheap or straightforward to migrate.

The first deployed contract would create this state contract,
using it as its store of balances.
When a new contract is deployed, it links to the existing
state contract, whose owner would then change its associated
contract to the new one.

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


contract State is Owned {
    // the address of the contract that can modify variables
    // this can only be changed by the owner of this contract
    address public associatedContract;


    constructor(address _owner, address _associatedContract)
        Owned(_owner)
        public
    {
        associatedContract = _associatedContract;
        emit AssociatedContractUpdated(_associatedContract);
    }

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

    // Change the associated contract to a new address
    function setAssociatedContract(address _associatedContract)
        external
        onlyOwner
    {
        associatedContract = _associatedContract;
        emit AssociatedContractUpdated(_associatedContract);
    }

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

    modifier onlyAssociatedContract
    {
        require(msg.sender == associatedContract, "Only the associated contract can perform this action");
        _;
    }

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

    event AssociatedContractUpdated(address associatedContract);
}


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

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

date:       2018-05-15

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

A contract that holds the state of an ERC20 compliant token.

This contract is used side by side with external state token
contracts, such as Synthetix and Synth.
It provides an easy way to upgrade contract logic while
maintaining all user balances and allowances. This is designed
to make the changeover as easy as possible, since mappings
are not so cheap or straightforward to migrate.

The first deployed contract would create this state contract,
using it as its store of balances.
When a new contract is deployed, it links to the existing
state contract, whose owner would then change its associated
contract to the new one.

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


/**
 * @title ERC20 Token State
 * @notice Stores balance information of an ERC20 token contract.
 */
contract TokenState is State {

    /* ERC20 fields. */
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    /**
     * @dev Constructor
     * @param _owner The address which controls this contract.
     * @param _associatedContract The ERC20 contract whose state this composes.
     */
    constructor(address _owner, address _associatedContract)
        State(_owner, _associatedContract)
        public
    {}

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

    /**
     * @notice Set ERC20 allowance.
     * @dev Only the associated contract may call this.
     * @param tokenOwner The authorising party.
     * @param spender The authorised party.
     * @param value The total value the authorised party may spend on the
     * authorising party's behalf.
     */
    function setAllowance(address tokenOwner, address spender, uint value)
        external
        onlyAssociatedContract
    {
        allowance[tokenOwner][spender] = value;
    }

    /**
     * @notice Set the balance in a given account
     * @dev Only the associated contract may call this.
     * @param account The account whose value to set.
     * @param value The new balance of the given account.
     */
    function setBalanceOf(address account, uint value)
        external
        onlyAssociatedContract
    {
        balanceOf[account] = value;
    }
}


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

file:       Proxy.sol
version:    1.3
author:     Anton Jurisevic

date:       2018-05-29

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

A proxy contract that, if it does not recognise the function
being called on it, passes all value and call data to an
underlying target contract.

This proxy has the capacity to toggle between DELEGATECALL
and CALL style proxy functionality.

The former executes in the proxy's context, and so will preserve 
msg.sender and store data at the proxy address. The latter will not.
Therefore, any contract the proxy wraps in the CALL style must
implement the Proxyable interface, in order that it can pass msg.sender
into the underlying contract as the state parameter, messageSender.

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


contract Proxy is Owned {

    Proxyable public target;
    bool public useDELEGATECALL;

    constructor(address _owner)
        Owned(_owner)
        public
    {}

    function setTarget(Proxyable _target)
        external
        onlyOwner
    {
        target = _target;
        emit TargetUpdated(_target);
    }

    function setUseDELEGATECALL(bool value) 
        external
        onlyOwner
    {
        useDELEGATECALL = value;
    }

    function _emit(bytes callData, uint numTopics, bytes32 topic1, bytes32 topic2, bytes32 topic3, bytes32 topic4)
        external
        onlyTarget
    {
        uint size = callData.length;
        bytes memory _callData = callData;

        assembly {
            /* The first 32 bytes of callData contain its length (as specified by the abi). 
             * Length is assumed to be a uint256 and therefore maximum of 32 bytes
             * in length. It is also leftpadded to be a multiple of 32 bytes.
             * This means moving call_data across 32 bytes guarantees we correctly access
             * the data itself. */
            switch numTopics
            case 0 {
                log0(add(_callData, 32), size)
            } 
            case 1 {
                log1(add(_callData, 32), size, topic1)
            }
            case 2 {
                log2(add(_callData, 32), size, topic1, topic2)
            }
            case 3 {
                log3(add(_callData, 32), size, topic1, topic2, topic3)
            }
            case 4 {
                log4(add(_callData, 32), size, topic1, topic2, topic3, topic4)
            }
        }
    }

    function()
        external
        payable
    {
        if (useDELEGATECALL) {
            assembly {
                /* Copy call data into free memory region. */
                let free_ptr := mload(0x40)
                calldatacopy(free_ptr, 0, calldatasize)

                /* Forward all gas and call data to the target contract. */
                let result := delegatecall(gas, sload(target_slot), free_ptr, calldatasize, 0, 0)
                returndatacopy(free_ptr, 0, returndatasize)

                /* Revert if the call failed, otherwise return the result. */
                if iszero(result) { revert(free_ptr, returndatasize) }
                return(free_ptr, returndatasize)
            }
        } else {
            /* Here we are as above, but must send the messageSender explicitly 
             * since we are using CALL rather than DELEGATECALL. */
            target.setMessageSender(msg.sender);
            assembly {
                let free_ptr := mload(0x40)
                calldatacopy(free_ptr, 0, calldatasize)

                /* We must explicitly forward ether to the underlying contract as well. */
                let result := call(gas, sload(target_slot), callvalue, free_ptr, calldatasize, 0, 0)
                returndatacopy(free_ptr, 0, returndatasize)

                if iszero(result) { revert(free_ptr, returndatasize) }
                return(free_ptr, returndatasize)
            }
        }
    }

    modifier onlyTarget {
        require(Proxyable(msg.sender) == target, "Must be proxy target");
        _;
    }

    event TargetUpdated(Proxyable newTarget);
}


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

file:       Proxyable.sol
version:    1.1
author:     Anton Jurisevic

date:       2018-05-15

checked:    Mike Spain
approved:   Samuel Brooks

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

A proxyable contract that works hand in hand with the Proxy contract
to allow for anyone to interact with the underlying contract both
directly and through the proxy.

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


// This contract should be treated like an abstract contract
contract Proxyable is Owned {
    /* The proxy this contract exists behind. */
    Proxy public proxy;

    /* The caller of the proxy, passed through to this contract.
     * Note that every function using this member must apply the onlyProxy or
     * optionalProxy modifiers, otherwise their invocations can use stale values. */ 
    address messageSender; 

    constructor(address _proxy, address _owner)
        Owned(_owner)
        public
    {
        proxy = Proxy(_proxy);
        emit ProxyUpdated(_proxy);
    }

    function setProxy(address _proxy)
        external
        onlyOwner
    {
        proxy = Proxy(_proxy);
        emit ProxyUpdated(_proxy);
    }

    function setMessageSender(address sender)
        external
        onlyProxy
    {
        messageSender = sender;
    }

    modifier onlyProxy {
        require(Proxy(msg.sender) == proxy, "Only the proxy can call this function");
        _;
    }

    modifier optionalProxy
    {
        if (Proxy(msg.sender) != proxy) {
            messageSender = msg.sender;
        }
        _;
    }

    modifier optionalProxy_onlyOwner
    {
        if (Proxy(msg.sender) != proxy) {
            messageSender = msg.sender;
        }
        require(messageSender == owner, "This action can only be performed by the owner");
        _;
    }

    event ProxyUpdated(address proxyAddress);
}


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

file:       ExternStateToken.sol
version:    1.0
author:     Kevin Brown
date:       2018-08-06

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

This contract offers a modifer that can prevent reentrancy on
particular actions. It will not work if you put it on multiple
functions that can be called from each other. Specifically guard
external entry points to the contract with the modifier only.

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


contract ReentrancyPreventer {
    /* ========== MODIFIERS ========== */
    bool isInFunctionBody = false;

    modifier preventReentrancy {
        require(!isInFunctionBody, "Reverted to prevent reentrancy");
        isInFunctionBody = true;
        _;
        isInFunctionBody = false;
    }
}

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

file:       TokenFallback.sol
version:    1.0
author:     Kevin Brown
date:       2018-08-10

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

This contract provides the logic that's used to call tokenFallback()
when transfers happen.

It's pulled out into its own module because it's needed in two
places, so instead of copy/pasting this logic and maininting it
both in Fee Token and Extern State Token, it's here and depended
on by both contracts.

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


contract TokenFallbackCaller is ReentrancyPreventer {
    function callTokenFallbackIfNeeded(address sender, address recipient, uint amount, bytes data)
        internal
        preventReentrancy
    {
        /*
            If we're transferring to a contract and it implements the tokenFallback function, call it.
            This isn't ERC223 compliant because we don't revert if the contract doesn't implement tokenFallback.
            This is because many DEXes and other contracts that expect to work with the standard
            approve / transferFrom workflow don't implement tokenFallback but can still process our tokens as
            usual, so it feels very harsh and likely to cause trouble if we add this restriction after having
            previously gone live with a vanilla ERC20.
        */

        // Is the to address a contract? We can check the code size on that address and know.
        uint length;

        // solium-disable-next-line security/no-inline-assembly
        assembly {
            // Retrieve the size of the code on the recipient address
            length := extcodesize(recipient)
        }

        // If there's code there, it's a contract
        if (length > 0) {
            // Now we need to optionally call tokenFallback(address from, uint value).
            // We can't call it the normal way because that reverts when the recipient doesn't implement the function.

            // solium-disable-next-line security/no-low-level-calls
            recipient.call(abi.encodeWithSignature("tokenFallback(address,uint256,bytes)", sender, amount, data));

            // And yes, we specifically don't care if this call fails, so we're not checking the return value.
        }
    }
}


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

file:       ExternStateToken.sol
version:    1.3
author:     Anton Jurisevic
            Dominic Romanowski
            Kevin Brown

date:       2018-05-29

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

A partial ERC20 token contract, designed to operate with a proxy.
To produce a complete ERC20 token, transfer and transferFrom
tokens must be implemented, using the provided _byProxy internal
functions.
This contract utilises an external state for upgradeability.

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


/**
 * @title ERC20 Token contract, with detached state and designed to operate behind a proxy.
 */
contract ExternStateToken is SelfDestructible, Proxyable, TokenFallbackCaller {

    using SafeMath for uint;
    using SafeDecimalMath for uint;

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

    /* Stores balances and allowances. */
    TokenState public tokenState;

    /* Other ERC20 fields. */
    string public name;
    string public symbol;
    uint public totalSupply;
    uint8 public decimals;

    /**
     * @dev Constructor.
     * @param _proxy The proxy associated with this contract.
     * @param _name Token's ERC20 name.
     * @param _symbol Token's ERC20 symbol.
     * @param _totalSupply The total supply of the token.
     * @param _tokenState The TokenState contract address.
     * @param _owner The owner of this contract.
     */
    constructor(address _proxy, TokenState _tokenState,
                string _name, string _symbol, uint _totalSupply,
                uint8 _decimals, address _owner)
        SelfDestructible(_owner)
        Proxyable(_proxy, _owner)
        public
    {
        tokenState = _tokenState;

        name = _name;
        symbol = _symbol;
        totalSupply = _totalSupply;
        decimals = _decimals;
    }

    /* ========== VIEWS ========== */

    /**
     * @notice Returns the ERC20 allowance of one party to spend on behalf of another.
     * @param owner The party authorising spending of their funds.
     * @param spender The party spending tokenOwner's funds.
     */
    function allowance(address owner, address spender)
        public
        view
        returns (uint)
    {
        return tokenState.allowance(owner, spender);
    }

    /**
     * @notice Returns the ERC20 token balance of a given account.
     */
    function balanceOf(address account)
        public
        view
        returns (uint)
    {
        return tokenState.balanceOf(account);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    /**
     * @notice Set the address of the TokenState contract.
     * @dev This can be used to "pause" transfer functionality, by pointing the tokenState at 0x000..
     * as balances would be unreachable.
     */ 
    function setTokenState(TokenState _tokenState)
        external
        optionalProxy_onlyOwner
    {
        tokenState = _tokenState;
        emitTokenStateUpdated(_tokenState);
    }

    function _internalTransfer(address from, address to, uint value, bytes data) 
        internal
        returns (bool)
    { 
        /* Disallow transfers to irretrievable-addresses. */
        require(to != address(0), "Cannot transfer to the 0 address");
        require(to != address(this), "Cannot transfer to the underlying contract");
        require(to != address(proxy), "Cannot transfer to the proxy contract");

        // Insufficient balance will be handled by the safe subtraction.
        tokenState.setBalanceOf(from, tokenState.balanceOf(from).sub(value));
        tokenState.setBalanceOf(to, tokenState.balanceOf(to).add(value));

        // If the recipient is a contract, we need to call tokenFallback on it so they can do ERC223
        // actions when receiving our tokens. Unlike the standard, however, we don't revert if the
        // recipient contract doesn't implement tokenFallback.
        callTokenFallbackIfNeeded(from, to, value, data);
        
        // Emit a standard ERC20 transfer event
        emitTransfer(from, to, value);

        return true;
    }

    /**
     * @dev Perform an ERC20 token transfer. Designed to be called by transfer functions possessing
     * the onlyProxy or optionalProxy modifiers.
     */
    function _transfer_byProxy(address from, address to, uint value, bytes data)
        internal
        returns (bool)
    {
        return _internalTransfer(from, to, value, data);
    }

    /**
     * @dev Perform an ERC20 token transferFrom. Designed to be called by transferFrom functions
     * possessing the optionalProxy or optionalProxy modifiers.
     */
    function _transferFrom_byProxy(address sender, address from, address to, uint value, bytes data)
        internal
        returns (bool)
    {
        /* Insufficient allowance will be handled by the safe subtraction. */
        tokenState.setAllowance(from, sender, tokenState.allowance(from, sender).sub(value));
        return _internalTransfer(from, to, value, data);
    }

    /**
     * @notice Approves spender to transfer on the message sender's behalf.
     */
    function approve(address spender, uint value)
        public
        optionalProxy
        returns (bool)
    {
        address sender = messageSender;

        tokenState.setAllowance(sender, spender, value);
        emitApproval(sender, spender, value);
        return true;
    }

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

    event Transfer(address indexed from, address indexed to, uint value);
    bytes32 constant TRANSFER_SIG = keccak256("Transfer(address,address,uint256)");
    function emitTransfer(address from, address to, uint value) internal {
        proxy._emit(abi.encode(value), 3, TRANSFER_SIG, bytes32(from), bytes32(to), 0);
    }

    event Approval(address indexed owner, address indexed spender, uint value);
    bytes32 constant APPROVAL_SIG = keccak256("Approval(address,address,uint256)");
    function emitApproval(address owner, address spender, uint value) internal {
        proxy._emit(abi.encode(value), 3, APPROVAL_SIG, bytes32(owner), bytes32(spender), 0);
    }

    event TokenStateUpdated(address newTokenState);
    bytes32 constant TOKENSTATEUPDATED_SIG = keccak256("TokenStateUpdated(address)");
    function emitTokenStateUpdated(address newTokenState) internal {
        proxy._emit(abi.encode(newTokenState), 1, TOKENSTATEUPDATED_SIG, 0, 0, 0);
    }
}


contract IFeePool {
    address public FEE_ADDRESS;
    function amountReceivedFromExchange(uint value) external view returns (uint);
    function amountReceivedFromTransfer(uint value) external view returns (uint);
    function feePaid(bytes4 currencyKey, uint amount) external;
    function appendAccountIssuanceRecord(address account, uint lockedAmount, uint debtEntryIndex) external;
    function rewardsMinted(uint amount) external;
    function transferFeeIncurred(uint value) public view returns (uint);
}


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

file:       SupplySchedule.sol
version:    1.0
author:     Jackson Chan
            Clinton Ennis
date:       2019-03-01

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

Supply Schedule contract. SNX is a transferable ERC20 token.

User's get staking rewards as part of the incentives of
+------+-------------+--------------+----------+
| Year |  Increase   | Total Supply | Increase |
+------+-------------+--------------+----------+
|    1 |           0 |  100,000,000 |          |
|    2 |  75,000,000 |  175,000,000 | 75%      |
|    3 |  37,500,000 |  212,500,000 | 21%      |
|    4 |  18,750,000 |  231,250,000 | 9%       |
|    5 |   9,375,000 |  240,625,000 | 4%       |
|    6 |   4,687,500 |  245,312,500 | 2%       |
+------+-------------+--------------+----------+


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


/**
 * @title SupplySchedule contract
 */
contract SupplySchedule is Owned {
    using SafeMath for uint;
    using SafeDecimalMath for uint;

    /* Storage */
    struct ScheduleData {
        // Total supply issuable during period
        uint totalSupply;

        // UTC Time - Start of the schedule
        uint startPeriod;

        // UTC Time - End of the schedule
        uint endPeriod;

        // UTC Time - Total of supply minted
        uint totalSupplyMinted;
    }

    // How long each mint period is
    uint public mintPeriodDuration = 1 weeks;

    // time supply last minted
    uint public lastMintEvent;

    Synthetix public synthetix;

    uint constant SECONDS_IN_YEAR = 60 * 60 * 24 * 365;

    uint public constant START_DATE = 1520294400; // 2018-03-06T00:00:00+00:00
    uint public constant YEAR_ONE = START_DATE + SECONDS_IN_YEAR.mul(1);
    uint public constant YEAR_TWO = START_DATE + SECONDS_IN_YEAR.mul(2);
    uint public constant YEAR_THREE = START_DATE + SECONDS_IN_YEAR.mul(3);
    uint public constant YEAR_FOUR = START_DATE + SECONDS_IN_YEAR.mul(4);
    uint public constant YEAR_FIVE = START_DATE + SECONDS_IN_YEAR.mul(5);
    uint public constant YEAR_SIX = START_DATE + SECONDS_IN_YEAR.mul(6);
    uint public constant YEAR_SEVEN = START_DATE + SECONDS_IN_YEAR.mul(7);

    uint8 constant public INFLATION_SCHEDULES_LENGTH = 7;
    ScheduleData[INFLATION_SCHEDULES_LENGTH] public schedules;

    uint public minterReward = 200 * SafeDecimalMath.unit();

    constructor(address _owner)
        Owned(_owner)
        public
    {
        // ScheduleData(totalSupply, startPeriod, endPeriod, totalSupplyMinted)
        // Year 1 - Total supply 100,000,000
        schedules[0] = ScheduleData(1e8 * SafeDecimalMath.unit(), START_DATE, YEAR_ONE - 1, 1e8 * SafeDecimalMath.unit());
        schedules[1] = ScheduleData(75e6 * SafeDecimalMath.unit(), YEAR_ONE, YEAR_TWO - 1, 0); // Year 2 - Total supply 175,000,000
        schedules[2] = ScheduleData(37.5e6 * SafeDecimalMath.unit(), YEAR_TWO, YEAR_THREE - 1, 0); // Year 3 - Total supply 212,500,000
        schedules[3] = ScheduleData(18.75e6 * SafeDecimalMath.unit(), YEAR_THREE, YEAR_FOUR - 1, 0); // Year 4 - Total supply 231,250,000
        schedules[4] = ScheduleData(9.375e6 * SafeDecimalMath.unit(), YEAR_FOUR, YEAR_FIVE - 1, 0); // Year 5 - Total supply 240,625,000
        schedules[5] = ScheduleData(4.6875e6 * SafeDecimalMath.unit(), YEAR_FIVE, YEAR_SIX - 1, 0); // Year 6 - Total supply 245,312,500
        schedules[6] = ScheduleData(0, YEAR_SIX, YEAR_SEVEN - 1, 0); // Year 7 - Total supply 245,312,500
    }

    // ========== SETTERS ========== */
    function setSynthetix(Synthetix _synthetix)
        external
        onlyOwner
    {
        synthetix = _synthetix;
        // emit event
    }

    // ========== VIEWS ==========
    function mintableSupply()
        public
        view
        returns (uint)
    {
        if (!isMintable()) {
            return 0;
        }

        uint index = getCurrentSchedule();

        // Calculate previous year's mintable supply
        uint amountPreviousPeriod = _remainingSupplyFromPreviousYear(index);

        /* solium-disable */

        // Last mint event within current period will use difference in (now - lastMintEvent)
        // Last mint event not set (0) / outside of current Period will use current Period
        // start time resolved in (now - schedule.startPeriod)
        ScheduleData memory schedule = schedules[index];

        uint weeksInPeriod = (schedule.endPeriod - schedule.startPeriod).div(mintPeriodDuration);

        uint supplyPerWeek = schedule.totalSupply.divideDecimal(weeksInPeriod);

        uint weeksToMint = lastMintEvent >= schedule.startPeriod ? _numWeeksRoundedDown(now.sub(lastMintEvent)) : _numWeeksRoundedDown(now.sub(schedule.startPeriod));
        // /* solium-enable */

        uint amountInPeriod = supplyPerWeek.multiplyDecimal(weeksToMint);
        return amountInPeriod.add(amountPreviousPeriod);
    }

    function _numWeeksRoundedDown(uint _timeDiff)
        public
        view
        returns (uint)
    {
        // Take timeDiff in seconds (Dividend) and mintPeriodDuration as (Divisor)
        // Calculate the numberOfWeeks since last mint rounded down to 1 week
        // Fraction of a week will return 0
        return _timeDiff.div(mintPeriodDuration);
    }

    function isMintable()
        public
        view
        returns (bool)
    {
        bool mintable = false;
        if (now - lastMintEvent > mintPeriodDuration && now <= schedules[6].endPeriod) // Ensure time is not after end of Year 7
        {
            mintable = true;
        }
        return mintable;
    }

    // Return the current schedule based on the timestamp
    // applicable based on startPeriod and endPeriod
    function getCurrentSchedule()
        public
        view
        returns (uint)
    {
        require(now <= schedules[6].endPeriod, "Mintable periods have ended");

        for (uint i = 0; i < INFLATION_SCHEDULES_LENGTH; i++) {
            if (schedules[i].startPeriod <= now && schedules[i].endPeriod >= now) {
                return i;
            }
        }
    }

    function _remainingSupplyFromPreviousYear(uint currentSchedule)
        internal
        view
        returns (uint)
    {
        // All supply has been minted for previous period if last minting event is after
        // the endPeriod for last year
        if (currentSchedule == 0 || lastMintEvent > schedules[currentSchedule - 1].endPeriod) {
            return 0;
        }

        // return the remaining supply to be minted for previous period missed
        uint amountInPeriod = schedules[currentSchedule - 1].totalSupply.sub(schedules[currentSchedule - 1].totalSupplyMinted);

        // Ensure previous period remaining amount is not less than 0
        if (amountInPeriod < 0) {
            return 0;
        }

        return amountInPeriod;
    }

    // ========== MUTATIVE FUNCTIONS ==========
    function updateMintValues()
        external
        onlySynthetix
        returns (bool)
    {
        // Will fail if the time is outside of schedules
        uint currentIndex = getCurrentSchedule();
        uint lastPeriodAmount = _remainingSupplyFromPreviousYear(currentIndex);
        uint currentPeriodAmount = mintableSupply().sub(lastPeriodAmount);

        // Update schedule[n - 1].totalSupplyMinted
        if (lastPeriodAmount > 0) {
            schedules[currentIndex - 1].totalSupplyMinted = schedules[currentIndex - 1].totalSupplyMinted.add(lastPeriodAmount);
        }

        // Update schedule.totalSupplyMinted for currentSchedule
        schedules[currentIndex].totalSupplyMinted = schedules[currentIndex].totalSupplyMinted.add(currentPeriodAmount);
        // Update mint event to now
        lastMintEvent = now;

        emit SupplyMinted(lastPeriodAmount, currentPeriodAmount, currentIndex, now);
        return true;
    }

    function setMinterReward(uint _amount)
        external
        onlyOwner
    {
        minterReward = _amount;
        emit MinterRewardUpdated(_amount);
    }

    // ========== MODIFIERS ==========

    modifier onlySynthetix() {
        require(msg.sender == address(synthetix), "Only the synthetix contract can perform this action");
        _;
    }

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

    event SupplyMinted(uint previousPeriodAmount, uint currentAmount, uint indexed schedule, uint timestamp);
    event MinterRewardUpdated(uint newRewardAmount);
}


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

file:       LimitedSetup.sol
version:    1.1
author:     Anton Jurisevic

date:       2018-05-15

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

A contract with a limited setup period. Any function modified
with the setup modifier will cease to work after the
conclusion of the configurable-length post-construction setup period.

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


/**
 * @title Any function decorated with the modifier this contract provides
 * deactivates after a specified setup period.
 */
contract LimitedSetup {

    uint setupExpiryTime;

    /**
     * @dev LimitedSetup Constructor.
     * @param setupDuration The time the setup period will last for.
     */
    constructor(uint setupDuration)
        public
    {
        setupExpiryTime = now + setupDuration;
    }

    modifier onlyDuringSetup
    {
        require(now < setupExpiryTime, "Can only perform this action during setup");
        _;
    }
}


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

file:       SynthetixState.sol
version:    1.0
author:     Kevin Brown
date:       2018-10-19

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

A contract that holds issuance state and preferred currency of
users in the Synthetix system.

This contract is used side by side with the Synthetix contract
to make it easier to upgrade the contract logic while maintaining
issuance state.

The Synthetix contract is also quite large and on the edge of
being beyond the contract size limit without moving this information
out to another contract.

The first deployed contract would create this state contract,
using it as its store of issuance data.

When a new contract is deployed, it links to the existing
state contract, whose owner would then change its associated
contract to the new one.

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


/**
 * @title Synthetix State
 * @notice Stores issuance information and preferred currency information of the Synthetix contract.
 */
contract SynthetixState is State, LimitedSetup {
    using SafeMath for uint;
    using SafeDecimalMath for uint;

    // A struct for handing values associated with an individual user's debt position
    struct IssuanceData {
        // Percentage of the total debt owned at the time
        // of issuance. This number is modified by the global debt
        // delta array. You can figure out a user's exit price and
        // collateralisation ratio using a combination of their initial
        // debt and the slice of global debt delta which applies to them.
        uint initialDebtOwnership;
        // This lets us know when (in relative terms) the user entered
        // the debt pool so we can calculate their exit price and
        // collateralistion ratio
        uint debtEntryIndex;
    }

    // Issued synth balances for individual fee entitlements and exit price calculations
    mapping(address => IssuanceData) public issuanceData;

    // The total count of people that have outstanding issued synths in any flavour
    uint public totalIssuerCount;

    // Global debt pool tracking
    uint[] public debtLedger;

    // Import state
    uint public importedXDRAmount;

    // A quantity of synths greater than this ratio
    // may not be issued against a given value of SNX.
    uint public issuanceRatio = SafeDecimalMath.unit() / 5;
    // No more synths may be issued than the value of SNX backing them.
    uint constant MAX_ISSUANCE_RATIO = SafeDecimalMath.unit();

    // Users can specify their preferred currency, in which case all synths they receive
    // will automatically exchange to that preferred currency upon receipt in their wallet
    mapping(address => bytes4) public preferredCurrency;

    /**
     * @dev Constructor
     * @param _owner The address which controls this contract.
     * @param _associatedContract The ERC20 contract whose state this composes.
     */
    constructor(address _owner, address _associatedContract)
        State(_owner, _associatedContract)
        LimitedSetup(1 weeks)
        public
    {}

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

    /**
     * @notice Set issuance data for an address
     * @dev Only the associated contract may call this.
     * @param account The address to set the data for.
     * @param initialDebtOwnership The initial debt ownership for this address.
     */
    function setCurrentIssuanceData(address account, uint initialDebtOwnership)
        external
        onlyAssociatedContract
    {
        issuanceData[account].initialDebtOwnership = initialDebtOwnership;
        issuanceData[account].debtEntryIndex = debtLedger.length;
    }

    /**
     * @notice Clear issuance data for an address
     * @dev Only the associated contract may call this.
     * @param account The address to clear the data for.
     */
    function clearIssuanceData(address account)
        external
        onlyAssociatedContract
    {
        delete issuanceData[account];
    }

    /**
     * @notice Increment the total issuer count
     * @dev Only the associated contract may call this.
     */
    function incrementTotalIssuerCount()
        external
        onlyAssociatedContract
    {
        totalIssuerCount = totalIssuerCount.add(1);
    }

    /**
     * @notice Decrement the total issuer count
     * @dev Only the associated contract may call this.
     */
    function decrementTotalIssuerCount()
        external
        onlyAssociatedContract
    {
        totalIssuerCount = totalIssuerCount.sub(1);
    }

    /**
     * @notice Append a value to the debt ledger
     * @dev Only the associated contract may call this.
     * @param value The new value to be added to the debt ledger.
     */
    function appendDebtLedgerValue(uint value)
        external
        onlyAssociatedContract
    {
        debtLedger.push(value);
    }

    /**
     * @notice Set preferred currency for a user
     * @dev Only the associated contract may call this.
     * @param account The account to set the preferred currency for
     * @param currencyKey The new preferred currency
     */
    function setPreferredCurrency(address account, bytes4 currencyKey)
        external
        onlyAssociatedContract
    {
        preferredCurrency[account] = currencyKey;
    }

    /**
     * @notice Set the issuanceRatio for issuance calculations.
     * @dev Only callable by the contract owner.
     */
    function setIssuanceRatio(uint _issuanceRatio)
        external
        onlyOwner
    {
        require(_issuanceRatio <= MAX_ISSUANCE_RATIO, "New issuance ratio cannot exceed MAX_ISSUANCE_RATIO");
        issuanceRatio = _issuanceRatio;
        emit IssuanceRatioUpdated(_issuanceRatio);
    }

    /**
     * @notice Import issuer data from the old Synthetix contract before multicurrency
     * @dev Only callable by the contract owner, and only for 1 week after deployment.
     */
    function importIssuerData(address[] accounts, uint[] sUSDAmounts)
        external
        onlyOwner
        onlyDuringSetup
    {
        require(accounts.length == sUSDAmounts.length, "Length mismatch");

        for (uint8 i = 0; i < accounts.length; i++) {
            _addToDebtRegister(accounts[i], sUSDAmounts[i]);
        }
    }

    /**
     * @notice Import issuer data from the old Synthetix contract before multicurrency
     * @dev Only used from importIssuerData above, meant to be disposable
     */
    function _addToDebtRegister(address account, uint amount)
        internal
    {
        // This code is duplicated from Synthetix so that we can call it directly here
        // during setup only.
        Synthetix synthetix = Synthetix(associatedContract);

        // What is the value of the requested debt in XDRs?
        uint xdrValue = synthetix.effectiveValue("sUSD", amount, "XDR");

        // What is the value that we've previously imported?
        uint totalDebtIssued = importedXDRAmount;

        // What will the new total be including the new value?
        uint newTotalDebtIssued = xdrValue.add(totalDebtIssued);

        // Save that for the next import.
        importedXDRAmount = newTotalDebtIssued;

        // What is their percentage (as a high precision int) of the total debt?
        uint debtPercentage = xdrValue.divideDecimalRoundPrecise(newTotalDebtIssued);

        // And what effect does this percentage have on the global debt holding of other issuers?
        // The delta specifically needs to not take into account any existing debt as it's already
        // accounted for in the delta from when they issued previously.
        // The delta is a high precision integer.
        uint delta = SafeDecimalMath.preciseUnit().sub(debtPercentage);

        uint existingDebt = synthetix.debtBalanceOf(account, "XDR");

        // And what does their debt ownership look like including this previous stake?
        if (existingDebt > 0) {
            debtPercentage = xdrValue.add(existingDebt).divideDecimalRoundPrecise(newTotalDebtIssued);
        }

        // Are they a new issuer? If so, record them.
        if (issuanceData[account].initialDebtOwnership == 0) {
            totalIssuerCount = totalIssuerCount.add(1);
        }

        // Save the debt entry parameters
        issuanceData[account].initialDebtOwnership = debtPercentage;
        issuanceData[account].debtEntryIndex = debtLedger.length;

        // And if we're the first, push 1 as there was no effect to any other holders, otherwise push
        // the change for the rest of the debt holders. The debt ledger holds high precision integers.
        if (debtLedger.length > 0) {
            debtLedger.push(
                debtLedger[debtLedger.length - 1].multiplyDecimalRoundPrecise(delta)
            );
        } else {
            debtLedger.push(SafeDecimalMath.preciseUnit());
        }
    }

    /* ========== VIEWS ========== */

    /**
     * @notice Retrieve the length of the debt ledger array
     */
    function debtLedgerLength()
        external
        view
        returns (uint)
    {
        return debtLedger.length;
    }

    /**
     * @notice Retrieve the most recent entry from the debt ledger
     */
    function lastDebtLedgerEntry()
        external
        view
        returns (uint)
    {
        return debtLedger[debtLedger.length - 1];
    }

    /**
     * @notice Query whether an account has issued and has an outstanding debt balance
     * @param account The address to query for
     */
    function hasIssued(address account)
        external
        view
        returns (bool)
    {
        return issuanceData[account].initialDebtOwnership > 0;
    }

    event IssuanceRatioUpdated(uint newRatio);
}


/**
 * @title SynthetixEscrow interface
 */
interface ISynthetixEscrow {
    function balanceOf(address account) public view returns (uint);
    function appendVestingEntry(address account, uint quantity) public;
}


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

file:       Synthetix.sol
version:    2.0
author:     Kevin Brown
            Gavin Conway
date:       2018-09-14

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

Synthetix token contract. SNX is a transferable ERC20 token,
and also give its holders the following privileges.
An owner of SNX has the right to issue synths in all synth flavours.

After a fee period terminates, the duration and fees collected for that
period are computed, and the next period begins. Thus an account may only
withdraw the fees owed to them for the previous period, and may only do
so once per period. Any unclaimed fees roll over into the common pot for
the next period.

== Average Balance Calculations ==

The fee entitlement of a synthetix holder is proportional to their average
issued synth balance over the last fee period. This is computed by
measuring the area under the graph of a user's issued synth balance over
time, and then when a new fee period begins, dividing through by the
duration of the fee period.

We need only update values when the balances of an account is modified.
This occurs when issuing or burning for issued synth balances,
and when transferring for synthetix balances. This is for efficiency,
and adds an implicit friction to interacting with SNX.
A synthetix holder pays for his own recomputation whenever he wants to change
his position, which saves the foundation having to maintain a pot dedicated
to resourcing this.

A hypothetical user's balance history over one fee period, pictorially:

      s ____
       |    |
       |    |___ p
       |____|___|___ __ _  _
       f    t   n

Here, the balance was s between times f and t, at which time a transfer
occurred, updating the balance to p, until n, when the present transfer occurs.
When a new transfer occurs at time n, the balance being p,
we must:

  - Add the area p * (n - t) to the total area recorded so far
  - Update the last transfer time to n

So if this graph represents the entire current fee period,
the average SNX held so far is ((t-f)*s + (n-t)*p) / (n-f).
The complementary computations must be performed for both sender and
recipient.

Note that a transfer keeps global supply of SNX invariant.
The sum of all balances is constant, and unmodified by any transfer.
So the sum of all balances multiplied by the duration of a fee period is also
constant, and this is equivalent to the sum of the area of every user's
time/balance graph. Dividing through by that duration yields back the total
synthetix supply. So, at the end of a fee period, we really do yield a user's
average share in the synthetix supply over that period.

A slight wrinkle is introduced if we consider the time r when the fee period
rolls over. Then the previous fee period k-1 is before r, and the current fee
period k is afterwards. If the last transfer took place before r,
but the latest transfer occurred afterwards:

k-1       |        k
      s __|_
       |  | |
       |  | |____ p
       |__|_|____|___ __ _  _
          |
       f  | t    n
          r

In this situation the area (r-f)*s contributes to fee period k-1, while
the area (t-r)*s contributes to fee period k. We will implicitly consider a
zero-value transfer to have occurred at time r. Their fee entitlement for the
previous period will be finalised at the time of their first transfer during the
current fee period, or when they query or withdraw their fee entitlement.

In the implementation, the duration of different fee periods may be slightly irregular,
as the check that they have rolled over occurs only when state-changing synthetix
operations are performed.

== Issuance and Burning ==

In this version of the synthetix contract, synths can only be issued by
those that have been nominated by the synthetix foundation. Synths are assumed
to be valued at $1, as they are a stable unit of account.

All synths issued require a proportional value of SNX to be locked,
where the proportion is governed by the current issuance ratio. This
means for every $1 of SNX locked up, $(issuanceRatio) synths can be issued.
i.e. to issue 100 synths, 100/issuanceRatio dollars of SNX need to be locked up.

To determine the value of some amount of SNX(S), an oracle is used to push
the price of SNX (P_S) in dollars to the contract. The value of S
would then be: S * P_S.

Any SNX that are locked up by this issuance process cannot be transferred.
The amount that is locked floats based on the price of SNX. If the price
of SNX moves up, less SNX are locked, so they can be issued against,
or transferred freely. If the price of SNX moves down, more SNX are locked,
even going above the initial wallet balance.

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


/**
 * @title Synthetix ERC20 contract.
 * @notice The Synthetix contracts not only facilitates transfers, exchanges, and tracks balances,
 * but it also computes the quantity of fees each synthetix holder is entitled to.
 */
contract Synthetix is ExternStateToken {

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

    // Available Synths which can be used with the system
    Synth[] public availableSynths;
    mapping(bytes4 => Synth) public synths;

    IFeePool public feePool;
    ISynthetixEscrow public escrow;
    ISynthetixEscrow public rewardEscrow;
    ExchangeRates public exchangeRates;
    SynthetixState public synthetixState;
    SupplySchedule public supplySchedule;

    bool private protectionCircuit = false;

    string constant TOKEN_NAME = "Synthetix Network Token";
    string constant TOKEN_SYMBOL = "SNX";
    uint8 constant DECIMALS = 18;
    bool public exchangeEnabled = true;

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

    /**
     * @dev Constructor
     * @param _tokenState A pre-populated contract containing token balances.
     * If the provided address is 0x0, then a fresh one will be constructed with the contract owning all tokens.
     * @param _owner The owner of this contract.
     */
    constructor(address _proxy, TokenState _tokenState, SynthetixState _synthetixState,
        address _owner, ExchangeRates _exchangeRates, IFeePool _feePool, SupplySchedule _supplySchedule,
        ISynthetixEscrow _rewardEscrow, ISynthetixEscrow _escrow, uint _totalSupply
    )
        ExternStateToken(_proxy, _tokenState, TOKEN_NAME, TOKEN_SYMBOL, _totalSupply, DECIMALS, _owner)
        public
    {
        synthetixState = _synthetixState;
        exchangeRates = _exchangeRates;
        feePool = _feePool;
        supplySchedule = _supplySchedule;
        rewardEscrow = _rewardEscrow;
        escrow = _escrow;
    }
    // ========== SETTERS ========== */

    function setFeePool(IFeePool _feePool)
        external
        optionalProxy_onlyOwner
    {
        feePool = _feePool;
    }

    function setExchangeRates(ExchangeRates _exchangeRates)
        external
        optionalProxy_onlyOwner
    {
        exchangeRates = _exchangeRates;
    }

    function setProtectionCircuit(bool _protectionCircuitIsActivated)
        external
        onlyOracle
    {
        protectionCircuit = _protectionCircuitIsActivated;
    }

    function setExchangeEnabled(bool _exchangeEnabled)
        external
        optionalProxy_onlyOwner
    {
        exchangeEnabled = _exchangeEnabled;
    }

    /**
     * @notice Add an associated Synth contract to the Synthetix system
     * @dev Only the contract owner may call this.
     */
    function addSynth(Synth synth)
        external
        optionalProxy_onlyOwner
    {
        bytes4 currencyKey = synth.currencyKey();

        require(synths[currencyKey] == Synth(0), "Synth already exists");

        availableSynths.push(synth);
        synths[currencyKey] = synth;
    }

    /**
     * @notice Remove an associated Synth contract from the Synthetix system
     * @dev Only the contract owner may call this.
     */
    function removeSynth(bytes4 currencyKey)
        external
        optionalProxy_onlyOwner
    {
        require(synths[currencyKey] != address(0), "Synth does not exist");
        require(synths[currencyKey].totalSupply() == 0, "Synth supply exists");
        require(currencyKey != "XDR", "Cannot remove XDR synth");

        // Save the address we're removing for emitting the event at the end.
        address synthToRemove = synths[currencyKey];

        // Remove the synth from the availableSynths array.
        for (uint8 i = 0; i < availableSynths.length; i++) {
            if (availableSynths[i] == synthToRemove) {
                delete availableSynths[i];

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

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

                break;
            }
        }

        // And remove it from the synths mapping
        delete synths[currencyKey];

        // Note: No event here as our contract exceeds max contract size
        // with these events, and it's unlikely people will need to
        // track these events specifically.
    }

    // ========== 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(bytes4 sourceCurrencyKey, uint sourceAmount, bytes4 destinationCurrencyKey)
        public
        view
        returns (uint)
    {
        return exchangeRates.effectiveValue(sourceCurrencyKey, sourceAmount, destinationCurrencyKey);
    }

    /**
     * @notice Total amount of synths issued by the system, priced in currencyKey
     * @param currencyKey The currency to value the synths in
     */
    function totalIssuedSynths(bytes4 currencyKey)
        public
        view
        rateNotStale(currencyKey)
        returns (uint)
    {
        uint total = 0;
        uint currencyRate = exchangeRates.rateForCurrency(currencyKey);

        require(!exchangeRates.anyRateIsStale(availableCurrencyKeys()), "Rates are stale");

        for (uint8 i = 0; i < availableSynths.length; i++) {
            // What's the total issued value of that synth in the destination currency?
            // Note: We're not using our effectiveValue function because we don't want to go get the
            //       rate for the destination currency and check if it's stale repeatedly on every
            //       iteration of the loop
            uint synthValue = availableSynths[i].totalSupply()
                .multiplyDecimalRound(exchangeRates.rateForCurrency(availableSynths[i].currencyKey()))
                .divideDecimalRound(currencyRate);
            total = total.add(synthValue);
        }

        return total;
    }

    /**
     * @notice Returns the currencyKeys of availableSynths for rate checking
     */
    function availableCurrencyKeys()
        public
        view
        returns (bytes4[])
    {
        bytes4[] memory availableCurrencyKeys = new bytes4[](availableSynths.length);

        for (uint8 i = 0; i < availableSynths.length; i++) {
            availableCurrencyKeys[i] = availableSynths[i].currencyKey();
        }

        return availableCurrencyKeys;
    }

    /**
     * @notice Returns the count of available synths in the system, which you can use to iterate availableSynths
     */
    function availableSynthCount()
        public
        view
        returns (uint)
    {
        return availableSynths.length;
    }

    // ========== MUTATIVE FUNCTIONS ==========

    /**
     * @notice ERC20 transfer function.
     */
    function transfer(address to, uint value)
        public
        returns (bool)
    {
        bytes memory empty;
        return transfer(to, value, empty);
    }

    /**
     * @notice ERC223 transfer function. Does not conform with the ERC223 spec, as:
     *         - Transaction doesn't revert if the recipient doesn't implement tokenFallback()
     *         - Emits a standard ERC20 event without the bytes data parameter so as not to confuse
     *           tooling such as Etherscan.
     */
    function transfer(address to, uint value, bytes data)
        public
        optionalProxy
        returns (bool)
    {
        // Ensure they're not trying to exceed their locked amount
        require(value <= transferableSynthetix(messageSender), "Insufficient balance");

        // Perform the transfer: if there is a problem an exception will be thrown in this call.
        _transfer_byProxy(messageSender, to, value, data);

        return true;
    }

    /**
     * @notice ERC20 transferFrom function.
     */
    function transferFrom(address from, address to, uint value)
        public
        returns (bool)
    {
        bytes memory empty;
        return transferFrom(from, to, value, empty);
    }

    /**
     * @notice ERC223 transferFrom function. Does not conform with the ERC223 spec, as:
     *         - Transaction doesn't revert if the recipient doesn't implement tokenFallback()
     *         - Emits a standard ERC20 event without the bytes data parameter so as not to confuse
     *           tooling such as Etherscan.
     */
    function transferFrom(address from, address to, uint value, bytes data)
        public
        optionalProxy
        returns (bool)
    {
        // Ensure they're not trying to exceed their locked amount
        require(value <= transferableSynthetix(from), "Insufficient balance");

        // Perform the transfer: if there is a problem,
        // an exception will be thrown in this call.
        _transferFrom_byProxy(messageSender, from, to, value, data);

        return true;
    }

    /**
     * @notice Function that allows you to exchange synths you hold in one flavour for another.
     * @param sourceCurrencyKey The source currency you wish to exchange from
     * @param sourceAmount The amount, specified in UNIT of source currency you wish to exchange
     * @param destinationCurrencyKey The destination currency you wish to obtain.
     * @param destinationAddress Deprecated. Will always send to messageSender
     * @return Boolean that indicates whether the transfer succeeded or failed.
     */
    function exchange(bytes4 sourceCurrencyKey, uint sourceAmount, bytes4 destinationCurrencyKey, address destinationAddress)
        external
        optionalProxy
        // Note: We don't need to insist on non-stale rates because effectiveValue will do it for us.
        returns (bool)
    {
        require(sourceCurrencyKey != destinationCurrencyKey, "Exchange must use different synths");
        require(sourceAmount > 0, "Zero amount");

        //  If protectionCircuit is true then we burn the synths through _internalLiquidation()
        if (protectionCircuit) {
            return _internalLiquidation(
                messageSender,
                sourceCurrencyKey,
                sourceAmount
            );
        } else {
            // Pass it along, defaulting to the sender as the recipient.
            return _internalExchange(
                messageSender,
                sourceCurrencyKey,
                sourceAmount,
                destinationCurrencyKey,
                messageSender,
                true // Charge fee on the exchange
            );
        }
    }

    /**
     * @notice Function that allows synth contract to delegate exchanging of a synth that is not the same sourceCurrency
     * @dev Only the synth contract can call this function
     * @param from The address to exchange / burn synth from
     * @param sourceCurrencyKey The source currency you wish to exchange from
     * @param sourceAmount The amount, specified in UNIT of source currency you wish to exchange
     * @param destinationCurrencyKey The destination currency you wish to obtain.
     * @param destinationAddress Where the result should go.
     * @return Boolean that indicates whether the transfer succeeded or failed.
     */
    function synthInitiatedExchange(
        address from,
        bytes4 sourceCurrencyKey,
        uint sourceAmount,
        bytes4 destinationCurrencyKey,
        address destinationAddress
    )
        external
        onlySynth
        returns (bool)
    {
        require(sourceCurrencyKey != destinationCurrencyKey, "Can't be same synth");
        require(sourceAmount > 0, "Zero amount");

        // Pass it along
        return _internalExchange(
            from,
            sourceCurrencyKey,
            sourceAmount,
            destinationCurrencyKey,
            destinationAddress,
            false // Don't charge fee on the exchange, as they've already been charged a transfer fee in the synth contract
        );
    }

    /**
     * @notice Function that allows synth contract to delegate sending fee to the fee Pool.
     * @dev Only the synth contract can call this function.
     * @param from The address fee is coming from.
     * @param sourceCurrencyKey source currency fee from.
     * @param sourceAmount The amount, specified in UNIT of source currency.
     * @return Boolean that indicates whether the transfer succeeded or failed.
     */
    function synthInitiatedFeePayment(
        address from,
        bytes4 sourceCurrencyKey,
        uint sourceAmount
    )
        external
        onlySynth
        returns (bool)
    {
        // Allow fee to be 0 and skip minting XDRs to feePool
        if (sourceAmount == 0) {
            return true;
        }

        require(sourceAmount > 0, "Source can't be 0");

        // Pass it along, defaulting to the sender as the recipient.
        bool result = _internalExchange(
            from,
            sourceCurrencyKey,
            sourceAmount,
            "XDR",
            feePool.FEE_ADDRESS(),
            false // Don't charge a fee on the exchange because this is already a fee
        );

        // Tell the fee pool about this.
        feePool.feePaid(sourceCurrencyKey, sourceAmount);

        return result;
    }

    /**
     * @notice Function that allows synth contract to delegate sending fee to the fee Pool.
     * @dev fee pool contract address is not allowed to call function
     * @param from The address to move synth from
     * @param sourceCurrencyKey source currency from.
     * @param sourceAmount The amount, specified in UNIT of source currency.
     * @param destinationCurrencyKey The destination currency to obtain.
     * @param destinationAddress Where the result should go.
     * @param chargeFee Boolean to charge a fee for transaction.
     * @return Boolean that indicates whether the transfer succeeded or failed.
     */
    function _internalExchange(
        address from,
        bytes4 sourceCurrencyKey,
        uint sourceAmount,
        bytes4 destinationCurrencyKey,
        address destinationAddress,
        bool chargeFee
    )
        internal
        notFeeAddress(from)
        returns (bool)
    {
        require(exchangeEnabled, "Exchanging is disabled");
        require(!exchangeRates.priceUpdateLock(), "Price update lock");
        require(destinationAddress != address(0), "Zero destination");
        require(destinationAddress != address(this), "Synthetix is invalid destination");
        require(destinationAddress != address(proxy), "Proxy is invalid destination");

        // Note: We don't need to check their balance as the burn() below will do a safe subtraction which requires
        // the subtraction to not overflow, which would happen if their balance is not sufficient.

        // Burn the source amount
        synths[sourceCurrencyKey].burn(from, sourceAmount);

        // How much should they get in the destination currency?
        uint destinationAmount = effectiveValue(sourceCurrencyKey, sourceAmount, destinationCurrencyKey);

        // What's the fee on that currency that we should deduct?
        uint amountReceived = destinationAmount;
        uint fee = 0;

        if (chargeFee) {
            amountReceived = feePool.amountReceivedFromExchange(destinationAmount);
            fee = destinationAmount.sub(amountReceived);
        }

        // Issue their new synths
        synths[destinationCurrencyKey].issue(destinationAddress, amountReceived);

        // Remit the fee in XDRs
        if (fee > 0) {
            uint xdrFeeAmount = effectiveValue(destinationCurrencyKey, fee, "XDR");
            synths["XDR"].issue(feePool.FEE_ADDRESS(), xdrFeeAmount);
            // Tell the fee pool about this.
            feePool.feePaid("XDR", xdrFeeAmount);
        }

        // Nothing changes as far as issuance data goes because the total value in the system hasn't changed.

        // Call the ERC223 transfer callback if needed
        synths[destinationCurrencyKey].triggerTokenFallbackIfNeeded(from, destinationAddress, amountReceived);

        //Let the DApps know there was a Synth exchange
        emitSynthExchange(from, sourceCurrencyKey, sourceAmount, destinationCurrencyKey, amountReceived, destinationAddress);

        return true;
    }

    /**
    * @notice Function that burns the amount sent during an exchange in case the protection circuit is activated
    * @param from The address to move synth from
    * @param sourceCurrencyKey source currency from.
    * @param sourceAmount The amount, specified in UNIT of source currency.
    * @return Boolean that indicates whether the transfer succeeded or failed.
    */
    function _internalLiquidation(
        address from,
        bytes4 sourceCurrencyKey,
        uint sourceAmount
    )
        internal
        returns (bool)
    {
        // Burn the source amount
        synths[sourceCurrencyKey].burn(from, sourceAmount);
        return true;
    }

    /**
     * @notice Function that registers new synth as they are isseud. Calculate delta to append to synthetixState.
     * @dev Only internal calls from synthetix address.
     * @param currencyKey The currency to register synths in, for example sUSD or sAUD
     * @param amount The amount of synths to register with a base of UNIT
     */
    function _addToDebtRegister(bytes4 currencyKey, uint amount)
        internal
        optionalProxy
    {
        // What is the value of the requested debt in XDRs?
        uint xdrValue = effectiveValue(currencyKey, amount, "XDR");

        // What is the value of all issued synths of the system (priced in XDRs)?
        uint totalDebtIssued = totalIssuedSynths("XDR");

        // What will the new total be including the new value?
        uint newTotalDebtIssued = xdrValue.add(totalDebtIssued);

        // What is their percentage (as a high precision int) of the total debt?
        uint debtPercentage = xdrValue.divideDecimalRoundPrecise(newTotalDebtIssued);

        // And what effect does this percentage change have on the global debt holding of other issuers?
        // The delta specifically needs to not take into account any existing debt as it's already
        // accounted for in the delta from when they issued previously.
        // The delta is a high precision integer.
        uint delta = SafeDecimalMath.preciseUnit().sub(debtPercentage);

        // How much existing debt do they have?
        uint existingDebt = debtBalanceOf(messageSender, "XDR");

        // And what does their debt ownership look like including this previous stake?
        if (existingDebt > 0) {
            debtPercentage = xdrValue.add(existingDebt).divideDecimalRoundPrecise(newTotalDebtIssued);
        }

        // Are they a new issuer? If so, record them.
        if (!synthetixState.hasIssued(messageSender)) {
            synthetixState.incrementTotalIssuerCount();
        }

        // Save the debt entry parameters
        synthetixState.setCurrentIssuanceData(messageSender, debtPercentage);

        // And if we're the first, push 1 as there was no effect to any other holders, otherwise push
        // the change for the rest of the debt holders. The debt ledger holds high precision integers.
        if (synthetixState.debtLedgerLength() > 0) {
            synthetixState.appendDebtLedgerValue(
                synthetixState.lastDebtLedgerEntry().multiplyDecimalRoundPrecise(delta)
            );
        } else {
            synthetixState.appendDebtLedgerValue(SafeDecimalMath.preciseUnit());
        }
    }

    /**
     * @notice Issue synths against the sender's SNX.
     * @dev Issuance is only allowed if the synthetix price isn't stale. Amount should be larger than 0.
     * @param currencyKey The currency you wish to issue synths in, for example sUSD or sAUD
     * @param amount The amount of synths you wish to issue with a base of UNIT
     */
    function issueSynths(bytes4 currencyKey, uint amount)
        public
        optionalProxy
        // No need to check if price is stale, as it is checked in issuableSynths.
    {
        require(amount <= remainingIssuableSynths(messageSender, currencyKey), "Amount too large");

        // Keep track of the debt they're about to create
        _addToDebtRegister(currencyKey, amount);

        // Create their synths
        synths[currencyKey].issue(messageSender, amount);

        // Store their locked SNX amount to determine their fee % for the period
        _appendAccountIssuanceRecord();
    }

    /**
     * @notice Issue the maximum amount of Synths possible against the sender's SNX.
     * @dev Issuance is only allowed if the synthetix price isn't stale.
     * @param currencyKey The currency you wish to issue synths in, for example sUSD or sAUD
     */
    function issueMaxSynths(bytes4 currencyKey)
        external
        optionalProxy
    {
        // Figure out the maximum we can issue in that currency
        uint maxIssuable = remainingIssuableSynths(messageSender, currencyKey);

        // And issue them
        issueSynths(currencyKey, maxIssuable);
    }

    /**
     * @notice Burn synths to clear issued synths/free SNX.
     * @param currencyKey The currency you're specifying to burn
     * @param amount The amount (in UNIT base) you wish to burn
     * @dev The amount to burn is debased to XDR's
     */
    function burnSynths(bytes4 currencyKey, uint amount)
        external
        optionalProxy
        // No need to check for stale rates as effectiveValue checks rates
    {
        // How much debt do they have?
        uint debtToRemove = effectiveValue(currencyKey, amount, "XDR");
        uint debt = debtBalanceOf(messageSender, "XDR");
        uint debtInCurrencyKey = debtBalanceOf(messageSender, currencyKey);

        require(debt > 0, "No debt to forgive");

        // If they're trying to burn more debt than they actually owe, rather than fail the transaction, let's just
        // clear their debt and leave them be.
        uint amountToRemove = debt < debtToRemove ? debt : debtToRemove;

        // Remove their debt from the ledger
        _removeFromDebtRegister(amountToRemove);

        uint amountToBurn = debtInCurrencyKey < amount ? debtInCurrencyKey : amount;

        // synth.burn does a safe subtraction on balance (so it will revert if there are not enough synths).
        synths[currencyKey].burn(messageSender, amountToBurn);

        // Store their debtRatio against a feeperiod to determine their fee/rewards % for the period
        _appendAccountIssuanceRecord();
    }

    /**
     * @notice Store in the FeePool the users current debt value in the system in XDRs.
     * @dev debtBalanceOf(messageSender, "XDR") to be used with totalIssuedSynths("XDR") to get
     *  users % of the system within a feePeriod.
     */
    function _appendAccountIssuanceRecord()
        internal
    {
        uint initialDebtOwnership;
        uint debtEntryIndex;
        (initialDebtOwnership, debtEntryIndex) = synthetixState.issuanceData(messageSender);

        feePool.appendAccountIssuanceRecord(
            messageSender,
            initialDebtOwnership,
            debtEntryIndex
        );
    }

    /**
     * @notice Remove a debt position from the register
     * @param amount The amount (in UNIT base) being presented in XDRs
     */
    function _removeFromDebtRegister(uint amount)
        internal
    {
        uint debtToRemove = amount;

        // How much debt do they have?
        uint existingDebt = debtBalanceOf(messageSender, "XDR");

        // What is the value of all issued synths of the system (priced in XDRs)?
        uint totalDebtIssued = totalIssuedSynths("XDR");

        // What will the new total after taking out the withdrawn amount
        uint newTotalDebtIssued = totalDebtIssued.sub(debtToRemove);

        uint delta;

        // What will the debt delta be if there is any debt left?
        // Set delta to 0 if no more debt left in system after user
        if (newTotalDebtIssued > 0) {

            // What is the percentage of the withdrawn debt (as a high precision int) of the total debt after?
            uint debtPercentage = debtToRemove.divideDecimalRoundPrecise(newTotalDebtIssued);

            // And what effect does this percentage change have on the global debt holding of other issuers?
            // The delta specifically needs to not take into account any existing debt as it's already
            // accounted for in the delta from when they issued previously.
            delta = SafeDecimalMath.preciseUnit().add(debtPercentage);
        } else {
            delta = 0;
        }

        // Are they exiting the system, or are they just decreasing their debt position?
        if (debtToRemove == existingDebt) {
            synthetixState.setCurrentIssuanceData(messageSender, 0);
            synthetixState.decrementTotalIssuerCount();
        } else {
            // What percentage of the debt will they be left with?
            uint newDebt = existingDebt.sub(debtToRemove);
            uint newDebtPercentage = newDebt.divideDecimalRoundPrecise(newTotalDebtIssued);

            // Store the debt percentage and debt ledger as high precision integers
            synthetixState.setCurrentIssuanceData(messageSender, newDebtPercentage);
        }

        // Update our cumulative ledger. This is also a high precision integer.
        synthetixState.appendDebtLedgerValue(
            synthetixState.lastDebtLedgerEntry().multiplyDecimalRoundPrecise(delta)
        );
    }

    // ========== Issuance/Burning ==========

    /**
     * @notice The maximum synths an issuer can issue against their total synthetix quantity, priced in XDRs.
     * This ignores any already issued synths, and is purely giving you the maximimum amount the user can issue.
     */
    function maxIssuableSynths(address issuer, bytes4 currencyKey)
        public
        view
        // We don't need to check stale rates here as effectiveValue will do it for us.
        returns (uint)
    {
        // What is the value of their SNX balance in the destination currency?
        uint destinationValue = effectiveValue("SNX", collateral(issuer), currencyKey);

        // They're allowed to issue up to issuanceRatio of that value
        return destinationValue.multiplyDecimal(synthetixState.issuanceRatio());
    }

    /**
     * @notice The current collateralisation ratio for a user. Collateralisation ratio varies over time
     * as the value of the underlying Synthetix asset changes, e.g. if a user issues their maximum available
     * synths when they hold $10 worth of Synthetix, they will have issued $2 worth of synths. If the value
     * of Synthetix changes, the ratio returned by this function will adjust accordlingly. Users are
     * incentivised to maintain a collateralisation ratio as close to the issuance ratio as possible by
     * altering the amount of fees they're able to claim from the system.
     */
    function collateralisationRatio(address issuer)
        public
        view
        returns (uint)
    {
        uint totalOwnedSynthetix = collateral(issuer);
        if (totalOwnedSynthetix == 0) return 0;

        uint debtBalance = debtBalanceOf(issuer, "SNX");
        return debtBalance.divideDecimalRound(totalOwnedSynthetix);
    }

    /**
     * @notice If a user issues synths backed by SNX in their wallet, the SNX become locked. This function
     * will tell you how many synths a user has to give back to the system in order to unlock their original
     * debt position. This is priced in whichever synth is passed in as a currency key, e.g. you can price
     * the debt in sUSD, XDR, or any other synth you wish.
     */
    function debtBalanceOf(address issuer, bytes4 currencyKey)
        public
        view
        // Don't need to check for stale rates here because totalIssuedSynths will do it for us
        returns (uint)
    {
        // What was their initial debt ownership?
        uint initialDebtOwnership;
        uint debtEntryIndex;
        (initialDebtOwnership, debtEntryIndex) = synthetixState.issuanceData(issuer);

        // If it's zero, they haven't issued, and they have no debt.
        if (initialDebtOwnership == 0) return 0;

        // Figure out the global debt percentage delta from when they entered the system.
        // This is a high precision integer.
        uint currentDebtOwnership = synthetixState.lastDebtLedgerEntry()
            .divideDecimalRoundPrecise(synthetixState.debtLedger(debtEntryIndex))
            .multiplyDecimalRoundPrecise(initialDebtOwnership);

        // What's the total value of the system in their requested currency?
        uint totalSystemValue = totalIssuedSynths(currencyKey);

        // Their debt balance is their portion of the total system value.
        uint highPrecisionBalance = totalSystemValue.decimalToPreciseDecimal()
            .multiplyDecimalRoundPrecise(currentDebtOwnership);

        return highPrecisionBalance.preciseDecimalToDecimal();
    }

    /**
     * @notice The remaining synths an issuer can issue against their total synthetix balance.
     * @param issuer The account that intends to issue
     * @param currencyKey The currency to price issuable value in
     */
    function remainingIssuableSynths(address issuer, bytes4 currencyKey)
        public
        view
        // Don't need to check for synth existing or stale rates because maxIssuableSynths will do it for us.
        returns (uint)
    {
        uint alreadyIssued = debtBalanceOf(issuer, currencyKey);
        uint max = maxIssuableSynths(issuer, currencyKey);

        if (alreadyIssued >= max) {
            return 0;
        } else {
            return max.sub(alreadyIssued);
        }
    }

    /**
     * @notice The total SNX owned by this account, both escrowed and unescrowed,
     * against which synths can be issued.
     * This includes those already being used as collateral (locked), and those
     * available for further issuance (unlocked).
     */
    function collateral(address account)
        public
        view
        returns (uint)
    {
        uint balance = tokenState.balanceOf(account);

        if (escrow != address(0)) {
            balance = balance.add(escrow.balanceOf(account));
        }

        if (rewardEscrow != address(0)) {
            balance = balance.add(rewardEscrow.balanceOf(account));
        }

        return balance;
    }

    /**
     * @notice The number of SNX that are free to be transferred by an account.
     * @dev When issuing, escrowed SNX are locked first, then non-escrowed
     * SNX are locked last, but escrowed SNX are not transferable, so they are not included
     * in this calculation.
     */
    function transferableSynthetix(address account)
        public
        view
        rateNotStale("SNX")
        returns (uint)
    {
        // How many SNX do they have, excluding escrow?
        // Note: We're excluding escrow here because we're interested in their transferable amount
        // and escrowed SNX are not transferable.
        uint balance = tokenState.balanceOf(account);

        // How many of those will be locked by the amount they've issued?
        // Assuming issuance ratio is 20%, then issuing 20 SNX of value would require
        // 100 SNX to be locked in their wallet to maintain their collateralisation ratio
        // The locked synthetix value can exceed their balance.
        uint lockedSynthetixValue = debtBalanceOf(account, "SNX").divideDecimalRound(synthetixState.issuanceRatio());

        // If we exceed the balance, no SNX are transferable, otherwise the difference is.
        if (lockedSynthetixValue >= balance) {
            return 0;
        } else {
            return balance.sub(lockedSynthetixValue);
        }
    }

    function mint()
        external
        returns (bool)
    {
        require(rewardEscrow != address(0), "Reward Escrow destination missing");

        uint supplyToMint = supplySchedule.mintableSupply();
        require(supplyToMint > 0, "No supply is mintable");

        supplySchedule.updateMintValues();

        // Set minted SNX balance to RewardEscrow's balance
        // Minus the minterReward and set balance of minter to add reward
        uint minterReward = supplySchedule.minterReward();

        tokenState.setBalanceOf(rewardEscrow, tokenState.balanceOf(rewardEscrow).add(supplyToMint.sub(minterReward)));
        emitTransfer(this, rewardEscrow, supplyToMint.sub(minterReward));

        // Tell the FeePool how much it has to distribute
        feePool.rewardsMinted(supplyToMint.sub(minterReward));

        // Assign the minters reward.
        tokenState.setBalanceOf(msg.sender, tokenState.balanceOf(msg.sender).add(minterReward));
        emitTransfer(this, msg.sender, minterReward);

        totalSupply = totalSupply.add(supplyToMint);
    }

    // ========== MODIFIERS ==========

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

    modifier notFeeAddress(address account) {
        require(account != feePool.FEE_ADDRESS(), "Fee address not allowed");
        _;
    }

    modifier onlySynth() {
        bool isSynth = false;

        // No need to repeatedly call this function either
        for (uint8 i = 0; i < availableSynths.length; i++) {
            if (availableSynths[i] == msg.sender) {
                isSynth = true;
                break;
            }
        }

        require(isSynth, "Only synth allowed");
        _;
    }

    modifier nonZeroAmount(uint _amount) {
        require(_amount > 0, "Amount needs to be larger than 0");
        _;
    }

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

    // ========== EVENTS ==========
    /* solium-disable */
    event SynthExchange(address indexed account, bytes4 fromCurrencyKey, uint256 fromAmount, bytes4 toCurrencyKey,  uint256 toAmount, address toAddress);
    bytes32 constant SYNTHEXCHANGE_SIG = keccak256("SynthExchange(address,bytes4,uint256,bytes4,uint256,address)");
    function emitSynthExchange(address account, bytes4 fromCurrencyKey, uint256 fromAmount, bytes4 toCurrencyKey, uint256 toAmount, address toAddress) internal {
        proxy._emit(abi.encode(fromCurrencyKey, fromAmount, toCurrencyKey, toAmount, toAddress), 2, SYNTHEXCHANGE_SIG, bytes32(account), 0, 0);
    }
    /* solium-enable */
}


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

file:       Synth.sol
version:    2.0
author:     Kevin Brown
date:       2018-09-13

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

Synthetix-backed stablecoin contract.

This contract issues synths, which are tokens that mirror various
flavours of fiat currency.

Synths are issuable by Synthetix Network Token (SNX) holders who
have to lock up some value of their SNX to issue S * Cmax synths.
Where Cmax issome value less than 1.

A configurable fee is charged on synth transfers and deposited
into a common pot, which Synthetix holders may withdraw from once
per fee period.

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


contract Synth is ExternStateToken {

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

    IFeePool public feePool;
    Synthetix public synthetix;

    // Currency key which identifies this Synth to the Synthetix system
    bytes4 public currencyKey;

    uint8 constant DECIMALS = 18;

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

    constructor(address _proxy, TokenState _tokenState, Synthetix _synthetix, IFeePool _feePool,
        string _tokenName, string _tokenSymbol, address _owner, bytes4 _currencyKey
    )
        ExternStateToken(_proxy, _tokenState, _tokenName, _tokenSymbol, 0, DECIMALS, _owner)
        public
    {
        require(_proxy != 0, "_proxy cannot be 0");
        require(address(_synthetix) != 0, "_synthetix cannot be 0");
        require(address(_feePool) != 0, "_feePool cannot be 0");
        require(_owner != 0, "_owner cannot be 0");
        require(_synthetix.synths(_currencyKey) == Synth(0), "Currency key is already in use");

        feePool = _feePool;
        synthetix = _synthetix;
        currencyKey = _currencyKey;
    }

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

    function setSynthetix(Synthetix _synthetix)
        external
        optionalProxy_onlyOwner
    {
        synthetix = _synthetix;
        emitSynthetixUpdated(_synthetix);
    }

    function setFeePool(IFeePool _feePool)
        external
        optionalProxy_onlyOwner
    {
        feePool = _feePool;
        emitFeePoolUpdated(_feePool);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    /**
     * @notice Override ERC20 transfer function in order to
     * subtract the transaction fee and send it to the fee pool
     * for SNX holders to claim. */
    function transfer(address to, uint value)
        public
        optionalProxy
        notFeeAddress(messageSender)
        returns (bool)
    {
        uint amountReceived = feePool.amountReceivedFromTransfer(value);
        uint fee = value.sub(amountReceived);

        // Send the fee off to the fee pool.
        synthetix.synthInitiatedFeePayment(messageSender, currencyKey, fee);

        // And send their result off to the destination address
        bytes memory empty;
        return _internalTransfer(messageSender, to, amountReceived, empty);
    }

    /**
     * @notice Override ERC223 transfer function in order to
     * subtract the transaction fee and send it to the fee pool
     * for SNX holders to claim. */
    function transfer(address to, uint value, bytes data)
        public
        optionalProxy
        notFeeAddress(messageSender)
        returns (bool)
    {
        uint amountReceived = feePool.amountReceivedFromTransfer(value);
        uint fee = value.sub(amountReceived);

        // Send the fee off to the fee pool, which we don't want to charge an additional fee on
        synthetix.synthInitiatedFeePayment(messageSender, currencyKey, fee);

        // And send their result off to the destination address
        return _internalTransfer(messageSender, to, amountReceived, data);
    }

    /**
     * @notice Override ERC20 transferFrom function in order to
     * subtract the transaction fee and send it to the fee pool
     * for SNX holders to claim. */
    function transferFrom(address from, address to, uint value)
        public
        optionalProxy
        notFeeAddress(from)
        returns (bool)
    {
        // The fee is deducted from the amount sent.
        uint amountReceived = feePool.amountReceivedFromTransfer(value);
        uint fee = value.sub(amountReceived);

        // Reduce the allowance by the amount we're transferring.
        // The safeSub call will handle an insufficient allowance.
        tokenState.setAllowance(from, messageSender, tokenState.allowance(from, messageSender).sub(value));

        // Send the fee off to the fee pool.
        synthetix.synthInitiatedFeePayment(from, currencyKey, fee);

        bytes memory empty;
        return _internalTransfer(from, to, amountReceived, empty);
    }

    /**
     * @notice Override ERC223 transferFrom function in order to
     * subtract the transaction fee and send it to the fee pool
     * for SNX holders to claim. */
    function transferFrom(address from, address to, uint value, bytes data)
        public
        optionalProxy
        notFeeAddress(from)
        returns (bool)
    {
        // The fee is deducted from the amount sent.
        uint amountReceived = feePool.amountReceivedFromTransfer(value);
        uint fee = value.sub(amountReceived);

        // Reduce the allowance by the amount we're transferring.
        // The safeSub call will handle an insufficient allowance.
        tokenState.setAllowance(from, messageSender, tokenState.allowance(from, messageSender).sub(value));

        // Send the fee off to the fee pool, which we don't want to charge an additional fee on
        synthetix.synthInitiatedFeePayment(from, currencyKey, fee);

        return _internalTransfer(from, to, amountReceived, data);
    }

    /* Subtract the transfer fee from the senders account so the
     * receiver gets the exact amount specified to send. */
    function transferSenderPaysFee(address to, uint value)
        public
        optionalProxy
        notFeeAddress(messageSender)
        returns (bool)
    {
        uint fee = feePool.transferFeeIncurred(value);

        // Send the fee off to the fee pool, which we don't want to charge an additional fee on
        synthetix.synthInitiatedFeePayment(messageSender, currencyKey, fee);

        // And send their transfer amount off to the destination address
        bytes memory empty;
        return _internalTransfer(messageSender, to, value, empty);
    }

    /* Subtract the transfer fee from the senders account so the
     * receiver gets the exact amount specified to send. */
    function transferSenderPaysFee(address to, uint value, bytes data)
        public
        optionalProxy
        notFeeAddress(messageSender)
        returns (bool)
    {
        uint fee = feePool.transferFeeIncurred(value);

        // Send the fee off to the fee pool, which we don't want to charge an additional fee on
        synthetix.synthInitiatedFeePayment(messageSender, currencyKey, fee);

        // And send their transfer amount off to the destination address
        return _internalTransfer(messageSender, to, value, data);
    }

    /* Subtract the transfer fee from the senders account so the
     * to address receives the exact amount specified to send. */
    function transferFromSenderPaysFee(address from, address to, uint value)
        public
        optionalProxy
        notFeeAddress(from)
        returns (bool)
    {
        uint fee = feePool.transferFeeIncurred(value);

        // Reduce the allowance by the amount we're transferring.
        // The safeSub call will handle an insufficient allowance.
        tokenState.setAllowance(from, messageSender, tokenState.allowance(from, messageSender).sub(value.add(fee)));

        // Send the fee off to the fee pool, which we don't want to charge an additional fee on
        synthetix.synthInitiatedFeePayment(from, currencyKey, fee);

        bytes memory empty;
        return _internalTransfer(from, to, value, empty);
    }

    /* Subtract the transfer fee from the senders account so the
     * to address receives the exact amount specified to send. */
    function transferFromSenderPaysFee(address from, address to, uint value, bytes data)
        public
        optionalProxy
        notFeeAddress(from)
        returns (bool)
    {
        uint fee = feePool.transferFeeIncurred(value);

        // Reduce the allowance by the amount we're transferring.
        // The safeSub call will handle an insufficient allowance.
        tokenState.setAllowance(from, messageSender, tokenState.allowance(from, messageSender).sub(value.add(fee)));

        // Send the fee off to the fee pool, which we don't want to charge an additional fee on
        synthetix.synthInitiatedFeePayment(from, currencyKey, fee);

        return _internalTransfer(from, to, value, data);
    }

    // Override our internal transfer to inject preferred currency support
    function _internalTransfer(address from, address to, uint value, bytes data)
        internal
        returns (bool)
    {
        bytes4 preferredCurrencyKey = synthetix.synthetixState().preferredCurrency(to);

        // Do they have a preferred currency that's not us? If so we need to exchange
        if (preferredCurrencyKey != 0 && preferredCurrencyKey != currencyKey) {
            return synthetix.synthInitiatedExchange(from, currencyKey, value, preferredCurrencyKey, to);
        } else {
            // Otherwise we just transfer
            return super._internalTransfer(from, to, value, data);
        }
    }

    // Allow synthetix to issue a certain number of synths from an account.
    function issue(address account, uint amount)
        external
        onlySynthetixOrFeePool
    {
        tokenState.setBalanceOf(account, tokenState.balanceOf(account).add(amount));
        totalSupply = totalSupply.add(amount);
        emitTransfer(address(0), account, amount);
        emitIssued(account, amount);
    }

    // Allow synthetix or another synth contract to burn a certain number of synths from an account.
    function burn(address account, uint amount)
        external
        onlySynthetixOrFeePool
    {
        tokenState.setBalanceOf(account, tokenState.balanceOf(account).sub(amount));
        totalSupply = totalSupply.sub(amount);
        emitTransfer(account, address(0), amount);
        emitBurned(account, amount);
    }

    // Allow owner to set the total supply on import.
    function setTotalSupply(uint amount)
        external
        optionalProxy_onlyOwner
    {
        totalSupply = amount;
    }

    // Allow synthetix to trigger a token fallback call from our synths so users get notified on
    // exchange as well as transfer
    function triggerTokenFallbackIfNeeded(address sender, address recipient, uint amount)
        external
        onlySynthetixOrFeePool
    {
        bytes memory empty;
        callTokenFallbackIfNeeded(sender, recipient, amount, empty);
    }

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

    modifier onlySynthetixOrFeePool() {
        bool isSynthetix = msg.sender == address(synthetix);
        bool isFeePool = msg.sender == address(feePool);

        require(isSynthetix || isFeePool, "Only the Synthetix or FeePool contracts can perform this action");
        _;
    }

    modifier notFeeAddress(address account) {
        require(account != feePool.FEE_ADDRESS(), "Cannot perform this action with the fee address");
        _;
    }

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

    event SynthetixUpdated(address newSynthetix);
    bytes32 constant SYNTHETIXUPDATED_SIG = keccak256("SynthetixUpdated(address)");
    function emitSynthetixUpdated(address newSynthetix) internal {
        proxy._emit(abi.encode(newSynthetix), 1, SYNTHETIXUPDATED_SIG, 0, 0, 0);
    }

    event FeePoolUpdated(address newFeePool);
    bytes32 constant FEEPOOLUPDATED_SIG = keccak256("FeePoolUpdated(address)");
    function emitFeePoolUpdated(address newFeePool) internal {
        proxy._emit(abi.encode(newFeePool), 1, FEEPOOLUPDATED_SIG, 0, 0, 0);
    }

    event Issued(address indexed account, uint value);
    bytes32 constant ISSUED_SIG = keccak256("Issued(address,uint256)");
    function emitIssued(address account, uint value) internal {
        proxy._emit(abi.encode(value), 2, ISSUED_SIG, bytes32(account), 0, 0);
    }

    event Burned(address indexed account, uint value);
    bytes32 constant BURNED_SIG = keccak256("Burned(address,uint256)");
    function emitBurned(address account, uint value) internal {
        proxy._emit(abi.encode(value), 2, BURNED_SIG, bytes32(account), 0, 0);
    }
}

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

file:       PurgeableSynth.sol
version:    1.0
author:     Justin J. Moses
date:       2019-05-22

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

Purgeable synths are a subclass of Synth that allows the owner
to exchange all holders of the Synth back into sUSD.

In order to reduce gas load on the system, and to repurpose older synths
no longer used, purge allows the owner to

These are used only for frozen or deprecated synths, and the total supply is
hard-coded to
-----------------------------------------------------------------
*/


contract PurgeableSynth is Synth {

    using SafeDecimalMath for uint;

    // The maximum allowed amount of tokenSupply in equivalent sUSD value for this synth to permit purging
    uint public maxSupplyToPurgeInUSD = 10000 * SafeDecimalMath.unit(); // 10,000

    // Track exchange rates so we can determine if supply in USD is below threshpld at purge time
    ExchangeRates public exchangeRates;

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

    constructor(address _proxy, TokenState _tokenState, Synthetix _synthetix, IFeePool _feePool,
        string _tokenName, string _tokenSymbol, address _owner, bytes4 _currencyKey, ExchangeRates _exchangeRates
    )
        Synth(_proxy, _tokenState, _synthetix, _feePool, _tokenName, _tokenSymbol, _owner, _currencyKey)
        public
    {
        exchangeRates = _exchangeRates;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    /**
     * @notice Function that allows owner to exchange any number of holders back to sUSD (for frozen or deprecated synths)
     * @param addresses The list of holders to purge
     */
    function purge(address[] addresses)
        external
        optionalProxy_onlyOwner
    {
        uint maxSupplyToPurge = exchangeRates.effectiveValue("sUSD", maxSupplyToPurgeInUSD, currencyKey);

        // Only allow purge when total supply is lte the max or the rate is frozen in ExchangeRates
        require(
            totalSupply <= maxSupplyToPurge || exchangeRates.rateIsFrozen(currencyKey),
            "Cannot purge as total supply is above threshold and rate is not frozen."
        );

        for (uint8 i = 0; i < addresses.length; i++) {
            address holder = addresses[i];

            uint amountHeld = balanceOf(holder);

            if (amountHeld > 0) {
                synthetix.synthInitiatedExchange(holder, currencyKey, amountHeld, "sUSD", holder);
                emitPurged(holder, amountHeld);
            }

        }

    }

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

    function setExchangeRates(ExchangeRates _exchangeRates)
        external
        optionalProxy_onlyOwner
    {
        exchangeRates = _exchangeRates;
    }

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

    event Purged(address indexed account, uint value);
    bytes32 constant PURGED_SIG = keccak256("Purged(address,uint256)");
    function emitPurged(address account, uint value) internal {
        proxy._emit(abi.encode(value), 2, PURGED_SIG, bytes32(account), 0, 0);
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_feePool","type":"address"}],"name":"setFeePool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"setSelfDestructBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"terminateSelfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"}],"name":"transferFromSenderPaysFee","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRates","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_exchangeRates","type":"address"}],"name":"setExchangeRates","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"synthetix","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxSupplyToPurgeInUSD","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"amount","type":"uint256"}],"name":"issue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_proxy","type":"address"}],"name":"setProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"selfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenState","type":"address"}],"name":"setTokenState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"SELFDESTRUCT_DELAY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addresses","type":"address[]"}],"name":"purge","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feePool","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"}],"name":"transferSenderPaysFee","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"selfDestructInitiated","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sender","type":"address"}],"name":"setMessageSender","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"initiateSelfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"selfDestructBeneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferSenderPaysFee","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"currencyKey","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFromSenderPaysFee","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenState","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sender","type":"address"},{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"}],"name":"triggerTokenFallbackIfNeeded","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"proxy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"setTotalSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_synthetix","type":"address"}],"name":"setSynthetix","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_proxy","type":"address"},{"name":"_tokenState","type":"address"},{"name":"_synthetix","type":"address"},{"name":"_feePool","type":"address"},{"name":"_tokenName","type":"string"},{"name":"_tokenSymbol","type":"string"},{"name":"_owner","type":"address"},{"name":"_currencyKey","type":"bytes4"},{"name":"_exchangeRates","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Purged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newSynthetix","type":"address"}],"name":"SynthetixUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newFeePool","type":"address"}],"name":"FeePoolUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Issued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newTokenState","type":"address"}],"name":"TokenStateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proxyAddress","type":"address"}],"name":"ProxyUpdated","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"}]

608060408190526005805460a060020a60ff02191690557f907af6c00000000000000000000000000000000000000000000000000000000081527384d626b2bb4d0f064067e4bf80fce7055d8f3e7b9063907af6c09060849060209060048186803b1580156200006e57600080fd5b505af415801562000083573d6000803e3d6000fd5b505050506040513d60208110156200009a57600080fd5b505161271002600c55348015620000b057600080fd5b5060405162004ff738038062004ff783398101604090815281516020830151918301516060840151608085015160a086015160c087015160e08801516101008901519698959694959384019492909301929091888888888888888887878585600060128786818080600160a060020a03811615156200019057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b60008054600160a060020a031916600160a060020a038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150600160a060020a03811615156200028757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4f776e6572206d757374206e6f7420626520746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60038054600160a060020a038316610100810261010060a860020a03199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a15060048054600160a060020a038416600160a060020a0319909116811790915560408051918252517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e9181900360200190a1505060068054600160a060020a031916600160a060020a0388161790558451620003649060079060208801906200074f565b5083516200037a9060089060208701906200074f565b5050600991909155600a805460ff191660ff90921691909117905550505050600160a060020a03881615156200041157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5f70726f78792063616e6e6f7420626520300000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03861615156200048957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5f73796e7468657469782063616e6e6f74206265203000000000000000000000604482015290519081900360640190fd5b600160a060020a03851615156200050157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5f666565506f6f6c2063616e6e6f742062652030000000000000000000000000604482015290519081900360640190fd5b600160a060020a03821615156200057957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5f6f776e65722063616e6e6f7420626520300000000000000000000000000000604482015290519081900360640190fd5b604080517f502b8bda0000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201529051600091600160a060020a0389169163502b8bda9160248082019260209290919082900301818787803b1580156200060057600080fd5b505af115801562000615573d6000803e3d6000fd5b505050506040513d60208110156200062c57600080fd5b5051600160a060020a031614620006a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f43757272656e6379206b657920697320616c726561647920696e207573650000604482015290519081900360640190fd5b600a805461010060a860020a031916610100600160a060020a0397881602179055600b8054600160a060020a03199081169787169790971760a060020a63ffffffff021916740100000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000909304929092029190911790555050600d80549093169590911694909417905550620007f49950505050505050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200079257805160ff1916838001178555620007c2565b82800160010185558215620007c2579182015b82811115620007c2578251825591602001919060010190620007a5565b50620007d0929150620007d4565b5090565b620007f191905b80821115620007d05760008155600101620007db565b90565b6147f380620008046000396000f30060806040526004361061020b5763ffffffff60e060020a60003504166306fdde038114610210578063095ea7b31461029a5780631627540c146102d257806317c70de4146102f557806318160ddd1461031c57806319db22281461033157806320714f881461035257806323b872dd14610373578063313ce5671461039d5780633278c960146103c85780633c960be9146103dd5780634ffcd9df1461044c57806353a47bb71461047d57806356e449541461049257806370a08231146104b3578063759b5225146104d457806379ba5097146104e95780637e88ac16146104fe578063867904b4146105135780638da5cb5b1461053757806395d89b411461054c57806397107d6d146105615780639cb8a26a146105825780639dc29fac146105975780639f769807146105bb578063a461fc82146105dc578063a9059cbb146105f1578063ab59307914610615578063ab67aa5814610635578063ae2e933b146106a4578063b4bede85146106b9578063b8225dec14610722578063bc67f83214610737578063bd32aa4414610758578063be45fd621461076d578063c58aaae6146107d6578063d66c9cc2146107eb578063dbd06c851461080f578063dd62ed3e14610841578063e6fbf44114610868578063e90dd9e214610892578063eb6ecc03146108a7578063ec556889146108d1578063f7ea7a3d146108e6578063fec9f9da146108fe575b600080fd5b34801561021c57600080fd5b5061022561091f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025f578181015183820152602001610247565b50505050905090810190601f16801561028c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102a657600080fd5b506102be600160a060020a03600435166024356109ad565b604080519115158252519081900360200190f35b3480156102de57600080fd5b506102f3600160a060020a0360043516610a81565b005b34801561030157600080fd5b5061030a610b39565b60408051918252519081900360200190f35b34801561032857600080fd5b5061030a610b3f565b34801561033d57600080fd5b506102f3600160a060020a0360043516610b45565b34801561035e57600080fd5b506102f3600160a060020a0360043516610c0d565b34801561037f57600080fd5b506102be600160a060020a0360043581169060243516604435610d60565b3480156103a957600080fd5b506103b26110f7565b6040805160ff9092168252519081900360200190f35b3480156103d457600080fd5b506102f3611100565b3480156103e957600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526102be94600160a060020a03813581169560248035909216956044359536956084940191819084018382808284375094975061119e9650505050505050565b34801561045857600080fd5b5061046161152b565b60408051600160a060020a039092168252519081900360200190f35b34801561048957600080fd5b5061046161153a565b34801561049e57600080fd5b506102f3600160a060020a0360043516611549565b3480156104bf57600080fd5b5061030a600160a060020a03600435166115fa565b3480156104e057600080fd5b50610461611681565b3480156104f557600080fd5b506102f3611690565b34801561050a57600080fd5b5061030a61178b565b34801561051f57600080fd5b506102f3600160a060020a0360043516602435611791565b34801561054357600080fd5b5061046161196d565b34801561055857600080fd5b5061022561197c565b34801561056d57600080fd5b506102f3600160a060020a03600435166119d7565b34801561058e57600080fd5b506102f3611a8f565b3480156105a357600080fd5b506102f3600160a060020a0360043516602435611c54565b3480156105c757600080fd5b506102f3600160a060020a0360043516611df2565b3480156105e857600080fd5b5061030a611ea5565b3480156105fd57600080fd5b506102be600160a060020a0360043516602435611eac565b34801561062157600080fd5b506102f3600480356024810191013561211d565b34801561064157600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526102be94600160a060020a0381358116956024803590921695604435953695608494019181908401838280828437509497506125359650505050505050565b3480156106b057600080fd5b50610461612885565b3480156106c557600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526102be948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506128999650505050505050565b34801561072e57600080fd5b506102be612afd565b34801561074357600080fd5b506102f3600160a060020a0360043516612b06565b34801561076457600080fd5b506102f3612bb0565b34801561077957600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526102be948235600160a060020a0316946024803595369594606494920191908190840183828082843750949750612c5d9650505050505050565b3480156107e257600080fd5b50610461612ecb565b3480156107f757600080fd5b506102be600160a060020a0360043516602435612edf565b34801561081b57600080fd5b5061082461313c565b60408051600160e060020a03199092168252519081900360200190f35b34801561084d57600080fd5b5061030a600160a060020a036004358116906024351661314f565b34801561087457600080fd5b506102be600160a060020a03600435811690602435166044356131f5565b34801561089e57600080fd5b506104616134db565b3480156108b357600080fd5b506102f3600160a060020a03600435811690602435166044356134ea565b3480156108dd57600080fd5b5061046161359c565b3480156108f257600080fd5b506102f36004356135ab565b34801561090a57600080fd5b506102f3600160a060020a036004351661363f565b6007805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109a55780601f1061097a576101008083540402835291602001916109a5565b820191906000526020600020905b81548152906001019060200180831161098857829003601f168201915b505050505081565b6004546000908190600160a060020a031633146109d75760058054600160a060020a031916331790555b50600554600654604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0393841660048201819052878516602483015260448201879052915191939092169163da46098c91606480830192600092919082900301818387803b158015610a5457600080fd5b505af1158015610a68573d6000803e3d6000fd5b50505050610a778185856136f2565b5060019392505050565b600054600160a060020a03163314610ae5576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147088339815191526044820152600080516020614748833981519152606482015290519081900360840190fd5b60018054600160a060020a038316600160a060020a0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b60025481565b60095481565b600454600160a060020a03163314610b6a5760058054600160a060020a031916331790555b600054600554600160a060020a03908116911614610bd4576040805160e560020a62461bcd02815260206004820152602e602482015260008051602061472883398151915260448201526000805160206147a8833981519152606482015290519081900360840190fd5b600a805474ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a03841602179055610c0a81613863565b50565b600054600160a060020a03163314610c71576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147088339815191526044820152600080516020614748833981519152606482015290519081900360840190fd5b600160a060020a0381161515610cf7576040805160e560020a62461bcd02815260206004820152602860248201527f42656e6566696369617279206d757374206e6f7420626520746865207a65726f60448201527f2061646472657373000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60038054600160a060020a038316610100810274ffffffffffffffffffffffffffffffffffffffff00199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a150565b60045460009081908190606090600160a060020a03163314610d8f5760058054600160a060020a031916331790555b86600a60019054906101000a9004600160a060020a0316600160a060020a031663eb1edd616040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610de357600080fd5b505af1158015610df7573d6000803e3d6000fd5b505050506040513d6020811015610e0d57600080fd5b5051600160a060020a0382811691161415610e74576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663b7fcfa69876040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b158015610ed257600080fd5b505af1158015610ee6573d6000803e3d6000fd5b505050506040513d6020811015610efc57600080fd5b50519350610f10868563ffffffff6139aa16565b600654600554604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a038d81166004830152928316602482018190529151949750919092169263da46098c928c929091610fd2918c91879163dd62ed3e9160448083019260209291908290030181600087803b158015610f9a57600080fd5b505af1158015610fae573d6000803e3d6000fd5b505050506040513d6020811015610fc457600080fd5b50519063ffffffff6139aa16565b6040805160e060020a63ffffffff8716028152600160a060020a03948516600482015292909316602483015260448201529051606480830192600092919082900301818387803b15801561102557600080fd5b505af1158015611039573d6000803e3d6000fd5b5050600b546040805160e260020a632f95d8d9028152600160a060020a038d81166004830152600160e060020a031960e060020a60a060020a86040216602483015260448201899052915191909216935063be576364925060648083019260209291908290030181600087803b1580156110b257600080fd5b505af11580156110c6573d6000803e3d6000fd5b505050506040513d60208110156110dc57600080fd5b506110eb9050888886856139c1565b98975050505050505050565b600a5460ff1681565b600054600160a060020a03163314611164576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147088339815191526044820152600080516020614748833981519152606482015290519081900360840190fd5b600060028190556003805460ff191690556040517f6adcc7125002935e0aa31697538ebbd65cfddf20431eb6ecdcfc3e238bfd082c9190a1565b6004546000908190600160a060020a031633146111c85760058054600160a060020a031916331790555b85600a60019054906101000a9004600160a060020a0316600160a060020a031663eb1edd616040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561121c57600080fd5b505af1158015611230573d6000803e3d6000fd5b505050506040513d602081101561124657600080fd5b5051600160a060020a03828116911614156112ad576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663da46e6c4866040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561130b57600080fd5b505af115801561131f573d6000803e3d6000fd5b505050506040513d602081101561133557600080fd5b5051600654600554919350600160a060020a039081169163da46098c918a91166114076113688a8863ffffffff613bf716565b600660009054906101000a9004600160a060020a0316600160a060020a031663dd62ed3e8e600560009054906101000a9004600160a060020a03166040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182600160a060020a0316600160a060020a0316815260200192505050602060405180830381600087803b158015610f9a57600080fd5b6040805160e060020a63ffffffff8716028152600160a060020a03948516600482015292909316602483015260448201529051606480830192600092919082900301818387803b15801561145a57600080fd5b505af115801561146e573d6000803e3d6000fd5b5050600b546040805160e260020a632f95d8d9028152600160a060020a038c81166004830152600160e060020a031960e060020a60a060020a86040216602483015260448201889052915191909216935063be576364925060648083019260209291908290030181600087803b1580156114e757600080fd5b505af11580156114fb573d6000803e3d6000fd5b505050506040513d602081101561151157600080fd5b506115209050878787876139c1565b979650505050505050565b600d54600160a060020a031681565b600154600160a060020a031681565b600454600160a060020a0316331461156e5760058054600160a060020a031916331790555b600054600554600160a060020a039081169116146115d8576040805160e560020a62461bcd02815260206004820152602e602482015260008051602061472883398151915260448201526000805160206147a8833981519152606482015290519081900360840190fd5b600d8054600160a060020a031916600160a060020a0392909216919091179055565b6006546040805160e060020a6370a08231028152600160a060020a038481166004830152915160009392909216916370a082319160248082019260209290919082900301818787803b15801561164f57600080fd5b505af1158015611663573d6000803e3d6000fd5b505050506040513d602081101561167957600080fd5b505192915050565b600b54600160a060020a031681565b600154600160a060020a03163314611718576040805160e560020a62461bcd02815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b60005460015460408051600160a060020a03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a16001805460008054600160a060020a0319908116600160a060020a03841617909155169055565b600c5481565b600b54600a5433600160a060020a039283168114926101009092049091161481806117b95750805b1515611835576040805160e560020a62461bcd02815260206004820152603f60248201527f4f6e6c79207468652053796e746865746978206f7220466565506f6f6c20636f60448201527f6e7472616374732063616e20706572666f726d207468697320616374696f6e00606482015290519081900360840190fd5b6006546040805160e060020a6370a08231028152600160a060020a0387811660048301529151919092169163b46310f69187916118d091889186916370a08231916024808201926020929091908290030181600087803b15801561189857600080fd5b505af11580156118ac573d6000803e3d6000fd5b505050506040513d60208110156118c257600080fd5b50519063ffffffff613bf716565b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561192257600080fd5b505af1158015611936573d6000803e3d6000fd5b505060095461194e925090508463ffffffff613bf716565b60095561195d60008585613c10565b6119678484613d12565b50505050565b600054600160a060020a031681565b6008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109a55780601f1061097a576101008083540402835291602001916109a5565b600054600160a060020a03163314611a3b576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147088339815191526044820152600080516020614748833981519152606482015290519081900360840190fd5b60048054600160a060020a038316600160a060020a0319909116811790915560408051918252517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e9181900360200190a150565b60008054600160a060020a03163314611af4576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147088339815191526044820152600080516020614748833981519152606482015290519081900360840190fd5b60035460ff161515611b76576040805160e560020a62461bcd02815260206004820152602860248201527f53656c6620646573747275637420686173206e6f7420796574206265656e206960448201527f6e69746961746564000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b426224ea0060025401101515611bfc576040805160e560020a62461bcd02815260206004820152602760248201527f53656c662064657374727563742064656c617920686173206e6f74207965742060448201527f656c617073656400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b5060035460408051600160a060020a0361010090930492909216808352905190917f8a09e1677ced846cb537dc2b172043bd05a1a81ad7e0033a7ef8ba762df990b7919081900360200190a180600160a060020a0316ff5b600b54600a5433600160a060020a03928316811492610100909204909116148180611c7c5750805b1515611cf8576040805160e560020a62461bcd02815260206004820152603f60248201527f4f6e6c79207468652053796e746865746978206f7220466565506f6f6c20636f60448201527f6e7472616374732063616e20706572666f726d207468697320616374696f6e00606482015290519081900360840190fd5b6006546040805160e060020a6370a08231028152600160a060020a0387811660048301529151919092169163b46310f6918791611d5b91889186916370a08231916024808201926020929091908290030181600087803b158015610f9a57600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b158015611dad57600080fd5b505af1158015611dc1573d6000803e3d6000fd5b5050600954611dd9925090508463ffffffff6139aa16565b600955611de884600085613c10565b6119678484613e52565b600454600160a060020a03163314611e175760058054600160a060020a031916331790555b600054600554600160a060020a03908116911614611e81576040805160e560020a62461bcd02815260206004820152602e602482015260008051602061472883398151915260448201526000805160206147a8833981519152606482015290519081900360840190fd5b60068054600160a060020a031916600160a060020a038316179055610c0a81613f2c565b6224ea0081565b60045460009081908190606090600160a060020a03163314611edb5760058054600160a060020a031916331790555b600554600a546040805160e060020a63eb1edd610281529051600160a060020a03938416936101009093049092169163eb1edd61916004808201926020929091908290030181600087803b158015611f3257600080fd5b505af1158015611f46573d6000803e3d6000fd5b505050506040513d6020811015611f5c57600080fd5b5051600160a060020a0382811691161415611fc3576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663b7fcfa69876040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561202157600080fd5b505af1158015612035573d6000803e3d6000fd5b505050506040513d602081101561204b57600080fd5b5051935061205f868563ffffffff6139aa16565b600b546005546040805160e260020a632f95d8d9028152600160a060020a039283166004820152600160e060020a031960e060020a60a060020a86040216602482015260448101859052905193965091169163be576364916064808201926020929091908290030181600087803b1580156120d957600080fd5b505af11580156120ed573d6000803e3d6000fd5b505050506040513d602081101561210357600080fd5b505060055461152090600160a060020a03168886856139c1565b600454600090819081908190600160a060020a0316331461214b5760058054600160a060020a031916331790555b600054600554600160a060020a039081169116146121b5576040805160e560020a62461bcd02815260206004820152602e602482015260008051602061472883398151915260448201526000805160206147a8833981519152606482015290519081900360840190fd5b600d54600c54600b54604080517f39d66fc00000000000000000000000000000000000000000000000000000000081527f73555344000000000000000000000000000000000000000000000000000000006004820152602481019390935260a060020a90910460e060020a02600160e060020a031916604483015251600160a060020a03909216916339d66fc0916064808201926020929091908290030181600087803b15801561226557600080fd5b505af1158015612279573d6000803e3d6000fd5b505050506040513d602081101561228f57600080fd5b50516009549094508410158061234c5750600d54600b54604080517fad752d6700000000000000000000000000000000000000000000000000000000815260a060020a90920460e060020a02600160e060020a031916600483015251600160a060020a039092169163ad752d67916024808201926020929091908290030181600087803b15801561231f57600080fd5b505af1158015612333573d6000803e3d6000fd5b505050506040513d602081101561234957600080fd5b50515b15156123ee576040805160e560020a62461bcd02815260206004820152604760248201527f43616e6e6f7420707572676520617320746f74616c20737570706c792069732060448201527f61626f7665207468726573686f6c6420616e642072617465206973206e6f742060648201527f66726f7a656e2e00000000000000000000000000000000000000000000000000608482015290519081900360a40190fd5b600092505b60ff831685111561252d57858560ff851681811061240d57fe5b90506020020135600160a060020a03169150612428826115fa565b9050600081111561252257600b54604080517fbe0ecd32000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301819052600160e060020a031960e060020a60a060020a870402166024840152604483018690527f7355534400000000000000000000000000000000000000000000000000000000606484015260848301529151919092169163be0ecd329160a48083019260209291908290030181600087803b1580156124eb57600080fd5b505af11580156124ff573d6000803e3d6000fd5b505050506040513d602081101561251557600080fd5b5061252290508282614006565b6001909201916123f3565b505050505050565b60045460009081908190600160a060020a031633146125615760058054600160a060020a031916331790555b86600a60019054906101000a9004600160a060020a0316600160a060020a031663eb1edd616040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156125b557600080fd5b505af11580156125c9573d6000803e3d6000fd5b505050506040513d60208110156125df57600080fd5b5051600160a060020a0382811691161415612646576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663b7fcfa69876040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b1580156126a457600080fd5b505af11580156126b8573d6000803e3d6000fd5b505050506040513d60208110156126ce57600080fd5b505192506126e2868463ffffffff6139aa16565b600654600554604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a038d81166004830152928316602482018190529151949650919092169263da46098c928c92909161276c918c91879163dd62ed3e9160448083019260209291908290030181600087803b158015610f9a57600080fd5b6040805160e060020a63ffffffff8716028152600160a060020a03948516600482015292909316602483015260448201529051606480830192600092919082900301818387803b1580156127bf57600080fd5b505af11580156127d3573d6000803e3d6000fd5b5050600b546040805160e260020a632f95d8d9028152600160a060020a038d81166004830152600160e060020a031960e060020a60a060020a86040216602483015260448201889052915191909216935063be576364925060648083019260209291908290030181600087803b15801561284c57600080fd5b505af1158015612860573d6000803e3d6000fd5b505050506040513d602081101561287657600080fd5b506110eb9050888885886139c1565b600a546101009004600160a060020a031681565b6004546000908190600160a060020a031633146128c35760058054600160a060020a031916331790555b600554600a546040805160e060020a63eb1edd610281529051600160a060020a03938416936101009093049092169163eb1edd61916004808201926020929091908290030181600087803b15801561291a57600080fd5b505af115801561292e573d6000803e3d6000fd5b505050506040513d602081101561294457600080fd5b5051600160a060020a03828116911614156129ab576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663da46e6c4866040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b158015612a0957600080fd5b505af1158015612a1d573d6000803e3d6000fd5b505050506040513d6020811015612a3357600080fd5b5051600b546005546040805160e260020a632f95d8d9028152600160a060020a039283166004820152600160e060020a031960e060020a60a060020a86040216602482015260448101859052905193955091169163be576364916064808201926020929091908290030181600087803b158015612aaf57600080fd5b505af1158015612ac3573d6000803e3d6000fd5b505050506040513d6020811015612ad957600080fd5b5050600554612af390600160a060020a03168787876139c1565b9695505050505050565b60035460ff1681565b600454600160a060020a03163314612b8e576040805160e560020a62461bcd02815260206004820152602560248201527f4f6e6c79207468652070726f78792063616e2063616c6c20746869732066756e60448201527f6374696f6e000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a03163314612c14576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147088339815191526044820152600080516020614748833981519152606482015290519081900360840190fd5b426002556003805460ff19166001179055604080516224ea00815290517fcbd94ca75b8dc45c9d80c77e851670e78843c0d75180cb81db3e2158228fa9a69181900360200190a1565b60045460009081908190600160a060020a03163314612c895760058054600160a060020a031916331790555b600554600a546040805160e060020a63eb1edd610281529051600160a060020a03938416936101009093049092169163eb1edd61916004808201926020929091908290030181600087803b158015612ce057600080fd5b505af1158015612cf4573d6000803e3d6000fd5b505050506040513d6020811015612d0a57600080fd5b5051600160a060020a0382811691161415612d71576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663b7fcfa69876040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b158015612dcf57600080fd5b505af1158015612de3573d6000803e3d6000fd5b505050506040513d6020811015612df957600080fd5b50519250612e0d868463ffffffff6139aa16565b600b546005546040805160e260020a632f95d8d9028152600160a060020a039283166004820152600160e060020a031960e060020a60a060020a86040216602482015260448101859052905193955091169163be576364916064808201926020929091908290030181600087803b158015612e8757600080fd5b505af1158015612e9b573d6000803e3d6000fd5b505050506040513d6020811015612eb157600080fd5b505060055461152090600160a060020a03168885886139c1565b6003546101009004600160a060020a031681565b6004546000908190606090600160a060020a03163314612f0c5760058054600160a060020a031916331790555b600554600a546040805160e060020a63eb1edd610281529051600160a060020a03938416936101009093049092169163eb1edd61916004808201926020929091908290030181600087803b158015612f6357600080fd5b505af1158015612f77573d6000803e3d6000fd5b505050506040513d6020811015612f8d57600080fd5b5051600160a060020a0382811691161415612ff4576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663da46e6c4866040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561305257600080fd5b505af1158015613066573d6000803e3d6000fd5b505050506040513d602081101561307c57600080fd5b5051600b546005546040805160e260020a632f95d8d9028152600160a060020a039283166004820152600160e060020a031960e060020a60a060020a86040216602482015260448101859052905193965091169163be576364916064808201926020929091908290030181600087803b1580156130f857600080fd5b505af115801561310c573d6000803e3d6000fd5b505050506040513d602081101561312257600080fd5b5050600554612af390600160a060020a03168787856139c1565b600b5460a060020a900460e060020a0281565b600654604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015284811660248301529151600093929092169163dd62ed3e9160448082019260209290919082900301818787803b1580156131c257600080fd5b505af11580156131d6573d6000803e3d6000fd5b505050506040513d60208110156131ec57600080fd5b50519392505050565b6004546000908190606090600160a060020a031633146132225760058054600160a060020a031916331790555b85600a60019054906101000a9004600160a060020a0316600160a060020a031663eb1edd616040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561327657600080fd5b505af115801561328a573d6000803e3d6000fd5b505050506040513d60208110156132a057600080fd5b5051600160a060020a0382811691161415613307576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206147888339815191526044820152600080516020614768833981519152606482015290519081900360840190fd5b600a60019054906101000a9004600160a060020a0316600160a060020a031663da46e6c4866040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561336557600080fd5b505af1158015613379573d6000803e3d6000fd5b505050506040513d602081101561338f57600080fd5b5051600654600554919450600160a060020a039081169163da46098c918a91166133c26113688a8963ffffffff613bf716565b6040805160e060020a63ffffffff8716028152600160a060020a03948516600482015292909316602483015260448201529051606480830192600092919082900301818387803b15801561341557600080fd5b505af1158015613429573d6000803e3d6000fd5b5050600b546040805160e260020a632f95d8d9028152600160a060020a038c81166004830152600160e060020a031960e060020a60a060020a86040216602483015260448201899052915191909216935063be576364925060648083019260209291908290030181600087803b1580156134a257600080fd5b505af11580156134b6573d6000803e3d6000fd5b505050506040513d60208110156134cc57600080fd5b506115209050878787856139c1565b600654600160a060020a031681565b600b54600a5460609133600160a060020a0391821681149261010090049091161481806135145750805b1515613590576040805160e560020a62461bcd02815260206004820152603f60248201527f4f6e6c79207468652053796e746865746978206f7220466565506f6f6c20636f60448201527f6e7472616374732063616e20706572666f726d207468697320616374696f6e00606482015290519081900360840190fd5b61252d868686866140e0565b600454600160a060020a031681565b600454600160a060020a031633146135d05760058054600160a060020a031916331790555b600054600554600160a060020a0390811691161461363a576040805160e560020a62461bcd02815260206004820152602e602482015260008051602061472883398151915260448201526000805160206147a8833981519152606482015290519081900360840190fd5b600955565b600454600160a060020a031633146136645760058054600160a060020a031916331790555b600054600554600160a060020a039081169116146136ce576040805160e560020a62461bcd02815260206004820152602e602482015260008051602061472883398151915260448201526000805160206147a8833981519152606482015290519081900360840190fd5b600b8054600160a060020a031916600160a060020a038316179055610c0a816142fc565b600480546040805160208082018690528251808303820181528284018085527f417070726f76616c28616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a0190808383885b838110156137f55781810151838201526020016137dd565b50505050905090810190601f1680156138225780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b15801561384657600080fd5b505af115801561385a573d6000803e3d6000fd5b50505050505050565b6004805460408051600160a060020a038581166020808401919091528351808403820181528385018086527f466565506f6f6c557064617465642861646472657373290000000000000000009052935192839003605701832060e060020a63907dff97028452600160248501819052604485018290526000606486018190526084860181905260a4860181905260c0988601988952865160c48701528651949097169763907dff979791959294919384938493839260e4909201918a0190808383885b8381101561393e578181015183820152602001613926565b50505050905090810190601f16801561396b5780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b15801561398f57600080fd5b505af11580156139a3573d6000803e3d6000fd5b5050505050565b600080838311156139ba57600080fd5b5050900390565b600080600b60009054906101000a9004600160a060020a0316600160a060020a031663dbd4a4226040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015613a1757600080fd5b505af1158015613a2b573d6000803e3d6000fd5b505050506040513d6020811015613a4157600080fd5b5051604080517fcaca2516000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301529151919092169163caca25169160248083019260209291908290030181600087803b158015613aa857600080fd5b505af1158015613abc573d6000803e3d6000fd5b505050506040513d6020811015613ad257600080fd5b50519050600160e060020a0319811615801590613b0c5750600b5460a060020a900460e060020a02600160e060020a031990811690821614155b15613bdf57600b54604080517fbe0ecd32000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152600160e060020a031960e060020a60a060020a86040281166024840152604483018990528516606483015288811660848301529151919092169163be0ecd329160a48083019260209291908290030181600087803b158015613bac57600080fd5b505af1158015613bc0573d6000803e3d6000fd5b505050506040513d6020811015613bd657600080fd5b50519150613bee565b613beb868686866143d6565b91505b50949350505050565b600082820183811015613c0957600080fd5b9392505050565b600480546040805160208082018690528251808303820181528284018085527f5472616e7366657228616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a019080838388838110156137f55781810151838201526020016137dd565b600480546040805160208082018690528251808303820181528284018085527f49737375656428616464726573732c75696e74323536290000000000000000009052925191829003605701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038981166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a0190808383885b83811015613ded578181015183820152602001613dd5565b50505050905090810190601f168015613e1a5780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b158015613e3e57600080fd5b505af115801561252d573d6000803e3d6000fd5b600480546040805160208082018690528251808303820181528284018085527f4275726e656428616464726573732c75696e74323536290000000000000000009052925191829003605701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038981166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a01908083838883811015613ded578181015183820152602001613dd5565b6004805460408051600160a060020a038581166020808401919091528351808403820181528385018086527f546f6b656e5374617465557064617465642861646472657373290000000000009052935192839003605a01832060e060020a63907dff97028452600160248501819052604485018290526000606486018190526084860181905260a4860181905260c0988601988952865160c48701528651949097169763907dff979791959294919384938493839260e4909201918a0190808383888381101561393e578181015183820152602001613926565b600480546040805160208082018690528251808303820181528284018085527f50757267656428616464726573732c75696e74323536290000000000000000009052925191829003605701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038981166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a01908083838883811015613ded578181015183820152602001613dd5565b60055460009060a060020a900460ff1615614145576040805160e560020a62461bcd02815260206004820152601e60248201527f526576657274656420746f2070726576656e74207265656e7472616e63790000604482015290519081900360640190fd5b506005805474ff0000000000000000000000000000000000000000191660a060020a179055823b60008111156142d75783600160a060020a03168584846040516024018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156141e05781810151838201526020016141c8565b50505050905090810190601f16801561420d5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fc0ee0b8a000000000000000000000000000000000000000000000000000000001781529051825192975095508594509250905080838360005b8381101561429457818101518382015260200161427c565b50505050905090810190601f1680156142c15780820380516001836020036101000a031916815260200191505b509150506000604051808303816000865af15050505b50506005805474ff000000000000000000000000000000000000000019169055505050565b6004805460408051600160a060020a038581166020808401919091528351808403820181528385018086527f53796e74686574697855706461746564286164647265737329000000000000009052935192839003605901832060e060020a63907dff97028452600160248501819052604485018290526000606486018190526084860181905260a4860181905260c0988601988952865160c48701528651949097169763907dff979791959294919384938493839260e4909201918a0190808383888381101561393e578181015183820152602001613926565b6000600160a060020a0384161515614438576040805160e560020a62461bcd02815260206004820181905260248201527f43616e6e6f74207472616e7366657220746f2074686520302061646472657373604482015290519081900360640190fd5b600160a060020a0384163014156144bf576040805160e560020a62461bcd02815260206004820152602a60248201527f43616e6e6f74207472616e7366657220746f2074686520756e6465726c79696e60448201527f6720636f6e747261637400000000000000000000000000000000000000000000606482015290519081900360840190fd5b600454600160a060020a038581169116141561454b576040805160e560020a62461bcd02815260206004820152602560248201527f43616e6e6f74207472616e7366657220746f207468652070726f787920636f6e60448201527f7472616374000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6006546040805160e060020a6370a08231028152600160a060020a0388811660048301529151919092169163b46310f69188916145ae91889186916370a08231916024808201926020929091908290030181600087803b158015610f9a57600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561460057600080fd5b505af1158015614614573d6000803e3d6000fd5b50506006546040805160e060020a6370a08231028152600160a060020a038981166004830152915191909216935063b46310f69250879161467b91889186916370a08231916024808201926020929091908290030181600087803b15801561189857600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156146cd57600080fd5b505af11580156146e1573d6000803e3d6000fd5b505050506146f1858585856140e0565b6146fc858585613c10565b50600194935050505056004f6e6c792074686520636f6e7472616374206f776e6572206d617920706572665468697320616374696f6e2063616e206f6e6c7920626520706572666f726d656f726d207468697320616374696f6e0000000000000000000000000000000000746865206665652061646472657373000000000000000000000000000000000043616e6e6f7420706572666f726d207468697320616374696f6e2077697468206420627920746865206f776e6572000000000000000000000000000000000000a165627a7a72305820e8a197b9c2345c812b2bd61605c92090a313abc8797c84653145d91c7b1e979800290000000000000000000000000c8a7d55ef593a2cad34894c1523162ee2ffb9ac0000000000000000000000007e88d19a79b291cfe5696d496055f7e57f537a750000000000000000000000005a4ade4f3e934a0885f42884f7077261c3f4f66f0000000000000000000000005e5f5542dad3e06cc8e1cd2461e83f872835117b00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000b64ff7a4a33acdf48d97dab0d764afd0f617688273474250000000000000000000000000000000000000000000000000000000000000000000000000000000005cbb53ca85a9e52b593baf8ae90282c4b3db0b25000000000000000000000000000000000000000000000000000000000000000a53796e746820734742500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047347425000000000000000000000000000000000000000000000000000000000

Library Used

SafeDecimalMath : 0x84D626B2BB4D0F064067e4BF80FCe7055d8F3E7B

Deployed ByteCode Sourcemap

133213:2538:0:-;;;;;;;;;-1:-1:-1;;;133213:2538:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51680:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51680:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;51680:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55918:292;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;55918:292:0;-1:-1:-1;;;;;55918:292:0;;;;;;;;;;;;;;;;;;;;;;;;;12126:164;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;12126:164:0;-1:-1:-1;;;;;12126:164:0;;;;;;;13800:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13800:26:0;;;;;;;;;;;;;;;;;;;;51732:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51732:23:0;;;;121586:171;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;121586:171:0;-1:-1:-1;;;;;121586:171:0;;;;;14629:307;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;14629:307:0;-1:-1:-1;;;;;14629:307:0;;;;;123541:802;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;123541:802:0;-1:-1:-1;;;;;123541:802:0;;;;;;;;;;;;51762:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51762:21:0;;;;;;;;;;;;;;;;;;;;;;;15507:192;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15507:192:0;;;;127794:729;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;127794:729:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;127794:729:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;127794:729:0;;-1:-1:-1;127794:729:0;;-1:-1:-1;;;;;;;127794:729:0;133586:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;133586:34:0;;;;;;;;-1:-1:-1;;;;;133586:34:0;;;;;;;;;;;;;;11697:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11697:29:0;;;;135262:161;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;135262:161:0;-1:-1:-1;;;;;135262:161:0;;;;;53126:150;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;53126:150:0;-1:-1:-1;;;;;53126:150:0;;;;;120369:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;120369:26:0;;;;12367:285;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12367:285:0;;;;133402:66;;8:9:-1;5:2;;;30:1;27;20:12;5:2;133402:66:0;;;;129329:332;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;129329:332:0;-1:-1:-1;;;;;129329:332:0;;;;;;;11670:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11670:20:0;;;;51705;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51705:20:0;;;;45916:152;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;45916:152:0;-1:-1:-1;;;;;45916:152:0;;;;;15922:398;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15922:398:0;;;;129771:331;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;129771:331:0;-1:-1:-1;;;;;129771:331:0;;;;;;;53562:191;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;53562:191:0;-1:-1:-1;;;;;53562:191:0;;;;;13918:49;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13918:49:0;;;;121991:576;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;121991:576:0;-1:-1:-1;;;;;121991:576:0;;;;;;;134325:886;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;134325:886:0;;;;;;;;;;;;124528:835;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;124528:835:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;124528:835:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;124528:835:0;;-1:-1:-1;124528:835:0;;-1:-1:-1;;;;;;;124528:835:0;120339:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;120339:23:0;;;;126208:557;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;126208:557:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;126208:557:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;126208:557:0;;-1:-1:-1;126208:557:0;;-1:-1:-1;;;;;;;126208:557:0;13833:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13833:33:0;;;;46076:125;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;46076:125:0;-1:-1:-1;;;;;46076:125:0;;;;;15156:209;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15156:209:0;;;;122748:609;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;122748:609:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;122748:609:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122748:609:0;;-1:-1:-1;122748:609:0;;-1:-1:-1;;;;;;;122748:609:0;13873:38;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13873:38:0;;;;125498:575;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;125498:575:0;-1:-1:-1;;;;;125498:575:0;;;;;;;120477:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;120477:25:0;;;;;;;;-1:-1:-1;;;;;;120477:25:0;;;;;;;;;;;;;;52860:172;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;52860:172:0;-1:-1:-1;;;;;52860:172:0;;;;;;;;;;126906:747;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;126906:747:0;-1:-1:-1;;;;;126906:747:0;;;;;;;;;;;;51612:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51612:28:0;;;;130440:248;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;130440:248:0;-1:-1:-1;;;;;130440:248:0;;;;;;;;;;;;45454:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45454:18:0;;;;130165:132;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;130165:132:0;;;;;121394:184;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;121394:184:0;-1:-1:-1;;;;;121394:184:0;;;;;51680:18;;;;;;;;;;;;;;;-1:-1:-1;;51680:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;55918:292::-;46407:5;;56021:4;;;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;-1:-1:-1;56060:13:0;;56086:10;;:47;;;;;;-1:-1:-1;;;;;56060:13:0;;;56086:47;;;;;;;;;;;;;;;;;;;;;56060:13;;56086:10;;;;:23;;:47;;;;;-1:-1:-1;;56086:47:0;;;;;;;-1:-1:-1;56086:10:0;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;56086:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56086:47:0;;;;56144:36;56157:6;56165:7;56174:5;56144:12;:36::i;:::-;-1:-1:-1;56198:4:0;;55918:292;-1:-1:-1;;;55918:292:0:o;12126:164::-;12717:5;;-1:-1:-1;;;;;12717:5:0;12703:10;:19;12695:79;;;;;-1:-1:-1;;;;;12695:79:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;;;;;;;;;;;;12221:14;:23;;-1:-1:-1;;;;;12221:23:0;;-1:-1:-1;;;;;;12221:23:0;;;;;;;;12260:22;;;;;;;;;;;;;;;;12126:164;:::o;13800:26::-;;;;:::o;51732:23::-;;;;:::o;121586:171::-;46568:5;;-1:-1:-1;;;;;46568:5:0;46553:10;46547:26;46543:85;;46590:13;:26;;-1:-1:-1;;;;;;46590:26:0;46606:10;46590:26;;;46543:85;46663:5;;46646:13;;-1:-1:-1;;;;;46646:13:0;;;46663:5;;46646:22;46638:81;;;;;-1:-1:-1;;;;;46638:81:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;;;;;;;;;;;;121692:7;:18;;-1:-1:-1;;121692:18:0;;-1:-1:-1;;;;;121692:18:0;;;;;;121721:28;121692:18;121721;:28::i;:::-;121586:171;:::o;14629:307::-;12717:5;;-1:-1:-1;;;;;12717:5:0;12703:10;:19;12695:79;;;;;-1:-1:-1;;;;;12695:79:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;14748:26:0;;;;14740:79;;;;;-1:-1:-1;;;;;14740:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14830:23;:38;;-1:-1:-1;;;;;14830:38:0;;;;;-1:-1:-1;;14830:38:0;;;;;;;;;;14884:44;;;;;;;;;;;;;;;;14629:307;:::o;123541:802::-;46407:5;;123687:4;;;;;;124249:18;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;123663:4;131106:7;;;;;;;;;-1:-1:-1;;;;;131106:7:0;-1:-1:-1;;;;;131106:19:0;;:21;;;;;-1:-1:-1;;;131106:21:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;123785:7;;;;;;;;;-1:-1:-1;;;;;123785:7:0;-1:-1:-1;;;;;123785:34:0;;123820:5;123785:41;;;;;-1:-1:-1;;;123785:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;123785:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;123785:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;123785:41:0;;-1:-1:-1;123848:25:0;:5;123785:41;123848:25;:9;:25;:::i;:::-;124021:10;;124051:13;;124066:41;;;;;;-1:-1:-1;;;;;124066:41:0;;;;;;;124051:13;;;124066:41;;;;;;;;123837:36;;-1:-1:-1;124021:10:0;;;;;:23;;124045:4;;124051:13;;124066:52;;124112:5;;124021:10;;124066:20;;:41;;;;;;;;;;;;;;124021:10;;124066:41;;;5:2:-1;;;;30:1;27;20:12;5:2;124066:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;124066:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;124066:41:0;;:52;:45;:52;:::i;:::-;124021:98;;;-1:-1:-1;;;124021:98:0;;;;;;-1:-1:-1;;;;;124021:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;124021:98:0;;;;;;;-1:-1:-1;124021:98:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;124021:98:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;124178:9:0;;:58;;;-1:-1:-1;;;;;124178:58:0;;-1:-1:-1;;;;;124178:58:0;;;;;;;-1:-1:-1;;;;;;;;;;;;124219:11:0;;;124178:58;;;;;;;;;;;;;:9;;;;;-1:-1:-1;124178:34:0;;-1:-1:-1;124178:58:0;;;;;;;;;;;;;;:9;;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;124178:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;124178:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;124285:50:0;;-1:-1:-1;124303:4:0;124309:2;124313:14;124329:5;124285:17;:50::i;:::-;124278:57;123541:802;-1:-1:-1;;;;;;;;123541:802:0:o;51762:21::-;;;;;;:::o;15507:192::-;12717:5;;-1:-1:-1;;;;;12717:5:0;12703:10;:19;12695:79;;;;;-1:-1:-1;;;;;12695:79:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;;;;;;;;;;;;15610:1;15593:14;:18;;;15622:21;:29;;-1:-1:-1;;15622:29:0;;;15667:24;;;;15610:1;15667:24;15507:192::o;127794:729::-;46407:5;;127965:4;;;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;127941:4;131106:7;;;;;;;;;-1:-1:-1;;;;;131106:7:0;-1:-1:-1;;;;;131106:19:0;;:21;;;;;-1:-1:-1;;;131106:21:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;127998:7;;;;;;;;;-1:-1:-1;;;;;127998:7:0;-1:-1:-1;;;;;127998:27:0;;128026:5;127998:34;;;;;-1:-1:-1;;;127998:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;127998:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;127998:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;127998:34:0;128180:10;;128210:13;;127998:34;;-1:-1:-1;;;;;;128180:10:0;;;;:23;;128204:4;;128210:13;128225:61;128271:14;:5;127998:34;128271:14;:9;:14;:::i;:::-;128225:10;;;;;;;;;-1:-1:-1;;;;;128225:10:0;-1:-1:-1;;;;;128225:20:0;;128246:4;128252:13;;;;;;;;;-1:-1:-1;;;;;128252:13:0;128225:41;;;;;-1:-1:-1;;;128225:41:0;;;;;;;-1:-1:-1;;;;;128225:41:0;-1:-1:-1;;;;;128225:41:0;;;;;;-1:-1:-1;;;;;128225:41:0;-1:-1:-1;;;;;128225:41:0;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;128225:61:0;128180:107;;;-1:-1:-1;;;128180:107:0;;;;;;-1:-1:-1;;;;;128180:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;128180:107:0;;;;;;;-1:-1:-1;128180:107:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;128180:107:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;128397:9:0;;:58;;;-1:-1:-1;;;;;128397:58:0;;-1:-1:-1;;;;;128397:58:0;;;;;;;-1:-1:-1;;;;;;;;;;;;128438:11:0;;;128397:58;;;;;;;;;;;;;:9;;;;;-1:-1:-1;128397:34:0;;-1:-1:-1;128397:58:0;;;;;;;;;;;;;;:9;;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;128397:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;128397:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;128475:40:0;;-1:-1:-1;128493:4:0;128499:2;128503:5;128510:4;128475:17;:40::i;:::-;128468:47;127794:729;-1:-1:-1;;;;;;;127794:729:0:o;133586:34::-;;;-1:-1:-1;;;;;133586:34:0;;:::o;11697:29::-;;;-1:-1:-1;;;;;11697:29:0;;:::o;135262:161::-;46568:5;;-1:-1:-1;;;;;46568:5:0;46553:10;46547:26;46543:85;;46590:13;:26;;-1:-1:-1;;;;;;46590:26:0;46606:10;46590:26;;;46543:85;46663:5;;46646:13;;-1:-1:-1;;;;;46646:13:0;;;46663:5;;46646:22;46638:81;;;;;-1:-1:-1;;;;;46638:81:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;;;;;;;;;;;;135385:13;:30;;-1:-1:-1;;;;;;135385:30:0;-1:-1:-1;;;;;135385:30:0;;;;;;;;;;135262:161::o;53126:150::-;53239:10;;:29;;;-1:-1:-1;;;;;53239:29:0;;-1:-1:-1;;;;;53239:29:0;;;;;;;;;53210:4;;53239:10;;;;;:20;;:29;;;;;;;;;;;;;;;53210:4;53239:10;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;53239:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53239:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53239:29:0;;53126:150;-1:-1:-1;;53126:150:0:o;120369:26::-;;;-1:-1:-1;;;;;120369:26:0;;:::o;12367:285::-;12450:14;;-1:-1:-1;;;;;12450:14:0;12436:10;:28;12428:94;;;;;-1:-1:-1;;;;;12428:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12551:5;;;12558:14;12538:35;;;-1:-1:-1;;;;;12551:5:0;;;12538:35;;12558:14;;;;12538:35;;;;;;;;;;;;;;;;12592:14;;;;12584:22;;-1:-1:-1;;;;;;12584:22:0;;;-1:-1:-1;;;;;12592:14:0;;12584:22;;;;12617:27;;;12367:285::o;133402:66::-;;;;:::o;129329:332::-;130827:9;;130887:7;;130805:10;-1:-1:-1;;;;;130827:9:0;;;130805:32;;;130827:9;130887:7;;;;;;130865:30;130805:32;;130916:24;;;130931:9;130916:24;130908:100;;;;;;;-1:-1:-1;;;;;130908:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129440:10;;129473:29;;;-1:-1:-1;;;;;129473:29:0;;-1:-1:-1;;;;;129473:29:0;;;;;;;;;129440:10;;;;;:23;;129464:7;;129473:41;;129507:6;;129440:10;;129473:20;;:29;;;;;;;;;;;;;;;129440:10;;129473:29;;;5:2:-1;;;;30:1;27;20:12;5:2;129473:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;129473:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;129473:29:0;;:41;:33;:41;:::i;:::-;129440:75;;;;;-1:-1:-1;;;129440:75:0;;;;;;;-1:-1:-1;;;;;129440:75:0;-1:-1:-1;;;;;129440:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;129440:75:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;129540:11:0;;:23;;-1:-1:-1;129540:11:0;-1:-1:-1;129556:6:0;129540:23;:15;:23;:::i;:::-;129526:11;:37;129574:41;129595:1;129599:7;129608:6;129574:12;:41::i;:::-;129626:27;129637:7;129646:6;129626:10;:27::i;:::-;129329:332;;;;:::o;11670:20::-;;;-1:-1:-1;;;;;11670:20:0;;:::o;51705:::-;;;;;;;;;;;;;;;-1:-1:-1;;51705:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45916:152;12717:5;;-1:-1:-1;;;;;12717:5:0;12703:10;:19;12695:79;;;;;-1:-1:-1;;;;;12695:79:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;;;;;;;;;;;;46003:5;:21;;-1:-1:-1;;;;;46003:21:0;;-1:-1:-1;;;;;;46003:21:0;;;;;;;;46040:20;;;;;;;;;;;;;;;;45916:152;:::o;15922:398::-;16188:19;12717:5;;-1:-1:-1;;;;;12717:5:0;12703:10;:19;12695:79;;;;;-1:-1:-1;;;;;12695:79:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;;;;;;;;;;;;16007:21;;;;15999:74;;;;;;;-1:-1:-1;;;;;15999:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16130:3;13960:7;16092:14;;:35;:41;16084:93;;;;;;;-1:-1:-1;;;;;16084:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16210:23:0;;16249:27;;;-1:-1:-1;;;;;16210:23:0;;;;;;;;16249:27;;;;;16210:23;;16249:27;;;;;;;;;;16300:11;-1:-1:-1;;;;;16287:25:0;;129771:331;130827:9;;130887:7;;130805:10;-1:-1:-1;;;;;130827:9:0;;;130805:32;;;130827:9;130887:7;;;;;;130865:30;130805:32;;130916:24;;;130931:9;130916:24;130908:100;;;;;;;-1:-1:-1;;;;;130908:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129881:10;;129914:29;;;-1:-1:-1;;;;;129914:29:0;;-1:-1:-1;;;;;129914:29:0;;;;;;;;;129881:10;;;;;:23;;129905:7;;129914:41;;129948:6;;129881:10;;129914:20;;:29;;;;;;;;;;;;;;;129881:10;;129914:29;;;5:2:-1;;;;30:1;27;20:12;129914:41:0;129881:75;;;;;-1:-1:-1;;;129881:75:0;;;;;;;-1:-1:-1;;;;;129881:75:0;-1:-1:-1;;;;;129881:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;129881:75:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;129981:11:0;;:23;;-1:-1:-1;129981:11:0;-1:-1:-1;129997:6:0;129981:23;:15;:23;:::i;:::-;129967:11;:37;130015:41;130028:7;130045:1;130049:6;130015:12;:41::i;:::-;130067:27;130078:7;130087:6;130067:10;:27::i;53562:191::-;46568:5;;-1:-1:-1;;;;;46568:5:0;46553:10;46547:26;46543:85;;46590:13;:26;;-1:-1:-1;;;;;;46590:26:0;46606:10;46590:26;;;46543:85;46663:5;;46646:13;;-1:-1:-1;;;;;46646:13:0;;;46663:5;;46646:22;46638:81;;;;;-1:-1:-1;;;;;46638:81:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;;;;;;;;;;;;53676:10;:24;;-1:-1:-1;;;;;;53676:24:0;-1:-1:-1;;;;;53676:24:0;;;;;53711:34;53676:24;53711:21;:34::i;13918:49::-;13960:7;13918:49;:::o;121991:576::-;46407:5;;122128:4;;;;;;122464:18;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;122095:13;;131106:7;;:21;;;-1:-1:-1;;;;;131106:21:0;;;;-1:-1:-1;;;;;122095:13:0;;;;;131106:7;;;;;;;:19;;:21;;;;;;;;;;;;;;;122095:13;131106:7;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;122172:7;;;;;;;;;-1:-1:-1;;;;;122172:7:0;-1:-1:-1;;;;;122172:34:0;;122207:5;122172:41;;;;;-1:-1:-1;;;122172:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;122172:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;122172:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;122172:41:0;;-1:-1:-1;122235:25:0;:5;122172:41;122235:25;:9;:25;:::i;:::-;122319:9;;122354:13;;122319:67;;;-1:-1:-1;;;;;122319:67:0;;-1:-1:-1;;;;;122354:13:0;;;122319:67;;;;-1:-1:-1;;;;;;;;;;;;122369:11:0;;;122319:67;;;;;;;;;;;;;122224:36;;-1:-1:-1;122319:9:0;;;:34;;:67;;;;;;;;;;;;;;;:9;;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;122319:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;122319:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;122518:13:0;;122500:59;;-1:-1:-1;;;;;122518:13:0;122533:2;122537:14;122553:5;122500:17;:59::i;134325:886::-;46568:5;;134428:21;;;;;;;;-1:-1:-1;;;;;46568:5:0;46553:10;46547:26;46543:85;;46590:13;:26;;-1:-1:-1;;;;;;46590:26:0;46606:10;46590:26;;;46543:85;46663:5;;46646:13;;-1:-1:-1;;;;;46646:13:0;;;46663:5;;46646:22;46638:81;;;;;-1:-1:-1;;;;;46638:81:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;;;;;;;;;;;;134452:13;;134489:21;;134512:11;;134452:72;;;;;;;;;;;;;;;;;;-1:-1:-1;;;134512:11:0;;;-1:-1:-1;;;134512:11:0;-1:-1:-1;;;;;;134452:72:0;;;;;;-1:-1:-1;;;;;134452:13:0;;;;:28;;:72;;;;;;;;;;;;;;;-1:-1:-1;134452:13:0;:72;;;5:2:-1;;;;30:1;27;20:12;5:2;134452:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;134452:72:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;134452:72:0;134660:11;;134452:72;;-1:-1:-1;134660:31:0;-1:-1:-1;134660:31:0;;:74;;-1:-1:-1;134695:13:0;;134722:11;;134695:39;;;;;;-1:-1:-1;;;134722:11:0;;;-1:-1:-1;;;134722:11:0;-1:-1:-1;;;;;;134695:39:0;;;;;;-1:-1:-1;;;;;134695:13:0;;;;:26;;:39;;;;;;;;;;;;;;;-1:-1:-1;134695:13:0;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;134695:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;134695:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;134695:39:0;134660:74;134638:195;;;;;;;-1:-1:-1;;;;;134638:195:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134861:1;134851:11;;134846:356;134864:20;;;;-1:-1:-1;134846:356:0;;;134923:9;;:12;;;;;;;;;;;;;;;;-1:-1:-1;;;;;134923:12:0;134906:29;;134970:17;134980:6;134970:9;:17::i;:::-;134952:35;;135021:1;135008:10;:14;135004:185;;;135043:9;;:81;;;;;;-1:-1:-1;;;;;135043:81:0;;;;;;;;;-1:-1:-1;;;;;;;;;;;;135084:11:0;;;135043:81;;;;;;;;;;;;;;;;;;;;;;:9;;;;;:32;;:81;;;;;;;;;;;;;;:9;;:81;;;5:2:-1;;;;30:1;27;20:12;5:2;135043:81:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;135043:81:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;135143:30:0;;-1:-1:-1;135154:6:0;135162:10;135143;:30::i;:::-;134886:3;;;;;134846:356;;;134325:886;;;;;;:::o;124528:835::-;46407:5;;124686:4;;;;;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;124662:4;131106:7;;;;;;;;;-1:-1:-1;;;;;131106:7:0;-1:-1:-1;;;;;131106:19:0;;:21;;;;;-1:-1:-1;;;131106:21:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;124784:7;;;;;;;;;-1:-1:-1;;;;;124784:7:0;-1:-1:-1;;;;;124784:34:0;;124819:5;124784:41;;;;;-1:-1:-1;;;124784:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;124784:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;124784:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;124784:41:0;;-1:-1:-1;124847:25:0;:5;124784:41;124847:25;:9;:25;:::i;:::-;125020:10;;125050:13;;125065:41;;;;;;-1:-1:-1;;;;;125065:41:0;;;;;;;125050:13;;;125065:41;;;;;;;;124836:36;;-1:-1:-1;125020:10:0;;;;;:23;;125044:4;;125050:13;;125065:52;;125111:5;;125020:10;;125065:20;;:41;;;;;;;;;;;;;;125020:10;;125065:41;;;5:2:-1;;;;30:1;27;20:12;125065:52:0;125020:98;;;-1:-1:-1;;;125020:98:0;;;;;;-1:-1:-1;;;;;125020:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;125020:98:0;;;;;;;-1:-1:-1;125020:98:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;125020:98:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;125228:9:0;;:58;;;-1:-1:-1;;;;;125228:58:0;;-1:-1:-1;;;;;125228:58:0;;;;;;;-1:-1:-1;;;;;;;;;;;;125269:11:0;;;125228:58;;;;;;;;;;;;;:9;;;;;-1:-1:-1;125228:34:0;;-1:-1:-1;125228:58:0;;;;;;;;;;;;;;:9;;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;125228:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;125228:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;125306:49:0;;-1:-1:-1;125324:4:0;125330:2;125334:14;125350:4;125306:17;:49::i;120339:23::-;;;;;;-1:-1:-1;;;;;120339:23:0;;:::o;126208:557::-;46407:5;;126370:4;;;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;126337:13;;131106:7;;:21;;;-1:-1:-1;;;;;131106:21:0;;;;-1:-1:-1;;;;;126337:13:0;;;;;131106:7;;;;;;;:19;;:21;;;;;;;;;;;;;;;126337:13;131106:7;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;126403:7;;;;;;;;;-1:-1:-1;;;;;126403:7:0;-1:-1:-1;;;;;126403:27:0;;126431:5;126403:34;;;;;-1:-1:-1;;;126403:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;126403:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;126403:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;126403:34:0;126547:9;;126582:13;;126547:67;;;-1:-1:-1;;;;;126547:67:0;;-1:-1:-1;;;;;126582:13:0;;;126547:67;;;;-1:-1:-1;;;;;;;;;;;;126597:11:0;;;126547:67;;;;;;;;;;;;;126403:34;;-1:-1:-1;126547:9:0;;;:34;;:67;;;;;126403:34;;126547:67;;;;;;;;:9;;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;126547:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;126547:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;126726:13:0;;126708:49;;-1:-1:-1;;;;;126726:13:0;126741:2;126745:5;126752:4;126708:17;:49::i;:::-;126701:56;126208:557;-1:-1:-1;;;;;;126208:557:0:o;13833:33::-;;;;;;:::o;46076:125::-;46268:5;;-1:-1:-1;;;;;46268:5:0;46253:10;46247:26;46239:76;;;;;-1:-1:-1;;;;;46239:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46171:13;:22;;-1:-1:-1;;;;;;46171:22:0;-1:-1:-1;;;;;46171:22:0;;;;;;;;;;46076:125::o;15156:209::-;12717:5;;-1:-1:-1;;;;;12717:5:0;12703:10;:19;12695:79;;;;;-1:-1:-1;;;;;12695:79:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;-1:-1:-1;;;;;;;;;;;12695:79:0;;;;;;;;;;;;;;;15258:3;15241:14;:20;15272:21;:28;;-1:-1:-1;;15272:28:0;15296:4;15272:28;;;15316:41;;;13960:7;15316:41;;;;;;;;;;;;;15156:209::o;122748:609::-;46407:5;;122897:4;;;;;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;122864:13;;131106:7;;:21;;;-1:-1:-1;;;;;131106:21:0;;;;-1:-1:-1;;;;;122864:13:0;;;;;131106:7;;;;;;;:19;;:21;;;;;;;;;;;;;;;122864:13;131106:7;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;122941:7;;;;;;;;;-1:-1:-1;;;;;122941:7:0;-1:-1:-1;;;;;122941:34:0;;122976:5;122941:41;;;;;-1:-1:-1;;;122941:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;122941:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;122941:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;122941:41:0;;-1:-1:-1;123004:25:0;:5;122941:41;123004:25;:9;:25;:::i;:::-;123139:9;;123174:13;;123139:67;;;-1:-1:-1;;;;;123139:67:0;;-1:-1:-1;;;;;123174:13:0;;;123139:67;;;;-1:-1:-1;;;;;;;;;;;;123189:11:0;;;123139:67;;;;;;;;;;;;;122993:36;;-1:-1:-1;123139:9:0;;;:34;;:67;;;;;;;;;;;;;;;:9;;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;123139:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;123139:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;123309:13:0;;123291:58;;-1:-1:-1;;;;;123309:13:0;123324:2;123328:14;123344:4;123291:17;:58::i;13873:38::-;;;;;;-1:-1:-1;;;;;13873:38:0;;:::o;125498:575::-;46407:5;;125648:4;;;;125979:18;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;125615:13;;131106:7;;:21;;;-1:-1:-1;;;;;131106:21:0;;;;-1:-1:-1;;;;;125615:13:0;;;;;131106:7;;;;;;;:19;;:21;;;;;;;;;;;;;;;125615:13;131106:7;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;125681:7;;;;;;;;;-1:-1:-1;;;;;125681:7:0;-1:-1:-1;;;;;125681:27:0;;125709:5;125681:34;;;;;-1:-1:-1;;;125681:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;125681:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;125681:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;125681:34:0;125825:9;;125860:13;;125825:67;;;-1:-1:-1;;;;;125825:67:0;;-1:-1:-1;;;;;125860:13:0;;;125825:67;;;;-1:-1:-1;;;;;;;;;;;;125875:11:0;;;125825:67;;;;;;;;;;;;;125681:34;;-1:-1:-1;125825:9:0;;;:34;;:67;;;;;125681:34;;125825:67;;;;;;;;:9;;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;125825:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;125825:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;126033:13:0;;126015:50;;-1:-1:-1;;;;;126033:13:0;126048:2;126052:5;126059;126015:17;:50::i;120477:25::-;;;-1:-1:-1;;;120477:25:0;;-1:-1:-1;;;120477:25:0;;:::o;52860:172::-;52988:10;;:36;;;;;;-1:-1:-1;;;;;52988:36:0;;;;;;;;;;;;;;;;52959:4;;52988:10;;;;;:20;;:36;;;;;;;;;;;;;;;52959:4;52988:10;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;52988:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52988:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52988:36:0;;52860:172;-1:-1:-1;;;52860:172:0:o;126906:747::-;46407:5;;127065:4;;;;127568:18;;-1:-1:-1;;;;;46407:5:0;46392:10;46386:26;46382:85;;46429:13;:26;;-1:-1:-1;;;;;;46429:26:0;46445:10;46429:26;;;46382:85;127041:4;131106:7;;;;;;;;;-1:-1:-1;;;;;131106:7:0;-1:-1:-1;;;;;131106:19:0;;:21;;;;;-1:-1:-1;;;131106:21:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131106:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131106:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;131106:21:0;-1:-1:-1;;;;;131095:32:0;;;;;;;131087:92;;;;;-1:-1:-1;;;;;131087:92:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;-1:-1:-1;;;;;;;;;;;131087:92:0;;;;;;;;;;;;;;;127098:7;;;;;;;;;-1:-1:-1;;;;;127098:7:0;-1:-1:-1;;;;;127098:27:0;;127126:5;127098:34;;;;;-1:-1:-1;;;127098:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;127098:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;127098:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;127098:34:0;127280:10;;127310:13;;127098:34;;-1:-1:-1;;;;;;127280:10:0;;;;:23;;127304:4;;127310:13;127325:61;127371:14;:5;127098:34;127371:14;:9;:14;:::i;127325:61::-;127280:107;;;-1:-1:-1;;;127280:107:0;;;;;;-1:-1:-1;;;;;127280:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;127280:107:0;;;;;;;-1:-1:-1;127280:107:0;;;;5:2:-1;;;;30:1;27;20:12;5:2;127280:107:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;127497:9:0;;:58;;;-1:-1:-1;;;;;127497:58:0;;-1:-1:-1;;;;;127497:58:0;;;;;;;-1:-1:-1;;;;;;;;;;;;127538:11:0;;;127497:58;;;;;;;;;;;;;:9;;;;;-1:-1:-1;127497:34:0;;-1:-1:-1;127497:58:0;;;;;;;;;;;;;;:9;;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;127497:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;127497:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;127604:41:0;;-1:-1:-1;127622:4:0;127628:2;127632:5;127639;127604:17;:41::i;51612:28::-;;;-1:-1:-1;;;;;51612:28:0;;:::o;130440:248::-;130827:9;;130887:7;;130592:18;;130805:10;-1:-1:-1;;;;;130827:9:0;;;130805:32;;;130827:9;130887:7;;;;;130865:30;130805:32;;130916:24;;;130931:9;130916:24;130908:100;;;;;;;-1:-1:-1;;;;;130908:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130621:59;130647:6;130655:9;130666:6;130674:5;130621:25;:59::i;45454:18::-;;;-1:-1:-1;;;;;45454:18:0;;:::o;130165:132::-;46568:5;;-1:-1:-1;;;;;46568:5:0;46553:10;46547:26;46543:85;;46590:13;:26;;-1:-1:-1;;;;;;46590:26:0;46606:10;46590:26;;;46543:85;46663:5;;46646:13;;-1:-1:-1;;;;;46646:13:0;;;46663:5;;46646:22;46638:81;;;;;-1:-1:-1;;;;;46638:81:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;;;;;;;;;;;;130269:11;:20;130165:132::o;121394:184::-;46568:5;;-1:-1:-1;;;;;46568:5:0;46553:10;46547:26;46543:85;;46590:13;:26;;-1:-1:-1;;;;;;46590:26:0;46606:10;46590:26;;;46543:85;46663:5;;46646:13;;-1:-1:-1;;;;;46646:13:0;;;46663:5;;46646:22;46638:81;;;;;-1:-1:-1;;;;;46638:81:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;-1:-1:-1;;;;;;;;;;;46638:81:0;;;;;;;;;;;;;;;121505:9;:22;;-1:-1:-1;;;;;;121505:22:0;-1:-1:-1;;;;;121505:22:0;;;;;121538:32;121505:22;121538:20;:32::i;56760:178::-;56846:5;;;56858:17;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;56858:17:0;;;;;;56707:46;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56846:84:0;;56877:1;56846:84;;;;;;;;;;;;-1:-1:-1;;;;;56894:14:0;;;56846:84;;;;;;56910:16;;;56846:84;;;;;;:5;:84;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;56877:1;;56707:46;;56894:14;;56910:16;;56846:5;:84;;;;;;;;;;;;;;:5;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;56846:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56846:84:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56846:84:0;;;;56760:178;;;:::o;131672:143::-;131740:5;;;131752:22;;;-1:-1:-1;;;;;131752:22:0;;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;131752:22:0;;;;;;131629:36;;;;;;;;;;;;;-1:-1:-1;;;;;131740:67:0;;:5;:67;;;;;;;;;;;;:5;:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;:5;;131629:36;;131740:5;;;;;;:67;;;;;;;;;;;;;:5;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;131740:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;131740:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131740:67:0;;;;131672:143;:::o;1303:136::-;1361:7;;1385:6;;;;1377:15;;;;;;-1:-1:-1;;1411:5:0;;;1303:136::o;128607:637::-;128720:4;128742:27;128772:9;;;;;;;;;-1:-1:-1;;;;;128772:9:0;-1:-1:-1;;;;;128772:24:0;;:26;;;;;-1:-1:-1;;;128772:26:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;128772:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;128772:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;128772:26:0;:48;;;;;;-1:-1:-1;;;;;128772:48:0;;;;;;;;;:44;;;;;;;:48;;;;;:26;;:48;;;;;;;-1:-1:-1;128772:44:0;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;128772:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;128772:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;128772:48:0;;-1:-1:-1;;;;;;;128924:25:0;;;;;;:64;;-1:-1:-1;128977:11:0;;-1:-1:-1;;;128977:11:0;;-1:-1:-1;;;128977:11:0;-1:-1:-1;;;;;;128953:35:0;;;;;;;;128924:64;128920:317;;;129012:9;;:84;;;;;;-1:-1:-1;;;;;129012:84:0;;;;;;;-1:-1:-1;;;;;;;;;;;;129051:11:0;;;129012:84;;;;;;;;;;;;;;;;;;;;;;;;;;;:9;;;;;:32;;:84;;;;;;;;;;;;;;:9;;:84;;;5:2:-1;;;;30:1;27;20:12;5:2;129012:84:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;129012:84:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;129012:84:0;;-1:-1:-1;129005:91:0;;128920:317;129179:46;129203:4;129209:2;129213:5;129220:4;129179:23;:46::i;:::-;129172:53;;128920:317;128607:637;;;;;;;:::o;1507:136::-;1565:7;1593:5;;;1613:6;;;;1605:15;;;;;;1636:1;1507:136;-1:-1:-1;;;1507:136:0:o;56420:166::-;56500:5;;;56512:17;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;56512:17:0;;;;;;56367:46;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56500:78:0;;56531:1;56500:78;;;;;;;;;;;;-1:-1:-1;;;;;56548:13:0;;;56500:78;;;;;;56563:11;;;56500:78;;;;;;:5;:78;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;56531:1;;56367:46;;56548:13;;56563:11;;56500:5;:78;;;;;;;;;;;;;;:5;33:3:-1;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;131952:146:0;132021:5;;;132033:17;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;132033:17:0;;;;;;131909:36;;;;;;;;;;;;;-1:-1:-1;;;;;132021:69:0;;132052:1;132021:69;;;;;;;;;;;;-1:-1:-1;;;;;132067:16:0;;;132021:69;;;;;;:5;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;132052:1;;131909:36;;132067:16;;132021:5;;:69;;;;;;;;;;;;;;;;:5;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;132021:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;132021:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;132235:146:0;132304:5;;;132316:17;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;132316:17:0;;;;;;132192:36;;;;;;;;;;;;;-1:-1:-1;;;;;132304:69:0;;132335:1;132304:69;;;;;;;;;;;;-1:-1:-1;;;;;132350:16:0;;;132304:69;;;;;;:5;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;132335:1;;132192:36;;132350:16;;132304:5;;:69;;;;;;;;;;;;;;;;:5;33:3:-1;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;57086:155:0;57160:5;;;57172:25;;;-1:-1:-1;;;;;57172:25:0;;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;57172:25:0;;;;;;57040:39;;;;;;;;;;;;;-1:-1:-1;;;;;57160:73:0;;:5;:73;;;;;;;;;;;;:5;:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;:5;;57040:39;;57160:5;;;;;;:73;;;;;;;;;;;;;:5;33:3:-1;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;135602:146:0;135671:5;;;135683:17;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;135683:17:0;;;;;;135559:36;;;;;;;;;;;;;-1:-1:-1;;;;;135671:69:0;;135702:1;135671:69;;;;;;;;;;;;-1:-1:-1;;;;;135717:16:0;;;135671:69;;;;;;:5;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;135702:1;;135559:36;;135717:16;;135671:5;;:69;;;;;;;;;;;;;;;;:5;33:3:-1;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;48720:1705:0;47710:16;;49591:11;;-1:-1:-1;;;47710:16:0;;;;47709:17;47701:60;;;;;-1:-1:-1;;;;;47701:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47772:16:0;:23;;-1:-1:-1;;47772:23:0;-1:-1:-1;;;47772:23:0;;;49785:22;;47772:23;49885:10;;49881:537;;;50191:9;-1:-1:-1;;;;;50191:14:0;50270:6;50278;50286:4;50206:85;;;;;;-1:-1:-1;;;;;50206:85:0;-1:-1:-1;;;;;50206:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;50206:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50206:85:0;;;-1:-1:-1;;26:21;;;22:32;6:49;;50206:85:0;;;49:4:-1;25:18;;61:17;;50206:85:0;182:15:-1;50206:85:0;179:29:-1;160:49;;50191:101:0;;;;50206:85;;-1:-1:-1;50191:101:0;-1:-1:-1;50191:101:0;;-1:-1:-1;25:18;-1:-1;50191:101:0;-1:-1:-1;50191:101:0;;25:18:-1;-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;50191:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;49881:537:0;-1:-1:-1;;47818:16:0;:24;;-1:-1:-1;;47818:24:0;;;-1:-1:-1;;;48720:1705:0:o;131385:151::-;131457:5;;;131469:24;;;-1:-1:-1;;;;;131469:24:0;;;;;;;;;;;;;26:21:-1;;;22:32;;6:49;;131469:24:0;;;;;;131340:38;;;;;;;;;;;;;-1:-1:-1;;;;;131457:71:0;;:5;:71;;;;;;;;;;;;:5;:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;;;;;:11;;:5;;131340:38;;131457:5;;;;;;:71;;;;;;;;;;;;;:5;33:3:-1;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;53761:1114:0;53875:4;-1:-1:-1;;;;;53968:16:0;;;;53960:61;;;;;-1:-1:-1;;;;;53960:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54040:19:0;;54054:4;54040:19;;54032:74;;;;;-1:-1:-1;;;;;54032:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54139:5;;-1:-1:-1;;;;;54125:20:0;;;54139:5;;54125:20;;54117:70;;;;;-1:-1:-1;;;;;54117:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54274:10;;54304:26;;;-1:-1:-1;;;;;54304:26:0;;-1:-1:-1;;;;;54304:26:0;;;;;;;;;54274:10;;;;;:23;;54298:4;;54304:37;;54335:5;;54274:10;;54304:20;;:26;;;;;;;;;;;;;;;54274:10;;54304:26;;;5:2:-1;;;;30:1;27;20:12;54304:37:0;54274:68;;;;;-1:-1:-1;;;54274:68:0;;;;;;;-1:-1:-1;;;;;54274:68:0;-1:-1:-1;;;;;54274:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54274:68:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;54353:10:0;;54381:24;;;-1:-1:-1;;;;;54381:24:0;;-1:-1:-1;;;;;54381:24:0;;;;;;;;;54353:10;;;;;-1:-1:-1;54353:23:0;;-1:-1:-1;54377:2:0;;54381:35;;54410:5;;54353:10;;54381:20;;:24;;;;;;;;;;;;;;;54353:10;;54381:24;;;5:2:-1;;;;30:1;27;20:12;54381:35:0;54353:64;;;;;-1:-1:-1;;;54353:64:0;;;;;;;-1:-1:-1;;;;;54353:64:0;-1:-1:-1;;;;;54353:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54353:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54353:64:0;;;;54696:48;54722:4;54728:2;54732:5;54739:4;54696:25;:48::i;:::-;54814:29;54827:4;54833:2;54837:5;54814:12;:29::i;:::-;-1:-1:-1;54863:4:0;53761:1114;;;;;;:::o

Swarm Source

bzzr://e8a197b9c2345c812b2bd61605c92090a313abc8797c84653145d91c7b1e9798
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.