ETH Price: $3,199.57 (+1.39%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0115717432
Issue Max Synths129478952021-08-02 19:45:011274 days ago1627933501IN
0x43AE8037...Ea9640cBa
0 ETH0.0142616332
Liquidate Delinq...128672742021-07-21 2:56:001287 days ago1626836160IN
0x43AE8037...Ea9640cBa
0 ETH0.0112400420
Liquidate Delinq...128672502021-07-21 2:50:501287 days ago1626835850IN
0x43AE8037...Ea9640cBa
0 ETH0.0113375420
Burn Synths On B...128017852021-07-10 20:23:331297 days ago1625948613IN
0x43AE8037...Ea9640cBa
0 ETH0.0071104114
Burn Synths127872872021-07-08 14:43:221299 days ago1625755402IN
0x43AE8037...Ea9640cBa
0 ETH0.014810834
Approve127828252021-07-07 21:51:481300 days ago1625694708IN
0x43AE8037...Ea9640cBa
0 ETH0.0022915232
Liquidate Delinq...127643072021-07-05 0:31:121303 days ago1625445072IN
0x43AE8037...Ea9640cBa
0 ETH0.00216434
Liquidate Delinq...127643072021-07-05 0:31:121303 days ago1625445072IN
0x43AE8037...Ea9640cBa
0 ETH0.002115344
Nominate New Own...127388722021-07-01 1:26:051307 days ago1625102765IN
0x43AE8037...Ea9640cBa
0 ETH0.0016607835

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229222021-09-14 9:09:501231 days ago1631610590
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229182021-09-14 9:08:281231 days ago1631610508
0x43AE8037...Ea9640cBa
0 ETH
132229172021-09-14 9:08:241231 days ago1631610504
0x43AE8037...Ea9640cBa
0 ETH
132229172021-09-14 9:08:241231 days ago1631610504
0x43AE8037...Ea9640cBa
0 ETH
132229172021-09-14 9:08:241231 days ago1631610504
0x43AE8037...Ea9640cBa
0 ETH
132229172021-09-14 9:08:241231 days ago1631610504
0x43AE8037...Ea9640cBa
0 ETH
132229172021-09-14 9:08:241231 days ago1631610504
0x43AE8037...Ea9640cBa
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Synthetix

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-06-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 for this contract can be found here:

https://contracts.synthetix.io/ProxyERC20

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

* Synthetix: Synthetix.sol
*
* Latest source (may be newer): https://github.com/Synthetixio/synthetix/blob/master/contracts/Synthetix.sol
* Docs: https://docs.synthetix.io/contracts/Synthetix
*
* Contract Dependencies: 
*	- BaseSynthetix
*	- ExternStateToken
*	- IAddressResolver
*	- IERC20
*	- ISynthetix
*	- MixinResolver
*	- Owned
*	- Proxyable
*	- State
* Libraries: 
*	- SafeDecimalMath
*	- SafeMath
*	- VestingEntries
*
* MIT License
* ===========
*
* Copyright (c) 2021 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
*/



pragma solidity >=0.4.24;

// https://docs.synthetix.io/contracts/source/interfaces/ierc20
interface IERC20 {
    // ERC20 Optional Views
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    // Views
    function totalSupply() external view returns (uint);

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

    function allowance(address owner, address spender) external view returns (uint);

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

    function approve(address spender, uint value) external returns (bool);

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

    // Events
    event Transfer(address indexed from, address indexed to, uint value);

    event Approval(address indexed owner, address indexed spender, uint value);
}


// https://docs.synthetix.io/contracts/source/contracts/owned
contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_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 {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

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


// Inheritance


// Internal references


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

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

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

    function _emit(
        bytes calldata 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)
                }
        }
    }

    // solhint-disable no-complex-fallback
    function() external payable {
        // Mutable call setting Proxyable.messageSender as this is using call not 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);
}


// Inheritance


// Internal references


// https://docs.synthetix.io/contracts/source/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 payable _proxy) internal {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner != address(0), "Owner must be set");

        proxy = Proxy(_proxy);
        emit ProxyUpdated(_proxy);
    }

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

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

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

    modifier onlyProxy {
        _onlyProxy();
        _;
    }

    function _onlyProxy() private view {
        require(Proxy(msg.sender) == proxy || Proxy(msg.sender) == integrationProxy, "Only the proxy can call");
    }

    modifier optionalProxy {
        _optionalProxy();
        _;
    }

    function _optionalProxy() private {
        if (Proxy(msg.sender) != proxy && Proxy(msg.sender) != integrationProxy && messageSender != msg.sender) {
            messageSender = msg.sender;
        }
    }

    modifier optionalProxy_onlyOwner {
        _optionalProxy_onlyOwner();
        _;
    }

    // solhint-disable-next-line func-name-mixedcase
    function _optionalProxy_onlyOwner() private {
        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);
}


/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0, "SafeMath: modulo by zero");
        return a % b;
    }
}


// Libraries


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

    // Computes `a - b`, setting the value to 0 if b > a.
    function floorsub(uint a, uint b) internal pure returns (uint) {
        return b >= a ? 0 : a - b;
    }
}


// Inheritance


// https://docs.synthetix.io/contracts/source/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 _associatedContract) internal {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner != address(0), "Owner must be set");

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


// Inheritance


// https://docs.synthetix.io/contracts/source/contracts/tokenstate
contract TokenState is Owned, State {
    /* ERC20 fields. */
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    constructor(address _owner, address _associatedContract) public Owned(_owner) State(_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;
    }
}


// Inheritance


// Libraries


// Internal references


// https://docs.synthetix.io/contracts/source/contracts/externstatetoken
contract ExternStateToken is Owned, 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;

    constructor(
        address payable _proxy,
        TokenState _tokenState,
        string memory _name,
        string memory _symbol,
        uint _totalSupply,
        uint8 _decimals,
        address _owner
    ) public Owned(_owner) Proxyable(_proxy) {
        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) external 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(address(_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 _transferByProxy(
        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 _transferFromByProxy(
        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 ========== */
    function addressToBytes32(address input) internal pure returns (bytes32) {
        return bytes32(uint256(uint160(input)));
    }

    event Transfer(address indexed from, address indexed to, uint value);
    bytes32 internal 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, addressToBytes32(from), addressToBytes32(to), 0);
    }

    event Approval(address indexed owner, address indexed spender, uint value);
    bytes32 internal 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, addressToBytes32(owner), addressToBytes32(spender), 0);
    }

    event TokenStateUpdated(address newTokenState);
    bytes32 internal constant TOKENSTATEUPDATED_SIG = keccak256("TokenStateUpdated(address)");

    function emitTokenStateUpdated(address newTokenState) internal {
        proxy._emit(abi.encode(newTokenState), 1, TOKENSTATEUPDATED_SIG, 0, 0, 0);
    }
}


// https://docs.synthetix.io/contracts/source/interfaces/iaddressresolver
interface IAddressResolver {
    function getAddress(bytes32 name) external view returns (address);

    function getSynth(bytes32 key) external view returns (address);

    function requireAndGetAddress(bytes32 name, string calldata reason) external view returns (address);
}


// https://docs.synthetix.io/contracts/source/interfaces/isynth
interface ISynth {
    // Views
    function currencyKey() external view returns (bytes32);

    function transferableSynths(address account) external view returns (uint);

    // Mutative functions
    function transferAndSettle(address to, uint value) external returns (bool);

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

    // Restricted: used internally to Synthetix
    function burn(address account, uint amount) external;

    function issue(address account, uint amount) external;
}


// https://docs.synthetix.io/contracts/source/interfaces/iissuer
interface IIssuer {
    // Views
    function anySynthOrSNXRateIsInvalid() external view returns (bool anyRateInvalid);

    function availableCurrencyKeys() external view returns (bytes32[] memory);

    function availableSynthCount() external view returns (uint);

    function availableSynths(uint index) external view returns (ISynth);

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

    function collateral(address account) external view returns (uint);

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

    function collateralisationRatioAndAnyRatesInvalid(address _issuer)
        external
        view
        returns (uint cratio, bool anyRateIsInvalid);

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

    function issuanceRatio() external view returns (uint);

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

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

    function minimumStakeTime() external view returns (uint);

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

    function synths(bytes32 currencyKey) external view returns (ISynth);

    function getSynths(bytes32[] calldata currencyKeys) external view returns (ISynth[] memory);

    function synthsByAddress(address synthAddress) external view returns (bytes32);

    function totalIssuedSynths(bytes32 currencyKey, bool excludeEtherCollateral) external view returns (uint);

    function transferableSynthetixAndAnyRateIsInvalid(address account, uint balance)
        external
        view
        returns (uint transferable, bool anyRateIsInvalid);

    // Restricted: used internally to Synthetix
    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 liquidateDelinquentAccount(
        address account,
        uint susdAmount,
        address liquidator
    ) external returns (uint totalRedeemed, uint amountToLiquidate);
}


// Inheritance


// Internal references


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

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

    /* ========== RESTRICTED FUNCTIONS ========== */

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

        for (uint i = 0; i < names.length; i++) {
            bytes32 name = names[i];
            address destination = destinations[i];
            repository[name] = destination;
            emit AddressImported(name, destination);
        }
    }

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

    function rebuildCaches(MixinResolver[] calldata destinations) external {
        for (uint i = 0; i < destinations.length; i++) {
            destinations[i].rebuildCache();
        }
    }

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

    function areAddressesImported(bytes32[] calldata names, address[] calldata destinations) external view returns (bool) {
        for (uint i = 0; i < names.length; i++) {
            if (repository[names[i]] != destinations[i]) {
                return false;
            }
        }
        return true;
    }

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

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

    function getSynth(bytes32 key) external view returns (address) {
        IIssuer issuer = IIssuer(repository["Issuer"]);
        require(address(issuer) != address(0), "Cannot find Issuer address");
        return address(issuer.synths(key));
    }

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

    event AddressImported(bytes32 name, address destination);
}


// solhint-disable payable-fallback

// https://docs.synthetix.io/contracts/source/contracts/readproxy
contract ReadProxy is Owned {
    address public target;

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

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

    function() external {
        // The basics of a proxy read call
        // Note that msg.sender in the underlying will always be the address of this contract.
        assembly {
            calldatacopy(0, 0, calldatasize)

            // Use of staticcall - this will revert if the underlying function mutates state
            let result := staticcall(gas, sload(target_slot), 0, calldatasize, 0, 0)
            returndatacopy(0, 0, returndatasize)

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

    event TargetUpdated(address newTarget);
}


// Inheritance


// Internal references


// https://docs.synthetix.io/contracts/source/contracts/mixinresolver
contract MixinResolver {
    AddressResolver public resolver;

    mapping(bytes32 => address) private addressCache;

    constructor(address _resolver) internal {
        resolver = AddressResolver(_resolver);
    }

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

    function combineArrays(bytes32[] memory first, bytes32[] memory second)
        internal
        pure
        returns (bytes32[] memory combination)
    {
        combination = new bytes32[](first.length + second.length);

        for (uint i = 0; i < first.length; i++) {
            combination[i] = first[i];
        }

        for (uint j = 0; j < second.length; j++) {
            combination[first.length + j] = second[j];
        }
    }

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

    // Note: this function is public not external in order for it to be overridden and invoked via super in subclasses
    function resolverAddressesRequired() public view returns (bytes32[] memory addresses) {}

    function rebuildCache() public {
        bytes32[] memory requiredAddresses = resolverAddressesRequired();
        // The resolver must call this function whenver it updates its state
        for (uint i = 0; i < requiredAddresses.length; i++) {
            bytes32 name = requiredAddresses[i];
            // Note: can only be invoked once the resolver has all the targets needed added
            address destination =
                resolver.requireAndGetAddress(name, string(abi.encodePacked("Resolver missing target: ", name)));
            addressCache[name] = destination;
            emit CacheUpdated(name, destination);
        }
    }

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

    function isResolverCached() external view returns (bool) {
        bytes32[] memory requiredAddresses = resolverAddressesRequired();
        for (uint i = 0; i < requiredAddresses.length; i++) {
            bytes32 name = requiredAddresses[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;
    }

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

    function requireAndGetAddress(bytes32 name) internal view returns (address) {
        address _foundAddress = addressCache[name];
        require(_foundAddress != address(0), string(abi.encodePacked("Missing address: ", name)));
        return _foundAddress;
    }

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

    event CacheUpdated(bytes32 name, address destination);
}


interface IVirtualSynth {
    // Views
    function balanceOfUnderlying(address account) external view returns (uint);

    function rate() external view returns (uint);

    function readyToSettle() external view returns (bool);

    function secsLeftInWaitingPeriod() external view returns (uint);

    function settled() external view returns (bool);

    function synth() external view returns (ISynth);

    // Mutative functions
    function settle(address account) external;
}


// https://docs.synthetix.io/contracts/source/interfaces/isynthetix
interface ISynthetix {
    // Views
    function anySynthOrSNXRateIsInvalid() external view returns (bool anyRateInvalid);

    function availableCurrencyKeys() external view returns (bytes32[] memory);

    function availableSynthCount() external view returns (uint);

    function availableSynths(uint index) external view returns (ISynth);

    function collateral(address account) external view returns (uint);

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

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

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

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

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

    function synths(bytes32 currencyKey) external view returns (ISynth);

    function synthsByAddress(address synthAddress) external view returns (bytes32);

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

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

    function transferableSynthetix(address account) external view returns (uint transferable);

    // Mutative Functions
    function burnSynths(uint amount) external;

    function burnSynthsOnBehalf(address burnForAddress, uint amount) external;

    function burnSynthsToTarget() external;

    function burnSynthsToTargetOnBehalf(address burnForAddress) external;

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

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

    function exchangeWithTracking(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address rewardAddress,
        bytes32 trackingCode
    ) external returns (uint amountReceived);

    function exchangeWithTrackingForInitiator(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address rewardAddress,
        bytes32 trackingCode
    ) external returns (uint amountReceived);

    function exchangeOnBehalfWithTracking(
        address exchangeForAddress,
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address rewardAddress,
        bytes32 trackingCode
    ) external returns (uint amountReceived);

    function exchangeWithVirtual(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        bytes32 trackingCode
    ) external returns (uint amountReceived, IVirtualSynth vSynth);

    function issueMaxSynths() external;

    function issueMaxSynthsOnBehalf(address issueForAddress) external;

    function issueSynths(uint amount) external;

    function issueSynthsOnBehalf(address issueForAddress, uint amount) external;

    function mint() external returns (bool);

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

    // Liquidations
    function liquidateDelinquentAccount(address account, uint susdAmount) external returns (bool);

    // Restricted Functions

    function mintSecondary(address account, uint amount) external;

    function mintSecondaryRewards(uint amount) external;

    function burnSecondary(address account, uint amount) external;
}


// https://docs.synthetix.io/contracts/source/interfaces/isynthetixstate
interface ISynthetixState {
    // Views
    function debtLedger(uint index) external view returns (uint);

    function issuanceData(address account) external view returns (uint initialDebtOwnership, uint debtEntryIndex);

    function debtLedgerLength() external view returns (uint);

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

    function lastDebtLedgerEntry() external view returns (uint);

    // Mutative functions
    function incrementTotalIssuerCount() external;

    function decrementTotalIssuerCount() external;

    function setCurrentIssuanceData(address account, uint initialDebtOwnership) external;

    function appendDebtLedgerValue(uint value) external;

    function clearIssuanceData(address account) external;
}


// https://docs.synthetix.io/contracts/source/interfaces/isystemstatus
interface ISystemStatus {
    struct Status {
        bool canSuspend;
        bool canResume;
    }

    struct Suspension {
        bool suspended;
        // reason is an integer code,
        // 0 => no reason, 1 => upgrading, 2+ => defined by system usage
        uint248 reason;
    }

    // Views
    function accessControl(bytes32 section, address account) external view returns (bool canSuspend, bool canResume);

    function requireSystemActive() external view;

    function requireIssuanceActive() external view;

    function requireExchangeActive() external view;

    function requireExchangeBetweenSynthsAllowed(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) external view;

    function requireSynthActive(bytes32 currencyKey) external view;

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

    function systemSuspension() external view returns (bool suspended, uint248 reason);

    function issuanceSuspension() external view returns (bool suspended, uint248 reason);

    function exchangeSuspension() external view returns (bool suspended, uint248 reason);

    function synthExchangeSuspension(bytes32 currencyKey) external view returns (bool suspended, uint248 reason);

    function synthSuspension(bytes32 currencyKey) external view returns (bool suspended, uint248 reason);

    function getSynthExchangeSuspensions(bytes32[] calldata synths)
        external
        view
        returns (bool[] memory exchangeSuspensions, uint256[] memory reasons);

    function getSynthSuspensions(bytes32[] calldata synths)
        external
        view
        returns (bool[] memory suspensions, uint256[] memory reasons);

    // Restricted functions
    function suspendSynth(bytes32 currencyKey, uint256 reason) external;

    function updateAccessControl(
        bytes32 section,
        address account,
        bool canSuspend,
        bool canResume
    ) external;
}


// https://docs.synthetix.io/contracts/source/interfaces/iexchanger
interface IExchanger {
    // Views
    function calculateAmountAfterSettlement(
        address from,
        bytes32 currencyKey,
        uint amount,
        uint refunded
    ) external view returns (uint amountAfterSettlement);

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

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

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

    function hasWaitingPeriodOrSettlementOwing(address account, bytes32 currencyKey) external view returns (bool);

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

    function getAmountsForExchange(
        uint sourceAmount,
        bytes32 sourceCurrencyKey,
        bytes32 destinationCurrencyKey
    )
        external
        view
        returns (
            uint amountReceived,
            uint fee,
            uint exchangeFeeRate
        );

    function priceDeviationThresholdFactor() external view returns (uint);

    function waitingPeriodSecs() external view returns (uint);

    // Mutative functions
    function exchange(
        address exchangeForAddress,
        address from,
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address destinationAddress,
        bool virtualSynth,
        address rewardAddress,
        bytes32 trackingCode
    ) external returns (uint amountReceived, IVirtualSynth vSynth);

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

    function setLastExchangeRateForSynth(bytes32 currencyKey, uint rate) external;

    function resetLastExchangeRate(bytes32[] calldata currencyKeys) external;

    function suspendSynthWithInvalidRate(bytes32 currencyKey) external;
}


// https://docs.synthetix.io/contracts/source/interfaces/irewardsdistribution
interface IRewardsDistribution {
    // Structs
    struct DistributionData {
        address destination;
        uint amount;
    }

    // Views
    function authority() external view returns (address);

    function distributions(uint index) external view returns (address destination, uint amount); // DistributionData

    function distributionsLength() external view returns (uint);

    // Mutative Functions
    function distributeRewards(uint amount) external returns (bool);
}


// Inheritance


// Internal references


contract BaseSynthetix is IERC20, ExternStateToken, MixinResolver, ISynthetix {
    // ========== STATE VARIABLES ==========
    bytes32 public constant CONTRACT_NAME = "Synthetix";

    // Available Synths which can be used with the system
    string public constant TOKEN_NAME = "Synthetix Network Token";
    string public constant TOKEN_SYMBOL = "SNX";
    uint8 public constant DECIMALS = 18;
    bytes32 public constant sUSD = "sUSD";

    // ========== ADDRESS RESOLVER CONFIGURATION ==========
    bytes32 private constant CONTRACT_SYNTHETIXSTATE = "SynthetixState";
    bytes32 private constant CONTRACT_SYSTEMSTATUS = "SystemStatus";
    bytes32 private constant CONTRACT_EXCHANGER = "Exchanger";
    bytes32 private constant CONTRACT_ISSUER = "Issuer";
    bytes32 private constant CONTRACT_REWARDSDISTRIBUTION = "RewardsDistribution";

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

    constructor(
        address payable _proxy,
        TokenState _tokenState,
        address _owner,
        uint _totalSupply,
        address _resolver
    )
        public
        ExternStateToken(_proxy, _tokenState, TOKEN_NAME, TOKEN_SYMBOL, _totalSupply, DECIMALS, _owner)
        MixinResolver(_resolver)
    {}

    // ========== VIEWS ==========

    // Note: use public visibility so that it can be invoked in a subclass
    function resolverAddressesRequired() public view returns (bytes32[] memory addresses) {
        addresses = new bytes32[](5);
        addresses[0] = CONTRACT_SYNTHETIXSTATE;
        addresses[1] = CONTRACT_SYSTEMSTATUS;
        addresses[2] = CONTRACT_EXCHANGER;
        addresses[3] = CONTRACT_ISSUER;
        addresses[4] = CONTRACT_REWARDSDISTRIBUTION;
    }

    function synthetixState() internal view returns (ISynthetixState) {
        return ISynthetixState(requireAndGetAddress(CONTRACT_SYNTHETIXSTATE));
    }

    function systemStatus() internal view returns (ISystemStatus) {
        return ISystemStatus(requireAndGetAddress(CONTRACT_SYSTEMSTATUS));
    }

    function exchanger() internal view returns (IExchanger) {
        return IExchanger(requireAndGetAddress(CONTRACT_EXCHANGER));
    }

    function issuer() internal view returns (IIssuer) {
        return IIssuer(requireAndGetAddress(CONTRACT_ISSUER));
    }

    function rewardsDistribution() internal view returns (IRewardsDistribution) {
        return IRewardsDistribution(requireAndGetAddress(CONTRACT_REWARDSDISTRIBUTION));
    }

    function debtBalanceOf(address account, bytes32 currencyKey) external view returns (uint) {
        return issuer().debtBalanceOf(account, currencyKey);
    }

    function totalIssuedSynths(bytes32 currencyKey) external view returns (uint) {
        return issuer().totalIssuedSynths(currencyKey, false);
    }

    // TODO: refactor the name of this function. It also incorporates the exclusion of
    // issued sETH by the EtherWrapper.
    function totalIssuedSynthsExcludeEtherCollateral(bytes32 currencyKey) external view returns (uint) {
        return issuer().totalIssuedSynths(currencyKey, true);
    }

    function availableCurrencyKeys() external view returns (bytes32[] memory) {
        return issuer().availableCurrencyKeys();
    }

    function availableSynthCount() external view returns (uint) {
        return issuer().availableSynthCount();
    }

    function availableSynths(uint index) external view returns (ISynth) {
        return issuer().availableSynths(index);
    }

    function synths(bytes32 currencyKey) external view returns (ISynth) {
        return issuer().synths(currencyKey);
    }

    function synthsByAddress(address synthAddress) external view returns (bytes32) {
        return issuer().synthsByAddress(synthAddress);
    }

    function isWaitingPeriod(bytes32 currencyKey) external view returns (bool) {
        return exchanger().maxSecsLeftInWaitingPeriod(messageSender, currencyKey) > 0;
    }

    function anySynthOrSNXRateIsInvalid() external view returns (bool anyRateInvalid) {
        return issuer().anySynthOrSNXRateIsInvalid();
    }

    function maxIssuableSynths(address account) external view returns (uint maxIssuable) {
        return issuer().maxIssuableSynths(account);
    }

    function remainingIssuableSynths(address account)
        external
        view
        returns (
            uint maxIssuable,
            uint alreadyIssued,
            uint totalSystemDebt
        )
    {
        return issuer().remainingIssuableSynths(account);
    }

    function collateralisationRatio(address _issuer) external view returns (uint) {
        return issuer().collateralisationRatio(_issuer);
    }

    function collateral(address account) external view returns (uint) {
        return issuer().collateral(account);
    }

    function transferableSynthetix(address account) external view returns (uint transferable) {
        (transferable, ) = issuer().transferableSynthetixAndAnyRateIsInvalid(account, tokenState.balanceOf(account));
    }

    function _canTransfer(address account, uint value) internal view returns (bool) {
        (uint initialDebtOwnership, ) = synthetixState().issuanceData(account);

        if (initialDebtOwnership > 0) {
            (uint transferable, bool anyRateIsInvalid) =
                issuer().transferableSynthetixAndAnyRateIsInvalid(account, tokenState.balanceOf(account));
            require(value <= transferable, "Cannot transfer staked or escrowed SNX");
            require(!anyRateIsInvalid, "A synth or SNX rate is invalid");
        }
        return true;
    }

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

    function exchange(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey
    ) external exchangeActive(sourceCurrencyKey, destinationCurrencyKey) optionalProxy returns (uint amountReceived) {
        (amountReceived, ) = exchanger().exchange(
            messageSender,
            messageSender,
            sourceCurrencyKey,
            sourceAmount,
            destinationCurrencyKey,
            messageSender,
            false,
            messageSender,
            bytes32(0)
        );
    }

    function exchangeOnBehalf(
        address exchangeForAddress,
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey
    ) external exchangeActive(sourceCurrencyKey, destinationCurrencyKey) optionalProxy returns (uint amountReceived) {
        (amountReceived, ) = exchanger().exchange(
            exchangeForAddress,
            messageSender,
            sourceCurrencyKey,
            sourceAmount,
            destinationCurrencyKey,
            exchangeForAddress,
            false,
            exchangeForAddress,
            bytes32(0)
        );
    }

    function settle(bytes32 currencyKey)
        external
        optionalProxy
        returns (
            uint reclaimed,
            uint refunded,
            uint numEntriesSettled
        )
    {
        return exchanger().settle(messageSender, currencyKey);
    }

    function exchangeWithTracking(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address rewardAddress,
        bytes32 trackingCode
    ) external exchangeActive(sourceCurrencyKey, destinationCurrencyKey) optionalProxy returns (uint amountReceived) {
        (amountReceived, ) = exchanger().exchange(
            messageSender,
            messageSender,
            sourceCurrencyKey,
            sourceAmount,
            destinationCurrencyKey,
            messageSender,
            false,
            rewardAddress,
            trackingCode
        );
    }

    function exchangeOnBehalfWithTracking(
        address exchangeForAddress,
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address rewardAddress,
        bytes32 trackingCode
    ) external exchangeActive(sourceCurrencyKey, destinationCurrencyKey) optionalProxy returns (uint amountReceived) {
        (amountReceived, ) = exchanger().exchange(
            exchangeForAddress,
            messageSender,
            sourceCurrencyKey,
            sourceAmount,
            destinationCurrencyKey,
            exchangeForAddress,
            false,
            rewardAddress,
            trackingCode
        );
    }

    function transfer(address to, uint value) external optionalProxy systemActive returns (bool) {
        // Ensure they're not trying to exceed their locked amount -- only if they have debt.
        _canTransfer(messageSender, value);

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

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint value
    ) external optionalProxy systemActive returns (bool) {
        // Ensure they're not trying to exceed their locked amount -- only if they have debt.
        _canTransfer(from, value);

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

    function issueSynths(uint amount) external issuanceActive optionalProxy {
        return issuer().issueSynths(messageSender, amount);
    }

    function issueSynthsOnBehalf(address issueForAddress, uint amount) external issuanceActive optionalProxy {
        return issuer().issueSynthsOnBehalf(issueForAddress, messageSender, amount);
    }

    function issueMaxSynths() external issuanceActive optionalProxy {
        return issuer().issueMaxSynths(messageSender);
    }

    function issueMaxSynthsOnBehalf(address issueForAddress) external issuanceActive optionalProxy {
        return issuer().issueMaxSynthsOnBehalf(issueForAddress, messageSender);
    }

    function burnSynths(uint amount) external issuanceActive optionalProxy {
        return issuer().burnSynths(messageSender, amount);
    }

    function burnSynthsOnBehalf(address burnForAddress, uint amount) external issuanceActive optionalProxy {
        return issuer().burnSynthsOnBehalf(burnForAddress, messageSender, amount);
    }

    function burnSynthsToTarget() external issuanceActive optionalProxy {
        return issuer().burnSynthsToTarget(messageSender);
    }

    function burnSynthsToTargetOnBehalf(address burnForAddress) external issuanceActive optionalProxy {
        return issuer().burnSynthsToTargetOnBehalf(burnForAddress, messageSender);
    }

    function exchangeWithTrackingForInitiator(
        bytes32,
        uint,
        bytes32,
        address,
        bytes32
    ) external returns (uint amountReceived) {
        _notImplemented();
    }

    function exchangeWithVirtual(
        bytes32,
        uint,
        bytes32,
        bytes32
    ) external returns (uint, IVirtualSynth) {
        _notImplemented();
    }

    function mint() external returns (bool) {
        _notImplemented();
    }

    function liquidateDelinquentAccount(address, uint) external returns (bool) {
        _notImplemented();
    }

    function mintSecondary(address, uint) external {
        _notImplemented();
    }

    function mintSecondaryRewards(uint) external {
        _notImplemented();
    }

    function burnSecondary(address, uint) external {
        _notImplemented();
    }

    function _notImplemented() internal pure {
        revert("Cannot be run on this layer");
    }

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

    modifier systemActive() {
        _systemActive();
        _;
    }

    function _systemActive() private {
        systemStatus().requireSystemActive();
    }

    modifier issuanceActive() {
        _issuanceActive();
        _;
    }

    function _issuanceActive() private {
        systemStatus().requireIssuanceActive();
    }

    modifier exchangeActive(bytes32 src, bytes32 dest) {
        _exchangeActive(src, dest);
        _;
    }

    function _exchangeActive(bytes32 src, bytes32 dest) private {
        systemStatus().requireExchangeBetweenSynthsAllowed(src, dest);
    }

    modifier onlyExchanger() {
        _onlyExchanger();
        _;
    }

    function _onlyExchanger() private {
        require(msg.sender == address(exchanger()), "Only Exchanger can invoke this");
    }

    // ========== EVENTS ==========
    event SynthExchange(
        address indexed account,
        bytes32 fromCurrencyKey,
        uint256 fromAmount,
        bytes32 toCurrencyKey,
        uint256 toAmount,
        address toAddress
    );
    bytes32 internal constant SYNTHEXCHANGE_SIG =
        keccak256("SynthExchange(address,bytes32,uint256,bytes32,uint256,address)");

    function emitSynthExchange(
        address account,
        bytes32 fromCurrencyKey,
        uint256 fromAmount,
        bytes32 toCurrencyKey,
        uint256 toAmount,
        address toAddress
    ) external onlyExchanger {
        proxy._emit(
            abi.encode(fromCurrencyKey, fromAmount, toCurrencyKey, toAmount, toAddress),
            2,
            SYNTHEXCHANGE_SIG,
            addressToBytes32(account),
            0,
            0
        );
    }

    event ExchangeTracking(bytes32 indexed trackingCode, bytes32 toCurrencyKey, uint256 toAmount, uint256 fee);
    bytes32 internal constant EXCHANGE_TRACKING_SIG = keccak256("ExchangeTracking(bytes32,bytes32,uint256,uint256)");

    function emitExchangeTracking(
        bytes32 trackingCode,
        bytes32 toCurrencyKey,
        uint256 toAmount,
        uint256 fee
    ) external onlyExchanger {
        proxy._emit(abi.encode(toCurrencyKey, toAmount, fee), 2, EXCHANGE_TRACKING_SIG, trackingCode, 0, 0);
    }

    event ExchangeReclaim(address indexed account, bytes32 currencyKey, uint amount);
    bytes32 internal constant EXCHANGERECLAIM_SIG = keccak256("ExchangeReclaim(address,bytes32,uint256)");

    function emitExchangeReclaim(
        address account,
        bytes32 currencyKey,
        uint256 amount
    ) external onlyExchanger {
        proxy._emit(abi.encode(currencyKey, amount), 2, EXCHANGERECLAIM_SIG, addressToBytes32(account), 0, 0);
    }

    event ExchangeRebate(address indexed account, bytes32 currencyKey, uint amount);
    bytes32 internal constant EXCHANGEREBATE_SIG = keccak256("ExchangeRebate(address,bytes32,uint256)");

    function emitExchangeRebate(
        address account,
        bytes32 currencyKey,
        uint256 amount
    ) external onlyExchanger {
        proxy._emit(abi.encode(currencyKey, amount), 2, EXCHANGEREBATE_SIG, addressToBytes32(account), 0, 0);
    }
}


// https://docs.synthetix.io/contracts/source/interfaces/irewardescrow
interface IRewardEscrow {
    // Views
    function balanceOf(address account) external view returns (uint);

    function numVestingEntries(address account) external view returns (uint);

    function totalEscrowedAccountBalance(address account) external view returns (uint);

    function totalVestedAccountBalance(address account) external view returns (uint);

    function getVestingScheduleEntry(address account, uint index) external view returns (uint[2] memory);

    function getNextVestingIndex(address account) external view returns (uint);

    // Mutative functions
    function appendVestingEntry(address account, uint quantity) external;

    function vest() external;
}


pragma experimental ABIEncoderV2;

library VestingEntries {
    struct VestingEntry {
        uint64 endTime;
        uint256 escrowAmount;
    }
    struct VestingEntryWithID {
        uint64 endTime;
        uint256 escrowAmount;
        uint256 entryID;
    }
}

interface IRewardEscrowV2 {
    // Views
    function balanceOf(address account) external view returns (uint);

    function numVestingEntries(address account) external view returns (uint);

    function totalEscrowedAccountBalance(address account) external view returns (uint);

    function totalVestedAccountBalance(address account) external view returns (uint);

    function getVestingQuantity(address account, uint256[] calldata entryIDs) external view returns (uint);

    function getVestingSchedules(
        address account,
        uint256 index,
        uint256 pageSize
    ) external view returns (VestingEntries.VestingEntryWithID[] memory);

    function getAccountVestingEntryIDs(
        address account,
        uint256 index,
        uint256 pageSize
    ) external view returns (uint256[] memory);

    function getVestingEntryClaimable(address account, uint256 entryID) external view returns (uint);

    function getVestingEntry(address account, uint256 entryID) external view returns (uint64, uint256);

    // Mutative functions
    function vest(uint256[] calldata entryIDs) external;

    function createEscrowEntry(
        address beneficiary,
        uint256 deposit,
        uint256 duration
    ) external;

    function appendVestingEntry(
        address account,
        uint256 quantity,
        uint256 duration
    ) external;

    function migrateVestingSchedule(address _addressToMigrate) external;

    function migrateAccountEscrowBalances(
        address[] calldata accounts,
        uint256[] calldata escrowBalances,
        uint256[] calldata vestedBalances
    ) external;

    // Account Merging
    function startMergingWindow() external;

    function mergeAccount(address accountToMerge, uint256[] calldata entryIDs) external;

    function nominateAccountToMerge(address account) external;

    function accountMergingIsOpen() external view returns (bool);

    // L2 Migration
    function importVestingEntries(
        address account,
        uint256 escrowedAmount,
        VestingEntries.VestingEntry[] calldata vestingEntries
    ) external;

    // Return amount of SNX transfered to SynthetixBridgeToOptimism deposit contract
    function burnForMigration(address account, uint256[] calldata entryIDs)
        external
        returns (uint256 escrowedAccountBalance, VestingEntries.VestingEntry[] memory vestingEntries);
}


// https://docs.synthetix.io/contracts/source/interfaces/isupplyschedule
interface ISupplySchedule {
    // Views
    function mintableSupply() external view returns (uint);

    function isMintable() external view returns (bool);

    function minterReward() external view returns (uint);

    // Mutative functions
    function recordMintEvent(uint supplyMinted) external returns (bool);
}


// Inheritance


// Internal references


// https://docs.synthetix.io/contracts/source/contracts/synthetix
contract Synthetix is BaseSynthetix {
    // ========== ADDRESS RESOLVER CONFIGURATION ==========
    bytes32 private constant CONTRACT_REWARD_ESCROW = "RewardEscrow";
    bytes32 private constant CONTRACT_REWARDESCROW_V2 = "RewardEscrowV2";
    bytes32 private constant CONTRACT_SUPPLYSCHEDULE = "SupplySchedule";

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

    constructor(
        address payable _proxy,
        TokenState _tokenState,
        address _owner,
        uint _totalSupply,
        address _resolver
    ) public BaseSynthetix(_proxy, _tokenState, _owner, _totalSupply, _resolver) {}

    function resolverAddressesRequired() public view returns (bytes32[] memory addresses) {
        bytes32[] memory existingAddresses = BaseSynthetix.resolverAddressesRequired();
        bytes32[] memory newAddresses = new bytes32[](3);
        newAddresses[0] = CONTRACT_REWARD_ESCROW;
        newAddresses[1] = CONTRACT_REWARDESCROW_V2;
        newAddresses[2] = CONTRACT_SUPPLYSCHEDULE;
        return combineArrays(existingAddresses, newAddresses);
    }

    // ========== VIEWS ==========

    function rewardEscrow() internal view returns (IRewardEscrow) {
        return IRewardEscrow(requireAndGetAddress(CONTRACT_REWARD_ESCROW));
    }

    function rewardEscrowV2() internal view returns (IRewardEscrowV2) {
        return IRewardEscrowV2(requireAndGetAddress(CONTRACT_REWARDESCROW_V2));
    }

    function supplySchedule() internal view returns (ISupplySchedule) {
        return ISupplySchedule(requireAndGetAddress(CONTRACT_SUPPLYSCHEDULE));
    }

    // ========== OVERRIDDEN FUNCTIONS ==========

    function exchangeWithVirtual(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        bytes32 trackingCode
    )
        external
        exchangeActive(sourceCurrencyKey, destinationCurrencyKey)
        optionalProxy
        returns (uint amountReceived, IVirtualSynth vSynth)
    {
        return
            exchanger().exchange(
                messageSender,
                messageSender,
                sourceCurrencyKey,
                sourceAmount,
                destinationCurrencyKey,
                messageSender,
                true,
                messageSender,
                trackingCode
            );
    }

    // SIP-140 The initiating user of this exchange will receive the proceeds of the exchange
    // Note: this function may have unintended consequences if not understood correctly. Please
    // read SIP-140 for more information on the use-case
    function exchangeWithTrackingForInitiator(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        address rewardAddress,
        bytes32 trackingCode
    ) external exchangeActive(sourceCurrencyKey, destinationCurrencyKey) optionalProxy returns (uint amountReceived) {
        (amountReceived, ) = exchanger().exchange(
            messageSender,
            messageSender,
            sourceCurrencyKey,
            sourceAmount,
            destinationCurrencyKey,
            // solhint-disable avoid-tx-origin
            tx.origin,
            false,
            rewardAddress,
            trackingCode
        );
    }

    function settle(bytes32 currencyKey)
        external
        optionalProxy
        returns (
            uint reclaimed,
            uint refunded,
            uint numEntriesSettled
        )
    {
        return exchanger().settle(messageSender, currencyKey);
    }

    function mint() external issuanceActive returns (bool) {
        require(address(rewardsDistribution()) != address(0), "RewardsDistribution not set");

        ISupplySchedule _supplySchedule = supplySchedule();
        IRewardsDistribution _rewardsDistribution = rewardsDistribution();

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

        // record minting event before mutation to token supply
        _supplySchedule.recordMintEvent(supplyToMint);

        // Set minted SNX balance to RewardEscrow's balance
        // Minus the minterReward and set balance of minter to add reward
        uint minterReward = _supplySchedule.minterReward();
        // Get the remainder
        uint amountToDistribute = supplyToMint.sub(minterReward);

        // Set the token balance to the RewardsDistribution contract
        tokenState.setBalanceOf(
            address(_rewardsDistribution),
            tokenState.balanceOf(address(_rewardsDistribution)).add(amountToDistribute)
        );
        emitTransfer(address(this), address(_rewardsDistribution), amountToDistribute);

        // Kick off the distribution of rewards
        _rewardsDistribution.distributeRewards(amountToDistribute);

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

        totalSupply = totalSupply.add(supplyToMint);

        return true;
    }

    function liquidateDelinquentAccount(address account, uint susdAmount)
        external
        systemActive
        optionalProxy
        returns (bool)
    {
        (uint totalRedeemed, uint amountLiquidated) =
            issuer().liquidateDelinquentAccount(account, susdAmount, messageSender);

        emitAccountLiquidated(account, totalRedeemed, amountLiquidated, messageSender);

        // Transfer SNX redeemed to messageSender
        // Reverts if amount to redeem is more than balanceOf account, ie due to escrowed balance
        return _transferByProxy(account, messageSender, totalRedeemed);
    }

    /* Once off function for SIP-60 to migrate SNX balances in the RewardEscrow contract
     * To the new RewardEscrowV2 contract
     */
    function migrateEscrowBalanceToRewardEscrowV2() external onlyOwner {
        // Record balanceOf(RewardEscrow) contract
        uint rewardEscrowBalance = tokenState.balanceOf(address(rewardEscrow()));

        // transfer all of RewardEscrow's balance to RewardEscrowV2
        // _internalTransfer emits the transfer event
        _internalTransfer(address(rewardEscrow()), address(rewardEscrowV2()), rewardEscrowBalance);
    }

    // ========== EVENTS ==========
    event AccountLiquidated(address indexed account, uint snxRedeemed, uint amountLiquidated, address liquidator);
    bytes32 internal constant ACCOUNTLIQUIDATED_SIG = keccak256("AccountLiquidated(address,uint256,uint256,address)");

    function emitAccountLiquidated(
        address account,
        uint256 snxRedeemed,
        uint256 amountLiquidated,
        address liquidator
    ) internal {
        proxy._emit(
            abi.encode(snxRedeemed, amountLiquidated, liquidator),
            2,
            ACCOUNTLIQUIDATED_SIG,
            addressToBytes32(account),
            0,
            0
        );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_proxy","type":"address"},{"internalType":"contract TokenState","name":"_tokenState","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"address","name":"_resolver","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"snxRedeemed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLiquidated","type":"uint256"},{"indexed":false,"internalType":"address","name":"liquidator","type":"address"}],"name":"AccountLiquidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"name","type":"bytes32"},{"indexed":false,"internalType":"address","name":"destination","type":"address"}],"name":"CacheUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes32","name":"currencyKey","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExchangeRebate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes32","name":"currencyKey","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExchangeReclaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"trackingCode","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"toCurrencyKey","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"toAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"ExchangeTracking","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"proxyAddress","type":"address"}],"name":"ProxyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bytes32","name":"fromCurrencyKey","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"fromAmount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"toCurrencyKey","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"toAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"toAddress","type":"address"}],"name":"SynthExchange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTokenState","type":"address"}],"name":"TokenStateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"CONTRACT_NAME","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"TOKEN_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"TOKEN_SYMBOL","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"anySynthOrSNXRateIsInvalid","outputs":[{"internalType":"bool","name":"anyRateInvalid","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"availableCurrencyKeys","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"availableSynthCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"availableSynths","outputs":[{"internalType":"contract ISynth","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnSecondary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnSynths","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"burnForAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnSynthsOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"burnSynthsToTarget","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"burnForAddress","type":"address"}],"name":"burnSynthsToTargetOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"collateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_issuer","type":"address"}],"name":"collateralisationRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"currencyKey","type":"bytes32"}],"name":"debtBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"currencyKey","type":"bytes32"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emitExchangeRebate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"currencyKey","type":"bytes32"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emitExchangeReclaim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"trackingCode","type":"bytes32"},{"internalType":"bytes32","name":"toCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"emitExchangeTracking","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"fromCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"bytes32","name":"toCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"}],"name":"emitSynthExchange","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"sourceCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"sourceAmount","type":"uint256"},{"internalType":"bytes32","name":"destinationCurrencyKey","type":"bytes32"}],"name":"exchange","outputs":[{"internalType":"uint256","name":"amountReceived","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"exchangeForAddress","type":"address"},{"internalType":"bytes32","name":"sourceCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"sourceAmount","type":"uint256"},{"internalType":"bytes32","name":"destinationCurrencyKey","type":"bytes32"}],"name":"exchangeOnBehalf","outputs":[{"internalType":"uint256","name":"amountReceived","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"exchangeForAddress","type":"address"},{"internalType":"bytes32","name":"sourceCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"sourceAmount","type":"uint256"},{"internalType":"bytes32","name":"destinationCurrencyKey","type":"bytes32"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"bytes32","name":"trackingCode","type":"bytes32"}],"name":"exchangeOnBehalfWithTracking","outputs":[{"internalType":"uint256","name":"amountReceived","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"sourceCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"sourceAmount","type":"uint256"},{"internalType":"bytes32","name":"destinationCurrencyKey","type":"bytes32"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"bytes32","name":"trackingCode","type":"bytes32"}],"name":"exchangeWithTracking","outputs":[{"internalType":"uint256","name":"amountReceived","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"sourceCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"sourceAmount","type":"uint256"},{"internalType":"bytes32","name":"destinationCurrencyKey","type":"bytes32"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"bytes32","name":"trackingCode","type":"bytes32"}],"name":"exchangeWithTrackingForInitiator","outputs":[{"internalType":"uint256","name":"amountReceived","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"sourceCurrencyKey","type":"bytes32"},{"internalType":"uint256","name":"sourceAmount","type":"uint256"},{"internalType":"bytes32","name":"destinationCurrencyKey","type":"bytes32"},{"internalType":"bytes32","name":"trackingCode","type":"bytes32"}],"name":"exchangeWithVirtual","outputs":[{"internalType":"uint256","name":"amountReceived","type":"uint256"},{"internalType":"contract IVirtualSynth","name":"vSynth","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"integrationProxy","outputs":[{"internalType":"contract Proxy","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isResolverCached","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"currencyKey","type":"bytes32"}],"name":"isWaitingPeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"issueMaxSynths","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"issueForAddress","type":"address"}],"name":"issueMaxSynthsOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"issueSynths","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"issueForAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"issueSynthsOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"susdAmount","type":"uint256"}],"name":"liquidateDelinquentAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"maxIssuableSynths","outputs":[{"internalType":"uint256","name":"maxIssuable","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"messageSender","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"migrateEscrowBalanceToRewardEscrowV2","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintSecondary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintSecondaryRewards","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxy","outputs":[{"internalType":"contract Proxy","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"rebuildCache","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"remainingIssuableSynths","outputs":[{"internalType":"uint256","name":"maxIssuable","type":"uint256"},{"internalType":"uint256","name":"alreadyIssued","type":"uint256"},{"internalType":"uint256","name":"totalSystemDebt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"resolver","outputs":[{"internalType":"contract AddressResolver","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"resolverAddressesRequired","outputs":[{"internalType":"bytes32[]","name":"addresses","type":"bytes32[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sUSD","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_integrationProxy","type":"address"}],"name":"setIntegrationProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"setMessageSender","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_proxy","type":"address"}],"name":"setProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract TokenState","name":"_tokenState","type":"address"}],"name":"setTokenState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"currencyKey","type":"bytes32"}],"name":"settle","outputs":[{"internalType":"uint256","name":"reclaimed","type":"uint256"},{"internalType":"uint256","name":"refunded","type":"uint256"},{"internalType":"uint256","name":"numEntriesSettled","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"currencyKey","type":"bytes32"}],"name":"synths","outputs":[{"internalType":"contract ISynth","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"synthAddress","type":"address"}],"name":"synthsByAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenState","outputs":[{"internalType":"contract TokenState","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"currencyKey","type":"bytes32"}],"name":"totalIssuedSynths","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"currencyKey","type":"bytes32"}],"name":"totalIssuedSynthsExcludeEtherCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"transferableSynthetix","outputs":[{"internalType":"uint256","name":"transferable","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162004b7d38038062004b7d833981016040819052620000349162000315565b84848484848085856040518060400160405280601781526020017f53796e746865746978204e6574776f726b20546f6b656e000000000000000000815250604051806040016040528060038152602001620a69cb60eb1b81525086601289868160006001600160a01b0316816001600160a01b03161415620000d35760405162461bcd60e51b8152600401620000ca9062000463565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383161781556040517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91620001209184906200042b565b60405180910390a1506000546001600160a01b0316620001545760405162461bcd60e51b8152600401620000ca9062000451565b600280546001600160a01b0319166001600160a01b0383161790556040517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e90620001a19083906200041b565b60405180910390a150600580546001600160a01b0319166001600160a01b0388161790558451620001da90600690602088019062000243565b508351620001f090600790602087019062000243565b50506008919091556009805460ff191660ff90921691909117610100600160a81b0319166101006001600160a01b0397909716969096029590951790945550620004e19c50505050505050505050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028657805160ff1916838001178555620002b6565b82800160010185558215620002b6579182015b82811115620002b657825182559160200191906001019062000299565b50620002c4929150620002c8565b5090565b620002e591905b80821115620002c45760008155600101620002cf565b90565b8051620002f581620004b1565b92915050565b8051620002f581620004cb565b8051620002f581620004d6565b600080600080600060a086880312156200032e57600080fd5b60006200033c8888620002e8565b95505060206200034f88828901620002fb565b94505060406200036288828901620002e8565b9350506060620003758882890162000308565b92505060806200038888828901620002e8565b9150509295509295909350565b620003a081620004a4565b82525050565b620003a0816200047e565b6000620003c060118362000475565b7013dddb995c881b5d5cdd081899481cd95d607a1b815260200192915050565b6000620003ef60198362000475565b7f4f776e657220616464726573732063616e6e6f74206265203000000000000000815260200192915050565b60208101620002f5828462000395565b604081016200043b828562000395565b6200044a6020830184620003a6565b9392505050565b60208082528101620002f581620003b1565b60208082528101620002f581620003e0565b90815260200190565b6000620002f58262000498565b6000620002f5826200047e565b6001600160a01b031690565b6000620002f5826200048b565b620004bc816200047e565b8114620004c857600080fd5b50565b620004bc816200048b565b620004bc81620002e5565b61468c80620004f16000396000f3fe608060405234801561001057600080fd5b50600436106104125760003560e01c80637418536011610220578063a9059cbb11610130578063d8a1f76f116100b8578063e8e09b8b11610087578063e8e09b8b1461085a578063e90dd9e21461086d578063ec55688914610875578063edef719a1461061d578063ee52a2f31461087d57610412565b8063d8a1f76f14610819578063dbf633401461082c578063dd62ed3e14610834578063e6203ed11461084757610412565b8063c2bf3880116100ff578063c2bf3880146107c5578063c836fa0a146107d8578063d37c4d8b146107eb578063d60888e4146107fe578063d67bdd251461081157610412565b8063a9059cbb14610784578063ace88afd14610797578063af086c7e146107aa578063bc67f832146107b257610412565b80639324cac7116101b3578063987757dd11610182578063987757dd146107305780639cbdaeb6146107435780639f7698071461074b578063a311c7c21461075e578063a5fdc5de1461077157610412565b80639324cac71461070557806395d89b411461070d57806397107d6d146107155780639741fb221461072857610412565b8063899ffef4116101ef578063899ffef4146106cf5780638a290014146106d75780638da5cb5b146106ea57806391e56b68146106f257610412565b8063741853601461069957806379ba5097146106a1578063835e119c146106a957806383d625d4146106bc57610412565b80632c955fa7116103265780635af090ef116102ae5780636b76222f1161027d5780636b76222f146106435780636c00f3101461064b5780636f01a9861461065e57806370a082311461067157806372cb051f1461068457610412565b80635af090ef14610602578063614d08f814610615578063666ed4f11461061d5780636ac0bf9c1461063057610412565b8063313ce567116102f5578063313ce567146105b7578063320223db146105bf57806332608039146105d25780634e99bda9146105e557806353a47bb7146105ed57610412565b80632c955fa7146105695780632d3169eb1461057c5780632e0f26251461058f57806330ead760146105a457610412565b80631627540c116103a95780631fce304d116103785780631fce304d1461052057806323b872dd14610533578063295da87d146105465780632a905318146105595780632af64bd31461056157610412565b80631627540c146104ea57806316b2213f146104fd57806318160ddd14610510578063188214001461051857610412565b80630e30963c116103e55780630e30963c1461048a5780631137aedf146104ab5780631249c58b146104cd578063131b0ae7146104d557610412565b806304f3bcec1461041757806305b3c1c91461043557806306fdde0314610455578063095ea7b31461046a575b600080fd5b61041f610890565b60405161042c9190614419565b60405180910390f35b61044861044336600461348e565b6108a4565b60405161042c919061426d565b61045d61092f565b60405161042c9190614427565b61047d610478366004613551565b6109bd565b60405161042c919061425f565b61049d6104983660046137a4565b610a49565b60405161042c929190614508565b6104be6104b936600461348e565b610b58565b60405161042c9392919061431e565b61047d610bed565b6104e86104e336600461348e565b611017565b005b6104e86104f836600461348e565b611041565b61044861050b36600461348e565b61109f565b6104486110d4565b61045d6110da565b61047d61052e366004613768565b611113565b61047d610541366004613504565b6111a8565b6104e8610554366004613768565b6111e7565b61045d611268565b61047d611287565b6104e861057736600461348e565b6113a3565b6104e861058a3660046137a4565b6113ed565b6105976114a3565b60405161042c9190614531565b6104486105b23660046137e7565b6114a8565b61059761159f565b6104e86105cd36600461348e565b6115a8565b61041f6105e0366004613768565b6115f2565b61047d611677565b6105f56116f6565b60405161042c91906140c8565b6104486106103660046137e7565b611705565b610448611789565b6104e861062b366004613551565b611799565b61044861063e36600461348e565b6117a5565b6104e86118ad565b6104e861065936600461369b565b611958565b6104e861066c366004613581565b611a1a565b61044861067f36600461348e565b611ad3565b61068c611b04565b60405161042c919061424e565b6104e8611b82565b6104e8611cd4565b61041f6106b7366004613768565b611d70565b6104486106ca366004613768565b611da5565b61068c611ddd565b6104e86106e5366004613768565b611e9e565b6105f5611ee8565b610448610700366004613614565b611ef7565b610448611fc5565b61045d611fd0565b6104e861072336600461348e565b61202b565b6104e861207e565b6104be61073e366004613768565b6120fc565b61041f612172565b6104e861075936600461387a565b612181565b61044861076c36600461348e565b6121ad565b61044861077f36600461348e565b6121e2565b61047d610792366004613551565b612217565b6104e86107a5366004613581565b612257565b6104e86122a4565b6104e86107c036600461348e565b6122ed565b6104e86107d3366004613551565b612317565b6104486107e63660046135b3565b612399565b6104486107f9366004613551565b612455565b61044861080c366004613768565b6124dc565b6105f5612514565b6104e8610827366004613768565b612523565b61044861252b565b6104486108423660046134ca565b6125a5565b61047d610855366004613551565b6125d8565b6104e8610868366004613551565b6126bc565b61041f612708565b61041f612717565b61044861088b3660046137c6565b612726565b60095461010090046001600160a01b031681565b60006108ae6127e2565b6001600160a01b03166305b3c1c9836040518263ffffffff1660e01b81526004016108d991906140c8565b60206040518083038186803b1580156108f157600080fd5b505afa158015610905573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506109299190810190613786565b92915050565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109b55780601f1061098a576101008083540402835291602001916109b5565b820191906000526020600020905b81548152906001019060200180831161099857829003601f168201915b505050505081565b60006109c76127f6565b60048054600554604051633691826360e21b81526001600160a01b0392831693919092169163da46098c91610a0291859189918991016141f0565b600060405180830381600087803b158015610a1c57600080fd5b505af1158015610a30573d6000803e3d6000fd5b50505050610a3f81858561284c565b5060019392505050565b6000808584610a5882826128cc565b610a606127f6565b610a6861292d565b6001600160a01b0316634f8633d2600460009054906101000a90046001600160a01b0316600460009054906101000a90046001600160a01b03168b8b8b600460009054906101000a90046001600160a01b03166001600460009054906101000a90046001600160a01b03168e6040518a63ffffffff1660e01b8152600401610af8999897969594939291906141a0565b6040805180830381600087803b158015610b1157600080fd5b505af1158015610b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b4991908101906138c8565b93509350505094509492505050565b6000806000610b656127e2565b6001600160a01b0316631137aedf856040518263ffffffff1660e01b8152600401610b9091906140c8565b60606040518083038186803b158015610ba857600080fd5b505afa158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610be09190810190613928565b9250925092509193909250565b6000610bf7612944565b6000610c01612998565b6001600160a01b03161415610c315760405162461bcd60e51b8152600401610c28906144c8565b60405180910390fd5b6000610c3b6129b9565b90506000610c47612998565b90506000826001600160a01b031663cc5c095c6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c8457600080fd5b505afa158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610cbc9190810190613786565b905060008111610cde5760405162461bcd60e51b8152600401610c28906144e8565b604051637e7961d760e01b81526001600160a01b03841690637e7961d790610d0a90849060040161426d565b602060405180830381600087803b158015610d2457600080fd5b505af1158015610d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610d5c919081019061374a565b506000836001600160a01b0316639bdd7ac76040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9857600080fd5b505afa158015610dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610dd09190810190613786565b90506000610de4838363ffffffff6129d516565b6005546040516370a0823160e01b81529192506001600160a01b03169063b46310f6908690610e8190859085906370a0823190610e259086906004016140c8565b60206040518083038186803b158015610e3d57600080fd5b505afa158015610e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610e759190810190613786565b9063ffffffff6129fd16565b6040518363ffffffff1660e01b8152600401610e9e929190614218565b600060405180830381600087803b158015610eb857600080fd5b505af1158015610ecc573d6000803e3d6000fd5b50505050610edb308583612a22565b604051630b32e9c760e31b81526001600160a01b038516906359974e3890610f0790849060040161426d565b602060405180830381600087803b158015610f2157600080fd5b505af1158015610f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610f59919081019061374a565b506005546040516370a0823160e01b81526001600160a01b039091169063b46310f6903390610f9a90869085906370a0823190610e259086906004016140d6565b6040518363ffffffff1660e01b8152600401610fb79291906140e4565b600060405180830381600087803b158015610fd157600080fd5b505af1158015610fe5573d6000803e3d6000fd5b50505050610ff4303384612a22565b600854611007908463ffffffff6129fd16565b6008555060019450505050505b90565b61101f612a65565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611049612a65565b600180546001600160a01b0319166001600160a01b0383161790556040517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906110949083906140c8565b60405180910390a150565b60006110a96127e2565b6001600160a01b03166316b2213f836040518263ffffffff1660e01b81526004016108d991906140c8565b60085481565b6040518060400160405280601781526020017f53796e746865746978204e6574776f726b20546f6b656e00000000000000000081525081565b60008061111e61292d565b600480546040516301670a7b60e21b81526001600160a01b039384169363059c29ec936111519390911691889101614218565b60206040518083038186803b15801561116957600080fd5b505afa15801561117d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506111a19190810190613786565b1192915050565b60006111b26127f6565b6111ba612a8f565b6111c48483612acf565b506004546111dd906001600160a01b0316858585612cad565b90505b9392505050565b6111ef612944565b6111f76127f6565b6111ff6127e2565b6004805460405163b06e8c6560e01b81526001600160a01b039384169363b06e8c65936112329390911691869101614218565b600060405180830381600087803b15801561124c57600080fd5b505af1158015611260573d6000803e3d6000fd5b505050505b50565b604051806040016040528060038152602001620a69cb60eb1b81525081565b60006060611293611ddd565b905060005b815181101561139a5760008282815181106112af57fe5b6020908102919091018101516000818152600a9092526040918290205460095492516321f8a72160e01b81529193506001600160a01b0390811692610100900416906321f8a7219061130590859060040161426d565b60206040518083038186803b15801561131d57600080fd5b505afa158015611331573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061135591908101906134ac565b6001600160a01b031614158061138057506000818152600a60205260409020546001600160a01b0316155b156113915760009350505050611014565b50600101611298565b50600191505090565b6113ab612944565b6113b36127f6565b6113bb6127e2565b6004805460405163159fa0d560e11b81526001600160a01b0393841693632b3f41aa93611232938793921691016140ff565b6113f5612db4565b6002546040516001600160a01b039091169063907dff979061141f9086908690869060200161431e565b604051602081830303815290604052600260405161143c90614050565b6040519081900381206001600160e01b031960e086901b16825261146b9392918a906000908190600401614398565b600060405180830381600087803b15801561148557600080fd5b505af1158015611499573d6000803e3d6000fd5b5050505050505050565b601281565b600085846114b682826128cc565b6114be6127f6565b6114c661292d565b6001600160a01b0316634f8633d2600460009054906101000a90046001600160a01b0316600460009054906101000a90046001600160a01b03168b8b8b600460009054906101000a90046001600160a01b031660008d8d6040518a63ffffffff1660e01b8152600401611541999897969594939291906141a0565b6040805180830381600087803b15801561155a57600080fd5b505af115801561156e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061159291908101906138c8565b5098975050505050505050565b60095460ff1681565b6115b0612944565b6115b86127f6565b6115c06127e2565b6004805460405163fd864ccf60e01b81526001600160a01b039384169363fd864ccf93611232938793921691016140ff565b60006115fc6127e2565b6001600160a01b03166332608039836040518263ffffffff1660e01b8152600401611627919061426d565b60206040518083038186803b15801561163f57600080fd5b505afa158015611653573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610929919081019061385c565b60006116816127e2565b6001600160a01b0316634e99bda96040518163ffffffff1660e01b815260040160206040518083038186803b1580156116b957600080fd5b505afa1580156116cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116f1919081019061374a565b905090565b6001546001600160a01b031681565b6000858461171382826128cc565b61171b6127f6565b61172361292d565b6001600160a01b0316634f8633d2600460009054906101000a90046001600160a01b0316600460009054906101000a90046001600160a01b03168b8b8b3260008d8d6040518a63ffffffff1660e01b81526004016115419998979695949392919061411a565b680a6f2dce8d0cae8d2f60bb1b81565b6117a1612dec565b5050565b60006117af6127e2565b6005546040516370a0823160e01b81526001600160a01b0392831692636bed04159286929116906370a08231906117ea9084906004016140c8565b60206040518083038186803b15801561180257600080fd5b505afa158015611816573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061183a9190810190613786565b6040518363ffffffff1660e01b8152600401611857929190614218565b604080518083038186803b15801561186e57600080fd5b505afa158015611882573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506118a69190810190613898565b5092915050565b6118b5612a65565b6005546000906001600160a01b03166370a082316118d1612e04565b6040518263ffffffff1660e01b81526004016118ed91906140c8565b60206040518083038186803b15801561190557600080fd5b505afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061193d9190810190613786565b90506117a161194a612e04565b611952612e1e565b83612e3a565b611960612db4565b6002546040516001600160a01b039091169063907dff979061198e90889088908890889088906020016142d2565b60405160208183030381529060405260026040516119ab9061407b565b60405180910390206119bc8b612fbc565b6000806040518763ffffffff1660e01b81526004016119e096959493929190614398565b600060405180830381600087803b1580156119fa57600080fd5b505af1158015611a0e573d6000803e3d6000fd5b50505050505050505050565b611a22612db4565b6002546040516001600160a01b039091169063907dff9790611a4a90859085906020016142a4565b6040516020818303038152906040526002604051611a6790614091565b6040518091039020611a7888612fbc565b6000806040518763ffffffff1660e01b8152600401611a9c96959493929190614398565b600060405180830381600087803b158015611ab657600080fd5b505af1158015611aca573d6000803e3d6000fd5b50505050505050565b6005546040516370a0823160e01b81526000916001600160a01b0316906370a08231906108d99085906004016140c8565b6060611b0e6127e2565b6001600160a01b03166372cb051f6040518163ffffffff1660e01b815260040160006040518083038186803b158015611b4657600080fd5b505afa158015611b5a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116f19190810190613715565b6060611b8c611ddd565b905060005b81518110156117a1576000828281518110611ba857fe5b602002602001015190506000600960019054906101000a90046001600160a01b03166001600160a01b031663dacb2d018384604051602001611bea91906140b2565b6040516020818303038152906040526040518363ffffffff1660e01b8152600401611c169291906142b2565b60206040518083038186803b158015611c2e57600080fd5b505afa158015611c42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611c6691908101906134ac565b6000838152600a60205260409081902080546001600160a01b0319166001600160a01b038416179055519091507f88a93678a3692f6789d9546fc621bf7234b101ddb7d4fe479455112831b8aa6890611cc2908490849061427b565b60405180910390a15050600101611b91565b6001546001600160a01b03163314611cfe5760405162461bcd60e51b8152600401610c2890614448565b6000546001546040517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c92611d41926001600160a01b03918216929116906140ff565b60405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000611d7a6127e2565b6001600160a01b031663835e119c836040518263ffffffff1660e01b8152600401611627919061426d565b6000611daf6127e2565b6001600160a01b0316637b1001b78360006040518363ffffffff1660e01b81526004016108d9929190614289565b606080611de8612fc8565b60408051600380825260808201909252919250606091906020820183803883390190505090506b526577617264457363726f7760a01b81600081518110611e2b57fe5b6020026020010181815250506d2932bbb0b93222b9b1b937bbab1960911b81600181518110611e5657fe5b6020026020010181815250506d537570706c795363686564756c6560901b81600281518110611e8157fe5b602002602001018181525050611e9782826130bb565b9250505090565b611ea6612944565b611eae6127f6565b611eb66127e2565b600480546040516285c0d160e31b81526001600160a01b039384169363042e0688936112329390911691869101614218565b6000546001600160a01b031681565b60008584611f0582826128cc565b611f0d6127f6565b611f1561292d565b6001600160a01b0316634f8633d28a600460009054906101000a90046001600160a01b03168b8b8b8f60008d8d6040518a63ffffffff1660e01b8152600401611f66999897969594939291906141a0565b6040805180830381600087803b158015611f7f57600080fd5b505af1158015611f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611fb791908101906138c8565b509998505050505050505050565b631cd554d160e21b81565b6007805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109b55780601f1061098a576101008083540402835291602001916109b5565b612033612a65565b600280546001600160a01b0319166001600160a01b0383161790556040517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e906110949083906140d6565b612086612944565b61208e6127f6565b6120966127e2565b600480546040516324beb82560e11b81526001600160a01b039384169363497d704a936120c79390911691016140c8565b600060405180830381600087803b1580156120e157600080fd5b505af11580156120f5573d6000803e3d6000fd5b505050505b565b60008060006121096127f6565b61211161292d565b600480546040516306c5a00b60e21b81526001600160a01b0393841693631b16802c936121449390911691899101614218565b606060405180830381600087803b15801561215e57600080fd5b505af1158015610bbc573d6000803e3d6000fd5b6003546001600160a01b031681565b612189613170565b600580546001600160a01b0319166001600160a01b038316179055611265816131f5565b60006121b76127e2565b6001600160a01b031663a311c7c2836040518263ffffffff1660e01b81526004016108d991906140c8565b60006121ec6127e2565b6001600160a01b031663a5fdc5de836040518263ffffffff1660e01b81526004016108d991906140c8565b60006122216127f6565b612229612a8f565b60045461223f906001600160a01b031683612acf565b50600454610a3f906001600160a01b03168484613267565b61225f612db4565b6002546040516001600160a01b039091169063907dff979061228790859085906020016142a4565b6040516020818303038152906040526002604051611a6790614045565b6122ac612944565b6122b46127f6565b6122bc6127e2565b6004805460405163644bb89960e11b81526001600160a01b039384169363c8977132936120c79390911691016140c8565b6122f5613274565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b61231f612944565b6123276127f6565b61232f6127e2565b60048054604051632694552d60e21b81526001600160a01b0393841693639a5154b4936123639388939216918791016141f0565b600060405180830381600087803b15801561237d57600080fd5b505af1158015612391573d6000803e3d6000fd5b505050505050565b600083826123a782826128cc565b6123af6127f6565b6123b761292d565b600480546040516327c319e960e11b81526001600160a01b0393841693634f8633d2936123f8938d939216918c918c918c91869160009183918391016141a0565b6040805180830381600087803b15801561241157600080fd5b505af1158015612425573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061244991908101906138c8565b50979650505050505050565b600061245f6127e2565b6001600160a01b031663d37c4d8b84846040518363ffffffff1660e01b815260040161248c929190614218565b60206040518083038186803b1580156124a457600080fd5b505afa1580156124b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506111e09190810190613786565b60006124e66127e2565b6001600160a01b0316637b1001b78360016040518363ffffffff1660e01b81526004016108d9929190614289565b6004546001600160a01b031681565b611265612dec565b60006125356127e2565b6001600160a01b031663dbf633406040518163ffffffff1660e01b815260040160206040518083038186803b15801561256d57600080fd5b505afa158015612581573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116f19190810190613786565b600554604051636eb1769f60e11b81526000916001600160a01b03169063dd62ed3e9061248c90869086906004016140ff565b60006125e2612a8f565b6125ea6127f6565b6000806125f56127e2565b6004805460405163298f137d60e21b81526001600160a01b039384169363a63c4df49361262a938b938b939091169101614226565b6040805180830381600087803b15801561264357600080fd5b505af1158015612657573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061267b91908101906138f8565b600454919350915061269b908690849084906001600160a01b03166132b3565b6004546126b39086906001600160a01b031684613267565b95945050505050565b6126c4612944565b6126cc6127f6565b6126d46127e2565b6004805460405163227635b160e11b81526001600160a01b03938416936344ec6b62936123639388939216918791016141f0565b6005546001600160a01b031681565b6002546001600160a01b031681565b6000838261273482826128cc565b61273c6127f6565b61274461292d565b600480546040516327c319e960e11b81526001600160a01b0393841693634f8633d293612786939091169182918c918c918c91859160009183918391016141a0565b6040805180830381600087803b15801561279f57600080fd5b505af11580156127b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506127d791908101906138c8565b509695505050505050565b60006116f16524b9b9bab2b960d11b61332f565b6002546001600160a01b0316331480159061281c57506003546001600160a01b03163314155b801561283357506004546001600160a01b03163314155b156120fa57600480546001600160a01b03191633179055565b6002546040516001600160a01b039091169063907dff979061287290849060200161426d565b604051602081830303815290604052600360405161288f90614086565b60405180910390206128a088612fbc565b6128a988612fbc565b60006040518763ffffffff1660e01b8152600401611a9c969594939291906143d2565b6128d461338c565b6001600160a01b0316631ce00ba283836040518363ffffffff1660e01b81526004016129019291906142a4565b60006040518083038186803b15801561291957600080fd5b505afa158015612391573d6000803e3d6000fd5b60006116f16822bc31b430b733b2b960b91b61332f565b61294c61338c565b6001600160a01b0316637c3125416040518163ffffffff1660e01b815260040160006040518083038186803b15801561298457600080fd5b505afa1580156120f5573d6000803e3d6000fd5b60006116f1722932bbb0b93239a234b9ba3934b13aba34b7b760691b61332f565b60006116f16d537570706c795363686564756c6560901b61332f565b6000828211156129f75760405162461bcd60e51b8152600401610c2890614488565b50900390565b6000828201838110156111e05760405162461bcd60e51b8152600401610c2890614478565b6002546040516001600160a01b039091169063907dff9790612a4890849060200161426d565b604051602081830303815290604052600360405161288f906140bd565b6000546001600160a01b031633146120fa5760405162461bcd60e51b8152600401610c28906144d8565b612a9761338c565b6001600160a01b031663086dabd16040518163ffffffff1660e01b815260040160006040518083038186803b15801561298457600080fd5b600080612ada6133a6565b6001600160a01b0316638b3f8088856040518263ffffffff1660e01b8152600401612b0591906140c8565b604080518083038186803b158015612b1c57600080fd5b505afa158015612b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612b5491908101906138f8565b5090508015610a3f57600080612b686127e2565b6005546040516370a0823160e01b81526001600160a01b0392831692636bed0415928a929116906370a0823190612ba39084906004016140c8565b60206040518083038186803b158015612bbb57600080fd5b505afa158015612bcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612bf39190810190613786565b6040518363ffffffff1660e01b8152600401612c10929190614218565b604080518083038186803b158015612c2757600080fd5b505afa158015612c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612c5f9190810190613898565b9150915081851115612c835760405162461bcd60e51b8152600401610c28906144a8565b8015612ca15760405162461bcd60e51b8152600401610c28906144b8565b50600195945050505050565b600554604051636eb1769f60e11b81526000916001600160a01b03169063da46098c9086908890612d4e908790869063dd62ed3e90612cf290879087906004016140ff565b60206040518083038186803b158015612d0a57600080fd5b505afa158015612d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612d429190810190613786565b9063ffffffff6129d516565b6040518463ffffffff1660e01b8152600401612d6c939291906141f0565b600060405180830381600087803b158015612d8657600080fd5b505af1158015612d9a573d6000803e3d6000fd5b50505050612da9848484612e3a565b90505b949350505050565b612dbc61292d565b6001600160a01b0316336001600160a01b0316146120fa5760405162461bcd60e51b8152600401610c2890614468565b60405162461bcd60e51b8152600401610c2890614498565b60006116f16b526577617264457363726f7760a01b61332f565b60006116f16d2932bbb0b93222b9b1b937bbab1960911b61332f565b60006001600160a01b03831615801590612e5d57506001600160a01b0383163014155b8015612e7757506002546001600160a01b03848116911614155b612e935760405162461bcd60e51b8152600401610c2890614438565b6005546040516370a0823160e01b81526001600160a01b039091169063b46310f6908690612ed390869085906370a0823190612cf29086906004016140c8565b6040518363ffffffff1660e01b8152600401612ef0929190614218565b600060405180830381600087803b158015612f0a57600080fd5b505af1158015612f1e573d6000803e3d6000fd5b50506005546040516370a0823160e01b81526001600160a01b03909116925063b46310f691508590612f6290869085906370a0823190610e259086906004016140c8565b6040518363ffffffff1660e01b8152600401612f7f929190614218565b600060405180830381600087803b158015612f9957600080fd5b505af1158015612fad573d6000803e3d6000fd5b50505050610a3f848484612a22565b6001600160a01b031690565b60408051600580825260c082019092526060916020820160a0803883390190505090506d53796e746865746978537461746560901b8160008151811061300a57fe5b6020026020010181815250506b53797374656d53746174757360a01b8160018151811061303357fe5b6020026020010181815250506822bc31b430b733b2b960b91b8160028151811061305957fe5b6020026020010181815250506524b9b9bab2b960d11b8160038151811061307c57fe5b602002602001018181525050722932bbb0b93239a234b9ba3934b13aba34b7b760691b816004815181106130ac57fe5b60200260200101818152505090565b606081518351016040519080825280602002602001820160405280156130eb578160200160208202803883390190505b50905060005b835181101561312d5783818151811061310657fe5b602002602001015182828151811061311a57fe5b60209081029190910101526001016130f1565b5060005b82518110156118a65782818151811061314657fe5b602002602001015182828651018151811061315d57fe5b6020908102919091010152600101613131565b6002546001600160a01b0316331480159061319657506003546001600160a01b03163314155b80156131ad57506004546001600160a01b03163314155b156131c557600480546001600160a01b031916331790555b6000546004546001600160a01b039081169116146120fa5760405162461bcd60e51b8152600401610c2890614458565b6002546040516001600160a01b039091169063907dff979061321b9084906020016140c8565b60405160208183030381529060405260016040516132389061409c565b6040519081900381206001600160e01b031960e086901b16825261123293929160009081908190600401614339565b60006111dd848484612e3a565b6002546001600160a01b031633148061329757506003546001600160a01b031633145b6120fa5760405162461bcd60e51b8152600401610c28906144f8565b6002546040516001600160a01b039091169063907dff97906132dd90869086908690602001614523565b60405160208183030381529060405260026040516132fa906140a7565b604051809103902061330b89612fbc565b6000806040518763ffffffff1660e01b815260040161146b96959493929190614398565b6000818152600a602090815260408083205490516001600160a01b03909116918215159161335f9186910161405b565b604051602081830303815290604052906118a65760405162461bcd60e51b8152600401610c289190614427565b60006116f16b53797374656d53746174757360a01b61332f565b60006116f16d53796e746865746978537461746560901b61332f565b80356109298161461a565b80516109298161461a565b600082601f8301126133e957600080fd5b81516133fc6133f782614566565b61453f565b9150818183526020840193506020810190508385602084028201111561342157600080fd5b60005b8381101561344d5781613437888261346d565b8452506020928301929190910190600101613424565b5050505092915050565b80516109298161462e565b803561092981614637565b805161092981614637565b805161092981614640565b803561092981614640565b6000602082840312156134a057600080fd5b6000612dac84846133c2565b6000602082840312156134be57600080fd5b6000612dac84846133cd565b600080604083850312156134dd57600080fd5b60006134e985856133c2565b92505060206134fa858286016133c2565b9150509250929050565b60008060006060848603121561351957600080fd5b600061352586866133c2565b9350506020613536868287016133c2565b925050604061354786828701613462565b9150509250925092565b6000806040838503121561356457600080fd5b600061357085856133c2565b92505060206134fa85828601613462565b60008060006060848603121561359657600080fd5b60006135a286866133c2565b935050602061353686828701613462565b600080600080608085870312156135c957600080fd5b60006135d587876133c2565b94505060206135e687828801613462565b93505060406135f787828801613462565b925050606061360887828801613462565b91505092959194509250565b60008060008060008060c0878903121561362d57600080fd5b600061363989896133c2565b965050602061364a89828a01613462565b955050604061365b89828a01613462565b945050606061366c89828a01613462565b935050608061367d89828a016133c2565b92505060a061368e89828a01613462565b9150509295509295509295565b60008060008060008060c087890312156136b457600080fd5b60006136c089896133c2565b96505060206136d189828a01613462565b95505060406136e289828a01613462565b94505060606136f389828a01613462565b935050608061370489828a01613462565b92505060a061368e89828a016133c2565b60006020828403121561372757600080fd5b815167ffffffffffffffff81111561373e57600080fd5b612dac848285016133d8565b60006020828403121561375c57600080fd5b6000612dac8484613457565b60006020828403121561377a57600080fd5b6000612dac8484613462565b60006020828403121561379857600080fd5b6000612dac848461346d565b600080600080608085870312156137ba57600080fd5b60006135d58787613462565b6000806000606084860312156137db57600080fd5b60006135a28686613462565b600080600080600060a086880312156137ff57600080fd5b600061380b8888613462565b955050602061381c88828901613462565b945050604061382d88828901613462565b935050606061383e888289016133c2565b925050608061384f88828901613462565b9150509295509295909350565b60006020828403121561386e57600080fd5b6000612dac8484613478565b60006020828403121561388c57600080fd5b6000612dac8484613483565b600080604083850312156138ab57600080fd5b60006138b7858561346d565b92505060206134fa85828601613457565b600080604083850312156138db57600080fd5b60006138e7858561346d565b92505060206134fa85828601613478565b6000806040838503121561390b57600080fd5b6000613917858561346d565b92505060206134fa8582860161346d565b60008060006060848603121561393d57600080fd5b6000613949868661346d565b935050602061395a8682870161346d565b92505060406135478682870161346d565b600061397783836139f9565b505060200190565b613988816145c0565b82525050565b6139888161459f565b60006139a28261458d565b6139ac8185614591565b93506139b783614587565b8060005b838110156139e55781516139cf888261396b565b97506139da83614587565b9250506001016139bb565b509495945050505050565b613988816145aa565b61398881611014565b613988613a0e82611014565b611014565b6000613a1e8261458d565b613a288185614591565b9350613a388185602086016145e4565b613a4181614610565b9093019392505050565b613988816145af565b613988816145cb565b613988816145d9565b6000613a73601f83614591565b7f43616e6e6f74207472616e7366657220746f2074686973206164647265737300815260200192915050565b6000613aac603583614591565b7f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7581527402063616e20616363657074206f776e65727368697605c1b602082015260400192915050565b6000613b03601383614591565b7227bbb732b91037b7363c90333ab731ba34b7b760691b815260200192915050565b6000613b32601e83614591565b7f4f6e6c792045786368616e6765722063616e20696e766f6b6520746869730000815260200192915050565b6000613b6b601b83614591565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b6000613ba460288361459a565b7f45786368616e67655265636c61696d28616464726573732c627974657333322c81526775696e743235362960c01b602082015260280192915050565b6000613bee601e83614591565b7f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815260200192915050565b6000613c27601b83614591565b7f43616e6e6f742062652072756e206f6e2074686973206c617965720000000000815260200192915050565b6000613c6060318361459a565b7f45786368616e6765547261636b696e6728627974657333322c627974657333328152702c75696e743235362c75696e743235362960781b602082015260310192915050565b6000613cb360118361459a565b70026b4b9b9b4b7339030b2323932b9b99d1607d1b815260110192915050565b6000613ce0603e8361459a565b7f53796e746845786368616e676528616464726573732c627974657333322c756981527f6e743235362c627974657333322c75696e743235362c616464726573732900006020820152603e0192915050565b6000613d3f602683614591565b7f43616e6e6f74207472616e73666572207374616b6564206f7220657363726f778152650cac840a69cb60d31b602082015260400192915050565b6000613d87601e83614591565b7f412073796e7468206f7220534e58207261746520697320696e76616c69640000815260200192915050565b6000613dc0601b83614591565b7f52657761726473446973747269627574696f6e206e6f74207365740000000000815260200192915050565b6000613df9602f83614591565b7f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726681526e37b936903a3434b99030b1ba34b7b760891b602082015260400192915050565b6000613e4a60218361459a565b7f417070726f76616c28616464726573732c616464726573732c75696e743235368152602960f81b602082015260210192915050565b6000613e8d60278361459a565b7f45786368616e676552656261746528616464726573732c627974657333322c75815266696e743235362960c81b602082015260270192915050565b6000613ed6601a8361459a565b7f546f6b656e5374617465557064617465642861646472657373290000000000008152601a0192915050565b6000613f0f60328361459a565b7f4163636f756e744c69717569646174656428616464726573732c75696e743235815271362c75696e743235362c616464726573732960701b602082015260320192915050565b6000613f6360198361459a565b7f5265736f6c766572206d697373696e67207461726765743a2000000000000000815260190192915050565b6000613f9c601583614591565b744e6f20737570706c79206973206d696e7461626c6560581b815260200192915050565b6000613fcd60218361459a565b7f5472616e7366657228616464726573732c616464726573732c75696e743235368152602960f81b602082015260210192915050565b6000614010601783614591565b7f4f6e6c79207468652070726f78792063616e2063616c6c000000000000000000815260200192915050565b613988816145ba565b600061092982613b97565b600061092982613c53565b600061406682613ca6565b91506140728284613a02565b50602001919050565b600061092982613cd3565b600061092982613e3d565b600061092982613e80565b600061092982613ec9565b600061092982613f02565b600061406682613f56565b600061092982613fc0565b60208101610929828461398e565b60208101610929828461397f565b604081016140f2828561397f565b6111e060208301846139f9565b6040810161410d828561398e565b6111e0602083018461398e565b6101208101614129828c61398e565b614136602083018b61398e565b614143604083018a6139f9565b61415060608301896139f9565b61415d60808301886139f9565b61416a60a083018761397f565b61417760c08301866139f0565b61418460e083018561398e565b6141926101008301846139f9565b9a9950505050505050505050565b61012081016141af828c61398e565b6141bc602083018b61398e565b6141c9604083018a6139f9565b6141d660608301896139f9565b6141e360808301886139f9565b61416a60a083018761398e565b606081016141fe828661398e565b61420b602083018561398e565b612dac60408301846139f9565b604081016140f2828561398e565b60608101614234828661398e565b61424160208301856139f9565b612dac604083018461398e565b602080825281016111e08184613997565b6020810161092982846139f0565b6020810161092982846139f9565b6040810161410d82856139f9565b6040810161429782856139f9565b6111e060208301846139f0565b604081016140f282856139f9565b604081016142c082856139f9565b81810360208301526111dd8184613a13565b60a081016142e082886139f9565b6142ed60208301876139f9565b6142fa60408301866139f9565b61430760608301856139f9565b614314608083018461398e565b9695505050505050565b6060810161432c82866139f9565b61420b60208301856139f9565b60c0808252810161434a8189613a13565b90506143596020830188613a5d565b61436660408301876139f9565b6143736060830186613a54565b6143806080830185613a54565b61438d60a0830184613a54565b979650505050505050565b60c080825281016143a98189613a13565b90506143b86020830188613a5d565b6143c560408301876139f9565b61437360608301866139f9565b60c080825281016143e38189613a13565b90506143f26020830188613a5d565b6143ff60408301876139f9565b61440c60608301866139f9565b61438060808301856139f9565b602081016109298284613a4b565b602080825281016111e08184613a13565b6020808252810161092981613a66565b6020808252810161092981613a9f565b6020808252810161092981613af6565b6020808252810161092981613b25565b6020808252810161092981613b5e565b6020808252810161092981613be1565b6020808252810161092981613c1a565b6020808252810161092981613d32565b6020808252810161092981613d7a565b6020808252810161092981613db3565b6020808252810161092981613dec565b6020808252810161092981613f8f565b6020808252810161092981614003565b6040810161451682856139f9565b6111e06020830184613a4b565b6060810161423482866139f9565b60208101610929828461403c565b60405181810167ffffffffffffffff8111828210171561455e57600080fd5b604052919050565b600067ffffffffffffffff82111561457d57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b919050565b600061092982612fbc565b151590565b60006109298261459f565b60ff1690565b6000610929826145af565b6000610929613a0e83611014565b600061092982611014565b60005b838110156145ff5781810151838201526020016145e7565b838111156120f55750506000910152565b601f01601f191690565b6146238161459f565b811461126557600080fd5b614623816145aa565b61462381611014565b614623816145af56fea365627a7a72315820ddbbd29049fe7f35134376863ea122b43aa41407200ca3b43f2b30475b38aeed6c6578706572696d656e74616cf564736f6c63430005100040000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f0000000000000000000000005b1b5fea1b99d83ad479df0c222f0492385381dd000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000000000000000000000bd793192bb4b7244982d810000000000000000000000004e3b31eb0e5cb73641ee1e65e7dcefe520ba3ef2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106104125760003560e01c80637418536011610220578063a9059cbb11610130578063d8a1f76f116100b8578063e8e09b8b11610087578063e8e09b8b1461085a578063e90dd9e21461086d578063ec55688914610875578063edef719a1461061d578063ee52a2f31461087d57610412565b8063d8a1f76f14610819578063dbf633401461082c578063dd62ed3e14610834578063e6203ed11461084757610412565b8063c2bf3880116100ff578063c2bf3880146107c5578063c836fa0a146107d8578063d37c4d8b146107eb578063d60888e4146107fe578063d67bdd251461081157610412565b8063a9059cbb14610784578063ace88afd14610797578063af086c7e146107aa578063bc67f832146107b257610412565b80639324cac7116101b3578063987757dd11610182578063987757dd146107305780639cbdaeb6146107435780639f7698071461074b578063a311c7c21461075e578063a5fdc5de1461077157610412565b80639324cac71461070557806395d89b411461070d57806397107d6d146107155780639741fb221461072857610412565b8063899ffef4116101ef578063899ffef4146106cf5780638a290014146106d75780638da5cb5b146106ea57806391e56b68146106f257610412565b8063741853601461069957806379ba5097146106a1578063835e119c146106a957806383d625d4146106bc57610412565b80632c955fa7116103265780635af090ef116102ae5780636b76222f1161027d5780636b76222f146106435780636c00f3101461064b5780636f01a9861461065e57806370a082311461067157806372cb051f1461068457610412565b80635af090ef14610602578063614d08f814610615578063666ed4f11461061d5780636ac0bf9c1461063057610412565b8063313ce567116102f5578063313ce567146105b7578063320223db146105bf57806332608039146105d25780634e99bda9146105e557806353a47bb7146105ed57610412565b80632c955fa7146105695780632d3169eb1461057c5780632e0f26251461058f57806330ead760146105a457610412565b80631627540c116103a95780631fce304d116103785780631fce304d1461052057806323b872dd14610533578063295da87d146105465780632a905318146105595780632af64bd31461056157610412565b80631627540c146104ea57806316b2213f146104fd57806318160ddd14610510578063188214001461051857610412565b80630e30963c116103e55780630e30963c1461048a5780631137aedf146104ab5780631249c58b146104cd578063131b0ae7146104d557610412565b806304f3bcec1461041757806305b3c1c91461043557806306fdde0314610455578063095ea7b31461046a575b600080fd5b61041f610890565b60405161042c9190614419565b60405180910390f35b61044861044336600461348e565b6108a4565b60405161042c919061426d565b61045d61092f565b60405161042c9190614427565b61047d610478366004613551565b6109bd565b60405161042c919061425f565b61049d6104983660046137a4565b610a49565b60405161042c929190614508565b6104be6104b936600461348e565b610b58565b60405161042c9392919061431e565b61047d610bed565b6104e86104e336600461348e565b611017565b005b6104e86104f836600461348e565b611041565b61044861050b36600461348e565b61109f565b6104486110d4565b61045d6110da565b61047d61052e366004613768565b611113565b61047d610541366004613504565b6111a8565b6104e8610554366004613768565b6111e7565b61045d611268565b61047d611287565b6104e861057736600461348e565b6113a3565b6104e861058a3660046137a4565b6113ed565b6105976114a3565b60405161042c9190614531565b6104486105b23660046137e7565b6114a8565b61059761159f565b6104e86105cd36600461348e565b6115a8565b61041f6105e0366004613768565b6115f2565b61047d611677565b6105f56116f6565b60405161042c91906140c8565b6104486106103660046137e7565b611705565b610448611789565b6104e861062b366004613551565b611799565b61044861063e36600461348e565b6117a5565b6104e86118ad565b6104e861065936600461369b565b611958565b6104e861066c366004613581565b611a1a565b61044861067f36600461348e565b611ad3565b61068c611b04565b60405161042c919061424e565b6104e8611b82565b6104e8611cd4565b61041f6106b7366004613768565b611d70565b6104486106ca366004613768565b611da5565b61068c611ddd565b6104e86106e5366004613768565b611e9e565b6105f5611ee8565b610448610700366004613614565b611ef7565b610448611fc5565b61045d611fd0565b6104e861072336600461348e565b61202b565b6104e861207e565b6104be61073e366004613768565b6120fc565b61041f612172565b6104e861075936600461387a565b612181565b61044861076c36600461348e565b6121ad565b61044861077f36600461348e565b6121e2565b61047d610792366004613551565b612217565b6104e86107a5366004613581565b612257565b6104e86122a4565b6104e86107c036600461348e565b6122ed565b6104e86107d3366004613551565b612317565b6104486107e63660046135b3565b612399565b6104486107f9366004613551565b612455565b61044861080c366004613768565b6124dc565b6105f5612514565b6104e8610827366004613768565b612523565b61044861252b565b6104486108423660046134ca565b6125a5565b61047d610855366004613551565b6125d8565b6104e8610868366004613551565b6126bc565b61041f612708565b61041f612717565b61044861088b3660046137c6565b612726565b60095461010090046001600160a01b031681565b60006108ae6127e2565b6001600160a01b03166305b3c1c9836040518263ffffffff1660e01b81526004016108d991906140c8565b60206040518083038186803b1580156108f157600080fd5b505afa158015610905573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506109299190810190613786565b92915050565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109b55780601f1061098a576101008083540402835291602001916109b5565b820191906000526020600020905b81548152906001019060200180831161099857829003601f168201915b505050505081565b60006109c76127f6565b60048054600554604051633691826360e21b81526001600160a01b0392831693919092169163da46098c91610a0291859189918991016141f0565b600060405180830381600087803b158015610a1c57600080fd5b505af1158015610a30573d6000803e3d6000fd5b50505050610a3f81858561284c565b5060019392505050565b6000808584610a5882826128cc565b610a606127f6565b610a6861292d565b6001600160a01b0316634f8633d2600460009054906101000a90046001600160a01b0316600460009054906101000a90046001600160a01b03168b8b8b600460009054906101000a90046001600160a01b03166001600460009054906101000a90046001600160a01b03168e6040518a63ffffffff1660e01b8152600401610af8999897969594939291906141a0565b6040805180830381600087803b158015610b1157600080fd5b505af1158015610b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b4991908101906138c8565b93509350505094509492505050565b6000806000610b656127e2565b6001600160a01b0316631137aedf856040518263ffffffff1660e01b8152600401610b9091906140c8565b60606040518083038186803b158015610ba857600080fd5b505afa158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610be09190810190613928565b9250925092509193909250565b6000610bf7612944565b6000610c01612998565b6001600160a01b03161415610c315760405162461bcd60e51b8152600401610c28906144c8565b60405180910390fd5b6000610c3b6129b9565b90506000610c47612998565b90506000826001600160a01b031663cc5c095c6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c8457600080fd5b505afa158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610cbc9190810190613786565b905060008111610cde5760405162461bcd60e51b8152600401610c28906144e8565b604051637e7961d760e01b81526001600160a01b03841690637e7961d790610d0a90849060040161426d565b602060405180830381600087803b158015610d2457600080fd5b505af1158015610d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610d5c919081019061374a565b506000836001600160a01b0316639bdd7ac76040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9857600080fd5b505afa158015610dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610dd09190810190613786565b90506000610de4838363ffffffff6129d516565b6005546040516370a0823160e01b81529192506001600160a01b03169063b46310f6908690610e8190859085906370a0823190610e259086906004016140c8565b60206040518083038186803b158015610e3d57600080fd5b505afa158015610e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610e759190810190613786565b9063ffffffff6129fd16565b6040518363ffffffff1660e01b8152600401610e9e929190614218565b600060405180830381600087803b158015610eb857600080fd5b505af1158015610ecc573d6000803e3d6000fd5b50505050610edb308583612a22565b604051630b32e9c760e31b81526001600160a01b038516906359974e3890610f0790849060040161426d565b602060405180830381600087803b158015610f2157600080fd5b505af1158015610f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610f59919081019061374a565b506005546040516370a0823160e01b81526001600160a01b039091169063b46310f6903390610f9a90869085906370a0823190610e259086906004016140d6565b6040518363ffffffff1660e01b8152600401610fb79291906140e4565b600060405180830381600087803b158015610fd157600080fd5b505af1158015610fe5573d6000803e3d6000fd5b50505050610ff4303384612a22565b600854611007908463ffffffff6129fd16565b6008555060019450505050505b90565b61101f612a65565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611049612a65565b600180546001600160a01b0319166001600160a01b0383161790556040517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906110949083906140c8565b60405180910390a150565b60006110a96127e2565b6001600160a01b03166316b2213f836040518263ffffffff1660e01b81526004016108d991906140c8565b60085481565b6040518060400160405280601781526020017f53796e746865746978204e6574776f726b20546f6b656e00000000000000000081525081565b60008061111e61292d565b600480546040516301670a7b60e21b81526001600160a01b039384169363059c29ec936111519390911691889101614218565b60206040518083038186803b15801561116957600080fd5b505afa15801561117d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506111a19190810190613786565b1192915050565b60006111b26127f6565b6111ba612a8f565b6111c48483612acf565b506004546111dd906001600160a01b0316858585612cad565b90505b9392505050565b6111ef612944565b6111f76127f6565b6111ff6127e2565b6004805460405163b06e8c6560e01b81526001600160a01b039384169363b06e8c65936112329390911691869101614218565b600060405180830381600087803b15801561124c57600080fd5b505af1158015611260573d6000803e3d6000fd5b505050505b50565b604051806040016040528060038152602001620a69cb60eb1b81525081565b60006060611293611ddd565b905060005b815181101561139a5760008282815181106112af57fe5b6020908102919091018101516000818152600a9092526040918290205460095492516321f8a72160e01b81529193506001600160a01b0390811692610100900416906321f8a7219061130590859060040161426d565b60206040518083038186803b15801561131d57600080fd5b505afa158015611331573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061135591908101906134ac565b6001600160a01b031614158061138057506000818152600a60205260409020546001600160a01b0316155b156113915760009350505050611014565b50600101611298565b50600191505090565b6113ab612944565b6113b36127f6565b6113bb6127e2565b6004805460405163159fa0d560e11b81526001600160a01b0393841693632b3f41aa93611232938793921691016140ff565b6113f5612db4565b6002546040516001600160a01b039091169063907dff979061141f9086908690869060200161431e565b604051602081830303815290604052600260405161143c90614050565b6040519081900381206001600160e01b031960e086901b16825261146b9392918a906000908190600401614398565b600060405180830381600087803b15801561148557600080fd5b505af1158015611499573d6000803e3d6000fd5b5050505050505050565b601281565b600085846114b682826128cc565b6114be6127f6565b6114c661292d565b6001600160a01b0316634f8633d2600460009054906101000a90046001600160a01b0316600460009054906101000a90046001600160a01b03168b8b8b600460009054906101000a90046001600160a01b031660008d8d6040518a63ffffffff1660e01b8152600401611541999897969594939291906141a0565b6040805180830381600087803b15801561155a57600080fd5b505af115801561156e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061159291908101906138c8565b5098975050505050505050565b60095460ff1681565b6115b0612944565b6115b86127f6565b6115c06127e2565b6004805460405163fd864ccf60e01b81526001600160a01b039384169363fd864ccf93611232938793921691016140ff565b60006115fc6127e2565b6001600160a01b03166332608039836040518263ffffffff1660e01b8152600401611627919061426d565b60206040518083038186803b15801561163f57600080fd5b505afa158015611653573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610929919081019061385c565b60006116816127e2565b6001600160a01b0316634e99bda96040518163ffffffff1660e01b815260040160206040518083038186803b1580156116b957600080fd5b505afa1580156116cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116f1919081019061374a565b905090565b6001546001600160a01b031681565b6000858461171382826128cc565b61171b6127f6565b61172361292d565b6001600160a01b0316634f8633d2600460009054906101000a90046001600160a01b0316600460009054906101000a90046001600160a01b03168b8b8b3260008d8d6040518a63ffffffff1660e01b81526004016115419998979695949392919061411a565b680a6f2dce8d0cae8d2f60bb1b81565b6117a1612dec565b5050565b60006117af6127e2565b6005546040516370a0823160e01b81526001600160a01b0392831692636bed04159286929116906370a08231906117ea9084906004016140c8565b60206040518083038186803b15801561180257600080fd5b505afa158015611816573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061183a9190810190613786565b6040518363ffffffff1660e01b8152600401611857929190614218565b604080518083038186803b15801561186e57600080fd5b505afa158015611882573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506118a69190810190613898565b5092915050565b6118b5612a65565b6005546000906001600160a01b03166370a082316118d1612e04565b6040518263ffffffff1660e01b81526004016118ed91906140c8565b60206040518083038186803b15801561190557600080fd5b505afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061193d9190810190613786565b90506117a161194a612e04565b611952612e1e565b83612e3a565b611960612db4565b6002546040516001600160a01b039091169063907dff979061198e90889088908890889088906020016142d2565b60405160208183030381529060405260026040516119ab9061407b565b60405180910390206119bc8b612fbc565b6000806040518763ffffffff1660e01b81526004016119e096959493929190614398565b600060405180830381600087803b1580156119fa57600080fd5b505af1158015611a0e573d6000803e3d6000fd5b50505050505050505050565b611a22612db4565b6002546040516001600160a01b039091169063907dff9790611a4a90859085906020016142a4565b6040516020818303038152906040526002604051611a6790614091565b6040518091039020611a7888612fbc565b6000806040518763ffffffff1660e01b8152600401611a9c96959493929190614398565b600060405180830381600087803b158015611ab657600080fd5b505af1158015611aca573d6000803e3d6000fd5b50505050505050565b6005546040516370a0823160e01b81526000916001600160a01b0316906370a08231906108d99085906004016140c8565b6060611b0e6127e2565b6001600160a01b03166372cb051f6040518163ffffffff1660e01b815260040160006040518083038186803b158015611b4657600080fd5b505afa158015611b5a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116f19190810190613715565b6060611b8c611ddd565b905060005b81518110156117a1576000828281518110611ba857fe5b602002602001015190506000600960019054906101000a90046001600160a01b03166001600160a01b031663dacb2d018384604051602001611bea91906140b2565b6040516020818303038152906040526040518363ffffffff1660e01b8152600401611c169291906142b2565b60206040518083038186803b158015611c2e57600080fd5b505afa158015611c42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611c6691908101906134ac565b6000838152600a60205260409081902080546001600160a01b0319166001600160a01b038416179055519091507f88a93678a3692f6789d9546fc621bf7234b101ddb7d4fe479455112831b8aa6890611cc2908490849061427b565b60405180910390a15050600101611b91565b6001546001600160a01b03163314611cfe5760405162461bcd60e51b8152600401610c2890614448565b6000546001546040517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c92611d41926001600160a01b03918216929116906140ff565b60405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000611d7a6127e2565b6001600160a01b031663835e119c836040518263ffffffff1660e01b8152600401611627919061426d565b6000611daf6127e2565b6001600160a01b0316637b1001b78360006040518363ffffffff1660e01b81526004016108d9929190614289565b606080611de8612fc8565b60408051600380825260808201909252919250606091906020820183803883390190505090506b526577617264457363726f7760a01b81600081518110611e2b57fe5b6020026020010181815250506d2932bbb0b93222b9b1b937bbab1960911b81600181518110611e5657fe5b6020026020010181815250506d537570706c795363686564756c6560901b81600281518110611e8157fe5b602002602001018181525050611e9782826130bb565b9250505090565b611ea6612944565b611eae6127f6565b611eb66127e2565b600480546040516285c0d160e31b81526001600160a01b039384169363042e0688936112329390911691869101614218565b6000546001600160a01b031681565b60008584611f0582826128cc565b611f0d6127f6565b611f1561292d565b6001600160a01b0316634f8633d28a600460009054906101000a90046001600160a01b03168b8b8b8f60008d8d6040518a63ffffffff1660e01b8152600401611f66999897969594939291906141a0565b6040805180830381600087803b158015611f7f57600080fd5b505af1158015611f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611fb791908101906138c8565b509998505050505050505050565b631cd554d160e21b81565b6007805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109b55780601f1061098a576101008083540402835291602001916109b5565b612033612a65565b600280546001600160a01b0319166001600160a01b0383161790556040517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e906110949083906140d6565b612086612944565b61208e6127f6565b6120966127e2565b600480546040516324beb82560e11b81526001600160a01b039384169363497d704a936120c79390911691016140c8565b600060405180830381600087803b1580156120e157600080fd5b505af11580156120f5573d6000803e3d6000fd5b505050505b565b60008060006121096127f6565b61211161292d565b600480546040516306c5a00b60e21b81526001600160a01b0393841693631b16802c936121449390911691899101614218565b606060405180830381600087803b15801561215e57600080fd5b505af1158015610bbc573d6000803e3d6000fd5b6003546001600160a01b031681565b612189613170565b600580546001600160a01b0319166001600160a01b038316179055611265816131f5565b60006121b76127e2565b6001600160a01b031663a311c7c2836040518263ffffffff1660e01b81526004016108d991906140c8565b60006121ec6127e2565b6001600160a01b031663a5fdc5de836040518263ffffffff1660e01b81526004016108d991906140c8565b60006122216127f6565b612229612a8f565b60045461223f906001600160a01b031683612acf565b50600454610a3f906001600160a01b03168484613267565b61225f612db4565b6002546040516001600160a01b039091169063907dff979061228790859085906020016142a4565b6040516020818303038152906040526002604051611a6790614045565b6122ac612944565b6122b46127f6565b6122bc6127e2565b6004805460405163644bb89960e11b81526001600160a01b039384169363c8977132936120c79390911691016140c8565b6122f5613274565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b61231f612944565b6123276127f6565b61232f6127e2565b60048054604051632694552d60e21b81526001600160a01b0393841693639a5154b4936123639388939216918791016141f0565b600060405180830381600087803b15801561237d57600080fd5b505af1158015612391573d6000803e3d6000fd5b505050505050565b600083826123a782826128cc565b6123af6127f6565b6123b761292d565b600480546040516327c319e960e11b81526001600160a01b0393841693634f8633d2936123f8938d939216918c918c918c91869160009183918391016141a0565b6040805180830381600087803b15801561241157600080fd5b505af1158015612425573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061244991908101906138c8565b50979650505050505050565b600061245f6127e2565b6001600160a01b031663d37c4d8b84846040518363ffffffff1660e01b815260040161248c929190614218565b60206040518083038186803b1580156124a457600080fd5b505afa1580156124b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506111e09190810190613786565b60006124e66127e2565b6001600160a01b0316637b1001b78360016040518363ffffffff1660e01b81526004016108d9929190614289565b6004546001600160a01b031681565b611265612dec565b60006125356127e2565b6001600160a01b031663dbf633406040518163ffffffff1660e01b815260040160206040518083038186803b15801561256d57600080fd5b505afa158015612581573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116f19190810190613786565b600554604051636eb1769f60e11b81526000916001600160a01b03169063dd62ed3e9061248c90869086906004016140ff565b60006125e2612a8f565b6125ea6127f6565b6000806125f56127e2565b6004805460405163298f137d60e21b81526001600160a01b039384169363a63c4df49361262a938b938b939091169101614226565b6040805180830381600087803b15801561264357600080fd5b505af1158015612657573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061267b91908101906138f8565b600454919350915061269b908690849084906001600160a01b03166132b3565b6004546126b39086906001600160a01b031684613267565b95945050505050565b6126c4612944565b6126cc6127f6565b6126d46127e2565b6004805460405163227635b160e11b81526001600160a01b03938416936344ec6b62936123639388939216918791016141f0565b6005546001600160a01b031681565b6002546001600160a01b031681565b6000838261273482826128cc565b61273c6127f6565b61274461292d565b600480546040516327c319e960e11b81526001600160a01b0393841693634f8633d293612786939091169182918c918c918c91859160009183918391016141a0565b6040805180830381600087803b15801561279f57600080fd5b505af11580156127b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506127d791908101906138c8565b509695505050505050565b60006116f16524b9b9bab2b960d11b61332f565b6002546001600160a01b0316331480159061281c57506003546001600160a01b03163314155b801561283357506004546001600160a01b03163314155b156120fa57600480546001600160a01b03191633179055565b6002546040516001600160a01b039091169063907dff979061287290849060200161426d565b604051602081830303815290604052600360405161288f90614086565b60405180910390206128a088612fbc565b6128a988612fbc565b60006040518763ffffffff1660e01b8152600401611a9c969594939291906143d2565b6128d461338c565b6001600160a01b0316631ce00ba283836040518363ffffffff1660e01b81526004016129019291906142a4565b60006040518083038186803b15801561291957600080fd5b505afa158015612391573d6000803e3d6000fd5b60006116f16822bc31b430b733b2b960b91b61332f565b61294c61338c565b6001600160a01b0316637c3125416040518163ffffffff1660e01b815260040160006040518083038186803b15801561298457600080fd5b505afa1580156120f5573d6000803e3d6000fd5b60006116f1722932bbb0b93239a234b9ba3934b13aba34b7b760691b61332f565b60006116f16d537570706c795363686564756c6560901b61332f565b6000828211156129f75760405162461bcd60e51b8152600401610c2890614488565b50900390565b6000828201838110156111e05760405162461bcd60e51b8152600401610c2890614478565b6002546040516001600160a01b039091169063907dff9790612a4890849060200161426d565b604051602081830303815290604052600360405161288f906140bd565b6000546001600160a01b031633146120fa5760405162461bcd60e51b8152600401610c28906144d8565b612a9761338c565b6001600160a01b031663086dabd16040518163ffffffff1660e01b815260040160006040518083038186803b15801561298457600080fd5b600080612ada6133a6565b6001600160a01b0316638b3f8088856040518263ffffffff1660e01b8152600401612b0591906140c8565b604080518083038186803b158015612b1c57600080fd5b505afa158015612b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612b5491908101906138f8565b5090508015610a3f57600080612b686127e2565b6005546040516370a0823160e01b81526001600160a01b0392831692636bed0415928a929116906370a0823190612ba39084906004016140c8565b60206040518083038186803b158015612bbb57600080fd5b505afa158015612bcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612bf39190810190613786565b6040518363ffffffff1660e01b8152600401612c10929190614218565b604080518083038186803b158015612c2757600080fd5b505afa158015612c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612c5f9190810190613898565b9150915081851115612c835760405162461bcd60e51b8152600401610c28906144a8565b8015612ca15760405162461bcd60e51b8152600401610c28906144b8565b50600195945050505050565b600554604051636eb1769f60e11b81526000916001600160a01b03169063da46098c9086908890612d4e908790869063dd62ed3e90612cf290879087906004016140ff565b60206040518083038186803b158015612d0a57600080fd5b505afa158015612d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612d429190810190613786565b9063ffffffff6129d516565b6040518463ffffffff1660e01b8152600401612d6c939291906141f0565b600060405180830381600087803b158015612d8657600080fd5b505af1158015612d9a573d6000803e3d6000fd5b50505050612da9848484612e3a565b90505b949350505050565b612dbc61292d565b6001600160a01b0316336001600160a01b0316146120fa5760405162461bcd60e51b8152600401610c2890614468565b60405162461bcd60e51b8152600401610c2890614498565b60006116f16b526577617264457363726f7760a01b61332f565b60006116f16d2932bbb0b93222b9b1b937bbab1960911b61332f565b60006001600160a01b03831615801590612e5d57506001600160a01b0383163014155b8015612e7757506002546001600160a01b03848116911614155b612e935760405162461bcd60e51b8152600401610c2890614438565b6005546040516370a0823160e01b81526001600160a01b039091169063b46310f6908690612ed390869085906370a0823190612cf29086906004016140c8565b6040518363ffffffff1660e01b8152600401612ef0929190614218565b600060405180830381600087803b158015612f0a57600080fd5b505af1158015612f1e573d6000803e3d6000fd5b50506005546040516370a0823160e01b81526001600160a01b03909116925063b46310f691508590612f6290869085906370a0823190610e259086906004016140c8565b6040518363ffffffff1660e01b8152600401612f7f929190614218565b600060405180830381600087803b158015612f9957600080fd5b505af1158015612fad573d6000803e3d6000fd5b50505050610a3f848484612a22565b6001600160a01b031690565b60408051600580825260c082019092526060916020820160a0803883390190505090506d53796e746865746978537461746560901b8160008151811061300a57fe5b6020026020010181815250506b53797374656d53746174757360a01b8160018151811061303357fe5b6020026020010181815250506822bc31b430b733b2b960b91b8160028151811061305957fe5b6020026020010181815250506524b9b9bab2b960d11b8160038151811061307c57fe5b602002602001018181525050722932bbb0b93239a234b9ba3934b13aba34b7b760691b816004815181106130ac57fe5b60200260200101818152505090565b606081518351016040519080825280602002602001820160405280156130eb578160200160208202803883390190505b50905060005b835181101561312d5783818151811061310657fe5b602002602001015182828151811061311a57fe5b60209081029190910101526001016130f1565b5060005b82518110156118a65782818151811061314657fe5b602002602001015182828651018151811061315d57fe5b6020908102919091010152600101613131565b6002546001600160a01b0316331480159061319657506003546001600160a01b03163314155b80156131ad57506004546001600160a01b03163314155b156131c557600480546001600160a01b031916331790555b6000546004546001600160a01b039081169116146120fa5760405162461bcd60e51b8152600401610c2890614458565b6002546040516001600160a01b039091169063907dff979061321b9084906020016140c8565b60405160208183030381529060405260016040516132389061409c565b6040519081900381206001600160e01b031960e086901b16825261123293929160009081908190600401614339565b60006111dd848484612e3a565b6002546001600160a01b031633148061329757506003546001600160a01b031633145b6120fa5760405162461bcd60e51b8152600401610c28906144f8565b6002546040516001600160a01b039091169063907dff97906132dd90869086908690602001614523565b60405160208183030381529060405260026040516132fa906140a7565b604051809103902061330b89612fbc565b6000806040518763ffffffff1660e01b815260040161146b96959493929190614398565b6000818152600a602090815260408083205490516001600160a01b03909116918215159161335f9186910161405b565b604051602081830303815290604052906118a65760405162461bcd60e51b8152600401610c289190614427565b60006116f16b53797374656d53746174757360a01b61332f565b60006116f16d53796e746865746978537461746560901b61332f565b80356109298161461a565b80516109298161461a565b600082601f8301126133e957600080fd5b81516133fc6133f782614566565b61453f565b9150818183526020840193506020810190508385602084028201111561342157600080fd5b60005b8381101561344d5781613437888261346d565b8452506020928301929190910190600101613424565b5050505092915050565b80516109298161462e565b803561092981614637565b805161092981614637565b805161092981614640565b803561092981614640565b6000602082840312156134a057600080fd5b6000612dac84846133c2565b6000602082840312156134be57600080fd5b6000612dac84846133cd565b600080604083850312156134dd57600080fd5b60006134e985856133c2565b92505060206134fa858286016133c2565b9150509250929050565b60008060006060848603121561351957600080fd5b600061352586866133c2565b9350506020613536868287016133c2565b925050604061354786828701613462565b9150509250925092565b6000806040838503121561356457600080fd5b600061357085856133c2565b92505060206134fa85828601613462565b60008060006060848603121561359657600080fd5b60006135a286866133c2565b935050602061353686828701613462565b600080600080608085870312156135c957600080fd5b60006135d587876133c2565b94505060206135e687828801613462565b93505060406135f787828801613462565b925050606061360887828801613462565b91505092959194509250565b60008060008060008060c0878903121561362d57600080fd5b600061363989896133c2565b965050602061364a89828a01613462565b955050604061365b89828a01613462565b945050606061366c89828a01613462565b935050608061367d89828a016133c2565b92505060a061368e89828a01613462565b9150509295509295509295565b60008060008060008060c087890312156136b457600080fd5b60006136c089896133c2565b96505060206136d189828a01613462565b95505060406136e289828a01613462565b94505060606136f389828a01613462565b935050608061370489828a01613462565b92505060a061368e89828a016133c2565b60006020828403121561372757600080fd5b815167ffffffffffffffff81111561373e57600080fd5b612dac848285016133d8565b60006020828403121561375c57600080fd5b6000612dac8484613457565b60006020828403121561377a57600080fd5b6000612dac8484613462565b60006020828403121561379857600080fd5b6000612dac848461346d565b600080600080608085870312156137ba57600080fd5b60006135d58787613462565b6000806000606084860312156137db57600080fd5b60006135a28686613462565b600080600080600060a086880312156137ff57600080fd5b600061380b8888613462565b955050602061381c88828901613462565b945050604061382d88828901613462565b935050606061383e888289016133c2565b925050608061384f88828901613462565b9150509295509295909350565b60006020828403121561386e57600080fd5b6000612dac8484613478565b60006020828403121561388c57600080fd5b6000612dac8484613483565b600080604083850312156138ab57600080fd5b60006138b7858561346d565b92505060206134fa85828601613457565b600080604083850312156138db57600080fd5b60006138e7858561346d565b92505060206134fa85828601613478565b6000806040838503121561390b57600080fd5b6000613917858561346d565b92505060206134fa8582860161346d565b60008060006060848603121561393d57600080fd5b6000613949868661346d565b935050602061395a8682870161346d565b92505060406135478682870161346d565b600061397783836139f9565b505060200190565b613988816145c0565b82525050565b6139888161459f565b60006139a28261458d565b6139ac8185614591565b93506139b783614587565b8060005b838110156139e55781516139cf888261396b565b97506139da83614587565b9250506001016139bb565b509495945050505050565b613988816145aa565b61398881611014565b613988613a0e82611014565b611014565b6000613a1e8261458d565b613a288185614591565b9350613a388185602086016145e4565b613a4181614610565b9093019392505050565b613988816145af565b613988816145cb565b613988816145d9565b6000613a73601f83614591565b7f43616e6e6f74207472616e7366657220746f2074686973206164647265737300815260200192915050565b6000613aac603583614591565b7f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7581527402063616e20616363657074206f776e65727368697605c1b602082015260400192915050565b6000613b03601383614591565b7227bbb732b91037b7363c90333ab731ba34b7b760691b815260200192915050565b6000613b32601e83614591565b7f4f6e6c792045786368616e6765722063616e20696e766f6b6520746869730000815260200192915050565b6000613b6b601b83614591565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b6000613ba460288361459a565b7f45786368616e67655265636c61696d28616464726573732c627974657333322c81526775696e743235362960c01b602082015260280192915050565b6000613bee601e83614591565b7f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815260200192915050565b6000613c27601b83614591565b7f43616e6e6f742062652072756e206f6e2074686973206c617965720000000000815260200192915050565b6000613c6060318361459a565b7f45786368616e6765547261636b696e6728627974657333322c627974657333328152702c75696e743235362c75696e743235362960781b602082015260310192915050565b6000613cb360118361459a565b70026b4b9b9b4b7339030b2323932b9b99d1607d1b815260110192915050565b6000613ce0603e8361459a565b7f53796e746845786368616e676528616464726573732c627974657333322c756981527f6e743235362c627974657333322c75696e743235362c616464726573732900006020820152603e0192915050565b6000613d3f602683614591565b7f43616e6e6f74207472616e73666572207374616b6564206f7220657363726f778152650cac840a69cb60d31b602082015260400192915050565b6000613d87601e83614591565b7f412073796e7468206f7220534e58207261746520697320696e76616c69640000815260200192915050565b6000613dc0601b83614591565b7f52657761726473446973747269627574696f6e206e6f74207365740000000000815260200192915050565b6000613df9602f83614591565b7f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726681526e37b936903a3434b99030b1ba34b7b760891b602082015260400192915050565b6000613e4a60218361459a565b7f417070726f76616c28616464726573732c616464726573732c75696e743235368152602960f81b602082015260210192915050565b6000613e8d60278361459a565b7f45786368616e676552656261746528616464726573732c627974657333322c75815266696e743235362960c81b602082015260270192915050565b6000613ed6601a8361459a565b7f546f6b656e5374617465557064617465642861646472657373290000000000008152601a0192915050565b6000613f0f60328361459a565b7f4163636f756e744c69717569646174656428616464726573732c75696e743235815271362c75696e743235362c616464726573732960701b602082015260320192915050565b6000613f6360198361459a565b7f5265736f6c766572206d697373696e67207461726765743a2000000000000000815260190192915050565b6000613f9c601583614591565b744e6f20737570706c79206973206d696e7461626c6560581b815260200192915050565b6000613fcd60218361459a565b7f5472616e7366657228616464726573732c616464726573732c75696e743235368152602960f81b602082015260210192915050565b6000614010601783614591565b7f4f6e6c79207468652070726f78792063616e2063616c6c000000000000000000815260200192915050565b613988816145ba565b600061092982613b97565b600061092982613c53565b600061406682613ca6565b91506140728284613a02565b50602001919050565b600061092982613cd3565b600061092982613e3d565b600061092982613e80565b600061092982613ec9565b600061092982613f02565b600061406682613f56565b600061092982613fc0565b60208101610929828461398e565b60208101610929828461397f565b604081016140f2828561397f565b6111e060208301846139f9565b6040810161410d828561398e565b6111e0602083018461398e565b6101208101614129828c61398e565b614136602083018b61398e565b614143604083018a6139f9565b61415060608301896139f9565b61415d60808301886139f9565b61416a60a083018761397f565b61417760c08301866139f0565b61418460e083018561398e565b6141926101008301846139f9565b9a9950505050505050505050565b61012081016141af828c61398e565b6141bc602083018b61398e565b6141c9604083018a6139f9565b6141d660608301896139f9565b6141e360808301886139f9565b61416a60a083018761398e565b606081016141fe828661398e565b61420b602083018561398e565b612dac60408301846139f9565b604081016140f2828561398e565b60608101614234828661398e565b61424160208301856139f9565b612dac604083018461398e565b602080825281016111e08184613997565b6020810161092982846139f0565b6020810161092982846139f9565b6040810161410d82856139f9565b6040810161429782856139f9565b6111e060208301846139f0565b604081016140f282856139f9565b604081016142c082856139f9565b81810360208301526111dd8184613a13565b60a081016142e082886139f9565b6142ed60208301876139f9565b6142fa60408301866139f9565b61430760608301856139f9565b614314608083018461398e565b9695505050505050565b6060810161432c82866139f9565b61420b60208301856139f9565b60c0808252810161434a8189613a13565b90506143596020830188613a5d565b61436660408301876139f9565b6143736060830186613a54565b6143806080830185613a54565b61438d60a0830184613a54565b979650505050505050565b60c080825281016143a98189613a13565b90506143b86020830188613a5d565b6143c560408301876139f9565b61437360608301866139f9565b60c080825281016143e38189613a13565b90506143f26020830188613a5d565b6143ff60408301876139f9565b61440c60608301866139f9565b61438060808301856139f9565b602081016109298284613a4b565b602080825281016111e08184613a13565b6020808252810161092981613a66565b6020808252810161092981613a9f565b6020808252810161092981613af6565b6020808252810161092981613b25565b6020808252810161092981613b5e565b6020808252810161092981613be1565b6020808252810161092981613c1a565b6020808252810161092981613d32565b6020808252810161092981613d7a565b6020808252810161092981613db3565b6020808252810161092981613dec565b6020808252810161092981613f8f565b6020808252810161092981614003565b6040810161451682856139f9565b6111e06020830184613a4b565b6060810161423482866139f9565b60208101610929828461403c565b60405181810167ffffffffffffffff8111828210171561455e57600080fd5b604052919050565b600067ffffffffffffffff82111561457d57600080fd5b5060209081020190565b60200190565b5190565b90815260200190565b919050565b600061092982612fbc565b151590565b60006109298261459f565b60ff1690565b6000610929826145af565b6000610929613a0e83611014565b600061092982611014565b60005b838110156145ff5781810151838201526020016145e7565b838111156120f55750506000910152565b601f01601f191690565b6146238161459f565b811461126557600080fd5b614623816145aa565b61462381611014565b614623816145af56fea365627a7a72315820ddbbd29049fe7f35134376863ea122b43aa41407200ca3b43f2b30475b38aeed6c6578706572696d656e74616cf564736f6c63430005100040

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

000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f0000000000000000000000005b1b5fea1b99d83ad479df0c222f0492385381dd000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000000000000000000000bd793192bb4b7244982d810000000000000000000000004e3b31eb0e5cb73641ee1e65e7dcefe520ba3ef2

-----Decoded View---------------
Arg [0] : _proxy (address): 0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F
Arg [1] : _tokenState (address): 0x5b1b5fEa1b99D83aD479dF0C222F0492385381dD
Arg [2] : _owner (address): 0xDe910777C787903F78C89e7a0bf7F4C435cBB1Fe
Arg [3] : _totalSupply (uint256): 229059300715179257189903745
Arg [4] : _resolver (address): 0x4E3b31eB0E5CB73641EE1E65E7dCEFe520bA3ef2

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f
Arg [1] : 0000000000000000000000005b1b5fea1b99d83ad479df0c222f0492385381dd
Arg [2] : 000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe
Arg [3] : 000000000000000000000000000000000000000000bd793192bb4b7244982d81
Arg [4] : 0000000000000000000000004e3b31eb0e5cb73641ee1e65e7dcefe520ba3ef2


Libraries Used


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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