Contract 0x17b3550da6a0F5E8Dd6d1cae5F8B7b47E7CDf152

Contract Overview

Balance:
0 Ether
Txn Hash Method
Block
From
To
Value
0x2f38c8835c707834263ea5372cf01915d68ac9c887fb3b70126456b939d299efSet Resolver And...85942932020-08-31 16:42:37226 days 22 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether0.048466500
0xfab76d7b14f89a596558d652855e0744e01a7bf4330e5357281001e51c33655bSet Resolver And...83932842020-07-29 18:39:29259 days 20 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether0.000400665
0x09f0685e5ff71c39d76a4eb61bb8d4b0ca0357e061c28743c60229864c72d4a5Set Resolver And...82038542020-07-01 3:15:09288 days 11 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether0.0024039630
0x2874fef8a88699d415b5b088298f118cf51285a661736a672b0443ca4fc73514Set Resolver And...81955772020-06-29 21:29:33289 days 17 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether0.000505665
0x2bd26eac3022574e7104b21c68c04a7da13a7d4dd4d38446b9b69515d53ac2b4Set Resolver And...80318902020-06-04 22:20:01314 days 16 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether0.0011227212
0x6d40bb18a7b302a3c58f33081af9331fb1c9e135dca2acd53b1d4ca7fa7f5b61Set Resolver And...76367022020-04-02 7:50:04378 days 7 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether0.003455220
0x29e6b7d449274f1472446d03c3602b20cbf1f6c4248325948141cd1971076aef0x6101206076366442020-04-02 7:25:47378 days 7 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  Contract Creation0 Ether0.0758169420
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa00ff5a08b24e2dee6729125ea2fcc142476ae5e39bc77b8508e35ee9c937f2788180002020-10-05 2:37:15192 days 12 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x6122c57e3340d9667bf0e8d96d268eeeb1e88f270c89e31e40785649d8476ddc87768202020-09-28 21:13:36198 days 17 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0xda8a3843831872e6073f598fa0adcca4b68fe4fb8cbe897c3b56161b1cfa12e587320392020-09-22 8:25:12205 days 6 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0xee1e101fc0a9a4d385bdb2f9fee57396903041980837c12a2a2ba505d5e8a9b487320332020-09-22 8:24:01205 days 6 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x921502b7e80935ac25378645a499ec45c78ffa346558a818697a7e1b2c05169e87320272020-09-22 8:22:42205 days 6 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x6fba40d5fad088f98bc3eabb96e4241e1bf6bd6b4e125307062b18aab49b4e6c87319822020-09-22 8:15:58205 days 6 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x9b2347b3aa9d12385b25420cd50d51a19cfe41874db0759e22754ee9cd363ece87319112020-09-22 8:06:32205 days 6 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0xe0a577b6de8e3eaefbf54c3c1cd2d739db8fd839f3415cdfde9f0eb51182254b87318832020-09-22 8:02:52205 days 6 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x22e330d2b90f58d532fc90c857427e40f3f5fb88093496c3858c5dc24a86f35f87318602020-09-22 8:00:05205 days 6 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x6d4242baf6687d7a4d66e7cd036a4f27e9f1547082bed123f3ab538e2d92cf3887318392020-09-22 7:57:45205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x693c4bad2ba6bd0a528e72232b664bee03a1dbd10e57f7f61b181eb651e1891087318352020-09-22 7:57:17205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x14b8b740c7f46d5f2375697c994d95e4e2603bf93de1b817a0cc00cdbe90462e87318202020-09-22 7:55:36205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x12d19178def7ace1917daf7641d5281b2214f35fdbb51d27ac47e43b2dea041f87318142020-09-22 7:55:00205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x63dfaf560df5fd3be95ff09f0d0971125fe6ecefe5287fb2f2e114d5ac5c36d087318082020-09-22 7:54:11205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0xc34fac8d88595ce406952519368e53f2bb76fde229ffd0a599981dc351ecbf2487318062020-09-22 7:53:58205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0xd1d2ef6da8156641599d71705642682b90a0ff746ddddc669d6c8d0459ccc1f987317892020-09-22 7:52:01205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0xd164308a3bc97bb4b5d08470e335249fc57d4083d8819158bde0a873d4f1241087317632020-09-22 7:46:21205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x6cb0336d5fb111d019d2fc951c48b73e4d4d537671fa7fe5883fda7624c57e7787317552020-09-22 7:44:16205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x76297fc51173e0a390be17c661c93e58b208530e7459b6eb9c0814dddd058d7f87317492020-09-22 7:43:20205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x4dff9fad13a23d674536bee03fca3dac6d32cdcbfa1209401deb81b23b56da7987317162020-09-22 7:36:05205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x93774427966895b0ade7a29eb795f137e99ac212e2cc2b18d48365f79c4e05df87317082020-09-22 7:33:41205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0xf6acbd87f0a089bdcb936d67b3af223ce23c601e48594aa6561ee2807a31103987316922020-09-22 7:30:46205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x9ffaa943b348314035ba35bff13d22d51525739837191e6aff2c7f7d575b2bb587316772020-09-22 7:27:10205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x775bc5b8dc43ab160b448ffd9f9f5cf69e95b810c25892133c98851415bd8df687316242020-09-22 7:16:18205 days 7 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
0x35e4fce3e90b1ff2c78fd751438faf32547da5ec6951bf167af5a357d8a976e287314712020-09-22 6:41:52205 days 8 hrs ago 0xba46d4cd44c9eb5f2d5a2c72d53add0782b3806f 0x17b3550da6a0f5e8dd6d1cae5f8b7b47e7cdf1520 Ether
[ Download CSV Export 
Loading

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

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 2020-03-30
*/

/*

⚠⚠⚠ WARNING WARNING WARNING ⚠⚠⚠

This is a TARGET contract - DO NOT CONNECT TO IT DIRECTLY IN YOUR CONTRACTS or DAPPS!

This contract has an associated PROXY that MUST be used for all integrations - this TARGET will be REPLACED in an upcoming Synthetix release!
The proxy can be found by looking up the PROXY property on this contract.

*//*
   ____            __   __        __   _
  / __/__ __ ___  / /_ / /  ___  / /_ (_)__ __
 _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
     /___/

* Synthetix: PurgeableSynth.sol
*
* Latest source (may be newer): https://github.com/Synthetixio/synthetix/blob/master/contracts/PurgeableSynth.sol
* Docs: https://docs.synthetix.io/contracts/PurgeableSynth
*
* Contract Dependencies: 
*	- ExternStateToken
*	- MixinResolver
*	- Owned
*	- Proxyable
*	- SelfDestructible
*	- State
*	- Synth
* Libraries: 
*	- SafeDecimalMath
*	- SafeMath
*
* MIT License
* ===========
*
* Copyright (c) 2020 Synthetix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

/* ===============================================
* 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;
  }
}


// https://docs.synthetix.io/contracts/SafeDecimalMath
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;
    }
}


// https://docs.synthetix.io/contracts/Owned
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);
}


// https://docs.synthetix.io/contracts/SelfDestructible
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) public Owned(_owner) {
        require(_owner != address(0), "Owner must not be zero");
        selfDestructBeneficiary = _owner;
        emit SelfDestructBeneficiaryUpdated(_owner);
    }

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

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

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

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

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


// https://docs.synthetix.io/contracts/State
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) public Owned(_owner) {
        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);
}


// https://docs.synthetix.io/contracts/TokenState
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) public State(_owner, _associatedContract) {}

    /* ========== 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;
    }
}


// https://docs.synthetix.io/contracts/Proxy
contract Proxy is Owned {
    Proxyable public target;
    bool public useDELEGATECALL;

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

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


// https://docs.synthetix.io/contracts/Proxyable
contract Proxyable is Owned {
    // This contract should be treated like an abstract contract

    /* The proxy this contract exists behind. */
    Proxy public proxy;
    Proxy public integrationProxy;

    /* 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 public messageSender;

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

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

    function setIntegrationProxy(address _integrationProxy) external onlyOwner {
        integrationProxy = Proxy(_integrationProxy);
    }

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

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

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

    modifier optionalProxy_onlyOwner {
        if (Proxy(msg.sender) != proxy && Proxy(msg.sender) != integrationProxy && messageSender != msg.sender) {
            messageSender = msg.sender;
        }
        require(messageSender == owner, "Owner only function");
        _;
    }

    event ProxyUpdated(address proxyAddress);
}


// https://docs.synthetix.io/contracts/ExternStateToken
contract ExternStateToken is SelfDestructible, Proxyable {
    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
    ) public SelfDestructible(_owner) Proxyable(_proxy, _owner) {
        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) internal returns (bool) {
        /* Disallow transfers to irretrievable-addresses. */
        require(to != address(0) && to != address(this) && to != address(proxy), "Cannot transfer to this address");

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

        // 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) internal returns (bool) {
        return _internalTransfer(from, to, value);
    }

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

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


interface ISystemStatus {
    function requireSystemActive() external view;

    function requireIssuanceActive() external view;

    function requireExchangeActive() external view;

    function requireSynthActive(bytes32 currencyKey) external view;

    function requireSynthsActive(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) external view;
}


/**
 * @title FeePool Interface
 * @notice Abstract contract to hold public getters
 */
contract IFeePool {
    address public FEE_ADDRESS;
    uint public exchangeFeeRate;

    function amountReceivedFromExchange(uint value) external view returns (uint);

    function amountReceivedFromTransfer(uint value) external view returns (uint);

    function recordFeePaid(uint sUSDAmount) external;

    function appendAccountIssuanceRecord(address account, uint lockedAmount, uint debtEntryIndex) external;

    function setRewardsToDistribute(uint amount) external;
}


/**
 * @title SynthetixState interface contract
 * @notice Abstract contract to hold public getters
 */
contract ISynthetixState {
    // 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;
    }

    uint[] public debtLedger;
    uint public issuanceRatio;
    mapping(address => IssuanceData) public issuanceData;

    function debtLedgerLength() external view returns (uint);

    function hasIssued(address account) external view returns (bool);

    function incrementTotalIssuerCount() external;

    function decrementTotalIssuerCount() external;

    function setCurrentIssuanceData(address account, uint initialDebtOwnership) external;

    function lastDebtLedgerEntry() external view returns (uint);

    function appendDebtLedgerValue(uint value) external;

    function clearIssuanceData(address account) external;
}


interface ISynth {
    function burn(address account, uint amount) external;

    function issue(address account, uint amount) external;

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

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

    function transferFromAndSettle(address from, address to, uint value) external returns (bool);

    function balanceOf(address owner) external view returns (uint);
}


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

    function appendVestingEntry(address account, uint quantity) public;
}


/**
 * @title ExchangeRates interface
 */
interface IExchangeRates {
    function effectiveValue(bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey)
        external
        view
        returns (uint);

    function rateForCurrency(bytes32 currencyKey) external view returns (uint);

    function ratesForCurrencies(bytes32[] currencyKeys) external view returns (uint[] memory);

    function rateIsStale(bytes32 currencyKey) external view returns (bool);

    function rateIsFrozen(bytes32 currencyKey) external view returns (bool);

    function anyRateIsStale(bytes32[] currencyKeys) external view returns (bool);

    function getCurrentRoundId(bytes32 currencyKey) external view returns (uint);

    function effectiveValueAtRound(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        uint roundIdForSrc,
        uint roundIdForDest
    ) external view returns (uint);

    function getLastRoundIdBeforeElapsedSecs(
        bytes32 currencyKey,
        uint startingRoundId,
        uint startingTimestamp,
        uint timediff
    ) external view returns (uint);

    function ratesAndStaleForCurrencies(bytes32[] currencyKeys) external view returns (uint[], bool);

    function rateAndTimestampAtRound(bytes32 currencyKey, uint roundId) external view returns (uint rate, uint time);
}


/**
 * @title Synthetix interface contract
 * @notice Abstract contract to hold public getters
 * @dev pseudo interface, actually declared as contract to hold the public getters
 */


contract ISynthetix {
    // ========== PUBLIC STATE VARIABLES ==========

    uint public totalSupply;

    mapping(bytes32 => Synth) public synths;

    mapping(address => bytes32) public synthsByAddress;

    // ========== PUBLIC FUNCTIONS ==========

    function balanceOf(address account) public view returns (uint);

    function transfer(address to, uint value) public returns (bool);

    function transferFrom(address from, address to, uint value) public returns (bool);

    function exchange(bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey)
        external
        returns (uint amountReceived);

    function issueSynths(uint amount) external;

    function issueMaxSynths() external;

    function burnSynths(uint amount) external;

    function burnSynthsToTarget() external;

    function settle(bytes32 currencyKey) external returns (uint reclaimed, uint refunded, uint numEntries);

    function collateralisationRatio(address issuer) public view returns (uint);

    function totalIssuedSynths(bytes32 currencyKey) public view returns (uint);

    function totalIssuedSynthsExcludeEtherCollateral(bytes32 currencyKey) public view returns (uint);

    function debtBalanceOf(address issuer, bytes32 currencyKey) public view returns (uint);

    function debtBalanceOfAndTotalDebt(address issuer, bytes32 currencyKey)
        public
        view
        returns (uint debtBalance, uint totalSystemValue);

    function remainingIssuableSynths(address issuer)
        public
        view
        returns (uint maxIssuable, uint alreadyIssued, uint totalSystemDebt);

    function maxIssuableSynths(address issuer) public view returns (uint maxIssuable);

    function isWaitingPeriod(bytes32 currencyKey) external view returns (bool);

    function emitSynthExchange(
        address account,
        bytes32 fromCurrencyKey,
        uint fromAmount,
        bytes32 toCurrencyKey,
        uint toAmount,
        address toAddress
    ) external;

    function emitExchangeReclaim(address account, bytes32 currencyKey, uint amount) external;

    function emitExchangeRebate(address account, bytes32 currencyKey, uint amount) external;
}


interface IExchanger {
    function maxSecsLeftInWaitingPeriod(address account, bytes32 currencyKey) external view returns (uint);

    function feeRateForExchange(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) external view returns (uint);

    function settlementOwing(address account, bytes32 currencyKey)
        external
        view
        returns (uint reclaimAmount, uint rebateAmount, uint numEntries);

    function settle(address from, bytes32 currencyKey) external returns (uint reclaimed, uint refunded, uint numEntries);

    function exchange(
        address from,
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address destinationAddress
    ) external returns (uint amountReceived);

    function exchangeOnBehalf(
        address exchangeForAddress,
        address from,
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey
    ) external returns (uint amountReceived);

    function calculateAmountAfterSettlement(address from, bytes32 currencyKey, uint amount, uint refunded)
        external
        view
        returns (uint amountAfterSettlement);
}


interface IIssuer {
    function issueSynths(address from, uint amount) external;

    function issueSynthsOnBehalf(address issueFor, address from, uint amount) external;

    function issueMaxSynths(address from) external;

    function issueMaxSynthsOnBehalf(address issueFor, address from) external;

    function burnSynths(address from, uint amount) external;

    function burnSynthsOnBehalf(address burnForAddress, address from, uint amount) external;

    function burnSynthsToTarget(address from) external;

    function burnSynthsToTargetOnBehalf(address burnForAddress, address from) external;

    function canBurnSynths(address account) external view returns (bool);

    function lastIssueEvent(address account) external view returns (uint);
}


// https://docs.synthetix.io/contracts/AddressResolver
contract AddressResolver is Owned {
    mapping(bytes32 => address) public repository;

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

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

    function importAddresses(bytes32[] names, address[] destinations) public onlyOwner {
        require(names.length == destinations.length, "Input lengths must match");

        for (uint i = 0; i < names.length; i++) {
            repository[names[i]] = destinations[i];
        }
    }

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

    function getAddress(bytes32 name) public view returns (address) {
        return repository[name];
    }

    function requireAndGetAddress(bytes32 name, string reason) public view returns (address) {
        address _foundAddress = repository[name];
        require(_foundAddress != address(0), reason);
        return _foundAddress;
    }
}


// https://docs.synthetix.io/contracts/MixinResolver
contract MixinResolver is Owned {
    AddressResolver public resolver;

    mapping(bytes32 => address) private addressCache;

    bytes32[] public resolverAddressesRequired;

    uint public constant MAX_ADDRESSES_FROM_RESOLVER = 24;

    constructor(address _owner, address _resolver, bytes32[MAX_ADDRESSES_FROM_RESOLVER] _addressesToCache)
        public
        Owned(_owner)
    {
        for (uint i = 0; i < _addressesToCache.length; i++) {
            if (_addressesToCache[i] != bytes32(0)) {
                resolverAddressesRequired.push(_addressesToCache[i]);
            } else {
                // End early once an empty item is found - assumes there are no empty slots in
                // _addressesToCache
                break;
            }
        }
        resolver = AddressResolver(_resolver);
        // Do not sync the cache as addresses may not be in the resolver yet
    }

    /* ========== SETTERS ========== */
    function setResolverAndSyncCache(AddressResolver _resolver) external onlyOwner {
        resolver = _resolver;

        for (uint i = 0; i < resolverAddressesRequired.length; i++) {
            bytes32 name = resolverAddressesRequired[i];
            // Note: can only be invoked once the resolver has all the targets needed added
            addressCache[name] = resolver.requireAndGetAddress(name, "Resolver missing target");
        }
    }

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

    function requireAndGetAddress(bytes32 name, string reason) internal view returns (address) {
        address _foundAddress = addressCache[name];
        require(_foundAddress != address(0), reason);
        return _foundAddress;
    }

    // Note: this could be made external in a utility contract if addressCache was made public
    // (used for deployment)
    function isResolverCached(AddressResolver _resolver) external view returns (bool) {
        if (resolver != _resolver) {
            return false;
        }

        // otherwise, check everything
        for (uint i = 0; i < resolverAddressesRequired.length; i++) {
            bytes32 name = resolverAddressesRequired[i];
            // false if our cache is invalid or if the resolver doesn't have the required address
            if (resolver.getAddress(name) != addressCache[name] || addressCache[name] == address(0)) {
                return false;
            }
        }

        return true;
    }

    // Note: can be made external into a utility contract (used for deployment)
    function getResolverAddressesRequired() external view returns (bytes32[MAX_ADDRESSES_FROM_RESOLVER] addressesRequired) {
        for (uint i = 0; i < resolverAddressesRequired.length; i++) {
            addressesRequired[i] = resolverAddressesRequired[i];
        }
    }

    /* ========== INTERNAL FUNCTIONS ========== */
    function appendToAddressCache(bytes32 name) internal {
        resolverAddressesRequired.push(name);
        require(resolverAddressesRequired.length < MAX_ADDRESSES_FROM_RESOLVER, "Max resolver cache size met");
        // Because this is designed to be called internally in constructors, we don't
        // check the address exists already in the resolver
        addressCache[name] = resolver.getAddress(name);
    }
}


// https://docs.synthetix.io/contracts/Synth
contract Synth is ExternStateToken, MixinResolver {
    /* ========== STATE VARIABLES ========== */

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

    uint8 public constant DECIMALS = 18;

    // Where fees are pooled in sUSD
    address public constant FEE_ADDRESS = 0xfeEFEEfeefEeFeefEEFEEfEeFeefEEFeeFEEFEeF;

    /* ========== ADDRESS RESOLVER CONFIGURATION ========== */

    bytes32 private constant CONTRACT_SYSTEMSTATUS = "SystemStatus";
    bytes32 private constant CONTRACT_SYNTHETIX = "Synthetix";
    bytes32 private constant CONTRACT_EXCHANGER = "Exchanger";
    bytes32 private constant CONTRACT_ISSUER = "Issuer";
    bytes32 private constant CONTRACT_FEEPOOL = "FeePool";

    bytes32[24] internal addressesToCache = [
        CONTRACT_SYSTEMSTATUS,
        CONTRACT_SYNTHETIX,
        CONTRACT_EXCHANGER,
        CONTRACT_ISSUER,
        CONTRACT_FEEPOOL
    ];

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

    constructor(
        address _proxy,
        TokenState _tokenState,
        string _tokenName,
        string _tokenSymbol,
        address _owner,
        bytes32 _currencyKey,
        uint _totalSupply,
        address _resolver
    )
        public
        ExternStateToken(_proxy, _tokenState, _tokenName, _tokenSymbol, _totalSupply, DECIMALS, _owner)
        MixinResolver(_owner, _resolver, addressesToCache)
    {
        require(_proxy != address(0), "_proxy cannot be 0");
        require(_owner != 0, "_owner cannot be 0");

        currencyKey = _currencyKey;
    }

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

    function transfer(address to, uint value) public optionalProxy returns (bool) {
        _ensureCanTransfer(messageSender, value);

        // transfers to FEE_ADDRESS will be exchanged into sUSD and recorded as fee
        if (to == FEE_ADDRESS) {
            return _transferToFeeAddress(to, value);
        }

        // transfers to 0x address will be burned
        if (to == address(0)) {
            return _internalBurn(messageSender, value);
        }

        return super._internalTransfer(messageSender, to, value);
    }

    function transferAndSettle(address to, uint value) public optionalProxy returns (bool) {
        systemStatus().requireSynthActive(currencyKey);

        (, , uint numEntriesSettled) = exchanger().settle(messageSender, currencyKey);

        // Save gas instead of calling transferableSynths
        uint balanceAfter = value;

        if (numEntriesSettled > 0) {
            balanceAfter = tokenState.balanceOf(messageSender);
        }

        // Reduce the value to transfer if balance is insufficient after reclaimed
        value = value > balanceAfter ? balanceAfter : value;

        return super._internalTransfer(messageSender, to, value);
    }

    function transferFrom(address from, address to, uint value) public optionalProxy returns (bool) {
        _ensureCanTransfer(from, value);

        return _internalTransferFrom(from, to, value);
    }

    function transferFromAndSettle(address from, address to, uint value) public optionalProxy returns (bool) {
        systemStatus().requireSynthActive(currencyKey);

        (, , uint numEntriesSettled) = exchanger().settle(from, currencyKey);

        // Save gas instead of calling transferableSynths
        uint balanceAfter = value;

        if (numEntriesSettled > 0) {
            balanceAfter = tokenState.balanceOf(from);
        }

        // Reduce the value to transfer if balance is insufficient after reclaimed
        value = value >= balanceAfter ? balanceAfter : value;

        return _internalTransferFrom(from, to, value);
    }

    /**
     * @notice _transferToFeeAddress function
     * non-sUSD synths are exchanged into sUSD via synthInitiatedExchange
     * notify feePool to record amount as fee paid to feePool */
    function _transferToFeeAddress(address to, uint value) internal returns (bool) {
        uint amountInUSD;

        // sUSD can be transferred to FEE_ADDRESS directly
        if (currencyKey == "sUSD") {
            amountInUSD = value;
            super._internalTransfer(messageSender, to, value);
        } else {
            // else exchange synth into sUSD and send to FEE_ADDRESS
            amountInUSD = exchanger().exchange(messageSender, currencyKey, value, "sUSD", FEE_ADDRESS);
        }

        // Notify feePool to record sUSD to distribute as fees
        feePool().recordFeePaid(amountInUSD);

        return true;
    }

    // Allow synthetix to issue a certain number of synths from an account.
    // forward call to _internalIssue
    function issue(address account, uint amount) external onlyInternalContracts {
        _internalIssue(account, amount);
    }

    // Allow synthetix or another synth contract to burn a certain number of synths from an account.
    // forward call to _internalBurn
    function burn(address account, uint amount) external onlyInternalContracts {
        _internalBurn(account, amount);
    }

    function _internalIssue(address account, uint amount) internal {
        tokenState.setBalanceOf(account, tokenState.balanceOf(account).add(amount));
        totalSupply = totalSupply.add(amount);
        emitTransfer(address(0), account, amount);
        emitIssued(account, amount);
    }

    function _internalBurn(address account, uint amount) internal returns (bool) {
        tokenState.setBalanceOf(account, tokenState.balanceOf(account).sub(amount));
        totalSupply = totalSupply.sub(amount);
        emitTransfer(account, address(0), amount);
        emitBurned(account, amount);

        return true;
    }

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

    /* ========== VIEWS ========== */
    function systemStatus() internal view returns (ISystemStatus) {
        return ISystemStatus(requireAndGetAddress(CONTRACT_SYSTEMSTATUS, "Missing SystemStatus address"));
    }

    function synthetix() internal view returns (ISynthetix) {
        return ISynthetix(requireAndGetAddress(CONTRACT_SYNTHETIX, "Missing Synthetix address"));
    }

    function feePool() internal view returns (IFeePool) {
        return IFeePool(requireAndGetAddress(CONTRACT_FEEPOOL, "Missing FeePool address"));
    }

    function exchanger() internal view returns (IExchanger) {
        return IExchanger(requireAndGetAddress(CONTRACT_EXCHANGER, "Missing Exchanger address"));
    }

    function issuer() internal view returns (IIssuer) {
        return IIssuer(requireAndGetAddress(CONTRACT_ISSUER, "Missing Issuer address"));
    }

    function _ensureCanTransfer(address from, uint value) internal view {
        require(exchanger().maxSecsLeftInWaitingPeriod(from, currencyKey) == 0, "Cannot transfer during waiting period");
        require(transferableSynths(from) >= value, "Insufficient balance after any settlement owing");
        systemStatus().requireSynthActive(currencyKey);
    }

    function transferableSynths(address account) public view returns (uint) {
        (uint reclaimAmount, , ) = exchanger().settlementOwing(account, currencyKey);

        // Note: ignoring rebate amount here because a settle() is required in order to
        // allow the transfer to actually work

        uint balance = tokenState.balanceOf(account);

        if (reclaimAmount > balance) {
            return 0;
        } else {
            return balance.sub(reclaimAmount);
        }
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    function _internalTransferFrom(address from, address to, uint value) internal returns (bool) {
        // Skip allowance update in case of infinite allowance
        if (tokenState.allowance(from, messageSender) != uint(-1)) {
            // 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));
        }

        return super._internalTransfer(from, to, value);
    }

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

    modifier onlyInternalContracts() {
        bool isSynthetix = msg.sender == address(synthetix());
        bool isFeePool = msg.sender == address(feePool());
        bool isExchanger = msg.sender == address(exchanger());
        bool isIssuer = msg.sender == address(issuer());

        require(
            isSynthetix || isFeePool || isExchanger || isIssuer,
            "Only Synthetix, FeePool, Exchanger or Issuer contracts allowed"
        );
        _;
    }

    /* ========== EVENTS ========== */
    event Issued(address indexed account, uint value);
    bytes32 private 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 private 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);
    }
}


// https://docs.synthetix.io/contracts/PurgeableSynth
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 = 100000 * SafeDecimalMath.unit(); // 100,000

    bytes32 private constant CONTRACT_EXRATES = "ExchangeRates";

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

    constructor(
        address _proxy,
        TokenState _tokenState,
        string _tokenName,
        string _tokenSymbol,
        address _owner,
        bytes32 _currencyKey,
        uint _totalSupply,
        address _resolver
    ) public Synth(_proxy, _tokenState, _tokenName, _tokenSymbol, _owner, _currencyKey, _totalSupply, _resolver) {
        appendToAddressCache(CONTRACT_EXRATES);
    }

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

    function exchangeRates() internal view returns (IExchangeRates) {
        return IExchangeRates(requireAndGetAddress(CONTRACT_EXRATES, "Missing ExchangeRates address"));
    }

    /* ========== 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 {
        IExchangeRates exRates = exchangeRates();

        uint maxSupplyToPurge = exRates.effectiveValue("sUSD", maxSupplyToPurgeInUSD, currencyKey);

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

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

            uint amountHeld = balanceOf(holder);

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

    /* ========== EVENTS ========== */
    event Purged(address indexed account, uint value);
    bytes32 private 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 ABI

[{"constant":true,"inputs":[],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"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":"_integrationProxy","type":"address"}],"name":"setIntegrationProxy","outputs":[],"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":"_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":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":"_resolver","type":"address"}],"name":"setResolverAndSyncCache","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_resolver","type":"address"}],"name":"isResolverCached","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"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":true,"inputs":[],"name":"integrationProxy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":true,"inputs":[],"name":"getResolverAddressesRequired","outputs":[{"name":"addressesRequired","type":"bytes32[24]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addresses","type":"address[]"}],"name":"purge","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferAndSettle","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":true,"inputs":[],"name":"selfDestructBeneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"resolverAddressesRequired","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"messageSender","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currencyKey","outputs":[{"name":"","type":"bytes32"}],"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":true,"inputs":[],"name":"MAX_ADDRESSES_FROM_RESOLVER","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":"transferFromAndSettle","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":true,"inputs":[],"name":"FEE_ADDRESS","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":true,"inputs":[{"name":"account","type":"address"}],"name":"transferableSynths","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_proxy","type":"address"},{"name":"_tokenState","type":"address"},{"name":"_tokenName","type":"string"},{"name":"_tokenSymbol","type":"string"},{"name":"_owner","type":"address"},{"name":"_currencyKey","type":"bytes32"},{"name":"_totalSupply","type":"uint256"},{"name":"_resolver","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":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"}]

6101206040527f53797374656d537461747573000000000000000000000000000000000000000060809081527f53796e746865746978000000000000000000000000000000000000000000000060a0527f45786368616e676572000000000000000000000000000000000000000000000060c0527f497373756572000000000000000000000000000000000000000000000000000060e0527f466565506f6f6c0000000000000000000000000000000000000000000000000061010052620000cc90600f9060056200079f565b507334a5ef81d18f3a305ae9c2d7df42beef4c79031c63907af6c06040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156200012e57600080fd5b505af415801562000143573d6000803e3d6000fd5b505050506040513d60208110156200015a57600080fd5b5051620186a0026027553480156200017157600080fd5b50604051620042893803806200428983398101604081815282516020840151828501516060860151608087015160a088015160c089015160e08a01516103008a0198899052969995989486019793909501959194909390928991899189918991899189918991899185918391600f9060189082845b81548152600190910190602001808311620001e65750600093508e92508d91508c90508b8960128d8681808d600160a060020a03811615156200028a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b60008054600160a060020a031916600160a060020a038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150600160a060020a03811615156200035b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f776e6572206d757374206e6f74206265207a65726f00000000000000000000604482015290519081900360640190fd5b60038054600160a060020a038316610100810261010060a860020a03199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a15060048054600160a060020a038416600160a060020a0319909116811790915560408051918252517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e9181900360200190a1505060078054600160a060020a031916600160a060020a038816179055845162000438906008906020880190620007e4565b5083516200044e906009906020870190620007e4565b5050600a91909155600b805460ff191660ff90921691909117905550600093505050505b6018811015620004d75760008282601881106200048b57fe5b602002015114620004c857600d828260188110620004a557fe5b6020908102919091015182546001810184556000938452919092200155620004ce565b620004d7565b60010162000472565b5050600b805461010060a860020a031916610100600160a060020a03938416021790558916151590506200056c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5f70726f78792063616e6e6f7420626520300000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0384161515620005e457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5f6f776e65722063616e6e6f7420626520300000000000000000000000000000604482015290519081900360640190fd5b5050600e55506200062593507f45786368616e6765526174657300000000000000000000000000000000000000925050640100000000620006338102049050565b505050505050505062000877565b600d805460018101825560008290527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50182905554601811620006d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4d6178207265736f6c7665722063616368652073697a65206d65740000000000604482015290519081900360640190fd5b600b54604080517f21f8a721000000000000000000000000000000000000000000000000000000008152600481018490529051610100909204600160a060020a0316916321f8a721916024808201926020929091908290030181600087803b1580156200074357600080fd5b505af115801562000758573d6000803e3d6000fd5b505050506040513d60208110156200076f57600080fd5b50516000918252600c60205260409091208054600160a060020a031916600160a060020a03909216919091179055565b8260188101928215620007d2579160200282015b82811115620007d25782518255602090920191600190910190620007b3565b50620007e092915062000857565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200082757805160ff1916838001178555620007d2565b82800160010185558215620007d2579182015b82811115620007d25782518255916020019190600101906200083a565b6200087491905b80821115620007e057600081556001016200085e565b90565b613a0280620008876000396000f3006080604052600436106102165763ffffffff60e060020a60003504166304f3bcec811461021b57806306fdde031461024c578063095ea7b3146102d6578063131b0ae71461030e5780631627540c1461033157806317c70de41461035257806318160ddd1461037957806320714f881461038e57806323b872dd146103af5780632e0f2625146103d9578063313ce567146104045780633278c960146104195780633be99e6f1461042e57806353a47bb71461044f578063631e14441461046457806370a082311461048557806379ba5097146104a65780637e88ac16146104bb578063867904b4146104d05780638da5cb5b146104f457806395d89b411461050957806397107d6d1461051e5780639cb8a26a1461053f5780639cbdaeb6146105545780639dc29fac146105695780639f7698071461058d578063a461fc82146105ae578063a9059cbb146105c3578063ab49848c146105e7578063ab59307914610635578063b014c3a314610655578063b8225dec14610679578063bc67f8321461068e578063bd32aa44146106af578063c58aaae6146106c4578063c6c9d828146106d9578063d67bdd25146106f1578063dbd06c8514610706578063dd62ed3e1461071b578063e3235c9114610742578063e73cced314610757578063e90dd9e214610781578063eb1edd6114610796578063ec556889146107ab578063f7ea7a3d146107c0578063ffff51d6146107d8575b600080fd5b34801561022757600080fd5b506102306107f9565b60408051600160a060020a039092168252519081900360200190f35b34801561025857600080fd5b5061026161080d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102e257600080fd5b506102fa600160a060020a036004351660243561089b565b604080519115158252519081900360200190f35b34801561031a57600080fd5b5061032f600160a060020a036004351661099f565b005b34801561033d57600080fd5b5061032f600160a060020a0360043516610a25565b34801561035e57600080fd5b50610367610add565b60408051918252519081900360200190f35b34801561038557600080fd5b50610367610ae3565b34801561039a57600080fd5b5061032f600160a060020a0360043516610ae9565b3480156103bb57600080fd5b506102fa600160a060020a0360043581169060243516604435610c16565b3480156103e557600080fd5b506103ee610c8b565b6040805160ff9092168252519081900360200190f35b34801561041057600080fd5b506103ee610c90565b34801561042557600080fd5b5061032f610c99565b34801561043a57600080fd5b5061032f600160a060020a0360043516610d37565b34801561045b57600080fd5b50610230610f00565b34801561047057600080fd5b506102fa600160a060020a0360043516610f0f565b34801561049157600080fd5b50610367600160a060020a036004351661105d565b3480156104b257600080fd5b5061032f6110e4565b3480156104c757600080fd5b506103676111df565b3480156104dc57600080fd5b5061032f600160a060020a03600435166024356111e5565b34801561050057600080fd5b5061023061130a565b34801561051557600080fd5b50610261611319565b34801561052a57600080fd5b5061032f600160a060020a0360043516611374565b34801561054b57600080fd5b5061032f61142c565b34801561056057600080fd5b506102306115a5565b34801561057557600080fd5b5061032f600160a060020a03600435166024356115b4565b34801561059957600080fd5b5061032f600160a060020a03600435166116da565b3480156105ba57600080fd5b506103676117be565b3480156105cf57600080fd5b506102fa600160a060020a03600435166024356117c5565b3480156105f357600080fd5b506105fc6118af565b604051808261030080838360005b8381101561062257818101518382015260200161060a565b5050505090500191505060405180910390f35b34801561064157600080fd5b5061032f60048035602481019101356118fc565b34801561066157600080fd5b506102fa600160a060020a0360043516602435611cda565b34801561068557600080fd5b506102fa611f16565b34801561069a57600080fd5b5061032f600160a060020a0360043516611f1f565b3480156106bb57600080fd5b5061032f611fba565b3480156106d057600080fd5b50610230612067565b3480156106e557600080fd5b5061036760043561207b565b3480156106fd57600080fd5b5061023061209a565b34801561071257600080fd5b506103676120a9565b34801561072757600080fd5b50610367600160a060020a03600435811690602435166120af565b34801561074e57600080fd5b50610367612155565b34801561076357600080fd5b506102fa600160a060020a036004358116906024351660443561215a565b34801561078d57600080fd5b50610230612386565b3480156107a257600080fd5b50610230612395565b3480156107b757600080fd5b506102306123ad565b3480156107cc57600080fd5b5061032f6004356123bc565b3480156107e457600080fd5b50610367600160a060020a036004351661247e565b600b546101009004600160a060020a031681565b6008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108935780601f1061086857610100808354040283529160200191610893565b820191906000526020600020905b81548152906001019060200180831161087657829003601f168201915b505050505081565b6004546000908190600160a060020a031633148015906108c65750600554600160a060020a03163314155b80156108dd5750600654600160a060020a03163314155b156108f55760068054600160a060020a031916331790555b50600654600754604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0393841660048201819052878516602483015260448201879052915191939092169163da46098c91606480830192600092919082900301818387803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b505050506109958185856125d2565b5060019392505050565b600054600160a060020a03163314610a03576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a03163314610a89576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b60018054600160a060020a038316600160a060020a0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b60025481565b600a5481565b600054600160a060020a03163314610b4d576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b600160a060020a0381161515610bad576040805160e560020a62461bcd02815260206004820152601c60248201527f42656e6566696369617279206d757374206e6f74206265207a65726f00000000604482015290519081900360640190fd5b60038054600160a060020a038316610100810274ffffffffffffffffffffffffffffffffffffffff00199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a150565b600454600090600160a060020a03163314801590610c3f5750600554600160a060020a03163314155b8015610c565750600654600160a060020a03163314155b15610c6e5760068054600160a060020a031916331790555b610c78848361273a565b610c8384848461294e565b949350505050565b601281565b600b5460ff1681565b600054600160a060020a03163314610cfd576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b600060028190556003805460ff191690556040517f6adcc7125002935e0aa31697538ebbd65cfddf20431eb6ecdcfc3e238bfd082c9190a1565b600080548190600160a060020a03163314610d9e576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b600b805474ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a03861602179055600091505b600d54821015610efb57600d805483908110610de857fe5b600091825260208083209190910154600b54604080517fdacb2d010000000000000000000000000000000000000000000000000000000081526004810184905260248101829052601760448201527f5265736f6c766572206d697373696e672074617267657400000000000000000060648201529051929550610100909104600160a060020a03169363dacb2d019360848084019491939192918390030190829087803b158015610e9857600080fd5b505af1158015610eac573d6000803e3d6000fd5b505050506040513d6020811015610ec257600080fd5b50516000828152600c602052604090208054600160a060020a031916600160a060020a0390921691909117905560019190910190610dd0565b505050565b600154600160a060020a031681565b600b5460009081908190600160a060020a038581166101009092041614610f395760009250611056565b600091505b600d5482101561105157600d805483908110610f5657fe5b6000918252602080832090910154808352600c8252604080842054600b5482517f21f8a721000000000000000000000000000000000000000000000000000000008152600481018590529251939650600160a060020a0391821695610100909104909116936321f8a72193602480850194929391928390030190829087803b158015610fe157600080fd5b505af1158015610ff5573d6000803e3d6000fd5b505050506040513d602081101561100b57600080fd5b5051600160a060020a031614158061103857506000818152600c6020526040902054600160a060020a0316155b156110465760009250611056565b600190910190610f3e565b600192505b5050919050565b6007546040805160e060020a6370a08231028152600160a060020a038481166004830152915160009392909216916370a082319160248082019260209290919082900301818787803b1580156110b257600080fd5b505af11580156110c6573d6000803e3d6000fd5b505050506040513d60208110156110dc57600080fd5b505192915050565b600154600160a060020a0316331461116c576040805160e560020a62461bcd02815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b60005460015460408051600160a060020a03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a16001805460008054600160a060020a0319908116600160a060020a03841617909155169055565b60275481565b6000806000806111f3612b2b565b600160a060020a031633600160a060020a0316149350611211612b91565b600160a060020a031633600160a060020a031614925061122f612bf2565b600160a060020a031633600160a060020a031614915061124d612c53565b600160a060020a031633600160a060020a0316149050838061126c5750825b806112745750815b8061127c5750805b15156112f8576040805160e560020a62461bcd02815260206004820152603e60248201527f4f6e6c792053796e7468657469782c20466565506f6f6c2c2045786368616e6760448201527f6572206f722049737375657220636f6e74726163747320616c6c6f7765640000606482015290519081900360840190fd5b6113028686612cb4565b505050505050565b600054600160a060020a031681565b6009805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108935780601f1061086857610100808354040283529160200191610893565b600054600160a060020a031633146113d8576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b60048054600160a060020a038316600160a060020a0319909116811790915560408051918252517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e9181900360200190a150565b60008054600160a060020a03163314611491576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b60035460ff1615156114ed576040805160e560020a62461bcd02815260206004820152601f60248201527f53656c66204465737472756374206e6f742079657420696e6974696174656400604482015290519081900360640190fd5b426224ea006002540110151561154d576040805160e560020a62461bcd02815260206004820152601b60248201527f53656c662064657374727563742064656c6179206e6f74206d65740000000000604482015290519081900360640190fd5b5060035460408051600160a060020a0361010090930492909216808352905190917f8a09e1677ced846cb537dc2b172043bd05a1a81ad7e0033a7ef8ba762df990b7919081900360200190a180600160a060020a0316ff5b600554600160a060020a031681565b6000806000806115c2612b2b565b600160a060020a031633600160a060020a03161493506115e0612b91565b600160a060020a031633600160a060020a03161492506115fe612bf2565b600160a060020a031633600160a060020a031614915061161c612c53565b600160a060020a031633600160a060020a0316149050838061163b5750825b806116435750815b8061164b5750805b15156116c7576040805160e560020a62461bcd02815260206004820152603e60248201527f4f6e6c792053796e7468657469782c20466565506f6f6c2c2045786368616e6760448201527f6572206f722049737375657220636f6e74726163747320616c6c6f7765640000606482015290519081900360840190fd5b6116d18686612dea565b50505050505050565b600454600160a060020a031633148015906117005750600554600160a060020a03163314155b80156117175750600654600160a060020a03163314155b1561172f5760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614611797576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b60078054600160a060020a031916600160a060020a0383161790556117bb81612eee565b50565b6224ea0081565b600454600090600160a060020a031633148015906117ee5750600554600160a060020a03163314155b80156118055750600654600160a060020a03163314155b1561181d5760068054600160a060020a031916331790555b60065461183390600160a060020a03168361273a565b600160a060020a03831673feefeefeefeefeefeefeefeefeefeefeefeefeef1415611869576118628383613035565b90506118a9565b600160a060020a038316151561188f5760065461186290600160a060020a031683612dea565b6006546118a690600160a060020a031684846131bb565b90505b92915050565b6118b7613976565b60005b600d548110156118f857600d8054829081106118d257fe5b906000526020600020015482826018811015156118eb57fe5b60200201526001016118ba565b5090565b6004546000908190819081908190600160a060020a0316331480159061192d5750600554600160a060020a03163314155b80156119445750600654600160a060020a03163314155b1561195c5760068054600160a060020a031916331790555b600054600654600160a060020a039081169116146119c4576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b6119cc6133f3565b602754600e54604080517f654a60ac00000000000000000000000000000000000000000000000000000000815260e260020a631cd554d10260048201526024810193909352604483019190915251919650600160a060020a0387169163654a60ac916064808201926020929091908290030181600087803b158015611a5057600080fd5b505af1158015611a64573d6000803e3d6000fd5b505050506040513d6020811015611a7a57600080fd5b5051600a5490945084101580611b1d5750600e54604080517faf3aea86000000000000000000000000000000000000000000000000000000008152600481019290925251600160a060020a0387169163af3aea869160248083019260209291908290030181600087803b158015611af057600080fd5b505af1158015611b04573d6000803e3d6000fd5b505050506040513d6020811015611b1a57600080fd5b50515b1515611bbf576040805160e560020a62461bcd02815260206004820152604760248201527f43616e6e6f7420707572676520617320746f74616c20737570706c792069732060448201527f61626f7665207468726573686f6c6420616e642072617465206973206e6f742060648201527f66726f7a656e2e00000000000000000000000000000000000000000000000000608482015290519081900360a40190fd5b600092505b858310156116d157868684818110611bd857fe5b90506020020135600160a060020a03169150611bf38261105d565b90506000811115611ccf57611c06612bf2565b600e54604080517f0a1e187d000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830181905260248301949094526044820186905260e260020a631cd554d1026064830152608482019390935290519290911691630a1e187d9160a4808201926020929091908290030181600087803b158015611c9857600080fd5b505af1158015611cac573d6000803e3d6000fd5b505050506040513d6020811015611cc257600080fd5b50611ccf90508282613454565b600190920191611bc4565b60045460009081908190600160a060020a03163314801590611d075750600554600160a060020a03163314155b8015611d1e5750600654600160a060020a03163314155b15611d365760068054600160a060020a031916331790555b611d3e613580565b600160a060020a03166342a28e21600e546040518263ffffffff1660e060020a028152600401808260001916600019168152602001915050600060405180830381600087803b158015611d9057600080fd5b505af1158015611da4573d6000803e3d6000fd5b50505050611db0612bf2565b600654600e54604080517f1b16802c000000000000000000000000000000000000000000000000000000008152600160a060020a0393841660048201526024810192909252519290911691631b16802c916044808201926060929091908290030181600087803b158015611e2357600080fd5b505af1158015611e37573d6000803e3d6000fd5b505050506040513d6060811015611e4d57600080fd5b506040015191508390506000821115611ee4576007546006546040805160e060020a6370a08231028152600160a060020a039283166004820152905191909216916370a082319160248083019260209291908290030181600087803b158015611eb557600080fd5b505af1158015611ec9573d6000803e3d6000fd5b505050506040513d6020811015611edf57600080fd5b505190505b808411611ef15783611ef3565b805b600654909450611f0d90600160a060020a031686866131bb565b95945050505050565b60035460ff1681565b600454600160a060020a0316331480611f425750600554600160a060020a031633145b1515611f98576040805160e560020a62461bcd02815260206004820152601760248201527f4f6e6c79207468652070726f78792063616e2063616c6c000000000000000000604482015290519081900360640190fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a0316331461201e576040805160e560020a62461bcd02815260206004820152602f602482015260008051602061399783398151915260448201526000805160206139b7833981519152606482015290519081900360840190fd5b426002556003805460ff19166001179055604080516224ea00815290517fcbd94ca75b8dc45c9d80c77e851670e78843c0d75180cb81db3e2158228fa9a69181900360200190a1565b6003546101009004600160a060020a031681565b600d80548290811061208957fe5b600091825260209091200154905081565b600654600160a060020a031681565b600e5481565b600754604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015284811660248301529151600093929092169163dd62ed3e9160448082019260209290919082900301818787803b15801561212257600080fd5b505af1158015612136573d6000803e3d6000fd5b505050506040513d602081101561214c57600080fd5b50519392505050565b601881565b60045460009081908190600160a060020a031633148015906121875750600554600160a060020a03163314155b801561219e5750600654600160a060020a03163314155b156121b65760068054600160a060020a031916331790555b6121be613580565b600160a060020a03166342a28e21600e546040518263ffffffff1660e060020a028152600401808260001916600019168152602001915050600060405180830381600087803b15801561221057600080fd5b505af1158015612224573d6000803e3d6000fd5b50505050612230612bf2565b600e54604080517f1b16802c000000000000000000000000000000000000000000000000000000008152600160a060020a038a81166004830152602482019390935290519290911691631b16802c916044808201926060929091908290030181600087803b1580156122a157600080fd5b505af11580156122b5573d6000803e3d6000fd5b505050506040513d60608110156122cb57600080fd5b50604001519150839050600082111561235f576007546040805160e060020a6370a08231028152600160a060020a038981166004830152915191909216916370a082319160248083019260209291908290030181600087803b15801561233057600080fd5b505af1158015612344573d6000803e3d6000fd5b505050506040513d602081101561235a57600080fd5b505190505b8084101561236d578361236f565b805b935061237c86868661294e565b9695505050505050565b600754600160a060020a031681565b73feefeefeefeefeefeefeefeefeefeefeefeefeef81565b600454600160a060020a031681565b600454600160a060020a031633148015906123e25750600554600160a060020a03163314155b80156123f95750600654600160a060020a03163314155b156124115760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614612479576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b600a55565b600080600061248b612bf2565b600e54604080517f19d5c665000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301526024820193909352905192909116916319d5c665916044808201926060929091908290030181600087803b1580156124fc57600080fd5b505af1158015612510573d6000803e3d6000fd5b505050506040513d606081101561252657600080fd5b50516007546040805160e060020a6370a08231028152600160a060020a03888116600483015291519395509116916370a08231916024808201926020929091908290030181600087803b15801561257c57600080fd5b505af1158015612590573d6000803e3d6000fd5b505050506040513d60208110156125a657600080fd5b50519050808211156125bb5760009250611056565b6125cb818363ffffffff6135e116565b9250611056565b600480546040805160208082018690528251808303820181528284018085527f417070726f76616c28616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a0190808383885b838110156126d55781810151838201526020016126bd565b50505050905090810190601f1680156127025780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b15801561272657600080fd5b505af11580156116d1573d6000803e3d6000fd5b612742612bf2565b600e54604080517f059c29ec000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260248201939093529051929091169163059c29ec916044808201926020929091908290030181600087803b1580156127b357600080fd5b505af11580156127c7573d6000803e3d6000fd5b505050506040513d60208110156127dd57600080fd5b50511561285a576040805160e560020a62461bcd02815260206004820152602560248201527f43616e6e6f74207472616e7366657220647572696e672077616974696e67207060448201527f6572696f64000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b806128648361247e565b10156128e0576040805160e560020a62461bcd02815260206004820152602f60248201527f496e73756666696369656e742062616c616e636520616674657220616e79207360448201527f6574746c656d656e74206f77696e670000000000000000000000000000000000606482015290519081900360840190fd5b6128e8613580565b600160a060020a03166342a28e21600e546040518263ffffffff1660e060020a028152600401808260001916600019168152602001915050600060405180830381600087803b15801561293a57600080fd5b505af1158015611302573d6000803e3d6000fd5b600754600654604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a0387811660048301529283166024820152905160009360001993169163dd62ed3e91604480830192602092919082900301818887803b1580156129c457600080fd5b505af11580156129d8573d6000803e3d6000fd5b505050506040513d60208110156129ee57600080fd5b505114612b2057600754600654604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152928316602482018190529151929093169263da46098c92889291612ab4918891879163dd62ed3e916044808201926020929091908290030181600087803b158015612a7c57600080fd5b505af1158015612a90573d6000803e3d6000fd5b505050506040513d6020811015612aa657600080fd5b50519063ffffffff6135e116565b6040805160e060020a63ffffffff8716028152600160a060020a03948516600482015292909316602483015260448201529051606480830192600092919082900301818387803b158015612b0757600080fd5b505af1158015612b1b573d6000803e3d6000fd5b505050505b610c838484846131bb565b6000612b8c7f53796e74686574697800000000000000000000000000000000000000000000006040805190810160405280601981526020017f4d697373696e672053796e7468657469782061646472657373000000000000008152506135f8565b905090565b6000612b8c7f466565506f6f6c000000000000000000000000000000000000000000000000006040805190810160405280601781526020017f4d697373696e6720466565506f6f6c20616464726573730000000000000000008152506135f8565b6000612b8c7f45786368616e67657200000000000000000000000000000000000000000000006040805190810160405280601981526020017f4d697373696e672045786368616e6765722061646472657373000000000000008152506135f8565b6000612b8c7f49737375657200000000000000000000000000000000000000000000000000006040805190810160405280601681526020017f4d697373696e67204973737565722061646472657373000000000000000000008152506135f8565b6007546040805160e060020a6370a08231028152600160a060020a0385811660048301529151919092169163b46310f6918591612d4f91869186916370a08231916024808201926020929091908290030181600087803b158015612d1757600080fd5b505af1158015612d2b573d6000803e3d6000fd5b505050506040513d6020811015612d4157600080fd5b50519063ffffffff6136a716565b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b158015612da157600080fd5b505af1158015612db5573d6000803e3d6000fd5b5050600a54612dcd925090508263ffffffff6136a716565b600a55612ddc600083836136c0565b612de682826137c2565b5050565b6007546040805160e060020a6370a08231028152600160a060020a0385811660048301529151600093929092169163b46310f6918691612e4e91879186916370a0823191602480830192602092919082900301818c87803b158015612a7c57600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b158015612ea057600080fd5b505af1158015612eb4573d6000803e3d6000fd5b5050600a54612ecc925090508363ffffffff6135e116565b600a55612edb836000846136c0565b612ee5838361389c565b50600192915050565b6004805460408051600160a060020a038581166020808401919091528351808403820181528385018086527f546f6b656e5374617465557064617465642861646472657373290000000000009052935192839003605a01832060e060020a63907dff97028452600160248501819052604485018290526000606486018190526084860181905260a4860181905260c0988601988952865160c48701528651949097169763907dff979791959294919384938493839260e4909201918a0190808383885b83811015612fc9578181015183820152602001612fb1565b50505050905090810190601f168015612ff65780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b15801561301a57600080fd5b505af115801561302e573d6000803e3d6000fd5b5050505050565b600e54600090819060e260020a631cd554d102141561306e5750600654829061306890600160a060020a031685836131bb565b50613149565b613076612bf2565b600654600e54604080517f0a1e187d000000000000000000000000000000000000000000000000000000008152600160a060020a03938416600482015260248101929092526044820187905260e260020a631cd554d102606483015273feefeefeefeefeefeefeefeefeefeefeefeefeef6084830152519290911691630a1e187d9160a4808201926020929091908290030181600087803b15801561311a57600080fd5b505af115801561312e573d6000803e3d6000fd5b505050506040513d602081101561314457600080fd5b505190505b613151612b91565b600160a060020a03166322bf55ef826040518263ffffffff1660e060020a02815260040180828152602001915050600060405180830381600087803b15801561319957600080fd5b505af11580156131ad573d6000803e3d6000fd5b506001979650505050505050565b6000600160a060020a038316158015906131de5750600160a060020a0383163014155b80156131f85750600454600160a060020a03848116911614155b151561324e576040805160e560020a62461bcd02815260206004820152601f60248201527f43616e6e6f74207472616e7366657220746f2074686973206164647265737300604482015290519081900360640190fd5b6007546040805160e060020a6370a08231028152600160a060020a0387811660048301529151919092169163b46310f69187916132b191879186916370a08231916024808201926020929091908290030181600087803b158015612a7c57600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561330357600080fd5b505af1158015613317573d6000803e3d6000fd5b50506007546040805160e060020a6370a08231028152600160a060020a038881166004830152915191909216935063b46310f69250869161337e91879186916370a08231916024808201926020929091908290030181600087803b158015612d1757600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156133d057600080fd5b505af11580156133e4573d6000803e3d6000fd5b505050506109958484846136c0565b6000612b8c7f45786368616e67655261746573000000000000000000000000000000000000006040805190810160405280601d81526020017f4d697373696e672045786368616e6765526174657320616464726573730000008152506135f8565b600480546040805160208082018690528251808303820181528284018085527f50757267656428616464726573732c75696e74323536290000000000000000009052925191829003605701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038981166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a0190808383885b8381101561352f578181015183820152602001613517565b50505050905090810190601f16801561355c5780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b15801561293a57600080fd5b6000612b8c7f53797374656d53746174757300000000000000000000000000000000000000006040805190810160405280601c81526020017f4d697373696e672053797374656d5374617475732061646472657373000000008152506135f8565b600080838311156135f157600080fd5b5050900390565b6000828152600c6020526040812054600160a060020a03168281151561369f5760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561366457818101518382015260200161364c565b50505050905090810190601f1680156136915780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509392505050565b6000828201838110156136b957600080fd5b9392505050565b600480546040805160208082018690528251808303820181528284018085527f5472616e7366657228616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a019080838388838110156126d55781810151838201526020016126bd565b600480546040805160208082018690528251808303820181528284018085527f49737375656428616464726573732c75696e74323536290000000000000000009052925191829003605701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038981166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a0190808383888381101561352f578181015183820152602001613517565b600480546040805160208082018690528251808303820181528284018085527f4275726e656428616464726573732c75696e74323536290000000000000000009052925191829003605701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038981166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a0190808383888381101561352f578181015183820152602001613517565b61030060405190810160405280601890602082028038833950919291505056004f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e0000000000000000000000000000000000a165627a7a72305820b65a0871522a7ea1f6e2856ca45f1a3db99e0478f8ad65570fe317383fe119b100290000000000000000000000005ff1b87fbfde943568c533f2a5f78f8d9c00539b0000000000000000000000007d9b359c97f26a0d7b5dfb9eb7b74581cd28b6a600000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000b64ff7a4a33acdf48d97dab0d764afd0f617688273424e42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012f839811720b6cbe000000000000000000000000a1d03f7bd3e298dfa9eed24b9028777ec1965b3a000000000000000000000000000000000000000000000000000000000000000a53796e74682073424e4200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000473424e4200000000000000000000000000000000000000000000000000000000

Library Used

SafeDecimalMath : 0x34a5ef81d18f3a305ae9c2d7df42beef4c79031c

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading