Synthetix: Synth SNX contract has migrated to a new address.
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 503 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 11535541 | 1410 days ago | IN | 0 ETH | 0.00266027 | ||||
Approve | 10387968 | 1587 days ago | IN | 0 ETH | 0.00133205 | ||||
Approve | 10340884 | 1594 days ago | IN | 0 ETH | 0.00136649 | ||||
Transfer | 10203310 | 1616 days ago | IN | 0 ETH | 0.00107982 | ||||
Transfer | 10200834 | 1616 days ago | IN | 0 ETH | 0.00527215 | ||||
Transfer | 10200492 | 1616 days ago | IN | 0 ETH | 0.00609133 | ||||
Transfer | 10197750 | 1616 days ago | IN | 0 ETH | 0.00499384 | ||||
Transfer | 10197346 | 1617 days ago | IN | 0 ETH | 0.00609203 | ||||
Transfer | 10196313 | 1617 days ago | IN | 0 ETH | 0.00420092 | ||||
Transfer | 10195720 | 1617 days ago | IN | 0 ETH | 0.00441046 | ||||
Transfer | 10194827 | 1617 days ago | IN | 0 ETH | 0.00420092 | ||||
Transfer | 10194271 | 1617 days ago | IN | 0 ETH | 0.00525115 | ||||
Transfer | 10192196 | 1617 days ago | IN | 0 ETH | 0.00472657 | ||||
Transfer | 10191543 | 1617 days ago | IN | 0 ETH | 0.00483161 | ||||
Transfer | 10191361 | 1617 days ago | IN | 0 ETH | 0.00411582 | ||||
Transfer | 10191336 | 1617 days ago | IN | 0 ETH | 0.00463149 | ||||
Issue Max Synths... | 10190222 | 1618 days ago | IN | 0 ETH | 0.01974895 | ||||
Issue Max Synths... | 10189889 | 1618 days ago | IN | 0 ETH | 0.02141306 | ||||
Issue Max Synths... | 10189865 | 1618 days ago | IN | 0 ETH | 0.02111379 | ||||
Issue Max Synths... | 10189858 | 1618 days ago | IN | 0 ETH | 0.02111379 | ||||
Issue Max Synths... | 10189844 | 1618 days ago | IN | 0 ETH | 0.01986181 | ||||
Burn Synths To T... | 10189811 | 1618 days ago | IN | 0 ETH | 0.0209286 | ||||
Issue Max Synths... | 10189784 | 1618 days ago | IN | 0 ETH | 0.01986133 | ||||
Issue Max Synths... | 10189762 | 1618 days ago | IN | 0 ETH | 0.01986157 | ||||
Issue Max Synths... | 10189756 | 1618 days ago | IN | 0 ETH | 0.01969174 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Synthetix
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-03-31 */ /* ⚠⚠⚠ 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: * - ExternStateToken * - MixinResolver * - Owned * - Proxyable * - SelfDestructible * - State * Libraries: * - Math * - SafeDecimalMath * - SafeMath * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ /* =============================================== * Flattened with Solidifier by Coinage * * https://solidifier.coina.ge * =============================================== */ pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); // Solidity only automatically asserts when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two numbers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } // https://docs.synthetix.io/contracts/SafeDecimalMath library SafeDecimalMath { using SafeMath for uint; /* Number of decimal places in the representations. */ uint8 public constant decimals = 18; uint8 public constant highPrecisionDecimals = 27; /* The number representing 1.0. */ uint public constant UNIT = 10**uint(decimals); /* The number representing 1.0 for higher fidelity numbers. */ uint public constant PRECISE_UNIT = 10**uint(highPrecisionDecimals); uint private constant UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR = 10**uint(highPrecisionDecimals - decimals); /** * @return Provides an interface to UNIT. */ function unit() external pure returns (uint) { return UNIT; } /** * @return Provides an interface to PRECISE_UNIT. */ function preciseUnit() external pure returns (uint) { return PRECISE_UNIT; } /** * @return The result of multiplying x and y, interpreting the operands as fixed-point * decimals. * * @dev A unit factor is divided out after the product of x and y is evaluated, * so that product must be less than 2**256. As this is an integer division, * the internal division always rounds down. This helps save on gas. Rounding * is more expensive on gas. */ function multiplyDecimal(uint x, uint y) internal pure returns (uint) { /* Divide by UNIT to remove the extra factor introduced by the product. */ return x.mul(y) / UNIT; } /** * @return The result of safely multiplying x and y, interpreting the operands * as fixed-point decimals of the specified precision unit. * * @dev The operands should be in the form of a the specified unit factor which will be * divided out after the product of x and y is evaluated, so that product must be * less than 2**256. * * Unlike multiplyDecimal, this function rounds the result to the nearest increment. * Rounding is useful when you need to retain fidelity for small decimal numbers * (eg. small fractions or percentages). */ function _multiplyDecimalRound(uint x, uint y, uint precisionUnit) private pure returns (uint) { /* Divide by UNIT to remove the extra factor introduced by the product. */ uint quotientTimesTen = x.mul(y) / (precisionUnit / 10); if (quotientTimesTen % 10 >= 5) { quotientTimesTen += 10; } return quotientTimesTen / 10; } /** * @return The result of safely multiplying x and y, interpreting the operands * as fixed-point decimals of a precise unit. * * @dev The operands should be in the precise unit factor which will be * divided out after the product of x and y is evaluated, so that product must be * less than 2**256. * * Unlike multiplyDecimal, this function rounds the result to the nearest increment. * Rounding is useful when you need to retain fidelity for small decimal numbers * (eg. small fractions or percentages). */ function multiplyDecimalRoundPrecise(uint x, uint y) internal pure returns (uint) { return _multiplyDecimalRound(x, y, PRECISE_UNIT); } /** * @return The result of safely multiplying x and y, interpreting the operands * as fixed-point decimals of a standard unit. * * @dev The operands should be in the standard unit factor which will be * divided out after the product of x and y is evaluated, so that product must be * less than 2**256. * * Unlike multiplyDecimal, this function rounds the result to the nearest increment. * Rounding is useful when you need to retain fidelity for small decimal numbers * (eg. small fractions or percentages). */ function multiplyDecimalRound(uint x, uint y) internal pure returns (uint) { return _multiplyDecimalRound(x, y, UNIT); } /** * @return The result of safely dividing x and y. The return value is a high * precision decimal. * * @dev y is divided after the product of x and the standard precision unit * is evaluated, so the product of x and UNIT must be less than 2**256. As * this is an integer division, the result is always rounded down. * This helps save on gas. Rounding is more expensive on gas. */ function divideDecimal(uint x, uint y) internal pure returns (uint) { /* Reintroduce the UNIT factor that will be divided out by y. */ return x.mul(UNIT).div(y); } /** * @return The result of safely dividing x and y. The return value is as a rounded * decimal in the precision unit specified in the parameter. * * @dev y is divided after the product of x and the specified precision unit * is evaluated, so the product of x and the specified precision unit must * be less than 2**256. The result is rounded to the nearest increment. */ function _divideDecimalRound(uint x, uint y, uint precisionUnit) private pure returns (uint) { uint resultTimesTen = x.mul(precisionUnit * 10).div(y); if (resultTimesTen % 10 >= 5) { resultTimesTen += 10; } return resultTimesTen / 10; } /** * @return The result of safely dividing x and y. The return value is as a rounded * standard precision decimal. * * @dev y is divided after the product of x and the standard precision unit * is evaluated, so the product of x and the standard precision unit must * be less than 2**256. The result is rounded to the nearest increment. */ function divideDecimalRound(uint x, uint y) internal pure returns (uint) { return _divideDecimalRound(x, y, UNIT); } /** * @return The result of safely dividing x and y. The return value is as a rounded * high precision decimal. * * @dev y is divided after the product of x and the high precision unit * is evaluated, so the product of x and the high precision unit must * be less than 2**256. The result is rounded to the nearest increment. */ function divideDecimalRoundPrecise(uint x, uint y) internal pure returns (uint) { return _divideDecimalRound(x, y, PRECISE_UNIT); } /** * @dev Convert a standard decimal representation to a high precision one. */ function decimalToPreciseDecimal(uint i) internal pure returns (uint) { return i.mul(UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR); } /** * @dev Convert a high precision decimal to a standard decimal representation. */ function preciseDecimalToDecimal(uint i) internal pure returns (uint) { uint quotientTimesTen = i / (UNIT_TO_HIGH_PRECISION_CONVERSION_FACTOR / 10); if (quotientTimesTen % 10 >= 5) { quotientTimesTen += 10; } return quotientTimesTen / 10; } } // https://docs.synthetix.io/contracts/Owned contract Owned { address public owner; address public nominatedOwner; /** * @dev Owned Constructor */ constructor(address _owner) public { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } /** * @notice Nominate a new owner of this contract. * @dev Only the current owner may nominate a new owner. */ function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } /** * @notice Accept the nomination to be owner. */ function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); emit OwnerChanged(owner, nominatedOwner); owner = nominatedOwner; nominatedOwner = address(0); } modifier onlyOwner { require(msg.sender == owner, "Only the contract owner may perform this action"); _; } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); } // https://docs.synthetix.io/contracts/SelfDestructible contract SelfDestructible is Owned { uint public initiationTime; bool public selfDestructInitiated; address public selfDestructBeneficiary; uint public constant SELFDESTRUCT_DELAY = 4 weeks; /** * @dev Constructor * @param _owner The account which controls this contract. */ constructor(address _owner) public Owned(_owner) { require(_owner != address(0), "Owner must not be zero"); selfDestructBeneficiary = _owner; emit SelfDestructBeneficiaryUpdated(_owner); } /** * @notice Set the beneficiary address of this contract. * @dev Only the contract owner may call this. The provided beneficiary must be non-null. * @param _beneficiary The address to pay any eth contained in this contract to upon self-destruction. */ function setSelfDestructBeneficiary(address _beneficiary) external onlyOwner { require(_beneficiary != address(0), "Beneficiary must not be zero"); selfDestructBeneficiary = _beneficiary; emit SelfDestructBeneficiaryUpdated(_beneficiary); } /** * @notice Begin the self-destruction counter of this contract. * Once the delay has elapsed, the contract may be self-destructed. * @dev Only the contract owner may call this. */ function initiateSelfDestruct() external onlyOwner { initiationTime = now; selfDestructInitiated = true; emit SelfDestructInitiated(SELFDESTRUCT_DELAY); } /** * @notice Terminate and reset the self-destruction timer. * @dev Only the contract owner may call this. */ function terminateSelfDestruct() external onlyOwner { initiationTime = 0; selfDestructInitiated = false; emit SelfDestructTerminated(); } /** * @notice If the self-destruction delay has elapsed, destroy this contract and * remit any ether it owns to the beneficiary address. * @dev Only the contract owner may call this. */ function selfDestruct() external onlyOwner { require(selfDestructInitiated, "Self Destruct not yet initiated"); require(initiationTime + SELFDESTRUCT_DELAY < now, "Self destruct delay not met"); address beneficiary = selfDestructBeneficiary; emit SelfDestructed(beneficiary); selfdestruct(beneficiary); } event SelfDestructTerminated(); event SelfDestructed(address beneficiary); event SelfDestructInitiated(uint selfDestructDelay); event SelfDestructBeneficiaryUpdated(address newBeneficiary); } // https://docs.synthetix.io/contracts/State contract State is Owned { // the address of the contract that can modify variables // this can only be changed by the owner of this contract address public associatedContract; constructor(address _owner, address _associatedContract) public Owned(_owner) { associatedContract = _associatedContract; emit AssociatedContractUpdated(_associatedContract); } /* ========== SETTERS ========== */ // Change the associated contract to a new address function setAssociatedContract(address _associatedContract) external onlyOwner { associatedContract = _associatedContract; emit AssociatedContractUpdated(_associatedContract); } /* ========== MODIFIERS ========== */ modifier onlyAssociatedContract { require(msg.sender == associatedContract, "Only the associated contract can perform this action"); _; } /* ========== EVENTS ========== */ event AssociatedContractUpdated(address associatedContract); } // https://docs.synthetix.io/contracts/TokenState contract TokenState is State { /* ERC20 fields. */ mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) public allowance; /** * @dev Constructor * @param _owner The address which controls this contract. * @param _associatedContract The ERC20 contract whose state this composes. */ constructor(address _owner, address _associatedContract) public State(_owner, _associatedContract) {} /* ========== SETTERS ========== */ /** * @notice Set ERC20 allowance. * @dev Only the associated contract may call this. * @param tokenOwner The authorising party. * @param spender The authorised party. * @param value The total value the authorised party may spend on the * authorising party's behalf. */ function setAllowance(address tokenOwner, address spender, uint value) external onlyAssociatedContract { allowance[tokenOwner][spender] = value; } /** * @notice Set the balance in a given account * @dev Only the associated contract may call this. * @param account The account whose value to set. * @param value The new balance of the given account. */ function setBalanceOf(address account, uint value) external onlyAssociatedContract { balanceOf[account] = value; } } // https://docs.synthetix.io/contracts/Proxy contract Proxy is Owned { Proxyable public target; bool public useDELEGATECALL; constructor(address _owner) public Owned(_owner) {} function setTarget(Proxyable _target) external onlyOwner { target = _target; emit TargetUpdated(_target); } function setUseDELEGATECALL(bool value) external onlyOwner { useDELEGATECALL = value; } function _emit(bytes callData, uint numTopics, bytes32 topic1, bytes32 topic2, bytes32 topic3, bytes32 topic4) external onlyTarget { uint size = callData.length; bytes memory _callData = callData; assembly { /* The first 32 bytes of callData contain its length (as specified by the abi). * Length is assumed to be a uint256 and therefore maximum of 32 bytes * in length. It is also leftpadded to be a multiple of 32 bytes. * This means moving call_data across 32 bytes guarantees we correctly access * the data itself. */ switch numTopics case 0 { log0(add(_callData, 32), size) } case 1 { log1(add(_callData, 32), size, topic1) } case 2 { log2(add(_callData, 32), size, topic1, topic2) } case 3 { log3(add(_callData, 32), size, topic1, topic2, topic3) } case 4 { log4(add(_callData, 32), size, topic1, topic2, topic3, topic4) } } } function() external payable { if (useDELEGATECALL) { assembly { /* Copy call data into free memory region. */ let free_ptr := mload(0x40) calldatacopy(free_ptr, 0, calldatasize) /* Forward all gas and call data to the target contract. */ let result := delegatecall(gas, sload(target_slot), free_ptr, calldatasize, 0, 0) returndatacopy(free_ptr, 0, returndatasize) /* Revert if the call failed, otherwise return the result. */ if iszero(result) { revert(free_ptr, returndatasize) } return(free_ptr, returndatasize) } } else { /* Here we are as above, but must send the messageSender explicitly * since we are using CALL rather than DELEGATECALL. */ target.setMessageSender(msg.sender); assembly { let free_ptr := mload(0x40) calldatacopy(free_ptr, 0, calldatasize) /* We must explicitly forward ether to the underlying contract as well. */ let result := call(gas, sload(target_slot), callvalue, free_ptr, calldatasize, 0, 0) returndatacopy(free_ptr, 0, returndatasize) if iszero(result) { revert(free_ptr, returndatasize) } return(free_ptr, returndatasize) } } } modifier onlyTarget { require(Proxyable(msg.sender) == target, "Must be proxy target"); _; } event TargetUpdated(Proxyable newTarget); } // https://docs.synthetix.io/contracts/Proxyable contract Proxyable is Owned { // This contract should be treated like an abstract contract /* The proxy this contract exists behind. */ Proxy public proxy; Proxy public integrationProxy; /* The caller of the proxy, passed through to this contract. * Note that every function using this member must apply the onlyProxy or * optionalProxy modifiers, otherwise their invocations can use stale values. */ address public messageSender; constructor(address _proxy, address _owner) public Owned(_owner) { proxy = Proxy(_proxy); emit ProxyUpdated(_proxy); } function setProxy(address _proxy) external onlyOwner { proxy = Proxy(_proxy); emit ProxyUpdated(_proxy); } function setIntegrationProxy(address _integrationProxy) external onlyOwner { integrationProxy = Proxy(_integrationProxy); } function setMessageSender(address sender) external onlyProxy { messageSender = sender; } modifier onlyProxy { require(Proxy(msg.sender) == proxy || Proxy(msg.sender) == integrationProxy, "Only the proxy can call"); _; } modifier optionalProxy { if (Proxy(msg.sender) != proxy && Proxy(msg.sender) != integrationProxy && messageSender != msg.sender) { messageSender = msg.sender; } _; } modifier optionalProxy_onlyOwner { if (Proxy(msg.sender) != proxy && Proxy(msg.sender) != integrationProxy && messageSender != msg.sender) { messageSender = msg.sender; } require(messageSender == owner, "Owner only function"); _; } event ProxyUpdated(address proxyAddress); } // https://docs.synthetix.io/contracts/ExternStateToken contract ExternStateToken is SelfDestructible, Proxyable { using SafeMath for uint; using SafeDecimalMath for uint; /* ========== STATE VARIABLES ========== */ /* Stores balances and allowances. */ TokenState public tokenState; /* Other ERC20 fields. */ string public name; string public symbol; uint public totalSupply; uint8 public decimals; /** * @dev Constructor. * @param _proxy The proxy associated with this contract. * @param _name Token's ERC20 name. * @param _symbol Token's ERC20 symbol. * @param _totalSupply The total supply of the token. * @param _tokenState The TokenState contract address. * @param _owner The owner of this contract. */ constructor( address _proxy, TokenState _tokenState, string _name, string _symbol, uint _totalSupply, uint8 _decimals, address _owner ) public SelfDestructible(_owner) Proxyable(_proxy, _owner) { tokenState = _tokenState; name = _name; symbol = _symbol; totalSupply = _totalSupply; decimals = _decimals; } /* ========== VIEWS ========== */ /** * @notice Returns the ERC20 allowance of one party to spend on behalf of another. * @param owner The party authorising spending of their funds. * @param spender The party spending tokenOwner's funds. */ function allowance(address owner, address spender) public view returns (uint) { return tokenState.allowance(owner, spender); } /** * @notice Returns the ERC20 token balance of a given account. */ function balanceOf(address account) public view returns (uint) { return tokenState.balanceOf(account); } /* ========== MUTATIVE FUNCTIONS ========== */ /** * @notice Set the address of the TokenState contract. * @dev This can be used to "pause" transfer functionality, by pointing the tokenState at 0x000.. * as balances would be unreachable. */ function setTokenState(TokenState _tokenState) external optionalProxy_onlyOwner { tokenState = _tokenState; emitTokenStateUpdated(_tokenState); } function _internalTransfer(address from, address to, uint value) internal returns (bool) { /* Disallow transfers to irretrievable-addresses. */ require(to != address(0) && to != address(this) && to != address(proxy), "Cannot transfer to this address"); // Insufficient balance will be handled by the safe subtraction. tokenState.setBalanceOf(from, tokenState.balanceOf(from).sub(value)); tokenState.setBalanceOf(to, tokenState.balanceOf(to).add(value)); // Emit a standard ERC20 transfer event emitTransfer(from, to, value); return true; } /** * @dev Perform an ERC20 token transfer. Designed to be called by transfer functions possessing * the onlyProxy or optionalProxy modifiers. */ function _transfer_byProxy(address from, address to, uint value) internal returns (bool) { return _internalTransfer(from, to, value); } /** * @dev Perform an ERC20 token transferFrom. Designed to be called by transferFrom functions * possessing the optionalProxy or optionalProxy modifiers. */ function _transferFrom_byProxy(address sender, address from, address to, uint value) internal returns (bool) { /* Insufficient allowance will be handled by the safe subtraction. */ tokenState.setAllowance(from, sender, tokenState.allowance(from, sender).sub(value)); return _internalTransfer(from, to, value); } /** * @notice Approves spender to transfer on the message sender's behalf. */ function approve(address spender, uint value) public optionalProxy returns (bool) { address sender = messageSender; tokenState.setAllowance(sender, spender, value); emitApproval(sender, spender, value); return true; } /* ========== EVENTS ========== */ event Transfer(address indexed from, address indexed to, uint value); bytes32 constant TRANSFER_SIG = keccak256("Transfer(address,address,uint256)"); function emitTransfer(address from, address to, uint value) internal { proxy._emit(abi.encode(value), 3, TRANSFER_SIG, bytes32(from), bytes32(to), 0); } event Approval(address indexed owner, address indexed spender, uint value); bytes32 constant APPROVAL_SIG = keccak256("Approval(address,address,uint256)"); function emitApproval(address owner, address spender, uint value) internal { proxy._emit(abi.encode(value), 3, APPROVAL_SIG, bytes32(owner), bytes32(spender), 0); } event TokenStateUpdated(address newTokenState); bytes32 constant TOKENSTATEUPDATED_SIG = keccak256("TokenStateUpdated(address)"); function emitTokenStateUpdated(address newTokenState) internal { proxy._emit(abi.encode(newTokenState), 1, TOKENSTATEUPDATED_SIG, 0, 0, 0); } } // https://docs.synthetix.io/contracts/AddressResolver contract AddressResolver is Owned { mapping(bytes32 => address) public repository; constructor(address _owner) public Owned(_owner) {} /* ========== MUTATIVE FUNCTIONS ========== */ function importAddresses(bytes32[] names, address[] destinations) public onlyOwner { require(names.length == destinations.length, "Input lengths must match"); for (uint i = 0; i < names.length; i++) { repository[names[i]] = destinations[i]; } } /* ========== VIEWS ========== */ function getAddress(bytes32 name) public view returns (address) { return repository[name]; } function requireAndGetAddress(bytes32 name, string reason) public view returns (address) { address _foundAddress = repository[name]; require(_foundAddress != address(0), reason); return _foundAddress; } } // https://docs.synthetix.io/contracts/MixinResolver contract MixinResolver is Owned { AddressResolver public resolver; mapping(bytes32 => address) private addressCache; bytes32[] public resolverAddressesRequired; uint public constant MAX_ADDRESSES_FROM_RESOLVER = 24; constructor(address _owner, address _resolver, bytes32[MAX_ADDRESSES_FROM_RESOLVER] _addressesToCache) public Owned(_owner) { for (uint i = 0; i < _addressesToCache.length; i++) { if (_addressesToCache[i] != bytes32(0)) { resolverAddressesRequired.push(_addressesToCache[i]); } else { // End early once an empty item is found - assumes there are no empty slots in // _addressesToCache break; } } resolver = AddressResolver(_resolver); // Do not sync the cache as addresses may not be in the resolver yet } /* ========== SETTERS ========== */ function setResolverAndSyncCache(AddressResolver _resolver) external onlyOwner { resolver = _resolver; for (uint i = 0; i < resolverAddressesRequired.length; i++) { bytes32 name = resolverAddressesRequired[i]; // Note: can only be invoked once the resolver has all the targets needed added addressCache[name] = resolver.requireAndGetAddress(name, "Resolver missing target"); } } /* ========== VIEWS ========== */ function requireAndGetAddress(bytes32 name, string reason) internal view returns (address) { address _foundAddress = addressCache[name]; require(_foundAddress != address(0), reason); return _foundAddress; } // Note: this could be made external in a utility contract if addressCache was made public // (used for deployment) function isResolverCached(AddressResolver _resolver) external view returns (bool) { if (resolver != _resolver) { return false; } // otherwise, check everything for (uint i = 0; i < resolverAddressesRequired.length; i++) { bytes32 name = resolverAddressesRequired[i]; // false if our cache is invalid or if the resolver doesn't have the required address if (resolver.getAddress(name) != addressCache[name] || addressCache[name] == address(0)) { return false; } } return true; } // Note: can be made external into a utility contract (used for deployment) function getResolverAddressesRequired() external view returns (bytes32[MAX_ADDRESSES_FROM_RESOLVER] addressesRequired) { for (uint i = 0; i < resolverAddressesRequired.length; i++) { addressesRequired[i] = resolverAddressesRequired[i]; } } /* ========== INTERNAL FUNCTIONS ========== */ function appendToAddressCache(bytes32 name) internal { resolverAddressesRequired.push(name); require(resolverAddressesRequired.length < MAX_ADDRESSES_FROM_RESOLVER, "Max resolver cache size met"); // Because this is designed to be called internally in constructors, we don't // check the address exists already in the resolver addressCache[name] = resolver.getAddress(name); } } // https://docs.synthetix.io/contracts/Math library Math { using SafeMath for uint; using SafeDecimalMath for uint; /** * @dev Uses "exponentiation by squaring" algorithm where cost is 0(logN) * vs 0(N) for naive repeated multiplication. * Calculates x^n with x as fixed-point and n as regular unsigned int. * Calculates to 18 digits of precision with SafeDecimalMath.unit() */ function powDecimal(uint x, uint n) internal pure returns (uint) { // https://mpark.github.io/programming/2014/08/18/exponentiation-by-squaring/ uint result = SafeDecimalMath.unit(); while (n > 0) { if (n % 2 != 0) { result = result.multiplyDecimal(x); } x = x.multiplyDecimal(x); n /= 2; } return result; } } /** * @title SynthetixState interface contract * @notice Abstract contract to hold public getters */ contract ISynthetixState { // A struct for handing values associated with an individual user's debt position struct IssuanceData { // Percentage of the total debt owned at the time // of issuance. This number is modified by the global debt // delta array. You can figure out a user's exit price and // collateralisation ratio using a combination of their initial // debt and the slice of global debt delta which applies to them. uint initialDebtOwnership; // This lets us know when (in relative terms) the user entered // the debt pool so we can calculate their exit price and // collateralistion ratio uint debtEntryIndex; } uint[] public debtLedger; uint public issuanceRatio; mapping(address => IssuanceData) public issuanceData; function debtLedgerLength() external view returns (uint); function hasIssued(address account) external view returns (bool); function incrementTotalIssuerCount() external; function decrementTotalIssuerCount() external; function setCurrentIssuanceData(address account, uint initialDebtOwnership) external; function lastDebtLedgerEntry() external view returns (uint); function appendDebtLedgerValue(uint value) external; function clearIssuanceData(address account) external; } interface ISynth { function burn(address account, uint amount) external; function issue(address account, uint amount) external; function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function transferFromAndSettle(address from, address to, uint value) external returns (bool); function balanceOf(address owner) external view returns (uint); } /** * @title SynthetixEscrow interface */ interface ISynthetixEscrow { function balanceOf(address account) public view returns (uint); function appendVestingEntry(address account, uint quantity) public; } /** * @title FeePool Interface * @notice Abstract contract to hold public getters */ contract IFeePool { address public FEE_ADDRESS; uint public exchangeFeeRate; function amountReceivedFromExchange(uint value) external view returns (uint); function amountReceivedFromTransfer(uint value) external view returns (uint); function recordFeePaid(uint sUSDAmount) external; function appendAccountIssuanceRecord(address account, uint lockedAmount, uint debtEntryIndex) external; function setRewardsToDistribute(uint amount) external; } /** * @title ExchangeRates interface */ interface IExchangeRates { function effectiveValue(bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey) external view returns (uint); function rateForCurrency(bytes32 currencyKey) external view returns (uint); function ratesForCurrencies(bytes32[] currencyKeys) external view returns (uint[] memory); function rateIsStale(bytes32 currencyKey) external view returns (bool); function rateIsFrozen(bytes32 currencyKey) external view returns (bool); function anyRateIsStale(bytes32[] currencyKeys) external view returns (bool); function getCurrentRoundId(bytes32 currencyKey) external view returns (uint); function effectiveValueAtRound( bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey, uint roundIdForSrc, uint roundIdForDest ) external view returns (uint); function getLastRoundIdBeforeElapsedSecs( bytes32 currencyKey, uint startingRoundId, uint startingTimestamp, uint timediff ) external view returns (uint); function ratesAndStaleForCurrencies(bytes32[] currencyKeys) external view returns (uint[], bool); function rateAndTimestampAtRound(bytes32 currencyKey, uint roundId) external view returns (uint rate, uint time); } interface ISystemStatus { function requireSystemActive() external view; function requireIssuanceActive() external view; function requireExchangeActive() external view; function requireSynthActive(bytes32 currencyKey) external view; function requireSynthsActive(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) external view; } interface IExchanger { function maxSecsLeftInWaitingPeriod(address account, bytes32 currencyKey) external view returns (uint); function feeRateForExchange(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) external view returns (uint); function settlementOwing(address account, bytes32 currencyKey) external view returns (uint reclaimAmount, uint rebateAmount, uint numEntries); function settle(address from, bytes32 currencyKey) external returns (uint reclaimed, uint refunded, uint numEntries); function exchange( address from, bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey, address destinationAddress ) external returns (uint amountReceived); function exchangeOnBehalf( address exchangeForAddress, address from, bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey ) external returns (uint amountReceived); function calculateAmountAfterSettlement(address from, bytes32 currencyKey, uint amount, uint refunded) external view returns (uint amountAfterSettlement); } interface IIssuer { function issueSynths(address from, uint amount) external; function issueSynthsOnBehalf(address issueFor, address from, uint amount) external; function issueMaxSynths(address from) external; function issueMaxSynthsOnBehalf(address issueFor, address from) external; function burnSynths(address from, uint amount) external; function burnSynthsOnBehalf(address burnForAddress, address from, uint amount) external; function burnSynthsToTarget(address from) external; function burnSynthsToTargetOnBehalf(address burnForAddress, address from) external; function canBurnSynths(address account) external view returns (bool); function lastIssueEvent(address account) external view returns (uint); } // https://docs.synthetix.io/contracts/Synth contract Synth is ExternStateToken, MixinResolver { /* ========== STATE VARIABLES ========== */ // Currency key which identifies this Synth to the Synthetix system bytes32 public currencyKey; uint8 public constant DECIMALS = 18; // Where fees are pooled in sUSD address public constant FEE_ADDRESS = 0xfeEFEEfeefEeFeefEEFEEfEeFeefEEFeeFEEFEeF; /* ========== ADDRESS RESOLVER CONFIGURATION ========== */ bytes32 private constant CONTRACT_SYSTEMSTATUS = "SystemStatus"; bytes32 private constant CONTRACT_SYNTHETIX = "Synthetix"; bytes32 private constant CONTRACT_EXCHANGER = "Exchanger"; bytes32 private constant CONTRACT_ISSUER = "Issuer"; bytes32 private constant CONTRACT_FEEPOOL = "FeePool"; bytes32[24] internal addressesToCache = [ CONTRACT_SYSTEMSTATUS, CONTRACT_SYNTHETIX, CONTRACT_EXCHANGER, CONTRACT_ISSUER, CONTRACT_FEEPOOL ]; /* ========== CONSTRUCTOR ========== */ constructor( address _proxy, TokenState _tokenState, string _tokenName, string _tokenSymbol, address _owner, bytes32 _currencyKey, uint _totalSupply, address _resolver ) public ExternStateToken(_proxy, _tokenState, _tokenName, _tokenSymbol, _totalSupply, DECIMALS, _owner) MixinResolver(_owner, _resolver, addressesToCache) { require(_proxy != address(0), "_proxy cannot be 0"); require(_owner != 0, "_owner cannot be 0"); currencyKey = _currencyKey; } /* ========== MUTATIVE FUNCTIONS ========== */ function transfer(address to, uint value) public optionalProxy returns (bool) { _ensureCanTransfer(messageSender, value); // transfers to FEE_ADDRESS will be exchanged into sUSD and recorded as fee if (to == FEE_ADDRESS) { return _transferToFeeAddress(to, value); } // transfers to 0x address will be burned if (to == address(0)) { return _internalBurn(messageSender, value); } return super._internalTransfer(messageSender, to, value); } function transferAndSettle(address to, uint value) public optionalProxy returns (bool) { systemStatus().requireSynthActive(currencyKey); (, , uint numEntriesSettled) = exchanger().settle(messageSender, currencyKey); // Save gas instead of calling transferableSynths uint balanceAfter = value; if (numEntriesSettled > 0) { balanceAfter = tokenState.balanceOf(messageSender); } // Reduce the value to transfer if balance is insufficient after reclaimed value = value > balanceAfter ? balanceAfter : value; return super._internalTransfer(messageSender, to, value); } function transferFrom(address from, address to, uint value) public optionalProxy returns (bool) { _ensureCanTransfer(from, value); return _internalTransferFrom(from, to, value); } function transferFromAndSettle(address from, address to, uint value) public optionalProxy returns (bool) { systemStatus().requireSynthActive(currencyKey); (, , uint numEntriesSettled) = exchanger().settle(from, currencyKey); // Save gas instead of calling transferableSynths uint balanceAfter = value; if (numEntriesSettled > 0) { balanceAfter = tokenState.balanceOf(from); } // Reduce the value to transfer if balance is insufficient after reclaimed value = value >= balanceAfter ? balanceAfter : value; return _internalTransferFrom(from, to, value); } /** * @notice _transferToFeeAddress function * non-sUSD synths are exchanged into sUSD via synthInitiatedExchange * notify feePool to record amount as fee paid to feePool */ function _transferToFeeAddress(address to, uint value) internal returns (bool) { uint amountInUSD; // sUSD can be transferred to FEE_ADDRESS directly if (currencyKey == "sUSD") { amountInUSD = value; super._internalTransfer(messageSender, to, value); } else { // else exchange synth into sUSD and send to FEE_ADDRESS amountInUSD = exchanger().exchange(messageSender, currencyKey, value, "sUSD", FEE_ADDRESS); } // Notify feePool to record sUSD to distribute as fees feePool().recordFeePaid(amountInUSD); return true; } // Allow synthetix to issue a certain number of synths from an account. // forward call to _internalIssue function issue(address account, uint amount) external onlyInternalContracts { _internalIssue(account, amount); } // Allow synthetix or another synth contract to burn a certain number of synths from an account. // forward call to _internalBurn function burn(address account, uint amount) external onlyInternalContracts { _internalBurn(account, amount); } function _internalIssue(address account, uint amount) internal { tokenState.setBalanceOf(account, tokenState.balanceOf(account).add(amount)); totalSupply = totalSupply.add(amount); emitTransfer(address(0), account, amount); emitIssued(account, amount); } function _internalBurn(address account, uint amount) internal returns (bool) { tokenState.setBalanceOf(account, tokenState.balanceOf(account).sub(amount)); totalSupply = totalSupply.sub(amount); emitTransfer(account, address(0), amount); emitBurned(account, amount); return true; } // Allow owner to set the total supply on import. function setTotalSupply(uint amount) external optionalProxy_onlyOwner { totalSupply = amount; } /* ========== VIEWS ========== */ function systemStatus() internal view returns (ISystemStatus) { return ISystemStatus(requireAndGetAddress(CONTRACT_SYSTEMSTATUS, "Missing SystemStatus address")); } function synthetix() internal view returns (ISynthetix) { return ISynthetix(requireAndGetAddress(CONTRACT_SYNTHETIX, "Missing Synthetix address")); } function feePool() internal view returns (IFeePool) { return IFeePool(requireAndGetAddress(CONTRACT_FEEPOOL, "Missing FeePool address")); } function exchanger() internal view returns (IExchanger) { return IExchanger(requireAndGetAddress(CONTRACT_EXCHANGER, "Missing Exchanger address")); } function issuer() internal view returns (IIssuer) { return IIssuer(requireAndGetAddress(CONTRACT_ISSUER, "Missing Issuer address")); } function _ensureCanTransfer(address from, uint value) internal view { require(exchanger().maxSecsLeftInWaitingPeriod(from, currencyKey) == 0, "Cannot transfer during waiting period"); require(transferableSynths(from) >= value, "Insufficient balance after any settlement owing"); systemStatus().requireSynthActive(currencyKey); } function transferableSynths(address account) public view returns (uint) { (uint reclaimAmount, , ) = exchanger().settlementOwing(account, currencyKey); // Note: ignoring rebate amount here because a settle() is required in order to // allow the transfer to actually work uint balance = tokenState.balanceOf(account); if (reclaimAmount > balance) { return 0; } else { return balance.sub(reclaimAmount); } } /* ========== INTERNAL FUNCTIONS ========== */ function _internalTransferFrom(address from, address to, uint value) internal returns (bool) { // Skip allowance update in case of infinite allowance if (tokenState.allowance(from, messageSender) != uint(-1)) { // Reduce the allowance by the amount we're transferring. // The safeSub call will handle an insufficient allowance. tokenState.setAllowance(from, messageSender, tokenState.allowance(from, messageSender).sub(value)); } return super._internalTransfer(from, to, value); } /* ========== MODIFIERS ========== */ modifier onlyInternalContracts() { bool isSynthetix = msg.sender == address(synthetix()); bool isFeePool = msg.sender == address(feePool()); bool isExchanger = msg.sender == address(exchanger()); bool isIssuer = msg.sender == address(issuer()); require( isSynthetix || isFeePool || isExchanger || isIssuer, "Only Synthetix, FeePool, Exchanger or Issuer contracts allowed" ); _; } /* ========== EVENTS ========== */ event Issued(address indexed account, uint value); bytes32 private constant ISSUED_SIG = keccak256("Issued(address,uint256)"); function emitIssued(address account, uint value) internal { proxy._emit(abi.encode(value), 2, ISSUED_SIG, bytes32(account), 0, 0); } event Burned(address indexed account, uint value); bytes32 private constant BURNED_SIG = keccak256("Burned(address,uint256)"); function emitBurned(address account, uint value) internal { proxy._emit(abi.encode(value), 2, BURNED_SIG, bytes32(account), 0, 0); } } /** * @title Synthetix interface contract * @notice Abstract contract to hold public getters * @dev pseudo interface, actually declared as contract to hold the public getters */ contract ISynthetix { // ========== PUBLIC STATE VARIABLES ========== uint public totalSupply; mapping(bytes32 => Synth) public synths; mapping(address => bytes32) public synthsByAddress; // ========== PUBLIC FUNCTIONS ========== function balanceOf(address account) public view returns (uint); function transfer(address to, uint value) public returns (bool); function transferFrom(address from, address to, uint value) public returns (bool); function exchange(bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey) external returns (uint amountReceived); function issueSynths(uint amount) external; function issueMaxSynths() external; function burnSynths(uint amount) external; function burnSynthsToTarget() external; function settle(bytes32 currencyKey) external returns (uint reclaimed, uint refunded, uint numEntries); function collateralisationRatio(address issuer) public view returns (uint); function totalIssuedSynths(bytes32 currencyKey) public view returns (uint); function totalIssuedSynthsExcludeEtherCollateral(bytes32 currencyKey) public view returns (uint); function debtBalanceOf(address issuer, bytes32 currencyKey) public view returns (uint); function debtBalanceOfAndTotalDebt(address issuer, bytes32 currencyKey) public view returns (uint debtBalance, uint totalSystemValue); function remainingIssuableSynths(address issuer) public view returns (uint maxIssuable, uint alreadyIssued, uint totalSystemDebt); function maxIssuableSynths(address issuer) public view returns (uint maxIssuable); function isWaitingPeriod(bytes32 currencyKey) external view returns (bool); function emitSynthExchange( address account, bytes32 fromCurrencyKey, uint fromAmount, bytes32 toCurrencyKey, uint toAmount, address toAddress ) external; function emitExchangeReclaim(address account, bytes32 currencyKey, uint amount) external; function emitExchangeRebate(address account, bytes32 currencyKey, uint amount) external; } // https://docs.synthetix.io/contracts/SupplySchedule contract SupplySchedule is Owned { using SafeMath for uint; using SafeDecimalMath for uint; using Math for uint; // Time of the last inflation supply mint event uint public lastMintEvent; // Counter for number of weeks since the start of supply inflation uint public weekCounter; // The number of SNX rewarded to the caller of Synthetix.mint() uint public minterReward = 200 * SafeDecimalMath.unit(); // The initial weekly inflationary supply is 75m / 52 until the start of the decay rate. // 75e6 * SafeDecimalMath.unit() / 52 uint public constant INITIAL_WEEKLY_SUPPLY = 1442307692307692307692307; // Address of the SynthetixProxy for the onlySynthetix modifier address public synthetixProxy; // Max SNX rewards for minter uint public constant MAX_MINTER_REWARD = 200 * SafeDecimalMath.unit(); // How long each inflation period is before mint can be called uint public constant MINT_PERIOD_DURATION = 1 weeks; uint public constant INFLATION_START_DATE = 1551830400; // 2019-03-06T00:00:00+00:00 uint public constant MINT_BUFFER = 1 days; uint8 public constant SUPPLY_DECAY_START = 40; // Week 40 uint8 public constant SUPPLY_DECAY_END = 234; // Supply Decay ends on Week 234 (inclusive of Week 234 for a total of 195 weeks of inflation decay) // Weekly percentage decay of inflationary supply from the first 40 weeks of the 75% inflation rate uint public constant DECAY_RATE = 12500000000000000; // 1.25% weekly // Percentage growth of terminal supply per annum uint public constant TERMINAL_SUPPLY_RATE_ANNUAL = 25000000000000000; // 2.5% pa constructor(address _owner, uint _lastMintEvent, uint _currentWeek) public Owned(_owner) { lastMintEvent = _lastMintEvent; weekCounter = _currentWeek; } // ========== VIEWS ========== /** * @return The amount of SNX mintable for the inflationary supply */ function mintableSupply() external view returns (uint) { uint totalAmount; if (!isMintable()) { return totalAmount; } uint remainingWeeksToMint = weeksSinceLastIssuance(); uint currentWeek = weekCounter; // Calculate total mintable supply from exponential decay function // The decay function stops after week 234 while (remainingWeeksToMint > 0) { currentWeek++; if (currentWeek < SUPPLY_DECAY_START) { // If current week is before supply decay we add initial supply to mintableSupply totalAmount = totalAmount.add(INITIAL_WEEKLY_SUPPLY); remainingWeeksToMint--; } else if (currentWeek <= SUPPLY_DECAY_END) { // if current week before supply decay ends we add the new supply for the week // diff between current week and (supply decay start week - 1) uint decayCount = currentWeek.sub(SUPPLY_DECAY_START - 1); totalAmount = totalAmount.add(tokenDecaySupplyForWeek(decayCount)); remainingWeeksToMint--; } else { // Terminal supply is calculated on the total supply of Synthetix including any new supply // We can compound the remaining week's supply at the fixed terminal rate uint totalSupply = ISynthetix(synthetixProxy).totalSupply(); uint currentTotalSupply = totalSupply.add(totalAmount); totalAmount = totalAmount.add(terminalInflationSupply(currentTotalSupply, remainingWeeksToMint)); remainingWeeksToMint = 0; } } return totalAmount; } /** * @return A unit amount of decaying inflationary supply from the INITIAL_WEEKLY_SUPPLY * @dev New token supply reduces by the decay rate each week calculated as supply = INITIAL_WEEKLY_SUPPLY * () */ function tokenDecaySupplyForWeek(uint counter) public pure returns (uint) { // Apply exponential decay function to number of weeks since // start of inflation smoothing to calculate diminishing supply for the week. uint effectiveDecay = (SafeDecimalMath.unit().sub(DECAY_RATE)).powDecimal(counter); uint supplyForWeek = INITIAL_WEEKLY_SUPPLY.multiplyDecimal(effectiveDecay); return supplyForWeek; } /** * @return A unit amount of terminal inflation supply * @dev Weekly compound rate based on number of weeks */ function terminalInflationSupply(uint totalSupply, uint numOfWeeks) public pure returns (uint) { // rate = (1 + weekly rate) ^ num of weeks uint effectiveCompoundRate = SafeDecimalMath.unit().add(TERMINAL_SUPPLY_RATE_ANNUAL.div(52)).powDecimal(numOfWeeks); // return Supply * (effectiveRate - 1) for extra supply to issue based on number of weeks return totalSupply.multiplyDecimal(effectiveCompoundRate.sub(SafeDecimalMath.unit())); } /** * @dev Take timeDiff in seconds (Dividend) and MINT_PERIOD_DURATION as (Divisor) * @return Calculate the numberOfWeeks since last mint rounded down to 1 week */ function weeksSinceLastIssuance() public view returns (uint) { // Get weeks since lastMintEvent // If lastMintEvent not set or 0, then start from inflation start date. uint timeDiff = lastMintEvent > 0 ? now.sub(lastMintEvent) : now.sub(INFLATION_START_DATE); return timeDiff.div(MINT_PERIOD_DURATION); } /** * @return boolean whether the MINT_PERIOD_DURATION (7 days) * has passed since the lastMintEvent. * */ function isMintable() public view returns (bool) { if (now - lastMintEvent > MINT_PERIOD_DURATION) { return true; } return false; } // ========== MUTATIVE FUNCTIONS ========== /** * @notice Record the mint event from Synthetix by incrementing the inflation * week counter for the number of weeks minted (probabaly always 1) * and store the time of the event. * @param supplyMinted the amount of SNX the total supply was inflated by. * */ function recordMintEvent(uint supplyMinted) external onlySynthetix returns (bool) { uint numberOfWeeksIssued = weeksSinceLastIssuance(); // add number of weeks minted to weekCounter weekCounter = weekCounter.add(numberOfWeeksIssued); // Update mint event to latest week issued (start date + number of weeks issued * seconds in week) // 1 day time buffer is added so inflation is minted after feePeriod closes lastMintEvent = INFLATION_START_DATE.add(weekCounter.mul(MINT_PERIOD_DURATION)).add(MINT_BUFFER); emit SupplyMinted(supplyMinted, numberOfWeeksIssued, lastMintEvent, now); return true; } /** * @notice Sets the reward amount of SNX for the caller of the public * function Synthetix.mint(). * This incentivises anyone to mint the inflationary supply and the mintr * Reward will be deducted from the inflationary supply and sent to the caller. * @param amount the amount of SNX to reward the minter. * */ function setMinterReward(uint amount) external onlyOwner { require(amount <= MAX_MINTER_REWARD, "Reward cannot exceed max minter reward"); minterReward = amount; emit MinterRewardUpdated(minterReward); } // ========== SETTERS ========== */ /** * @notice Set the SynthetixProxy should it ever change. * SupplySchedule requires Synthetix address as it has the authority * to record mint event. * */ function setSynthetixProxy(ISynthetix _synthetixProxy) external onlyOwner { require(_synthetixProxy != address(0), "Address cannot be 0"); synthetixProxy = _synthetixProxy; emit SynthetixProxyUpdated(synthetixProxy); } // ========== MODIFIERS ========== /** * @notice Only the Synthetix contract is authorised to call this function * */ modifier onlySynthetix() { require( msg.sender == address(Proxy(synthetixProxy).target()), "Only the synthetix contract can perform this action" ); _; } /* ========== EVENTS ========== */ /** * @notice Emitted when the inflationary supply is minted * */ event SupplyMinted(uint supplyMinted, uint numberOfWeeksIssued, uint lastMintEvent, uint timestamp); /** * @notice Emitted when the SNX minter reward amount is updated * */ event MinterRewardUpdated(uint newRewardAmount); /** * @notice Emitted when setSynthetixProxy is called changing the Synthetix Proxy address * */ event SynthetixProxyUpdated(address newAddress); } /** * @title RewardsDistribution interface */ interface IRewardsDistribution { function distributeRewards(uint amount) external; } contract IEtherCollateral { uint256 public totalIssuedSynths; } // https://docs.synthetix.io/contracts/Synthetix contract Synthetix is ExternStateToken, MixinResolver { // ========== STATE VARIABLES ========== // Available Synths which can be used with the system Synth[] public availableSynths; mapping(bytes32 => Synth) public synths; mapping(address => bytes32) public synthsByAddress; string constant TOKEN_NAME = "Synthetix Network Token"; string constant TOKEN_SYMBOL = "SNX"; uint8 constant DECIMALS = 18; bytes32 constant sUSD = "sUSD"; /* ========== ADDRESS RESOLVER CONFIGURATION ========== */ bytes32 private constant CONTRACT_SYSTEMSTATUS = "SystemStatus"; bytes32 private constant CONTRACT_EXCHANGER = "Exchanger"; bytes32 private constant CONTRACT_ETHERCOLLATERAL = "EtherCollateral"; bytes32 private constant CONTRACT_ISSUER = "Issuer"; bytes32 private constant CONTRACT_SYNTHETIXSTATE = "SynthetixState"; bytes32 private constant CONTRACT_EXRATES = "ExchangeRates"; bytes32 private constant CONTRACT_FEEPOOL = "FeePool"; bytes32 private constant CONTRACT_SUPPLYSCHEDULE = "SupplySchedule"; bytes32 private constant CONTRACT_REWARDESCROW = "RewardEscrow"; bytes32 private constant CONTRACT_SYNTHETIXESCROW = "SynthetixEscrow"; bytes32 private constant CONTRACT_REWARDSDISTRIBUTION = "RewardsDistribution"; bytes32[24] private addressesToCache = [ CONTRACT_SYSTEMSTATUS, CONTRACT_EXCHANGER, CONTRACT_ETHERCOLLATERAL, CONTRACT_ISSUER, CONTRACT_SYNTHETIXSTATE, CONTRACT_EXRATES, CONTRACT_FEEPOOL, CONTRACT_SUPPLYSCHEDULE, CONTRACT_REWARDESCROW, CONTRACT_SYNTHETIXESCROW, CONTRACT_REWARDSDISTRIBUTION ]; // ========== CONSTRUCTOR ========== /** * @dev Constructor * @param _proxy The main token address of the Proxy contract. This will be ProxyERC20.sol * @param _tokenState Address of the external immutable contract containing token balances. * @param _owner The owner of this contract. * @param _totalSupply On upgrading set to reestablish the current total supply (This should be in SynthetixState if ever updated) * @param _resolver The address of the Synthetix Address Resolver */ constructor(address _proxy, TokenState _tokenState, address _owner, uint _totalSupply, address _resolver) public ExternStateToken(_proxy, _tokenState, TOKEN_NAME, TOKEN_SYMBOL, _totalSupply, DECIMALS, _owner) MixinResolver(_owner, _resolver, addressesToCache) {} /* ========== VIEWS ========== */ function systemStatus() internal view returns (ISystemStatus) { return ISystemStatus(requireAndGetAddress(CONTRACT_SYSTEMSTATUS, "Missing SystemStatus address")); } function exchanger() internal view returns (IExchanger) { return IExchanger(requireAndGetAddress(CONTRACT_EXCHANGER, "Missing Exchanger address")); } function etherCollateral() internal view returns (IEtherCollateral) { return IEtherCollateral(requireAndGetAddress(CONTRACT_ETHERCOLLATERAL, "Missing EtherCollateral address")); } function issuer() internal view returns (IIssuer) { return IIssuer(requireAndGetAddress(CONTRACT_ISSUER, "Missing Issuer address")); } function synthetixState() internal view returns (ISynthetixState) { return ISynthetixState(requireAndGetAddress(CONTRACT_SYNTHETIXSTATE, "Missing SynthetixState address")); } function exchangeRates() internal view returns (IExchangeRates) { return IExchangeRates(requireAndGetAddress(CONTRACT_EXRATES, "Missing ExchangeRates address")); } function feePool() internal view returns (IFeePool) { return IFeePool(requireAndGetAddress(CONTRACT_FEEPOOL, "Missing FeePool address")); } function supplySchedule() internal view returns (SupplySchedule) { return SupplySchedule(requireAndGetAddress(CONTRACT_SUPPLYSCHEDULE, "Missing SupplySchedule address")); } function rewardEscrow() internal view returns (ISynthetixEscrow) { return ISynthetixEscrow(requireAndGetAddress(CONTRACT_REWARDESCROW, "Missing RewardEscrow address")); } function synthetixEscrow() internal view returns (ISynthetixEscrow) { return ISynthetixEscrow(requireAndGetAddress(CONTRACT_SYNTHETIXESCROW, "Missing SynthetixEscrow address")); } function rewardsDistribution() internal view returns (IRewardsDistribution) { return IRewardsDistribution(requireAndGetAddress(CONTRACT_REWARDSDISTRIBUTION, "Missing RewardsDistribution address")); } /** * @notice Total amount of synths issued by the system, priced in currencyKey * @param currencyKey The currency to value the synths in */ function _totalIssuedSynths(bytes32 currencyKey, bool excludeEtherCollateral) internal view returns (uint) { IExchangeRates exRates = exchangeRates(); uint total = 0; uint currencyRate = exRates.rateForCurrency(currencyKey); (uint[] memory rates, bool anyRateStale) = exRates.ratesAndStaleForCurrencies(availableCurrencyKeys()); require(!anyRateStale, "Rates are stale"); for (uint i = 0; i < availableSynths.length; i++) { // What's the total issued value of that synth in the destination currency? // Note: We're not using exchangeRates().effectiveValue() because we don't want to go get the // rate for the destination currency and check if it's stale repeatedly on every // iteration of the loop uint totalSynths = availableSynths[i].totalSupply(); // minus total issued synths from Ether Collateral from sETH.totalSupply() if (excludeEtherCollateral && availableSynths[i] == synths["sETH"]) { totalSynths = totalSynths.sub(etherCollateral().totalIssuedSynths()); } uint synthValue = totalSynths.multiplyDecimalRound(rates[i]); total = total.add(synthValue); } return total.divideDecimalRound(currencyRate); } /** * @notice Total amount of synths issued by the system priced in currencyKey * @param currencyKey The currency to value the synths in */ function totalIssuedSynths(bytes32 currencyKey) public view returns (uint) { return _totalIssuedSynths(currencyKey, false); } /** * @notice Total amount of synths issued by the system priced in currencyKey, excluding ether collateral * @param currencyKey The currency to value the synths in */ function totalIssuedSynthsExcludeEtherCollateral(bytes32 currencyKey) public view returns (uint) { return _totalIssuedSynths(currencyKey, true); } /** * @notice Returns the currencyKeys of availableSynths for rate checking */ function availableCurrencyKeys() public view returns (bytes32[]) { bytes32[] memory currencyKeys = new bytes32[](availableSynths.length); for (uint i = 0; i < availableSynths.length; i++) { currencyKeys[i] = synthsByAddress[availableSynths[i]]; } return currencyKeys; } /** * @notice Returns the count of available synths in the system, which you can use to iterate availableSynths */ function availableSynthCount() public view returns (uint) { return availableSynths.length; } function isWaitingPeriod(bytes32 currencyKey) external view returns (bool) { return exchanger().maxSecsLeftInWaitingPeriod(messageSender, currencyKey) > 0; } // ========== MUTATIVE FUNCTIONS ========== /** * @notice Add an associated Synth contract to the Synthetix system * @dev Only the contract owner may call this. */ function addSynth(Synth synth) external optionalProxy_onlyOwner { bytes32 currencyKey = synth.currencyKey(); require(synths[currencyKey] == Synth(0), "Synth already exists"); require(synthsByAddress[synth] == bytes32(0), "Synth address already exists"); availableSynths.push(synth); synths[currencyKey] = synth; synthsByAddress[synth] = currencyKey; } /** * @notice Remove an associated Synth contract from the Synthetix system * @dev Only the contract owner may call this. */ function removeSynth(bytes32 currencyKey) external optionalProxy_onlyOwner { require(synths[currencyKey] != address(0), "Synth does not exist"); require(synths[currencyKey].totalSupply() == 0, "Synth supply exists"); require(currencyKey != sUSD, "Cannot remove synth"); // Save the address we're removing for emitting the event at the end. address synthToRemove = synths[currencyKey]; // Remove the synth from the availableSynths array. for (uint i = 0; i < availableSynths.length; i++) { if (availableSynths[i] == synthToRemove) { delete availableSynths[i]; // Copy the last synth into the place of the one we just deleted // If there's only one synth, this is synths[0] = synths[0]. // If we're deleting the last one, it's also a NOOP in the same way. availableSynths[i] = availableSynths[availableSynths.length - 1]; // Decrease the size of the array by one. availableSynths.length--; break; } } // And remove it from the synths mapping delete synthsByAddress[synths[currencyKey]]; delete synths[currencyKey]; // Note: No event here as Synthetix contract exceeds max contract size // with these events, and it's unlikely people will need to // track these events specifically. } /** * @notice ERC20 transfer function. */ function transfer(address to, uint value) public optionalProxy returns (bool) { systemStatus().requireSystemActive(); // Ensure they're not trying to exceed their staked SNX amount require(value <= transferableSynthetix(messageSender), "Cannot transfer staked or escrowed SNX"); // Perform the transfer: if there is a problem an exception will be thrown in this call. _transfer_byProxy(messageSender, to, value); return true; } /** * @notice ERC20 transferFrom function. */ function transferFrom(address from, address to, uint value) public optionalProxy returns (bool) { systemStatus().requireSystemActive(); // Ensure they're not trying to exceed their locked amount require(value <= transferableSynthetix(from), "Cannot transfer staked or escrowed SNX"); // Perform the transfer: if there is a problem, // an exception will be thrown in this call. return _transferFrom_byProxy(messageSender, from, to, value); } function issueSynths(uint amount) external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().issueSynths(messageSender, amount); } function issueSynthsOnBehalf(address issueForAddress, uint amount) external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().issueSynthsOnBehalf(issueForAddress, messageSender, amount); } function issueMaxSynths() external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().issueMaxSynths(messageSender); } function issueMaxSynthsOnBehalf(address issueForAddress) external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().issueMaxSynthsOnBehalf(issueForAddress, messageSender); } function burnSynths(uint amount) external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().burnSynths(messageSender, amount); } function burnSynthsOnBehalf(address burnForAddress, uint amount) external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().burnSynthsOnBehalf(burnForAddress, messageSender, amount); } function burnSynthsToTarget() external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().burnSynthsToTarget(messageSender); } function burnSynthsToTargetOnBehalf(address burnForAddress) external optionalProxy { systemStatus().requireIssuanceActive(); return issuer().burnSynthsToTargetOnBehalf(burnForAddress, messageSender); } function exchange(bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey) external optionalProxy returns (uint amountReceived) { systemStatus().requireExchangeActive(); systemStatus().requireSynthsActive(sourceCurrencyKey, destinationCurrencyKey); return exchanger().exchange(messageSender, sourceCurrencyKey, sourceAmount, destinationCurrencyKey, messageSender); } function exchangeOnBehalf( address exchangeForAddress, bytes32 sourceCurrencyKey, uint sourceAmount, bytes32 destinationCurrencyKey ) external optionalProxy returns (uint amountReceived) { systemStatus().requireExchangeActive(); systemStatus().requireSynthsActive(sourceCurrencyKey, destinationCurrencyKey); return exchanger().exchangeOnBehalf( exchangeForAddress, messageSender, sourceCurrencyKey, sourceAmount, destinationCurrencyKey ); } function settle(bytes32 currencyKey) external optionalProxy returns (uint reclaimed, uint refunded, uint numEntriesSettled) { return exchanger().settle(messageSender, currencyKey); } // ========== Issuance/Burning ========== /** * @notice The maximum synths an issuer can issue against their total synthetix quantity. * This ignores any already issued synths, and is purely giving you the maximimum amount the user can issue. */ function maxIssuableSynths(address _issuer) public view returns ( // We don't need to check stale rates here as effectiveValue will do it for us. uint ) { // What is the value of their SNX balance in the destination currency? uint destinationValue = exchangeRates().effectiveValue("SNX", collateral(_issuer), sUSD); // They're allowed to issue up to issuanceRatio of that value return destinationValue.multiplyDecimal(synthetixState().issuanceRatio()); } /** * @notice The current collateralisation ratio for a user. Collateralisation ratio varies over time * as the value of the underlying Synthetix asset changes, * e.g. based on an issuance ratio of 20%. if a user issues their maximum available * synths when they hold $10 worth of Synthetix, they will have issued $2 worth of synths. If the value * of Synthetix changes, the ratio returned by this function will adjust accordingly. Users are * incentivised to maintain a collateralisation ratio as close to the issuance ratio as possible by * altering the amount of fees they're able to claim from the system. */ function collateralisationRatio(address _issuer) public view returns (uint) { uint totalOwnedSynthetix = collateral(_issuer); if (totalOwnedSynthetix == 0) return 0; uint debtBalance = debtBalanceOf(_issuer, "SNX"); return debtBalance.divideDecimalRound(totalOwnedSynthetix); } /** * @notice If a user issues synths backed by SNX in their wallet, the SNX become locked. This function * will tell you how many synths a user has to give back to the system in order to unlock their original * debt position. This is priced in whichever synth is passed in as a currency key, e.g. you can price * the debt in sUSD, or any other synth you wish. */ function debtBalanceOf(address _issuer, bytes32 currencyKey) public view returns ( // Don't need to check for stale rates here because totalIssuedSynths will do it for us uint ) { ISynthetixState state = synthetixState(); // What was their initial debt ownership? (uint initialDebtOwnership, ) = state.issuanceData(_issuer); // If it's zero, they haven't issued, and they have no debt. if (initialDebtOwnership == 0) return 0; (uint debtBalance, ) = debtBalanceOfAndTotalDebt(_issuer, currencyKey); return debtBalance; } function debtBalanceOfAndTotalDebt(address _issuer, bytes32 currencyKey) public view returns (uint debtBalance, uint totalSystemValue) { ISynthetixState state = synthetixState(); // What was their initial debt ownership? uint initialDebtOwnership; uint debtEntryIndex; (initialDebtOwnership, debtEntryIndex) = state.issuanceData(_issuer); // What's the total value of the system excluding ETH backed synths in their requested currency? totalSystemValue = totalIssuedSynthsExcludeEtherCollateral(currencyKey); // If it's zero, they haven't issued, and they have no debt. if (initialDebtOwnership == 0) return (0, totalSystemValue); // Figure out the global debt percentage delta from when they entered the system. // This is a high precision integer of 27 (1e27) decimals. uint currentDebtOwnership = state .lastDebtLedgerEntry() .divideDecimalRoundPrecise(state.debtLedger(debtEntryIndex)) .multiplyDecimalRoundPrecise(initialDebtOwnership); // Their debt balance is their portion of the total system value. uint highPrecisionBalance = totalSystemValue.decimalToPreciseDecimal().multiplyDecimalRoundPrecise( currentDebtOwnership ); // Convert back into 18 decimals (1e18) debtBalance = highPrecisionBalance.preciseDecimalToDecimal(); } /** * @notice The remaining synths an issuer can issue against their total synthetix balance. * @param _issuer The account that intends to issue */ function remainingIssuableSynths(address _issuer) public view returns ( // Don't need to check for synth existing or stale rates because maxIssuableSynths will do it for us. uint maxIssuable, uint alreadyIssued, uint totalSystemDebt ) { (alreadyIssued, totalSystemDebt) = debtBalanceOfAndTotalDebt(_issuer, sUSD); maxIssuable = maxIssuableSynths(_issuer); if (alreadyIssued >= maxIssuable) { maxIssuable = 0; } else { maxIssuable = maxIssuable.sub(alreadyIssued); } } /** * @notice The total SNX owned by this account, both escrowed and unescrowed, * against which synths can be issued. * This includes those already being used as collateral (locked), and those * available for further issuance (unlocked). */ function collateral(address account) public view returns (uint) { uint balance = tokenState.balanceOf(account); if (synthetixEscrow() != address(0)) { balance = balance.add(synthetixEscrow().balanceOf(account)); } if (rewardEscrow() != address(0)) { balance = balance.add(rewardEscrow().balanceOf(account)); } return balance; } /** * @notice The number of SNX that are free to be transferred for an account. * @dev Escrowed SNX are not transferable, so they are not included * in this calculation. * @notice SNX rate not stale is checked within debtBalanceOf */ function transferableSynthetix(address account) public view rateNotStale("SNX") // SNX is not a synth so is not checked in totalIssuedSynths returns (uint) { // How many SNX do they have, excluding escrow? // Note: We're excluding escrow here because we're interested in their transferable amount // and escrowed SNX are not transferable. uint balance = tokenState.balanceOf(account); // How many of those will be locked by the amount they've issued? // Assuming issuance ratio is 20%, then issuing 20 SNX of value would require // 100 SNX to be locked in their wallet to maintain their collateralisation ratio // The locked synthetix value can exceed their balance. uint lockedSynthetixValue = debtBalanceOf(account, "SNX").divideDecimalRound(synthetixState().issuanceRatio()); // If we exceed the balance, no SNX are transferable, otherwise the difference is. if (lockedSynthetixValue >= balance) { return 0; } else { return balance.sub(lockedSynthetixValue); } } /** * @notice Mints the inflationary SNX supply. The inflation shedule is * defined in the SupplySchedule contract. * The mint() function is publicly callable by anyone. The caller will receive a minter reward as specified in supplySchedule.minterReward(). */ function mint() external returns (bool) { require(rewardsDistribution() != address(0), "RewardsDistribution not set"); systemStatus().requireIssuanceActive(); SupplySchedule _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(_rewardsDistribution, tokenState.balanceOf(_rewardsDistribution).add(amountToDistribute)); emitTransfer(this, _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(this, msg.sender, minterReward); totalSupply = totalSupply.add(supplyToMint); return true; } // ========== MODIFIERS ========== modifier rateNotStale(bytes32 currencyKey) { require(!exchangeRates().rateIsStale(currencyKey), "Rate stale or not a synth"); _; } modifier onlyExchanger() { require(msg.sender == address(exchanger()), "Only the exchanger contract can invoke this function"); _; } // ========== EVENTS ========== /* solium-disable */ event SynthExchange( address indexed account, bytes32 fromCurrencyKey, uint256 fromAmount, bytes32 toCurrencyKey, uint256 toAmount, address toAddress ); bytes32 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, bytes32(account), 0, 0 ); } event ExchangeReclaim(address indexed account, bytes32 currencyKey, uint amount); bytes32 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, bytes32(account), 0, 0); } event ExchangeRebate(address indexed account, bytes32 currencyKey, uint amount); bytes32 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, bytes32(account), 0, 0); } /* solium-enable */ }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_issuer","type":"address"}],"name":"maxIssuableSynths","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"removeSynth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_issuer","type":"address"}],"name":"remainingIssuableSynths","outputs":[{"name":"maxIssuable","type":"uint256"},{"name":"alreadyIssued","type":"uint256"},{"name":"totalSystemDebt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_integrationProxy","type":"address"}],"name":"setIntegrationProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"synthsByAddress","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"initiationTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"isWaitingPeriod","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"setSelfDestructBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"burnSynths","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"burnForAddress","type":"address"}],"name":"burnSynthsToTargetOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"issueForAddress","type":"address"}],"name":"issueMaxSynthsOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"synths","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"terminateSelfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_resolver","type":"address"}],"name":"setResolverAndSyncCache","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_issuer","type":"address"},{"name":"currencyKey","type":"bytes32"}],"name":"debtBalanceOfAndTotalDebt","outputs":[{"name":"debtBalance","type":"uint256"},{"name":"totalSystemValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_resolver","type":"address"}],"name":"isResolverCached","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"transferableSynthetix","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"fromCurrencyKey","type":"bytes32"},{"name":"fromAmount","type":"uint256"},{"name":"toCurrencyKey","type":"bytes32"},{"name":"toAmount","type":"uint256"},{"name":"toAddress","type":"address"}],"name":"emitSynthExchange","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"currencyKey","type":"bytes32"},{"name":"amount","type":"uint256"}],"name":"emitExchangeRebate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"availableCurrencyKeys","outputs":[{"name":"","type":"bytes32[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"availableSynths","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"totalIssuedSynths","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"synth","type":"address"}],"name":"addSynth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"issueSynths","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_proxy","type":"address"}],"name":"setProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"burnSynthsToTarget","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"settle","outputs":[{"name":"reclaimed","type":"uint256"},{"name":"refunded","type":"uint256"},{"name":"numEntriesSettled","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"selfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"integrationProxy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenState","type":"address"}],"name":"setTokenState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_issuer","type":"address"}],"name":"collateralisationRatio","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"SELFDESTRUCT_DELAY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"collateral","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getResolverAddressesRequired","outputs":[{"name":"addressesRequired","type":"bytes32[24]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"currencyKey","type":"bytes32"},{"name":"amount","type":"uint256"}],"name":"emitExchangeReclaim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"issueMaxSynths","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"selfDestructInitiated","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sender","type":"address"}],"name":"setMessageSender","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"initiateSelfDestruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"burnForAddress","type":"address"},{"name":"amount","type":"uint256"}],"name":"burnSynthsOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"selfDestructBeneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"resolverAddressesRequired","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"exchangeForAddress","type":"address"},{"name":"sourceCurrencyKey","type":"bytes32"},{"name":"sourceAmount","type":"uint256"},{"name":"destinationCurrencyKey","type":"bytes32"}],"name":"exchangeOnBehalf","outputs":[{"name":"amountReceived","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_issuer","type":"address"},{"name":"currencyKey","type":"bytes32"}],"name":"debtBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"currencyKey","type":"bytes32"}],"name":"totalIssuedSynthsExcludeEtherCollateral","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"messageSender","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"availableSynthCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_ADDRESSES_FROM_RESOLVER","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"issueForAddress","type":"address"},{"name":"amount","type":"uint256"}],"name":"issueSynthsOnBehalf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenState","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sourceCurrencyKey","type":"bytes32"},{"name":"sourceAmount","type":"uint256"},{"name":"destinationCurrencyKey","type":"bytes32"}],"name":"exchange","outputs":[{"name":"amountReceived","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_proxy","type":"address"},{"name":"_tokenState","type":"address"},{"name":"_owner","type":"address"},{"name":"_totalSupply","type":"uint256"},{"name":"_resolver","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"},{"indexed":false,"name":"fromCurrencyKey","type":"bytes32"},{"indexed":false,"name":"fromAmount","type":"uint256"},{"indexed":false,"name":"toCurrencyKey","type":"bytes32"},{"indexed":false,"name":"toAmount","type":"uint256"},{"indexed":false,"name":"toAddress","type":"address"}],"name":"SynthExchange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"},{"indexed":false,"name":"currencyKey","type":"bytes32"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"ExchangeReclaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"},{"indexed":false,"name":"currencyKey","type":"bytes32"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"ExchangeRebate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newTokenState","type":"address"}],"name":"TokenStateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proxyAddress","type":"address"}],"name":"ProxyUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"SelfDestructTerminated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"beneficiary","type":"address"}],"name":"SelfDestructed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"selfDestructDelay","type":"uint256"}],"name":"SelfDestructInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newBeneficiary","type":"address"}],"name":"SelfDestructBeneficiaryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"}]
Contract Creation Code
6101e06040527f53797374656d537461747573000000000000000000000000000000000000000060809081527f45786368616e676572000000000000000000000000000000000000000000000060a0527f4574686572436f6c6c61746572616c000000000000000000000000000000000060c0527f497373756572000000000000000000000000000000000000000000000000000060e0527f53796e7468657469785374617465000000000000000000000000000000000000610100527f45786368616e6765526174657300000000000000000000000000000000000000610120527f466565506f6f6c00000000000000000000000000000000000000000000000000610140527f537570706c795363686564756c65000000000000000000000000000000000000610160527f526577617264457363726f770000000000000000000000000000000000000000610180527f53796e746865746978457363726f7700000000000000000000000000000000006101a0527f52657761726473446973747269627574696f6e000000000000000000000000006101c052620001aa90601190600b6200058d565b50348015620001b857600080fd5b5060405160a080620060da833981016040818152825160208401518285015160608601516080909601516103008601948590529295919490939192918491839160119060189082845b8154815260019091019060200180831162000201575050604080518082018252601781527f53796e746865746978204e6574776f726b20546f6b656e0000000000000000006020808301919091528251808401909352600383527f534e58000000000000000000000000000000000000000000000000000000000090830152600094508c93508b9250908960128c8681808d600160a060020a03811615156200030b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b60008054600160a060020a031916600160a060020a038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150600160a060020a0381161515620003dc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f776e6572206d757374206e6f74206265207a65726f00000000000000000000604482015290519081900360640190fd5b60038054600160a060020a038316610100810261010060a860020a03199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a15060048054600160a060020a038416600160a060020a0319909116811790915560408051918252517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e9181900360200190a1505060078054600160a060020a031916600160a060020a0388161790558451620004b9906008906020880190620005d2565b508351620004cf906009906020870190620005d2565b5050600a91909155600b805460ff191660ff90921691909117905550600093505050505b6018811015620005585760008282601881106200050c57fe5b6020020151146200054957600d8282601881106200052657fe5b60209081029190910151825460018101845560009384529190922001556200054f565b62000558565b600101620004f3565b5050600b8054600160a060020a039092166101000261010060a860020a03199092169190911790555062000665945050505050565b8260188101928215620005c0579160200282015b82811115620005c05782518255602090920191600190910190620005a1565b50620005ce92915062000645565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200061557805160ff1916838001178555620005c0565b82800160010185558215620005c0579182015b82811115620005c057825182559160200191906001019062000628565b6200066291905b80821115620005ce57600081556001016200064c565b90565b615a6580620006756000396000f3006080604052600436106102fd5763ffffffff60e060020a60003504166304f3bcec811461030257806305b3c1c91461033357806306fdde0314610366578063095ea7b3146103f05780630b887dae146104285780631137aedf146104425780631249c58b14610481578063131b0ae7146104965780631627540c146104b757806316b2213f146104d857806317c70de4146104f957806318160ddd1461050e5780631fce304d1461052357806320714f881461053b57806323b872dd1461055c578063295da87d146105865780632c955fa71461059e578063313ce567146105bf578063320223db146105ea578063326080391461060b5780633278c960146106235780633be99e6f1461063857806353a47bb714610659578063559cd4ee1461066e578063631e1444146106ab5780636ac0bf9c146106cc5780636c00f310146106ed5780636f01a9861461072457806370a082311461074b57806372cb051f1461076c57806379ba5097146107d1578063835e119c146107e657806383d625d4146107fe578063849cf588146108165780638a290014146108375780638da5cb5b1461084f57806395d89b411461086457806397107d6d146108795780639741fb221461089a578063987757dd146108af5780639cb8a26a146108c75780639cbdaeb6146108dc5780639f769807146108f1578063a311c7c214610912578063a461fc8214610933578063a5fdc5de14610948578063a9059cbb14610969578063ab49848c1461098d578063ace88afd146109db578063af086c7e14610a02578063b8225dec14610a17578063bc67f83214610a2c578063bd32aa4414610a4d578063c2bf388014610a62578063c58aaae614610a86578063c6c9d82814610a9b578063c836fa0a14610ab3578063d37c4d8b14610add578063d60888e414610b01578063d67bdd2514610b19578063dbf6334014610b2e578063dd62ed3e14610b43578063e3235c9114610b6a578063e8e09b8b14610b7f578063e90dd9e214610ba3578063ec55688914610bb8578063ee52a2f314610bcd575b600080fd5b34801561030e57600080fd5b50610317610beb565b60408051600160a060020a039092168252519081900360200190f35b34801561033f57600080fd5b50610354600160a060020a0360043516610bff565b60408051918252519081900360200190f35b34801561037257600080fd5b5061037b610d49565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103b557818101518382015260200161039d565b50505050905090810190601f1680156103e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fc57600080fd5b50610414600160a060020a0360043516602435610dd7565b604080519115158252519081900360200190f35b34801561043457600080fd5b50610440600435610edd565b005b34801561044e57600080fd5b50610463600160a060020a03600435166112b4565b60408051938452602084019290925282820152519081900360600190f35b34801561048d57600080fd5b5061041461131d565b3480156104a257600080fd5b50610440600160a060020a0360043516611838565b3480156104c357600080fd5b50610440600160a060020a03600435166118be565b3480156104e457600080fd5b50610354600160a060020a0360043516611976565b34801561050557600080fd5b50610354611988565b34801561051a57600080fd5b5061035461198e565b34801561052f57600080fd5b50610414600435611994565b34801561054757600080fd5b50610440600160a060020a0360043516611a42565b34801561056857600080fd5b50610414600160a060020a0360043581169060243516604435611b6f565b34801561059257600080fd5b50610440600435611cca565b3480156105aa57600080fd5b50610440600160a060020a0360043516611e0f565b3480156105cb57600080fd5b506105d4611f39565b6040805160ff9092168252519081900360200190f35b3480156105f657600080fd5b50610440600160a060020a0360043516611f42565b34801561061757600080fd5b5061031760043561206c565b34801561062f57600080fd5b50610440612087565b34801561064457600080fd5b50610440600160a060020a0360043516612125565b34801561066557600080fd5b506103176122ee565b34801561067a57600080fd5b50610692600160a060020a03600435166024356122fd565b6040805192835260208301919091528051918290030190f35b3480156106b757600080fd5b50610414600160a060020a036004351661250b565b3480156106d857600080fd5b50610354600160a060020a0360043516612659565b3480156106f957600080fd5b50610440600160a060020a036004358116906024359060443590606435906084359060a43516612880565b34801561073057600080fd5b50610440600160a060020a0360043516602435604435612aa1565b34801561075757600080fd5b50610354600160a060020a0360043516612ca4565b34801561077857600080fd5b50610781612d2b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107bd5781810151838201526020016107a5565b505050509050019250505060405180910390f35b3480156107dd57600080fd5b50610440612dcf565b3480156107f257600080fd5b50610317600435612eca565b34801561080a57600080fd5b50610354600435612ef2565b34801561082257600080fd5b50610440600160a060020a0360043516612f05565b34801561084357600080fd5b50610440600435613182565b34801561085b57600080fd5b506103176132ab565b34801561087057600080fd5b5061037b6132ba565b34801561088557600080fd5b50610440600160a060020a0360043516613315565b3480156108a657600080fd5b506104406133cd565b3480156108bb57600080fd5b50610463600435613509565b3480156108d357600080fd5b50610440613621565b3480156108e857600080fd5b5061031761379a565b3480156108fd57600080fd5b50610440600160a060020a03600435166137a9565b34801561091e57600080fd5b50610354600160a060020a036004351661388a565b34801561093f57600080fd5b506103546138cf565b34801561095457600080fd5b50610354600160a060020a03600435166138d6565b34801561097557600080fd5b50610414600160a060020a0360043516602435613a33565b34801561099957600080fd5b506109a2613b9c565b604051808261030080838360005b838110156109c85781810151838201526020016109b0565b5050505090500191505060405180910390f35b3480156109e757600080fd5b50610440600160a060020a0360043516602435604435613be9565b348015610a0e57600080fd5b50610440613d7d565b348015610a2357600080fd5b50610414613e9f565b348015610a3857600080fd5b50610440600160a060020a0360043516613ea8565b348015610a5957600080fd5b50610440613f43565b348015610a6e57600080fd5b50610440600160a060020a0360043516602435613ff0565b348015610a9257600080fd5b5061031761413d565b348015610aa757600080fd5b50610354600435614151565b348015610abf57600080fd5b50610354600160a060020a0360043516602435604435606435614170565b348015610ae957600080fd5b50610354600160a060020a0360043516602435614373565b348015610b0d57600080fd5b5061035460043561443d565b348015610b2557600080fd5b5061031761444a565b348015610b3a57600080fd5b50610354614459565b348015610b4f57600080fd5b50610354600160a060020a0360043581169060243516614460565b348015610b7657600080fd5b50610354614506565b348015610b8b57600080fd5b50610440600160a060020a036004351660243561450b565b348015610baf57600080fd5b5061031761463c565b348015610bc457600080fd5b5061031761464b565b348015610bd957600080fd5b5061035460043560243560443561465a565b600b546101009004600160a060020a031681565b600080610c0a61485b565b600160a060020a031663654a60ac610c21856138d6565b6040805160e060020a63ffffffff851602815260eb60020a620a69cb02600482015260248101929092527f735553440000000000000000000000000000000000000000000000000000000060448301525160648083019260209291908290030181600087803b158015610c9357600080fd5b505af1158015610ca7573d6000803e3d6000fd5b505050506040513d6020811015610cbd57600080fd5b50519050610d42610ccc6148c1565b600160a060020a031663b410a0346040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610d0957600080fd5b505af1158015610d1d573d6000803e3d6000fd5b505050506040513d6020811015610d3357600080fd5b5051829063ffffffff61492216565b9392505050565b6008805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dcf5780601f10610da457610100808354040283529160200191610dcf565b820191906000526020600020905b815481529060010190602001808311610db257829003601f168201915b505050505081565b6004546000908190600160a060020a03163314801590610e025750600554600160a060020a03163314155b8015610e195750600654600160a060020a03163314155b15610e315760068054600160a060020a031916331790555b50600654600754604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0393841660048201819052878516602483015260448201879052915191939092169163da46098c91606480830192600092919082900301818387803b158015610eae57600080fd5b505af1158015610ec2573d6000803e3d6000fd5b50505050610ed181858561494e565b600191505b5092915050565b6004546000908190600160a060020a03163314801590610f085750600554600160a060020a03163314155b8015610f1f5750600654600160a060020a03163314155b15610f375760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614610f9f576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b6000838152600f6020526040902054600160a060020a0316151561100d576040805160e560020a62461bcd02815260206004820152601460248201527f53796e746820646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b6000838152600f602090815260408083205481517f18160ddd0000000000000000000000000000000000000000000000000000000081529151600160a060020a03909116936318160ddd93600480850194919392918390030190829087803b15801561107857600080fd5b505af115801561108c573d6000803e3d6000fd5b505050506040513d60208110156110a257600080fd5b5051156110f9576040805160e560020a62461bcd02815260206004820152601360248201527f53796e746820737570706c792065786973747300000000000000000000000000604482015290519081900360640190fd5b7f7355534400000000000000000000000000000000000000000000000000000000831415611171576040805160e560020a62461bcd02815260206004820152601360248201527f43616e6e6f742072656d6f76652073796e746800000000000000000000000000604482015290519081900360640190fd5b50506000818152600f6020526040812054600160a060020a0316905b600e548110156112745781600160a060020a0316600e828154811015156111b057fe5b600091825260209091200154600160a060020a0316141561126c57600e8054829081106111d957fe5b60009182526020909120018054600160a060020a0319169055600e8054600019810190811061120457fe5b600091825260209091200154600e8054600160a060020a03909216918390811061122a57fe5b60009182526020909120018054600160a060020a031916600160a060020a0392909216919091179055600e80549061126690600019830161599b565b50611274565b60010161118d565b50506000818152600f602081815260408084208054600160a060020a03168552601083529084208490559390925290528054600160a060020a0319169055565b60008060006112e3847f73555344000000000000000000000000000000000000000000000000000000006122fd565b90925090506112f184610bff565b92508282106113035760009250611316565b611313838363ffffffff614a5016565b92505b9193909250565b600080808080808061132d614a67565b600160a060020a0316141561138c576040805160e560020a62461bcd02815260206004820152601b60248201527f52657761726473446973747269627574696f6e206e6f74207365740000000000604482015290519081900360640190fd5b611394614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b505050506113f1614b50565b94506113fb614a67565b935084600160a060020a031663cc5c095c6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561143b57600080fd5b505af115801561144f573d6000803e3d6000fd5b505050506040513d602081101561146557600080fd5b50519250600083116114c1576040805160e560020a62461bcd02815260206004820152601560248201527f4e6f20737570706c79206973206d696e7461626c650000000000000000000000604482015290519081900360640190fd5b84600160a060020a0316637e7961d7846040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561150a57600080fd5b505af115801561151e573d6000803e3d6000fd5b505050506040513d602081101561153457600080fd5b5050604080517f9bdd7ac70000000000000000000000000000000000000000000000000000000081529051600160a060020a03871691639bdd7ac79160048083019260209291908290030181600087803b15801561159157600080fd5b505af11580156115a5573d6000803e3d6000fd5b505050506040513d60208110156115bb57600080fd5b505191506115cf838363ffffffff614a5016565b6007546040805160e060020a6370a08231028152600160a060020a038881166004830152915193945091169163b46310f691879161166a91869186916370a082319160248083019260209291908290030181600087803b15801561163257600080fd5b505af1158015611646573d6000803e3d6000fd5b505050506040513d602081101561165c57600080fd5b50519063ffffffff614bb116565b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156116bc57600080fd5b505af11580156116d0573d6000803e3d6000fd5b505050506116df308583614bc3565b83600160a060020a03166359974e38826040518263ffffffff1660e060020a02815260040180828152602001915050600060405180830381600087803b15801561172857600080fd5b505af115801561173c573d6000803e3d6000fd5b50506007546040805160e060020a6370a0823102815233600482018190529151600160a060020a03909316945063b46310f6935090916117a191879186916370a082319160248083019260209291908290030181600087803b15801561163257600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156117f357600080fd5b505af1158015611807573d6000803e3d6000fd5b50505050611816303384614bc3565b600a54611829908463ffffffff614bb116565b600a5560019550505050505090565b600054600160a060020a0316331461189c576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a03163314611922576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60018054600160a060020a038316600160a060020a0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b60106020526000908152604090205481565b60025481565b600a5481565b60008061199f614cc5565b600654604080517f059c29ec000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018790529051929091169163059c29ec916044808201926020929091908290030181600087803b158015611a0f57600080fd5b505af1158015611a23573d6000803e3d6000fd5b505050506040513d6020811015611a3957600080fd5b50511192915050565b600054600160a060020a03163314611aa6576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b600160a060020a0381161515611b06576040805160e560020a62461bcd02815260206004820152601c60248201527f42656e6566696369617279206d757374206e6f74206265207a65726f00000000604482015290519081900360640190fd5b60038054600160a060020a038316610100810274ffffffffffffffffffffffffffffffffffffffff00199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a150565b600454600090600160a060020a03163314801590611b985750600554600160a060020a03163314155b8015611baf5750600654600160a060020a03163314155b15611bc75760068054600160a060020a031916331790555b611bcf614aef565b600160a060020a031663086dabd16040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611c0c57600080fd5b505af1158015611c20573d6000803e3d6000fd5b50505050611c2d84612659565b821115611caa576040805160e560020a62461bcd02815260206004820152602660248201527f43616e6e6f74207472616e73666572207374616b6564206f7220657363726f7760448201527f656420534e580000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600654611cc290600160a060020a0316858585614d26565b949350505050565b600454600160a060020a03163314801590611cf05750600554600160a060020a03163314155b8015611d075750600654600160a060020a03163314155b15611d1f5760068054600160a060020a031916331790555b611d27614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611d6457600080fd5b505af1158015611d78573d6000803e3d6000fd5b50505050611d84614e62565b600654604080517fb06e8c65000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018590529051929091169163b06e8c659160448082019260009290919082900301818387803b158015611df357600080fd5b505af1158015611e07573d6000803e3d6000fd5b505050505b50565b600454600160a060020a03163314801590611e355750600554600160a060020a03163314155b8015611e4c5750600654600160a060020a03163314155b15611e645760068054600160a060020a031916331790555b611e6c614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611ea957600080fd5b505af1158015611ebd573d6000803e3d6000fd5b50505050611ec9614e62565b600654604080517f2b3f41aa000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152928316602482015290519290911691632b3f41aa9160448082019260009290919082900301818387803b158015611df357600080fd5b600b5460ff1681565b600454600160a060020a03163314801590611f685750600554600160a060020a03163314155b8015611f7f5750600654600160a060020a03163314155b15611f975760068054600160a060020a031916331790555b611f9f614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611fdc57600080fd5b505af1158015611ff0573d6000803e3d6000fd5b50505050611ffc614e62565b600654604080517ffd864ccf000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015292831660248201529051929091169163fd864ccf9160448082019260009290919082900301818387803b158015611df357600080fd5b600f60205260009081526040902054600160a060020a031681565b600054600160a060020a031633146120eb576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b600060028190556003805460ff191690556040517f6adcc7125002935e0aa31697538ebbd65cfddf20431eb6ecdcfc3e238bfd082c9190a1565b600080548190600160a060020a0316331461218c576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b600b805474ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a03861602179055600091505b600d548210156122e957600d8054839081106121d657fe5b600091825260208083209190910154600b54604080517fdacb2d010000000000000000000000000000000000000000000000000000000081526004810184905260248101829052601760448201527f5265736f6c766572206d697373696e672074617267657400000000000000000060648201529051929550610100909104600160a060020a03169363dacb2d019360848084019491939192918390030190829087803b15801561228657600080fd5b505af115801561229a573d6000803e3d6000fd5b505050506040513d60208110156122b057600080fd5b50516000828152600c602052604090208054600160a060020a031916600160a060020a03909216919091179055600191909101906121be565b505050565b600154600160a060020a031681565b60008060008060008060006123106148c1565b604080517f8b3f8088000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301528251939850881692638b3f8088926024808401939192918290030181600087803b15801561237457600080fd5b505af1158015612388573d6000803e3d6000fd5b505050506040513d604081101561239e57600080fd5b50805160209091015190945092506123b58861443d565b95508315156123c757600096506124ff565b6124e2846124d687600160a060020a03166308d95cd5876040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561241757600080fd5b505af115801561242b573d6000803e3d6000fd5b505050506040513d602081101561244157600080fd5b5051604080517f463177120000000000000000000000000000000000000000000000000000000081529051600160a060020a038b169163463177129160048083019260209291908290030181600087803b15801561249e57600080fd5b505af11580156124b2573d6000803e3d6000fd5b505050506040513d60208110156124c857600080fd5b50519063ffffffff614ec316565b9063ffffffff614edc16565b91506124f1826124d688614ef5565b90506124fc81614f0b565b96505b50505050509250929050565b600b5460009081908190600160a060020a0385811661010090920416146125355760009250612652565b600091505b600d5482101561264d57600d80548390811061255257fe5b6000918252602080832090910154808352600c8252604080842054600b5482517f21f8a721000000000000000000000000000000000000000000000000000000008152600481018590529251939650600160a060020a0391821695610100909104909116936321f8a72193602480850194929391928390030190829087803b1580156125dd57600080fd5b505af11580156125f1573d6000803e3d6000fd5b505050506040513d602081101561260757600080fd5b5051600160a060020a031614158061263457506000818152600c6020526040902054600160a060020a0316155b156126425760009250612652565b60019091019061253a565b600192505b5050919050565b600080600060eb60020a620a69cb0261267061485b565b600160a060020a0316629919c0826040518263ffffffff1660e060020a028152600401808260001916600019168152602001915050602060405180830381600087803b1580156126bf57600080fd5b505af11580156126d3573d6000803e3d6000fd5b505050506040513d60208110156126e957600080fd5b505115612740576040805160e560020a62461bcd02815260206004820152601960248201527f52617465207374616c65206f72206e6f7420612073796e746800000000000000604482015290519081900360640190fd5b6007546040805160e060020a6370a08231028152600160a060020a038881166004830152915191909216916370a082319160248083019260209291908290030181600087803b15801561279257600080fd5b505af11580156127a6573d6000803e3d6000fd5b505050506040513d60208110156127bc57600080fd5b505192506128536127cb6148c1565b600160a060020a031663b410a0346040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561280857600080fd5b505af115801561281c573d6000803e3d6000fd5b505050506040513d602081101561283257600080fd5b50516128478760eb60020a620a69cb02614373565b9063ffffffff614f2d16565b91508282106128655760009350612878565b612875838363ffffffff614a5016565b93505b505050919050565b612888614cc5565b600160a060020a0316331461290d576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c79207468652065786368616e67657220636f6e74726163742063616e2060448201527f696e766f6b6520746869732066756e6374696f6e000000000000000000000000606482015290519081900360840190fd5b600480546040805160208082018a90528183018990526060820188905260808201879052600160a060020a0386811660a0808501919091528451808503909101815260c08085018087527f53796e746845786368616e676528616464726573732c627974657333322c756990527f6e743235362c627974657333322c75696e743235362c6164647265737329000060e086015294519384900360fe01842060e060020a63907dff97028552600260248601819052604486018290528e84166064870181905260006084880181905260a48801819052998701978852835160c48801528351949098169863907dff9798939791969295939490938493839260e4909101918a0190808383885b83811015612a30578181015183820152602001612a18565b50505050905090810190601f168015612a5d5780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b158015612a8157600080fd5b505af1158015612a95573d6000803e3d6000fd5b50505050505050505050565b612aa9614cc5565b600160a060020a03163314612b2e576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c79207468652065786368616e67657220636f6e74726163742063616e2060448201527f696e766f6b6520746869732066756e6374696f6e000000000000000000000000606482015290519081900360840190fd5b60048054604080516020808201879052818301869052825180830384018152606083018085527f45786368616e676552656261746528616464726573732c627974657333322c7590527f696e7432353629000000000000000000000000000000000000000000000000006080840152925191829003608701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038a81166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a0190808383885b83811015612c36578181015183820152602001612c1e565b50505050905090810190601f168015612c635780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b158015612c8757600080fd5b505af1158015612c9b573d6000803e3d6000fd5b50505050505050565b6007546040805160e060020a6370a08231028152600160a060020a038481166004830152915160009392909216916370a082319160248082019260209290919082900301818787803b158015612cf957600080fd5b505af1158015612d0d573d6000803e3d6000fd5b505050506040513d6020811015612d2357600080fd5b505192915050565b6060806000600e80549050604051908082528060200260200182016040528015612d5f578160200160208202803883390190505b509150600090505b600e54811015612dc95760106000600e83815481101515612d8457fe5b6000918252602080832090910154600160a060020a031683528201929092526040019020548251839083908110612db757fe5b60209081029091010152600101612d67565b50919050565b600154600160a060020a03163314612e57576040805160e560020a62461bcd02815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b60005460015460408051600160a060020a03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a16001805460008054600160a060020a0319908116600160a060020a03841617909155169055565b600e805482908110612ed857fe5b600091825260209091200154600160a060020a0316905081565b6000612eff826000614f42565b92915050565b600454600090600160a060020a03163314801590612f2e5750600554600160a060020a03163314155b8015612f455750600654600160a060020a03163314155b15612f5d5760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614612fc5576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b81600160a060020a031663dbd06c856040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561300357600080fd5b505af1158015613017573d6000803e3d6000fd5b505050506040513d602081101561302d57600080fd5b50516000818152600f6020526040902054909150600160a060020a03161561309f576040805160e560020a62461bcd02815260206004820152601460248201527f53796e746820616c726561647920657869737473000000000000000000000000604482015290519081900360640190fd5b600160a060020a0382166000908152601060205260409020541561310d576040805160e560020a62461bcd02815260206004820152601c60248201527f53796e7468206164647265737320616c72656164792065786973747300000000604482015290519081900360640190fd5b600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd018054600160a060020a03909316600160a060020a031993841681179091556000828152600f602090815260408083208054909616841790955591815260109091529190912055565b600454600160a060020a031633148015906131a85750600554600160a060020a03163314155b80156131bf5750600654600160a060020a03163314155b156131d75760068054600160a060020a031916331790555b6131df614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561321c57600080fd5b505af1158015613230573d6000803e3d6000fd5b5050505061323c614e62565b600654604080517f042e0688000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018590529051929091169163042e06889160448082019260009290919082900301818387803b158015611df357600080fd5b600054600160a060020a031681565b6009805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dcf5780601f10610da457610100808354040283529160200191610dcf565b600054600160a060020a03163314613379576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60048054600160a060020a038316600160a060020a0319909116811790915560408051918252517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e9181900360200190a150565b600454600160a060020a031633148015906133f35750600554600160a060020a03163314155b801561340a5750600654600160a060020a03163314155b156134225760068054600160a060020a031916331790555b61342a614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561346757600080fd5b505af115801561347b573d6000803e3d6000fd5b50505050613487614e62565b600654604080517f497d704a000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051929091169163497d704a9160248082019260009290919082900301818387803b1580156134ef57600080fd5b505af1158015613503573d6000803e3d6000fd5b50505050565b60045460009081908190600160a060020a031633148015906135365750600554600160a060020a03163314155b801561354d5750600654600160a060020a03163314155b156135655760068054600160a060020a031916331790555b61356d614cc5565b600654604080517f1b16802c000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810188905290519290911691631b16802c916044808201926060929091908290030181600087803b1580156135dd57600080fd5b505af11580156135f1573d6000803e3d6000fd5b505050506040513d606081101561360757600080fd5b508051602082015160409092015190969195509350915050565b60008054600160a060020a03163314613686576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60035460ff1615156136e2576040805160e560020a62461bcd02815260206004820152601f60248201527f53656c66204465737472756374206e6f742079657420696e6974696174656400604482015290519081900360640190fd5b426224ea0060025401101515613742576040805160e560020a62461bcd02815260206004820152601b60248201527f53656c662064657374727563742064656c6179206e6f74206d65740000000000604482015290519081900360640190fd5b5060035460408051600160a060020a0361010090930492909216808352905190917f8a09e1677ced846cb537dc2b172043bd05a1a81ad7e0033a7ef8ba762df990b7919081900360200190a180600160a060020a0316ff5b600554600160a060020a031681565b600454600160a060020a031633148015906137cf5750600554600160a060020a03163314155b80156137e65750600654600160a060020a03163314155b156137fe5760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614613866576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b60078054600160a060020a031916600160a060020a038316179055611e0c81615381565b6000806000613898846138d6565b91508115156138aa5760009250612652565b6138bd8460eb60020a620a69cb02614373565b9050611cc2818363ffffffff614f2d16565b6224ea0081565b6007546040805160e060020a6370a08231028152600160a060020a0384811660048301529151600093849316916370a0823191602480830192602092919082900301818787803b15801561392957600080fd5b505af115801561393d573d6000803e3d6000fd5b505050506040513d602081101561395357600080fd5b5051905060006139616154ad565b600160a060020a031614613a1057613a0d61397a6154ad565b600160a060020a03166370a08231856040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1580156139d457600080fd5b505af11580156139e8573d6000803e3d6000fd5b505050506040513d60208110156139fe57600080fd5b5051829063ffffffff614bb116565b90505b6000613a1a61550e565b600160a060020a031614612eff57610d4261397a61550e565b600454600090600160a060020a03163314801590613a5c5750600554600160a060020a03163314155b8015613a735750600654600160a060020a03163314155b15613a8b5760068054600160a060020a031916331790555b613a93614aef565b600160a060020a031663086dabd16040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015613ad057600080fd5b505af1158015613ae4573d6000803e3d6000fd5b5050600654613afe9250600160a060020a03169050612659565b821115613b7b576040805160e560020a62461bcd02815260206004820152602660248201527f43616e6e6f74207472616e73666572207374616b6564206f7220657363726f7760448201527f656420534e580000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600654613b9290600160a060020a0316848461556f565b5060019392505050565b613ba46159bf565b60005b600d54811015613be557600d805482908110613bbf57fe5b90600052602060002001548282601881101515613bd857fe5b6020020152600101613ba7565b5090565b613bf1614cc5565b600160a060020a03163314613c76576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c79207468652065786368616e67657220636f6e74726163742063616e2060448201527f696e766f6b6520746869732066756e6374696f6e000000000000000000000000606482015290519081900360840190fd5b60048054604080516020808201879052818301869052825180830384018152606083018085527f45786368616e67655265636c61696d28616464726573732c627974657333322c90527f75696e74323536290000000000000000000000000000000000000000000000006080840152925191829003608801822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038a81166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a01908083838883811015612c36578181015183820152602001612c1e565b600454600160a060020a03163314801590613da35750600554600160a060020a03163314155b8015613dba5750600654600160a060020a03163314155b15613dd25760068054600160a060020a031916331790555b613dda614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015613e1757600080fd5b505af1158015613e2b573d6000803e3d6000fd5b50505050613e37614e62565b600654604080517fc8977132000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051929091169163c89771329160248082019260009290919082900301818387803b1580156134ef57600080fd5b60035460ff1681565b600454600160a060020a0316331480613ecb5750600554600160a060020a031633145b1515613f21576040805160e560020a62461bcd02815260206004820152601760248201527f4f6e6c79207468652070726f78792063616e2063616c6c000000000000000000604482015290519081900360640190fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a03163314613fa7576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b426002556003805460ff19166001179055604080516224ea00815290517fcbd94ca75b8dc45c9d80c77e851670e78843c0d75180cb81db3e2158228fa9a69181900360200190a1565b600454600160a060020a031633148015906140165750600554600160a060020a03163314155b801561402d5750600654600160a060020a03163314155b156140455760068054600160a060020a031916331790555b61404d614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561408a57600080fd5b505af115801561409e573d6000803e3d6000fd5b505050506140aa614e62565b600654604080517f9a5154b4000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015292831660248201526044810185905290519290911691639a5154b49160648082019260009290919082900301818387803b15801561412157600080fd5b505af1158015614135573d6000803e3d6000fd5b505050505050565b6003546101009004600160a060020a031681565b600d80548290811061415f57fe5b600091825260209091200154905081565b600454600090600160a060020a031633148015906141995750600554600160a060020a03163314155b80156141b05750600654600160a060020a03163314155b156141c85760068054600160a060020a031916331790555b6141d0614aef565b600160a060020a0316637118d4316040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561420d57600080fd5b505af1158015614221573d6000803e3d6000fd5b5050505061422d614aef565b604080517f6132eba400000000000000000000000000000000000000000000000000000000815260048101879052602481018590529051600160a060020a039290921691636132eba49160448082019260009290919082900301818387803b15801561429857600080fd5b505af11580156142ac573d6000803e3d6000fd5b505050506142b8614cc5565b600654604080517f6a1c4758000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152928316602482015260448101889052606481018790526084810186905290519290911691636a1c47589160a4808201926020929091908290030181600087803b15801561433e57600080fd5b505af1158015614352573d6000803e3d6000fd5b505050506040513d602081101561436857600080fd5b505195945050505050565b6000806000806143816148c1565b604080517f8b3f8088000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301528251939650861692638b3f8088926024808401939192918290030181600087803b1580156143e557600080fd5b505af11580156143f9573d6000803e3d6000fd5b505050506040513d604081101561440f57600080fd5b505191508115156144235760009350614434565b61442d86866122fd565b5090508093505b50505092915050565b6000612eff826001614f42565b600654600160a060020a031681565b600e545b90565b600754604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015284811660248301529151600093929092169163dd62ed3e9160448082019260209290919082900301818787803b1580156144d357600080fd5b505af11580156144e7573d6000803e3d6000fd5b505050506040513d60208110156144fd57600080fd5b50519392505050565b601881565b600454600160a060020a031633148015906145315750600554600160a060020a03163314155b80156145485750600654600160a060020a03163314155b156145605760068054600160a060020a031916331790555b614568614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b1580156145a557600080fd5b505af11580156145b9573d6000803e3d6000fd5b505050506145c5614e62565b600654604080517f44ec6b62000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152928316602482015260448101859052905192909116916344ec6b629160648082019260009290919082900301818387803b15801561412157600080fd5b600754600160a060020a031681565b600454600160a060020a031681565b600454600090600160a060020a031633148015906146835750600554600160a060020a03163314155b801561469a5750600654600160a060020a03163314155b156146b25760068054600160a060020a031916331790555b6146ba614aef565b600160a060020a0316637118d4316040518163ffffffff1660e060020a028152600401600060405180830381600087803b1580156146f757600080fd5b505af115801561470b573d6000803e3d6000fd5b50505050614717614aef565b604080517f6132eba400000000000000000000000000000000000000000000000000000000815260048101879052602481018590529051600160a060020a039290921691636132eba49160448082019260009290919082900301818387803b15801561478257600080fd5b505af1158015614796573d6000803e3d6000fd5b505050506147a2614cc5565b600654604080517f0a1e187d000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201819052602482018990526044820188905260648201879052608482015290519290911691630a1e187d9160a4808201926020929091908290030181600087803b15801561482757600080fd5b505af115801561483b573d6000803e3d6000fd5b505050506040513d602081101561485157600080fd5b5051949350505050565b60006148bc7f45786368616e67655261746573000000000000000000000000000000000000006040805190810160405280601d81526020017f4d697373696e672045786368616e67655261746573206164647265737300000081525061557c565b905090565b60006148bc7f53796e74686574697853746174650000000000000000000000000000000000006040805190810160405280601e81526020017f4d697373696e672053796e74686574697853746174652061646472657373000081525061557c565b6000670de0b6b3a764000061493d848463ffffffff61562b16565b81151561494657fe5b049392505050565b600480546040805160208082018690528251808303820181528284018085527f417070726f76616c28616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a01908083838883811015612c36578181015183820152602001612c1e565b60008083831115614a6057600080fd5b5050900390565b60006148bc7f52657761726473446973747269627574696f6e00000000000000000000000000606060405190810160405280602381526020017f4d697373696e672052657761726473446973747269627574696f6e206164647281526020017f657373000000000000000000000000000000000000000000000000000000000081525061557c565b60006148bc7f53797374656d53746174757300000000000000000000000000000000000000006040805190810160405280601c81526020017f4d697373696e672053797374656d53746174757320616464726573730000000081525061557c565b60006148bc7f537570706c795363686564756c650000000000000000000000000000000000006040805190810160405280601e81526020017f4d697373696e6720537570706c795363686564756c652061646472657373000081525061557c565b600082820183811015610d4257600080fd5b600480546040805160208082018690528251808303820181528284018085527f5472616e7366657228616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a01908083838883811015612c36578181015183820152602001612c1e565b60006148bc7f45786368616e67657200000000000000000000000000000000000000000000006040805190810160405280601981526020017f4d697373696e672045786368616e67657220616464726573730000000000000081525061557c565b600754604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015287811660248301529151600093929092169163da46098c9187918991614de3918891879163dd62ed3e9160448082019260209290919082900301818d87803b158015614dab57600080fd5b505af1158015614dbf573d6000803e3d6000fd5b505050506040513d6020811015614dd557600080fd5b50519063ffffffff614a5016565b6040805160e060020a63ffffffff8716028152600160a060020a03948516600482015292909316602483015260448201529051606480830192600092919082900301818387803b158015614e3657600080fd5b505af1158015614e4a573d6000803e3d6000fd5b50505050614e59848484615659565b95945050505050565b60006148bc7f49737375657200000000000000000000000000000000000000000000000000006040805190810160405280601681526020017f4d697373696e672049737375657220616464726573730000000000000000000081525061557c565b6000610d4283836b033b2e3c9fd0803ce8000000615891565b6000610d4283836b033b2e3c9fd0803ce80000006158d5565b6000612eff82633b9aca0063ffffffff61562b16565b60006305f5e10082046005600a820610614f2357600a015b600a900492915050565b6000610d428383670de0b6b3a7640000615891565b6000806000806060600080600080614f5861485b565b604080517fac82f608000000000000000000000000000000000000000000000000000000008152600481018e9052905191995060009850600160a060020a038a169163ac82f6089160248082019260209290919082900301818d87803b158015614fc157600080fd5b505af1158015614fd5573d6000803e3d6000fd5b505050506040513d6020811015614feb57600080fd5b50519550600160a060020a03881663babcb423615006612d2b565b6040518263ffffffff1660e060020a0281526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015615058578181015183820152602001615040565b5050505090500192505050600060405180830381600087803b15801561507d57600080fd5b505af1158015615091573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160409081528110156150ba57600080fd5b8101908080516401000000008111156150d257600080fd5b820160208101848111156150e557600080fd5b815185602082028301116401000000008211171561510257600080fd5b505060209091015190975095505084159050615168576040805160e560020a62461bcd02815260206004820152600f60248201527f526174657320617265207374616c650000000000000000000000000000000000604482015290519081900360640190fd5b600092505b600e5483101561536257600e80548490811061518557fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a03166318160ddd6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156151e057600080fd5b505af11580156151f4573d6000803e3d6000fd5b505050506040513d602081101561520a57600080fd5b5051915089801561529257507f7345544800000000000000000000000000000000000000000000000000000000600052600f6020527f46fa45078da52b251f726b5552b37af6638509f9a4ff11c433a38d6b5765630d54600e8054600160a060020a03909216918590811061527b57fe5b600091825260209091200154600160a060020a0316145b1561531b576153186152a2615902565b600160a060020a031663ee5f3f5c6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156152df57600080fd5b505af11580156152f3573d6000803e3d6000fd5b505050506040513d602081101561530957600080fd5b5051839063ffffffff614a5016565b91505b615343858481518110151561532c57fe5b60209081029091010151839063ffffffff61596316565b9050615355878263ffffffff614bb116565b965060019092019161516d565b615372878763ffffffff614f2d16565b9b9a5050505050505050505050565b6004805460408051600160a060020a038581166020808401919091528351808403820181528385018086527f546f6b656e5374617465557064617465642861646472657373290000000000009052935192839003605a01832060e060020a63907dff97028452600160248501819052604485018290526000606486018190526084860181905260a4860181905260c0988601988952865160c48701528651949097169763907dff979791959294919384938493839260e4909201918a0190808383885b8381101561545c578181015183820152602001615444565b50505050905090810190601f1680156154895780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b158015611df357600080fd5b60006148bc7f53796e746865746978457363726f7700000000000000000000000000000000006040805190810160405280601f81526020017f4d697373696e672053796e746865746978457363726f7720616464726573730081525061557c565b60006148bc7f526577617264457363726f7700000000000000000000000000000000000000006040805190810160405280601c81526020017f4d697373696e6720526577617264457363726f7720616464726573730000000081525061557c565b6000611cc2848484615659565b6000828152600c6020526040812054600160a060020a0316828115156156235760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156155e85781810151838201526020016155d0565b50505050905090810190601f1680156156155780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509392505050565b60008083151561563e5760009150610ed6565b5082820282848281151561564e57fe5b0414610d4257600080fd5b6000600160a060020a0383161580159061567c5750600160a060020a0383163014155b80156156965750600454600160a060020a03848116911614155b15156156ec576040805160e560020a62461bcd02815260206004820152601f60248201527f43616e6e6f74207472616e7366657220746f2074686973206164647265737300604482015290519081900360640190fd5b6007546040805160e060020a6370a08231028152600160a060020a0387811660048301529151919092169163b46310f691879161574f91879186916370a08231916024808201926020929091908290030181600087803b158015614dab57600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156157a157600080fd5b505af11580156157b5573d6000803e3d6000fd5b50506007546040805160e060020a6370a08231028152600160a060020a038881166004830152915191909216935063b46310f69250869161581c91879186916370a08231916024808201926020929091908290030181600087803b15801561163257600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561586e57600080fd5b505af1158015615882573d6000803e3d6000fd5b50505050613b92848484614bc3565b6000806158b7846158ab87600a870263ffffffff61562b16565b9063ffffffff61597816565b90506005600a825b06106158c957600a015b600a9004949350505050565b600080600a83046158ec868663ffffffff61562b16565b8115156158f557fe5b0490506005600a826158bf565b60006148bc7f4574686572436f6c6c61746572616c00000000000000000000000000000000006040805190810160405280601f81526020017f4d697373696e67204574686572436f6c6c61746572616c20616464726573730081525061557c565b6000610d428383670de0b6b3a76400006158d5565b60008080831161598757600080fd5b828481151561599257fe5b04949350505050565b8154818355818111156122e9576000838152602090206122e99181019083016159df565b610300604051908101604052806018906020820280388339509192915050565b61445d91905b80821115613be557600081556001016159e556004f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e0000000000000000000000000000000000a165627a7a723058201ee411f629ce9c4dd03745a8f02b21de6cf124f8392f98828b49aedee8686f380029000000000000000000000000c011a72400e58ecd99ee497cf89e3775d4bd732f0000000000000000000000005b1b5fea1b99d83ad479df0c222f0492385381dd000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000000000000000000000926dd0793aa83c81d57abe000000000000000000000000fbb6526ed92da8915d4843a86166020d0b7baad0
Deployed Bytecode
0x6080604052600436106102fd5763ffffffff60e060020a60003504166304f3bcec811461030257806305b3c1c91461033357806306fdde0314610366578063095ea7b3146103f05780630b887dae146104285780631137aedf146104425780631249c58b14610481578063131b0ae7146104965780631627540c146104b757806316b2213f146104d857806317c70de4146104f957806318160ddd1461050e5780631fce304d1461052357806320714f881461053b57806323b872dd1461055c578063295da87d146105865780632c955fa71461059e578063313ce567146105bf578063320223db146105ea578063326080391461060b5780633278c960146106235780633be99e6f1461063857806353a47bb714610659578063559cd4ee1461066e578063631e1444146106ab5780636ac0bf9c146106cc5780636c00f310146106ed5780636f01a9861461072457806370a082311461074b57806372cb051f1461076c57806379ba5097146107d1578063835e119c146107e657806383d625d4146107fe578063849cf588146108165780638a290014146108375780638da5cb5b1461084f57806395d89b411461086457806397107d6d146108795780639741fb221461089a578063987757dd146108af5780639cb8a26a146108c75780639cbdaeb6146108dc5780639f769807146108f1578063a311c7c214610912578063a461fc8214610933578063a5fdc5de14610948578063a9059cbb14610969578063ab49848c1461098d578063ace88afd146109db578063af086c7e14610a02578063b8225dec14610a17578063bc67f83214610a2c578063bd32aa4414610a4d578063c2bf388014610a62578063c58aaae614610a86578063c6c9d82814610a9b578063c836fa0a14610ab3578063d37c4d8b14610add578063d60888e414610b01578063d67bdd2514610b19578063dbf6334014610b2e578063dd62ed3e14610b43578063e3235c9114610b6a578063e8e09b8b14610b7f578063e90dd9e214610ba3578063ec55688914610bb8578063ee52a2f314610bcd575b600080fd5b34801561030e57600080fd5b50610317610beb565b60408051600160a060020a039092168252519081900360200190f35b34801561033f57600080fd5b50610354600160a060020a0360043516610bff565b60408051918252519081900360200190f35b34801561037257600080fd5b5061037b610d49565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103b557818101518382015260200161039d565b50505050905090810190601f1680156103e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fc57600080fd5b50610414600160a060020a0360043516602435610dd7565b604080519115158252519081900360200190f35b34801561043457600080fd5b50610440600435610edd565b005b34801561044e57600080fd5b50610463600160a060020a03600435166112b4565b60408051938452602084019290925282820152519081900360600190f35b34801561048d57600080fd5b5061041461131d565b3480156104a257600080fd5b50610440600160a060020a0360043516611838565b3480156104c357600080fd5b50610440600160a060020a03600435166118be565b3480156104e457600080fd5b50610354600160a060020a0360043516611976565b34801561050557600080fd5b50610354611988565b34801561051a57600080fd5b5061035461198e565b34801561052f57600080fd5b50610414600435611994565b34801561054757600080fd5b50610440600160a060020a0360043516611a42565b34801561056857600080fd5b50610414600160a060020a0360043581169060243516604435611b6f565b34801561059257600080fd5b50610440600435611cca565b3480156105aa57600080fd5b50610440600160a060020a0360043516611e0f565b3480156105cb57600080fd5b506105d4611f39565b6040805160ff9092168252519081900360200190f35b3480156105f657600080fd5b50610440600160a060020a0360043516611f42565b34801561061757600080fd5b5061031760043561206c565b34801561062f57600080fd5b50610440612087565b34801561064457600080fd5b50610440600160a060020a0360043516612125565b34801561066557600080fd5b506103176122ee565b34801561067a57600080fd5b50610692600160a060020a03600435166024356122fd565b6040805192835260208301919091528051918290030190f35b3480156106b757600080fd5b50610414600160a060020a036004351661250b565b3480156106d857600080fd5b50610354600160a060020a0360043516612659565b3480156106f957600080fd5b50610440600160a060020a036004358116906024359060443590606435906084359060a43516612880565b34801561073057600080fd5b50610440600160a060020a0360043516602435604435612aa1565b34801561075757600080fd5b50610354600160a060020a0360043516612ca4565b34801561077857600080fd5b50610781612d2b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107bd5781810151838201526020016107a5565b505050509050019250505060405180910390f35b3480156107dd57600080fd5b50610440612dcf565b3480156107f257600080fd5b50610317600435612eca565b34801561080a57600080fd5b50610354600435612ef2565b34801561082257600080fd5b50610440600160a060020a0360043516612f05565b34801561084357600080fd5b50610440600435613182565b34801561085b57600080fd5b506103176132ab565b34801561087057600080fd5b5061037b6132ba565b34801561088557600080fd5b50610440600160a060020a0360043516613315565b3480156108a657600080fd5b506104406133cd565b3480156108bb57600080fd5b50610463600435613509565b3480156108d357600080fd5b50610440613621565b3480156108e857600080fd5b5061031761379a565b3480156108fd57600080fd5b50610440600160a060020a03600435166137a9565b34801561091e57600080fd5b50610354600160a060020a036004351661388a565b34801561093f57600080fd5b506103546138cf565b34801561095457600080fd5b50610354600160a060020a03600435166138d6565b34801561097557600080fd5b50610414600160a060020a0360043516602435613a33565b34801561099957600080fd5b506109a2613b9c565b604051808261030080838360005b838110156109c85781810151838201526020016109b0565b5050505090500191505060405180910390f35b3480156109e757600080fd5b50610440600160a060020a0360043516602435604435613be9565b348015610a0e57600080fd5b50610440613d7d565b348015610a2357600080fd5b50610414613e9f565b348015610a3857600080fd5b50610440600160a060020a0360043516613ea8565b348015610a5957600080fd5b50610440613f43565b348015610a6e57600080fd5b50610440600160a060020a0360043516602435613ff0565b348015610a9257600080fd5b5061031761413d565b348015610aa757600080fd5b50610354600435614151565b348015610abf57600080fd5b50610354600160a060020a0360043516602435604435606435614170565b348015610ae957600080fd5b50610354600160a060020a0360043516602435614373565b348015610b0d57600080fd5b5061035460043561443d565b348015610b2557600080fd5b5061031761444a565b348015610b3a57600080fd5b50610354614459565b348015610b4f57600080fd5b50610354600160a060020a0360043581169060243516614460565b348015610b7657600080fd5b50610354614506565b348015610b8b57600080fd5b50610440600160a060020a036004351660243561450b565b348015610baf57600080fd5b5061031761463c565b348015610bc457600080fd5b5061031761464b565b348015610bd957600080fd5b5061035460043560243560443561465a565b600b546101009004600160a060020a031681565b600080610c0a61485b565b600160a060020a031663654a60ac610c21856138d6565b6040805160e060020a63ffffffff851602815260eb60020a620a69cb02600482015260248101929092527f735553440000000000000000000000000000000000000000000000000000000060448301525160648083019260209291908290030181600087803b158015610c9357600080fd5b505af1158015610ca7573d6000803e3d6000fd5b505050506040513d6020811015610cbd57600080fd5b50519050610d42610ccc6148c1565b600160a060020a031663b410a0346040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610d0957600080fd5b505af1158015610d1d573d6000803e3d6000fd5b505050506040513d6020811015610d3357600080fd5b5051829063ffffffff61492216565b9392505050565b6008805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dcf5780601f10610da457610100808354040283529160200191610dcf565b820191906000526020600020905b815481529060010190602001808311610db257829003601f168201915b505050505081565b6004546000908190600160a060020a03163314801590610e025750600554600160a060020a03163314155b8015610e195750600654600160a060020a03163314155b15610e315760068054600160a060020a031916331790555b50600654600754604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0393841660048201819052878516602483015260448201879052915191939092169163da46098c91606480830192600092919082900301818387803b158015610eae57600080fd5b505af1158015610ec2573d6000803e3d6000fd5b50505050610ed181858561494e565b600191505b5092915050565b6004546000908190600160a060020a03163314801590610f085750600554600160a060020a03163314155b8015610f1f5750600654600160a060020a03163314155b15610f375760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614610f9f576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b6000838152600f6020526040902054600160a060020a0316151561100d576040805160e560020a62461bcd02815260206004820152601460248201527f53796e746820646f6573206e6f74206578697374000000000000000000000000604482015290519081900360640190fd5b6000838152600f602090815260408083205481517f18160ddd0000000000000000000000000000000000000000000000000000000081529151600160a060020a03909116936318160ddd93600480850194919392918390030190829087803b15801561107857600080fd5b505af115801561108c573d6000803e3d6000fd5b505050506040513d60208110156110a257600080fd5b5051156110f9576040805160e560020a62461bcd02815260206004820152601360248201527f53796e746820737570706c792065786973747300000000000000000000000000604482015290519081900360640190fd5b7f7355534400000000000000000000000000000000000000000000000000000000831415611171576040805160e560020a62461bcd02815260206004820152601360248201527f43616e6e6f742072656d6f76652073796e746800000000000000000000000000604482015290519081900360640190fd5b50506000818152600f6020526040812054600160a060020a0316905b600e548110156112745781600160a060020a0316600e828154811015156111b057fe5b600091825260209091200154600160a060020a0316141561126c57600e8054829081106111d957fe5b60009182526020909120018054600160a060020a0319169055600e8054600019810190811061120457fe5b600091825260209091200154600e8054600160a060020a03909216918390811061122a57fe5b60009182526020909120018054600160a060020a031916600160a060020a0392909216919091179055600e80549061126690600019830161599b565b50611274565b60010161118d565b50506000818152600f602081815260408084208054600160a060020a03168552601083529084208490559390925290528054600160a060020a0319169055565b60008060006112e3847f73555344000000000000000000000000000000000000000000000000000000006122fd565b90925090506112f184610bff565b92508282106113035760009250611316565b611313838363ffffffff614a5016565b92505b9193909250565b600080808080808061132d614a67565b600160a060020a0316141561138c576040805160e560020a62461bcd02815260206004820152601b60248201527f52657761726473446973747269627574696f6e206e6f74207365740000000000604482015290519081900360640190fd5b611394614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b505050506113f1614b50565b94506113fb614a67565b935084600160a060020a031663cc5c095c6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561143b57600080fd5b505af115801561144f573d6000803e3d6000fd5b505050506040513d602081101561146557600080fd5b50519250600083116114c1576040805160e560020a62461bcd02815260206004820152601560248201527f4e6f20737570706c79206973206d696e7461626c650000000000000000000000604482015290519081900360640190fd5b84600160a060020a0316637e7961d7846040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561150a57600080fd5b505af115801561151e573d6000803e3d6000fd5b505050506040513d602081101561153457600080fd5b5050604080517f9bdd7ac70000000000000000000000000000000000000000000000000000000081529051600160a060020a03871691639bdd7ac79160048083019260209291908290030181600087803b15801561159157600080fd5b505af11580156115a5573d6000803e3d6000fd5b505050506040513d60208110156115bb57600080fd5b505191506115cf838363ffffffff614a5016565b6007546040805160e060020a6370a08231028152600160a060020a038881166004830152915193945091169163b46310f691879161166a91869186916370a082319160248083019260209291908290030181600087803b15801561163257600080fd5b505af1158015611646573d6000803e3d6000fd5b505050506040513d602081101561165c57600080fd5b50519063ffffffff614bb116565b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156116bc57600080fd5b505af11580156116d0573d6000803e3d6000fd5b505050506116df308583614bc3565b83600160a060020a03166359974e38826040518263ffffffff1660e060020a02815260040180828152602001915050600060405180830381600087803b15801561172857600080fd5b505af115801561173c573d6000803e3d6000fd5b50506007546040805160e060020a6370a0823102815233600482018190529151600160a060020a03909316945063b46310f6935090916117a191879186916370a082319160248083019260209291908290030181600087803b15801561163257600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156117f357600080fd5b505af1158015611807573d6000803e3d6000fd5b50505050611816303384614bc3565b600a54611829908463ffffffff614bb116565b600a5560019550505050505090565b600054600160a060020a0316331461189c576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a03163314611922576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60018054600160a060020a038316600160a060020a0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b60106020526000908152604090205481565b60025481565b600a5481565b60008061199f614cc5565b600654604080517f059c29ec000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018790529051929091169163059c29ec916044808201926020929091908290030181600087803b158015611a0f57600080fd5b505af1158015611a23573d6000803e3d6000fd5b505050506040513d6020811015611a3957600080fd5b50511192915050565b600054600160a060020a03163314611aa6576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b600160a060020a0381161515611b06576040805160e560020a62461bcd02815260206004820152601c60248201527f42656e6566696369617279206d757374206e6f74206265207a65726f00000000604482015290519081900360640190fd5b60038054600160a060020a038316610100810274ffffffffffffffffffffffffffffffffffffffff00199092169190911790915560408051918252517fd5da63a0b864b315bc04128dedbc93888c8529ee6cf47ce664dc204339228c539181900360200190a150565b600454600090600160a060020a03163314801590611b985750600554600160a060020a03163314155b8015611baf5750600654600160a060020a03163314155b15611bc75760068054600160a060020a031916331790555b611bcf614aef565b600160a060020a031663086dabd16040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611c0c57600080fd5b505af1158015611c20573d6000803e3d6000fd5b50505050611c2d84612659565b821115611caa576040805160e560020a62461bcd02815260206004820152602660248201527f43616e6e6f74207472616e73666572207374616b6564206f7220657363726f7760448201527f656420534e580000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600654611cc290600160a060020a0316858585614d26565b949350505050565b600454600160a060020a03163314801590611cf05750600554600160a060020a03163314155b8015611d075750600654600160a060020a03163314155b15611d1f5760068054600160a060020a031916331790555b611d27614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611d6457600080fd5b505af1158015611d78573d6000803e3d6000fd5b50505050611d84614e62565b600654604080517fb06e8c65000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018590529051929091169163b06e8c659160448082019260009290919082900301818387803b158015611df357600080fd5b505af1158015611e07573d6000803e3d6000fd5b505050505b50565b600454600160a060020a03163314801590611e355750600554600160a060020a03163314155b8015611e4c5750600654600160a060020a03163314155b15611e645760068054600160a060020a031916331790555b611e6c614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611ea957600080fd5b505af1158015611ebd573d6000803e3d6000fd5b50505050611ec9614e62565b600654604080517f2b3f41aa000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152928316602482015290519290911691632b3f41aa9160448082019260009290919082900301818387803b158015611df357600080fd5b600b5460ff1681565b600454600160a060020a03163314801590611f685750600554600160a060020a03163314155b8015611f7f5750600654600160a060020a03163314155b15611f975760068054600160a060020a031916331790555b611f9f614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611fdc57600080fd5b505af1158015611ff0573d6000803e3d6000fd5b50505050611ffc614e62565b600654604080517ffd864ccf000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015292831660248201529051929091169163fd864ccf9160448082019260009290919082900301818387803b158015611df357600080fd5b600f60205260009081526040902054600160a060020a031681565b600054600160a060020a031633146120eb576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b600060028190556003805460ff191690556040517f6adcc7125002935e0aa31697538ebbd65cfddf20431eb6ecdcfc3e238bfd082c9190a1565b600080548190600160a060020a0316331461218c576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b600b805474ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a03861602179055600091505b600d548210156122e957600d8054839081106121d657fe5b600091825260208083209190910154600b54604080517fdacb2d010000000000000000000000000000000000000000000000000000000081526004810184905260248101829052601760448201527f5265736f6c766572206d697373696e672074617267657400000000000000000060648201529051929550610100909104600160a060020a03169363dacb2d019360848084019491939192918390030190829087803b15801561228657600080fd5b505af115801561229a573d6000803e3d6000fd5b505050506040513d60208110156122b057600080fd5b50516000828152600c602052604090208054600160a060020a031916600160a060020a03909216919091179055600191909101906121be565b505050565b600154600160a060020a031681565b60008060008060008060006123106148c1565b604080517f8b3f8088000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301528251939850881692638b3f8088926024808401939192918290030181600087803b15801561237457600080fd5b505af1158015612388573d6000803e3d6000fd5b505050506040513d604081101561239e57600080fd5b50805160209091015190945092506123b58861443d565b95508315156123c757600096506124ff565b6124e2846124d687600160a060020a03166308d95cd5876040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561241757600080fd5b505af115801561242b573d6000803e3d6000fd5b505050506040513d602081101561244157600080fd5b5051604080517f463177120000000000000000000000000000000000000000000000000000000081529051600160a060020a038b169163463177129160048083019260209291908290030181600087803b15801561249e57600080fd5b505af11580156124b2573d6000803e3d6000fd5b505050506040513d60208110156124c857600080fd5b50519063ffffffff614ec316565b9063ffffffff614edc16565b91506124f1826124d688614ef5565b90506124fc81614f0b565b96505b50505050509250929050565b600b5460009081908190600160a060020a0385811661010090920416146125355760009250612652565b600091505b600d5482101561264d57600d80548390811061255257fe5b6000918252602080832090910154808352600c8252604080842054600b5482517f21f8a721000000000000000000000000000000000000000000000000000000008152600481018590529251939650600160a060020a0391821695610100909104909116936321f8a72193602480850194929391928390030190829087803b1580156125dd57600080fd5b505af11580156125f1573d6000803e3d6000fd5b505050506040513d602081101561260757600080fd5b5051600160a060020a031614158061263457506000818152600c6020526040902054600160a060020a0316155b156126425760009250612652565b60019091019061253a565b600192505b5050919050565b600080600060eb60020a620a69cb0261267061485b565b600160a060020a0316629919c0826040518263ffffffff1660e060020a028152600401808260001916600019168152602001915050602060405180830381600087803b1580156126bf57600080fd5b505af11580156126d3573d6000803e3d6000fd5b505050506040513d60208110156126e957600080fd5b505115612740576040805160e560020a62461bcd02815260206004820152601960248201527f52617465207374616c65206f72206e6f7420612073796e746800000000000000604482015290519081900360640190fd5b6007546040805160e060020a6370a08231028152600160a060020a038881166004830152915191909216916370a082319160248083019260209291908290030181600087803b15801561279257600080fd5b505af11580156127a6573d6000803e3d6000fd5b505050506040513d60208110156127bc57600080fd5b505192506128536127cb6148c1565b600160a060020a031663b410a0346040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561280857600080fd5b505af115801561281c573d6000803e3d6000fd5b505050506040513d602081101561283257600080fd5b50516128478760eb60020a620a69cb02614373565b9063ffffffff614f2d16565b91508282106128655760009350612878565b612875838363ffffffff614a5016565b93505b505050919050565b612888614cc5565b600160a060020a0316331461290d576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c79207468652065786368616e67657220636f6e74726163742063616e2060448201527f696e766f6b6520746869732066756e6374696f6e000000000000000000000000606482015290519081900360840190fd5b600480546040805160208082018a90528183018990526060820188905260808201879052600160a060020a0386811660a0808501919091528451808503909101815260c08085018087527f53796e746845786368616e676528616464726573732c627974657333322c756990527f6e743235362c627974657333322c75696e743235362c6164647265737329000060e086015294519384900360fe01842060e060020a63907dff97028552600260248601819052604486018290528e84166064870181905260006084880181905260a48801819052998701978852835160c48801528351949098169863907dff9798939791969295939490938493839260e4909101918a0190808383885b83811015612a30578181015183820152602001612a18565b50505050905090810190601f168015612a5d5780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b158015612a8157600080fd5b505af1158015612a95573d6000803e3d6000fd5b50505050505050505050565b612aa9614cc5565b600160a060020a03163314612b2e576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c79207468652065786368616e67657220636f6e74726163742063616e2060448201527f696e766f6b6520746869732066756e6374696f6e000000000000000000000000606482015290519081900360840190fd5b60048054604080516020808201879052818301869052825180830384018152606083018085527f45786368616e676552656261746528616464726573732c627974657333322c7590527f696e7432353629000000000000000000000000000000000000000000000000006080840152925191829003608701822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038a81166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a0190808383885b83811015612c36578181015183820152602001612c1e565b50505050905090810190601f168015612c635780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b158015612c8757600080fd5b505af1158015612c9b573d6000803e3d6000fd5b50505050505050565b6007546040805160e060020a6370a08231028152600160a060020a038481166004830152915160009392909216916370a082319160248082019260209290919082900301818787803b158015612cf957600080fd5b505af1158015612d0d573d6000803e3d6000fd5b505050506040513d6020811015612d2357600080fd5b505192915050565b6060806000600e80549050604051908082528060200260200182016040528015612d5f578160200160208202803883390190505b509150600090505b600e54811015612dc95760106000600e83815481101515612d8457fe5b6000918252602080832090910154600160a060020a031683528201929092526040019020548251839083908110612db757fe5b60209081029091010152600101612d67565b50919050565b600154600160a060020a03163314612e57576040805160e560020a62461bcd02815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b60005460015460408051600160a060020a03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a16001805460008054600160a060020a0319908116600160a060020a03841617909155169055565b600e805482908110612ed857fe5b600091825260209091200154600160a060020a0316905081565b6000612eff826000614f42565b92915050565b600454600090600160a060020a03163314801590612f2e5750600554600160a060020a03163314155b8015612f455750600654600160a060020a03163314155b15612f5d5760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614612fc5576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b81600160a060020a031663dbd06c856040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561300357600080fd5b505af1158015613017573d6000803e3d6000fd5b505050506040513d602081101561302d57600080fd5b50516000818152600f6020526040902054909150600160a060020a03161561309f576040805160e560020a62461bcd02815260206004820152601460248201527f53796e746820616c726561647920657869737473000000000000000000000000604482015290519081900360640190fd5b600160a060020a0382166000908152601060205260409020541561310d576040805160e560020a62461bcd02815260206004820152601c60248201527f53796e7468206164647265737320616c72656164792065786973747300000000604482015290519081900360640190fd5b600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd018054600160a060020a03909316600160a060020a031993841681179091556000828152600f602090815260408083208054909616841790955591815260109091529190912055565b600454600160a060020a031633148015906131a85750600554600160a060020a03163314155b80156131bf5750600654600160a060020a03163314155b156131d75760068054600160a060020a031916331790555b6131df614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561321c57600080fd5b505af1158015613230573d6000803e3d6000fd5b5050505061323c614e62565b600654604080517f042e0688000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018590529051929091169163042e06889160448082019260009290919082900301818387803b158015611df357600080fd5b600054600160a060020a031681565b6009805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dcf5780601f10610da457610100808354040283529160200191610dcf565b600054600160a060020a03163314613379576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60048054600160a060020a038316600160a060020a0319909116811790915560408051918252517ffc80377ca9c49cc11ae6982f390a42db976d5530af7c43889264b13fbbd7c57e9181900360200190a150565b600454600160a060020a031633148015906133f35750600554600160a060020a03163314155b801561340a5750600654600160a060020a03163314155b156134225760068054600160a060020a031916331790555b61342a614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561346757600080fd5b505af115801561347b573d6000803e3d6000fd5b50505050613487614e62565b600654604080517f497d704a000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051929091169163497d704a9160248082019260009290919082900301818387803b1580156134ef57600080fd5b505af1158015613503573d6000803e3d6000fd5b50505050565b60045460009081908190600160a060020a031633148015906135365750600554600160a060020a03163314155b801561354d5750600654600160a060020a03163314155b156135655760068054600160a060020a031916331790555b61356d614cc5565b600654604080517f1b16802c000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810188905290519290911691631b16802c916044808201926060929091908290030181600087803b1580156135dd57600080fd5b505af11580156135f1573d6000803e3d6000fd5b505050506040513d606081101561360757600080fd5b508051602082015160409092015190969195509350915050565b60008054600160a060020a03163314613686576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b60035460ff1615156136e2576040805160e560020a62461bcd02815260206004820152601f60248201527f53656c66204465737472756374206e6f742079657420696e6974696174656400604482015290519081900360640190fd5b426224ea0060025401101515613742576040805160e560020a62461bcd02815260206004820152601b60248201527f53656c662064657374727563742064656c6179206e6f74206d65740000000000604482015290519081900360640190fd5b5060035460408051600160a060020a0361010090930492909216808352905190917f8a09e1677ced846cb537dc2b172043bd05a1a81ad7e0033a7ef8ba762df990b7919081900360200190a180600160a060020a0316ff5b600554600160a060020a031681565b600454600160a060020a031633148015906137cf5750600554600160a060020a03163314155b80156137e65750600654600160a060020a03163314155b156137fe5760068054600160a060020a031916331790555b600054600654600160a060020a03908116911614613866576040805160e560020a62461bcd02815260206004820152601360248201527f4f776e6572206f6e6c792066756e6374696f6e00000000000000000000000000604482015290519081900360640190fd5b60078054600160a060020a031916600160a060020a038316179055611e0c81615381565b6000806000613898846138d6565b91508115156138aa5760009250612652565b6138bd8460eb60020a620a69cb02614373565b9050611cc2818363ffffffff614f2d16565b6224ea0081565b6007546040805160e060020a6370a08231028152600160a060020a0384811660048301529151600093849316916370a0823191602480830192602092919082900301818787803b15801561392957600080fd5b505af115801561393d573d6000803e3d6000fd5b505050506040513d602081101561395357600080fd5b5051905060006139616154ad565b600160a060020a031614613a1057613a0d61397a6154ad565b600160a060020a03166370a08231856040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1580156139d457600080fd5b505af11580156139e8573d6000803e3d6000fd5b505050506040513d60208110156139fe57600080fd5b5051829063ffffffff614bb116565b90505b6000613a1a61550e565b600160a060020a031614612eff57610d4261397a61550e565b600454600090600160a060020a03163314801590613a5c5750600554600160a060020a03163314155b8015613a735750600654600160a060020a03163314155b15613a8b5760068054600160a060020a031916331790555b613a93614aef565b600160a060020a031663086dabd16040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015613ad057600080fd5b505af1158015613ae4573d6000803e3d6000fd5b5050600654613afe9250600160a060020a03169050612659565b821115613b7b576040805160e560020a62461bcd02815260206004820152602660248201527f43616e6e6f74207472616e73666572207374616b6564206f7220657363726f7760448201527f656420534e580000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600654613b9290600160a060020a0316848461556f565b5060019392505050565b613ba46159bf565b60005b600d54811015613be557600d805482908110613bbf57fe5b90600052602060002001548282601881101515613bd857fe5b6020020152600101613ba7565b5090565b613bf1614cc5565b600160a060020a03163314613c76576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c79207468652065786368616e67657220636f6e74726163742063616e2060448201527f696e766f6b6520746869732066756e6374696f6e000000000000000000000000606482015290519081900360840190fd5b60048054604080516020808201879052818301869052825180830384018152606083018085527f45786368616e67655265636c61696d28616464726573732c627974657333322c90527f75696e74323536290000000000000000000000000000000000000000000000006080840152925191829003608801822060e060020a63907dff9702835260026024840181905260448401829052600160a060020a038a81166064860181905260006084870181905260a4870181905260c0998701998a52875160c48801528751929098169863907dff979893969495919484939192839260e490920191908a01908083838883811015612c36578181015183820152602001612c1e565b600454600160a060020a03163314801590613da35750600554600160a060020a03163314155b8015613dba5750600654600160a060020a03163314155b15613dd25760068054600160a060020a031916331790555b613dda614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015613e1757600080fd5b505af1158015613e2b573d6000803e3d6000fd5b50505050613e37614e62565b600654604080517fc8977132000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051929091169163c89771329160248082019260009290919082900301818387803b1580156134ef57600080fd5b60035460ff1681565b600454600160a060020a0316331480613ecb5750600554600160a060020a031633145b1515613f21576040805160e560020a62461bcd02815260206004820152601760248201527f4f6e6c79207468652070726f78792063616e2063616c6c000000000000000000604482015290519081900360640190fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a03163314613fa7576040805160e560020a62461bcd02815260206004820152602f60248201526000805160206159fa8339815191526044820152600080516020615a1a833981519152606482015290519081900360840190fd5b426002556003805460ff19166001179055604080516224ea00815290517fcbd94ca75b8dc45c9d80c77e851670e78843c0d75180cb81db3e2158228fa9a69181900360200190a1565b600454600160a060020a031633148015906140165750600554600160a060020a03163314155b801561402d5750600654600160a060020a03163314155b156140455760068054600160a060020a031916331790555b61404d614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561408a57600080fd5b505af115801561409e573d6000803e3d6000fd5b505050506140aa614e62565b600654604080517f9a5154b4000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015292831660248201526044810185905290519290911691639a5154b49160648082019260009290919082900301818387803b15801561412157600080fd5b505af1158015614135573d6000803e3d6000fd5b505050505050565b6003546101009004600160a060020a031681565b600d80548290811061415f57fe5b600091825260209091200154905081565b600454600090600160a060020a031633148015906141995750600554600160a060020a03163314155b80156141b05750600654600160a060020a03163314155b156141c85760068054600160a060020a031916331790555b6141d0614aef565b600160a060020a0316637118d4316040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561420d57600080fd5b505af1158015614221573d6000803e3d6000fd5b5050505061422d614aef565b604080517f6132eba400000000000000000000000000000000000000000000000000000000815260048101879052602481018590529051600160a060020a039290921691636132eba49160448082019260009290919082900301818387803b15801561429857600080fd5b505af11580156142ac573d6000803e3d6000fd5b505050506142b8614cc5565b600654604080517f6a1c4758000000000000000000000000000000000000000000000000000000008152600160a060020a038981166004830152928316602482015260448101889052606481018790526084810186905290519290911691636a1c47589160a4808201926020929091908290030181600087803b15801561433e57600080fd5b505af1158015614352573d6000803e3d6000fd5b505050506040513d602081101561436857600080fd5b505195945050505050565b6000806000806143816148c1565b604080517f8b3f8088000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301528251939650861692638b3f8088926024808401939192918290030181600087803b1580156143e557600080fd5b505af11580156143f9573d6000803e3d6000fd5b505050506040513d604081101561440f57600080fd5b505191508115156144235760009350614434565b61442d86866122fd565b5090508093505b50505092915050565b6000612eff826001614f42565b600654600160a060020a031681565b600e545b90565b600754604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015284811660248301529151600093929092169163dd62ed3e9160448082019260209290919082900301818787803b1580156144d357600080fd5b505af11580156144e7573d6000803e3d6000fd5b505050506040513d60208110156144fd57600080fd5b50519392505050565b601881565b600454600160a060020a031633148015906145315750600554600160a060020a03163314155b80156145485750600654600160a060020a03163314155b156145605760068054600160a060020a031916331790555b614568614aef565b600160a060020a0316637c3125416040518163ffffffff1660e060020a028152600401600060405180830381600087803b1580156145a557600080fd5b505af11580156145b9573d6000803e3d6000fd5b505050506145c5614e62565b600654604080517f44ec6b62000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152928316602482015260448101859052905192909116916344ec6b629160648082019260009290919082900301818387803b15801561412157600080fd5b600754600160a060020a031681565b600454600160a060020a031681565b600454600090600160a060020a031633148015906146835750600554600160a060020a03163314155b801561469a5750600654600160a060020a03163314155b156146b25760068054600160a060020a031916331790555b6146ba614aef565b600160a060020a0316637118d4316040518163ffffffff1660e060020a028152600401600060405180830381600087803b1580156146f757600080fd5b505af115801561470b573d6000803e3d6000fd5b50505050614717614aef565b604080517f6132eba400000000000000000000000000000000000000000000000000000000815260048101879052602481018590529051600160a060020a039290921691636132eba49160448082019260009290919082900301818387803b15801561478257600080fd5b505af1158015614796573d6000803e3d6000fd5b505050506147a2614cc5565b600654604080517f0a1e187d000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201819052602482018990526044820188905260648201879052608482015290519290911691630a1e187d9160a4808201926020929091908290030181600087803b15801561482757600080fd5b505af115801561483b573d6000803e3d6000fd5b505050506040513d602081101561485157600080fd5b5051949350505050565b60006148bc7f45786368616e67655261746573000000000000000000000000000000000000006040805190810160405280601d81526020017f4d697373696e672045786368616e67655261746573206164647265737300000081525061557c565b905090565b60006148bc7f53796e74686574697853746174650000000000000000000000000000000000006040805190810160405280601e81526020017f4d697373696e672053796e74686574697853746174652061646472657373000081525061557c565b6000670de0b6b3a764000061493d848463ffffffff61562b16565b81151561494657fe5b049392505050565b600480546040805160208082018690528251808303820181528284018085527f417070726f76616c28616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a01908083838883811015612c36578181015183820152602001612c1e565b60008083831115614a6057600080fd5b5050900390565b60006148bc7f52657761726473446973747269627574696f6e00000000000000000000000000606060405190810160405280602381526020017f4d697373696e672052657761726473446973747269627574696f6e206164647281526020017f657373000000000000000000000000000000000000000000000000000000000081525061557c565b60006148bc7f53797374656d53746174757300000000000000000000000000000000000000006040805190810160405280601c81526020017f4d697373696e672053797374656d53746174757320616464726573730000000081525061557c565b60006148bc7f537570706c795363686564756c650000000000000000000000000000000000006040805190810160405280601e81526020017f4d697373696e6720537570706c795363686564756c652061646472657373000081525061557c565b600082820183811015610d4257600080fd5b600480546040805160208082018690528251808303820181528284018085527f5472616e7366657228616464726573732c616464726573732c75696e7432353690527f29000000000000000000000000000000000000000000000000000000000000006060840152925191829003606101822060e060020a63907dff9702835260036024840181905260448401829052600160a060020a038a8116606486018190528a821660848701819052600060a4880181905260c09a88019a8b52885160c48901528851939099169963907dff97999497959692959194939092839260e40191908a01908083838883811015612c36578181015183820152602001612c1e565b60006148bc7f45786368616e67657200000000000000000000000000000000000000000000006040805190810160405280601981526020017f4d697373696e672045786368616e67657220616464726573730000000000000081525061557c565b600754604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015287811660248301529151600093929092169163da46098c9187918991614de3918891879163dd62ed3e9160448082019260209290919082900301818d87803b158015614dab57600080fd5b505af1158015614dbf573d6000803e3d6000fd5b505050506040513d6020811015614dd557600080fd5b50519063ffffffff614a5016565b6040805160e060020a63ffffffff8716028152600160a060020a03948516600482015292909316602483015260448201529051606480830192600092919082900301818387803b158015614e3657600080fd5b505af1158015614e4a573d6000803e3d6000fd5b50505050614e59848484615659565b95945050505050565b60006148bc7f49737375657200000000000000000000000000000000000000000000000000006040805190810160405280601681526020017f4d697373696e672049737375657220616464726573730000000000000000000081525061557c565b6000610d4283836b033b2e3c9fd0803ce8000000615891565b6000610d4283836b033b2e3c9fd0803ce80000006158d5565b6000612eff82633b9aca0063ffffffff61562b16565b60006305f5e10082046005600a820610614f2357600a015b600a900492915050565b6000610d428383670de0b6b3a7640000615891565b6000806000806060600080600080614f5861485b565b604080517fac82f608000000000000000000000000000000000000000000000000000000008152600481018e9052905191995060009850600160a060020a038a169163ac82f6089160248082019260209290919082900301818d87803b158015614fc157600080fd5b505af1158015614fd5573d6000803e3d6000fd5b505050506040513d6020811015614feb57600080fd5b50519550600160a060020a03881663babcb423615006612d2b565b6040518263ffffffff1660e060020a0281526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015615058578181015183820152602001615040565b5050505090500192505050600060405180830381600087803b15801561507d57600080fd5b505af1158015615091573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160409081528110156150ba57600080fd5b8101908080516401000000008111156150d257600080fd5b820160208101848111156150e557600080fd5b815185602082028301116401000000008211171561510257600080fd5b505060209091015190975095505084159050615168576040805160e560020a62461bcd02815260206004820152600f60248201527f526174657320617265207374616c650000000000000000000000000000000000604482015290519081900360640190fd5b600092505b600e5483101561536257600e80548490811061518557fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a03166318160ddd6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156151e057600080fd5b505af11580156151f4573d6000803e3d6000fd5b505050506040513d602081101561520a57600080fd5b5051915089801561529257507f7345544800000000000000000000000000000000000000000000000000000000600052600f6020527f46fa45078da52b251f726b5552b37af6638509f9a4ff11c433a38d6b5765630d54600e8054600160a060020a03909216918590811061527b57fe5b600091825260209091200154600160a060020a0316145b1561531b576153186152a2615902565b600160a060020a031663ee5f3f5c6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156152df57600080fd5b505af11580156152f3573d6000803e3d6000fd5b505050506040513d602081101561530957600080fd5b5051839063ffffffff614a5016565b91505b615343858481518110151561532c57fe5b60209081029091010151839063ffffffff61596316565b9050615355878263ffffffff614bb116565b965060019092019161516d565b615372878763ffffffff614f2d16565b9b9a5050505050505050505050565b6004805460408051600160a060020a038581166020808401919091528351808403820181528385018086527f546f6b656e5374617465557064617465642861646472657373290000000000009052935192839003605a01832060e060020a63907dff97028452600160248501819052604485018290526000606486018190526084860181905260a4860181905260c0988601988952865160c48701528651949097169763907dff979791959294919384938493839260e4909201918a0190808383885b8381101561545c578181015183820152602001615444565b50505050905090810190601f1680156154895780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b158015611df357600080fd5b60006148bc7f53796e746865746978457363726f7700000000000000000000000000000000006040805190810160405280601f81526020017f4d697373696e672053796e746865746978457363726f7720616464726573730081525061557c565b60006148bc7f526577617264457363726f7700000000000000000000000000000000000000006040805190810160405280601c81526020017f4d697373696e6720526577617264457363726f7720616464726573730000000081525061557c565b6000611cc2848484615659565b6000828152600c6020526040812054600160a060020a0316828115156156235760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156155e85781810151838201526020016155d0565b50505050905090810190601f1680156156155780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509392505050565b60008083151561563e5760009150610ed6565b5082820282848281151561564e57fe5b0414610d4257600080fd5b6000600160a060020a0383161580159061567c5750600160a060020a0383163014155b80156156965750600454600160a060020a03848116911614155b15156156ec576040805160e560020a62461bcd02815260206004820152601f60248201527f43616e6e6f74207472616e7366657220746f2074686973206164647265737300604482015290519081900360640190fd5b6007546040805160e060020a6370a08231028152600160a060020a0387811660048301529151919092169163b46310f691879161574f91879186916370a08231916024808201926020929091908290030181600087803b158015614dab57600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156157a157600080fd5b505af11580156157b5573d6000803e3d6000fd5b50506007546040805160e060020a6370a08231028152600160a060020a038881166004830152915191909216935063b46310f69250869161581c91879186916370a08231916024808201926020929091908290030181600087803b15801561163257600080fd5b6040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561586e57600080fd5b505af1158015615882573d6000803e3d6000fd5b50505050613b92848484614bc3565b6000806158b7846158ab87600a870263ffffffff61562b16565b9063ffffffff61597816565b90506005600a825b06106158c957600a015b600a9004949350505050565b600080600a83046158ec868663ffffffff61562b16565b8115156158f557fe5b0490506005600a826158bf565b60006148bc7f4574686572436f6c6c61746572616c00000000000000000000000000000000006040805190810160405280601f81526020017f4d697373696e67204574686572436f6c6c61746572616c20616464726573730081525061557c565b6000610d428383670de0b6b3a76400006158d5565b60008080831161598757600080fd5b828481151561599257fe5b04949350505050565b8154818355818111156122e9576000838152602090206122e99181019083016159df565b610300604051908101604052806018906020820280388339509192915050565b61445d91905b80821115613be557600081556001016159e556004f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e0000000000000000000000000000000000a165627a7a723058201ee411f629ce9c4dd03745a8f02b21de6cf124f8392f98828b49aedee8686f380029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c011a72400e58ecd99ee497cf89e3775d4bd732f0000000000000000000000005b1b5fea1b99d83ad479df0c222f0492385381dd000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000000000000000000000926dd0793aa83c81d57abe000000000000000000000000fbb6526ed92da8915d4843a86166020d0b7baad0
-----Decoded View---------------
Arg [0] : _proxy (address): 0xC011A72400E58ecD99Ee497CF89E3775d4bd732F
Arg [1] : _tokenState (address): 0x5b1b5fEa1b99D83aD479dF0C222F0492385381dD
Arg [2] : _owner (address): 0xDe910777C787903F78C89e7a0bf7F4C435cBB1Fe
Arg [3] : _totalSupply (uint256): 177021753268615387490384574
Arg [4] : _resolver (address): 0xFbB6526ed92DA8915d4843a86166020d0B7bAAd0
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000c011a72400e58ecd99ee497cf89e3775d4bd732f
Arg [1] : 0000000000000000000000005b1b5fea1b99d83ad479df0c222f0492385381dd
Arg [2] : 000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe
Arg [3] : 000000000000000000000000000000000000000000926dd0793aa83c81d57abe
Arg [4] : 000000000000000000000000fbb6526ed92da8915d4843a86166020d0b7baad0
Loading...
Loading
Loading...
Loading
OVERVIEW
The legacy contract address for Synthetix: Synth SNX.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.