ETH Price: $2,253.40 (+6.63%)
Gas: 0.08 Gwei

Contract

0x08873F4d27d2a9c6d907bd5a90d722B108e56688
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TrueUSD

Compiler Version
v0.4.23+commit.124ca40d

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-01-28
*/

pragma solidity ^0.4.23;

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: registry/contracts/Registry.sol

contract Registry {
    struct AttributeData {
        uint256 value;
        bytes32 notes;
        address adminAddr;
        uint256 timestamp;
    }
    
    address public owner;
    address public pendingOwner;
    bool public initialized;

    // Stores arbitrary attributes for users. An example use case is an ERC20
    // token that requires its users to go through a KYC/AML check - in this case
    // a validator can set an account's "hasPassedKYC/AML" attribute to 1 to indicate
    // that account can use the token. This mapping stores that value (1, in the
    // example) as well as which validator last set the value and at what time,
    // so that e.g. the check can be renewed at appropriate intervals.
    mapping(address => mapping(bytes32 => AttributeData)) public attributes;
    // The logic governing who is allowed to set what attributes is abstracted as
    // this accessManager, so that it may be replaced by the owner as needed

    bytes32 public constant WRITE_PERMISSION = keccak256("canWriteTo-");
    bytes32 public constant IS_BLACKLISTED = "isBlacklisted";
    bytes32 public constant IS_DEPOSIT_ADDRESS = "isDepositAddress"; 
    bytes32 public constant IS_REGISTERED_CONTRACT = "isRegisteredContract"; 
    bytes32 public constant HAS_PASSED_KYC_AML = "hasPassedKYC/AML";
    bytes32 public constant CAN_BURN = "canBurn";

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );
    event SetAttribute(address indexed who, bytes32 attribute, uint256 value, bytes32 notes, address indexed adminAddr);
    event SetManager(address indexed oldManager, address indexed newManager);


    function initialize() public {
        require(!initialized, "already initialized");
        owner = msg.sender;
        initialized = true;
    }

    function writeAttributeFor(bytes32 _attribute) public pure returns (bytes32) {
        return keccak256(WRITE_PERMISSION ^ _attribute);
    }

    // Allows a write if either a) the writer is that Registry's owner, or
    // b) the writer is writing to attribute foo and that writer already has
    // the canWriteTo-foo attribute set (in that same Registry)
    function confirmWrite(bytes32 _attribute, address _admin) public view returns (bool) {
        return (_admin == owner || hasAttribute(_admin, keccak256(WRITE_PERMISSION ^ _attribute)));
    }

    // Writes are allowed only if the accessManager approves
    function setAttribute(address _who, bytes32 _attribute, uint256 _value, bytes32 _notes) public {
        require(confirmWrite(_attribute, msg.sender));
        attributes[_who][_attribute] = AttributeData(_value, _notes, msg.sender, block.timestamp);
        emit SetAttribute(_who, _attribute, _value, _notes, msg.sender);
    }

    function setAttributeValue(address _who, bytes32 _attribute, uint256 _value) public {
        require(confirmWrite(_attribute, msg.sender));
        attributes[_who][_attribute] = AttributeData(_value, "", msg.sender, block.timestamp);
        emit SetAttribute(_who, _attribute, _value, "", msg.sender);
    }

    // Returns true if the uint256 value stored for this attribute is non-zero
    function hasAttribute(address _who, bytes32 _attribute) public view returns (bool) {
        return attributes[_who][_attribute].value != 0;
    }

    function hasBothAttributes(address _who, bytes32 _attribute1, bytes32 _attribute2) public view returns (bool) {
        return attributes[_who][_attribute1].value != 0 && attributes[_who][_attribute2].value != 0;
    }

    function hasEitherAttribute(address _who, bytes32 _attribute1, bytes32 _attribute2) public view returns (bool) {
        return attributes[_who][_attribute1].value != 0 || attributes[_who][_attribute2].value != 0;
    }

    function hasAttribute1ButNotAttribute2(address _who, bytes32 _attribute1, bytes32 _attribute2) public view returns (bool) {
        return attributes[_who][_attribute1].value != 0 && attributes[_who][_attribute2].value == 0;
    }

    function bothHaveAttribute(address _who1, address _who2, bytes32 _attribute) public view returns (bool) {
        return attributes[_who1][_attribute].value != 0 && attributes[_who2][_attribute].value != 0;
    }
    
    function eitherHaveAttribute(address _who1, address _who2, bytes32 _attribute) public view returns (bool) {
        return attributes[_who1][_attribute].value != 0 || attributes[_who2][_attribute].value != 0;
    }

    function haveAttributes(address _who1, bytes32 _attribute1, address _who2, bytes32 _attribute2) public view returns (bool) {
        return attributes[_who1][_attribute1].value != 0 && attributes[_who2][_attribute2].value != 0;
    }

    function haveEitherAttribute(address _who1, bytes32 _attribute1, address _who2, bytes32 _attribute2) public view returns (bool) {
        return attributes[_who1][_attribute1].value != 0 || attributes[_who2][_attribute2].value != 0;
    }

    function isDepositAddress(address _who) public view returns (bool) {
        return attributes[address(uint256(_who) >> 20)][IS_DEPOSIT_ADDRESS].value != 0;
    }

    function getDepositAddress(address _who) public view returns (address) {
        return address(attributes[address(uint256(_who) >> 20)][IS_DEPOSIT_ADDRESS].value);
    }

    function requireCanTransfer(address _from, address _to) public view returns (address, bool) {
        require (attributes[_from][IS_BLACKLISTED].value == 0, "blacklisted");
        uint256 depositAddressValue = attributes[address(uint256(_to) >> 20)][IS_DEPOSIT_ADDRESS].value;
        if (depositAddressValue != 0) {
            _to = address(depositAddressValue);
        }
        require (attributes[_to][IS_BLACKLISTED].value == 0, "blacklisted");
        return (_to, attributes[_to][IS_REGISTERED_CONTRACT].value != 0);
    }

    function requireCanTransferFrom(address _sender, address _from, address _to) public view returns (address, bool) {
        require (attributes[_sender][IS_BLACKLISTED].value == 0, "blacklisted");
        return requireCanTransfer(_from, _to);
    }

    function requireCanMint(address _to) public view returns (address, bool) {
        require (attributes[_to][HAS_PASSED_KYC_AML].value != 0);
        require (attributes[_to][IS_BLACKLISTED].value == 0, "blacklisted");
        uint256 depositAddressValue = attributes[address(uint256(_to) >> 20)][IS_DEPOSIT_ADDRESS].value;
        if (depositAddressValue != 0) {
            _to = address(depositAddressValue);
        }
        return (_to, attributes[_to][IS_REGISTERED_CONTRACT].value != 0);
    }

    function requireCanBurn(address _from) public view {
        require (attributes[_from][CAN_BURN].value != 0);
        require (attributes[_from][IS_BLACKLISTED].value == 0);
    }

    // Returns the exact value of the attribute, as well as its metadata
    function getAttribute(address _who, bytes32 _attribute) public view returns (uint256, bytes32, address, uint256) {
        AttributeData memory data = attributes[_who][_attribute];
        return (data.value, data.notes, data.adminAddr, data.timestamp);
    }

    function getAttributeValue(address _who, bytes32 _attribute) public view returns (uint256) {
        return attributes[_who][_attribute].value;
    }

    function getAttributeAdminAddr(address _who, bytes32 _attribute) public view returns (address) {
        return attributes[_who][_attribute].adminAddr;
    }

    function getAttributeTimestamp(address _who, bytes32 _attribute) public view returns (uint256) {
        return attributes[_who][_attribute].timestamp;
    }

    function reclaimEther(address _to) external onlyOwner {
        _to.transfer(address(this).balance);
    }

    function reclaimToken(ERC20 token, address _to) external onlyOwner {
        uint256 balance = token.balanceOf(this);
        token.transfer(_to, balance);
    }

    /**
    * @dev sets the original `owner` of the contract to the sender
    * at construction. Must then be reinitialized 
    */
    constructor() public {
        owner = msg.sender;
        emit OwnershipTransferred(address(0), owner);
    }

    /**
    * @dev Throws if called by any account other than the owner.
    */
    modifier onlyOwner() {
        require(msg.sender == owner, "only Owner");
        _;
    }

    /**
    * @dev Modifier throws if called by any account other than the pendingOwner.
    */
    modifier onlyPendingOwner() {
        require(msg.sender == pendingOwner);
        _;
    }

    /**
    * @dev Allows the current owner to set the pendingOwner address.
    * @param newOwner The address to transfer ownership to.
    */
    function transferOwnership(address newOwner) public onlyOwner {
        pendingOwner = newOwner;
    }

    /**
    * @dev Allows the pendingOwner address to finalize the transfer.
    */
    function claimOwnership() public onlyPendingOwner {
        emit OwnershipTransferred(owner, pendingOwner);
        owner = pendingOwner;
        pendingOwner = address(0);
    }
}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() public {
    owner = msg.sender;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}

// File: openzeppelin-solidity/contracts/ownership/Claimable.sol

/**
 * @title Claimable
 * @dev Extension for the Ownable contract, where the ownership needs to be claimed.
 * This allows the new owner to accept the transfer.
 */
contract Claimable is Ownable {
  address public pendingOwner;

  /**
   * @dev Modifier throws if called by any account other than the pendingOwner.
   */
  modifier onlyPendingOwner() {
    require(msg.sender == pendingOwner);
    _;
  }

  /**
   * @dev Allows the current owner to set the pendingOwner address.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) onlyOwner public {
    pendingOwner = newOwner;
  }

  /**
   * @dev Allows the pendingOwner address to finalize the transfer.
   */
  function claimOwnership() onlyPendingOwner public {
    emit OwnershipTransferred(owner, pendingOwner);
    owner = pendingOwner;
    pendingOwner = address(0);
  }
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

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

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
    if (a == 0) {
      return 0;
    }
    c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws 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 a / b;
  }

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

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

// File: contracts/modularERC20/BalanceSheet.sol

// A wrapper around the balanceOf mapping.
contract BalanceSheet is Claimable {
    using SafeMath for uint256;

    mapping (address => uint256) public balanceOf;

    function addBalance(address _addr, uint256 _value) public onlyOwner {
        balanceOf[_addr] = balanceOf[_addr].add(_value);
    }

    function subBalance(address _addr, uint256 _value) public onlyOwner {
        balanceOf[_addr] = balanceOf[_addr].sub(_value);
    }

    function setBalance(address _addr, uint256 _value) public onlyOwner {
        balanceOf[_addr] = _value;
    }
}

// File: contracts/modularERC20/AllowanceSheet.sol

// A wrapper around the allowanceOf mapping.
contract AllowanceSheet is Claimable {
    using SafeMath for uint256;

    mapping (address => mapping (address => uint256)) public allowanceOf;

    function addAllowance(address _tokenHolder, address _spender, uint256 _value) public onlyOwner {
        allowanceOf[_tokenHolder][_spender] = allowanceOf[_tokenHolder][_spender].add(_value);
    }

    function subAllowance(address _tokenHolder, address _spender, uint256 _value) public onlyOwner {
        allowanceOf[_tokenHolder][_spender] = allowanceOf[_tokenHolder][_spender].sub(_value);
    }

    function setAllowance(address _tokenHolder, address _spender, uint256 _value) public onlyOwner {
        allowanceOf[_tokenHolder][_spender] = _value;
    }
}

// File: contracts/ProxyStorage.sol

/*
Defines the storage layout of the implementaiton (TrueUSD) contract. Any newly declared 
state variables in future upgrades should be appened to the bottom. Never remove state variables
from this list
 */
contract ProxyStorage {
    address public owner;
    address public pendingOwner;

    bool public initialized;
    
    BalanceSheet public balances;
    AllowanceSheet public allowances;

    uint256 totalSupply_;
    
    bool private paused_Deprecated = false;
    address private globalPause_Deprecated;

    uint256 public burnMin = 0;
    uint256 public burnMax = 0;

    Registry public registry;

    string public name = "TrueUSD";
    string public symbol = "TUSD";

    uint[] public gasRefundPool;
    uint256 private redemptionAddressCount_Deprecated;
    uint256 public minimumGasPriceForFutureRefunds;
}

// File: contracts/HasOwner.sol

/**
 * @title HasOwner
 * @dev The HasOwner contract is a copy of Claimable Contract by Zeppelin. 
 and provides basic authorization control functions. Inherits storage layout of 
 ProxyStorage.
 */
contract HasOwner is ProxyStorage {

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
    * @dev sets the original `owner` of the contract to the sender
    * at construction. Must then be reinitialized 
    */
    constructor() public {
        owner = msg.sender;
        emit OwnershipTransferred(address(0), owner);
    }

    /**
    * @dev Throws if called by any account other than the owner.
    */
    modifier onlyOwner() {
        require(msg.sender == owner, "only Owner");
        _;
    }

    /**
    * @dev Modifier throws if called by any account other than the pendingOwner.
    */
    modifier onlyPendingOwner() {
        require(msg.sender == pendingOwner);
        _;
    }

    /**
    * @dev Allows the current owner to set the pendingOwner address.
    * @param newOwner The address to transfer ownership to.
    */
    function transferOwnership(address newOwner) public onlyOwner {
        pendingOwner = newOwner;
    }

    /**
    * @dev Allows the pendingOwner address to finalize the transfer.
    */
    function claimOwnership() public onlyPendingOwner {
        emit OwnershipTransferred(owner, pendingOwner);
        owner = pendingOwner;
        pendingOwner = address(0);
    }
}

// File: contracts/modularERC20/ModularBasicToken.sol

// Version of OpenZeppelin's BasicToken whose balances mapping has been replaced
// with a separate BalanceSheet contract. remove the need to copy over balances.
/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract ModularBasicToken is HasOwner {
    using SafeMath for uint256;

    event BalanceSheetSet(address indexed sheet);
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
    * @dev claim ownership of the balancesheet contract
    * @param _sheet The address to of the balancesheet to claim.
    */
    function setBalanceSheet(address _sheet) public onlyOwner returns (bool) {
        balances = BalanceSheet(_sheet);
        balances.claimOwnership();
        emit BalanceSheetSet(_sheet);
        return true;
    }

    /**
    * @dev total number of tokens in existence
    */
    function totalSupply() public view returns (uint256) {
        return totalSupply_;
    }

    /**
    * @dev transfer token for a specified address
    * @param _to The address to transfer to.
    * @param _value The amount to be transferred.
    */
    function transfer(address _to, uint256 _value) public returns (bool) {
        _transferAllArgs(msg.sender, _to, _value);
        return true;
    }


    function _transferAllArgs(address _from, address _to, uint256 _value) internal {
        // SafeMath.sub will throw if there is not enough balance.
        balances.subBalance(_from, _value);
        balances.addBalance(_to, _value);
        emit Transfer(_from, _to, _value);
    }
    

    /**
    * @dev Gets the balance of the specified address.
    * @param _owner The address to query the the balance of.
    * @return An uint256 representing the amount owned by the passed address.
    */
    function balanceOf(address _owner) public view returns (uint256 balance) {
        return balances.balanceOf(_owner);
    }
}

// File: contracts/modularERC20/ModularStandardToken.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract ModularStandardToken is ModularBasicToken {
    
    event AllowanceSheetSet(address indexed sheet);
    event Approval(address indexed owner, address indexed spender, uint256 value);
    
    /**
    * @dev claim ownership of the AllowanceSheet contract
    * @param _sheet The address to of the AllowanceSheet to claim.
    */
    function setAllowanceSheet(address _sheet) public onlyOwner returns(bool) {
        allowances = AllowanceSheet(_sheet);
        allowances.claimOwnership();
        emit AllowanceSheetSet(_sheet);
        return true;
    }

    /**
     * @dev Transfer tokens from one address to another
     * @param _from address The address which you want to send tokens from
     * @param _to address The address which you want to transfer to
     * @param _value uint256 the amount of tokens to be transferred
     */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
        _transferFromAllArgs(_from, _to, _value, msg.sender);
        return true;
    }

    function _transferFromAllArgs(address _from, address _to, uint256 _value, address _spender) internal {
        _transferAllArgs(_from, _to, _value);
        allowances.subAllowance(_from, _spender, _value);
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
     *
     * Beware that changing an allowance with this method brings the risk that someone may use both the old
     * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
     * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     * @param _spender The address which will spend the funds.
     * @param _value The amount of tokens to be spent.
     */
    function approve(address _spender, uint256 _value) public returns (bool) {
        _approveAllArgs(_spender, _value, msg.sender);
        return true;
    }

    function _approveAllArgs(address _spender, uint256 _value, address _tokenHolder) internal {
        allowances.setAllowance(_tokenHolder, _spender, _value);
        emit Approval(_tokenHolder, _spender, _value);
    }

    /**
     * @dev Function to check the amount of tokens that an owner allowed to a spender.
     * @param _owner address The address which owns the funds.
     * @param _spender address The address which will spend the funds.
     * @return A uint256 specifying the amount of tokens still available for the spender.
     */
    function allowance(address _owner, address _spender) public view returns (uint256) {
        return allowances.allowanceOf(_owner, _spender);
    }

    /**
     * @dev Increase the amount of tokens that an owner allowed to a spender.
     *
     * approve should be called when allowed[_spender] == 0. To increment
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * @param _spender The address which will spend the funds.
     * @param _addedValue The amount of tokens to increase the allowance by.
     */
    function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
        _increaseApprovalAllArgs(_spender, _addedValue, msg.sender);
        return true;
    }

    function _increaseApprovalAllArgs(address _spender, uint256 _addedValue, address _tokenHolder) internal {
        allowances.addAllowance(_tokenHolder, _spender, _addedValue);
        emit Approval(_tokenHolder, _spender, allowances.allowanceOf(_tokenHolder, _spender));
    }

    /**
     * @dev Decrease the amount of tokens that an owner allowed to a spender.
     *
     * approve should be called when allowed[_spender] == 0. To decrement
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * @param _spender The address which will spend the funds.
     * @param _subtractedValue The amount of tokens to decrease the allowance by.
     */
    function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
        _decreaseApprovalAllArgs(_spender, _subtractedValue, msg.sender);
        return true;
    }

    function _decreaseApprovalAllArgs(address _spender, uint256 _subtractedValue, address _tokenHolder) internal {
        uint256 oldValue = allowances.allowanceOf(_tokenHolder, _spender);
        if (_subtractedValue > oldValue) {
            allowances.setAllowance(_tokenHolder, _spender, 0);
        } else {
            allowances.subAllowance(_tokenHolder, _spender, _subtractedValue);
        }
        emit Approval(_tokenHolder,_spender, allowances.allowanceOf(_tokenHolder, _spender));
    }
}

// File: contracts/modularERC20/ModularBurnableToken.sol

/**
 * @title Burnable Token
 * @dev Token that can be irreversibly burned (destroyed).
 */
contract ModularBurnableToken is ModularStandardToken {
    event Burn(address indexed burner, uint256 value);

    /**
     * @dev Burns a specific amount of tokens.
     * @param _value The amount of token to be burned.
     */
    function burn(uint256 _value) public {
        _burnAllArgs(msg.sender, _value);
    }

    function _burnAllArgs(address _burner, uint256 _value) internal {
        // no need to require value <= totalSupply, since that would imply the
        // sender's balance is greater than the totalSupply, which *should* be an assertion failure
        /* uint burnAmount = _value / (10 **16) * (10 **16); */
        balances.subBalance(_burner, _value);
        totalSupply_ = totalSupply_.sub(_value);
        emit Burn(_burner, _value);
        emit Transfer(_burner, address(0), _value);
    }
}

// File: contracts/modularERC20/ModularMintableToken.sol

/**
 * @title Mintable token
 * @dev Simple ERC20 Token example, with mintable token creation
 * @dev Issue: * https://github.com/OpenZeppelin/openzeppelin-solidity/issues/120
 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
 */
contract ModularMintableToken is ModularBurnableToken {
    event Mint(address indexed to, uint256 value);

    /**
     * @dev Function to mint tokens
     * @param _to The address that will receive the minted tokens.
     * @param _value The amount of tokens to mint.
     * @return A boolean that indicates if the operation was successful.
     */
    function mint(address _to, uint256 _value) public onlyOwner {
        require(_to != address(0), "to address cannot be zero");
        totalSupply_ = totalSupply_.add(_value);
        balances.addBalance(_to, _value);
        emit Mint(_to, _value);
        emit Transfer(address(0), _to, _value);
    }
}

// File: contracts/BurnableTokenWithBounds.sol

/**
 * @title Burnable Token WithBounds
 * @dev Burning functions as redeeming money from the system. The platform will keep track of who burns coins,
 * and will send them back the equivalent amount of money (rounded down to the nearest cent).
 */
contract BurnableTokenWithBounds is ModularMintableToken {

    event SetBurnBounds(uint256 newMin, uint256 newMax);

    function _burnAllArgs(address _burner, uint256 _value) internal {
        require(_value >= burnMin, "below min burn bound");
        require(_value <= burnMax, "exceeds max burn bound");
        super._burnAllArgs(_burner, _value);
    }

    //Change the minimum and maximum amount that can be burned at once. Burning
    //may be disabled by setting both to 0 (this will not be done under normal
    //operation, but we can't add checks to disallow it without losing a lot of
    //flexibility since burning could also be as good as disabled
    //by setting the minimum extremely high, and we don't want to lock
    //in any particular cap for the minimum)
    function setBurnBounds(uint256 _min, uint256 _max) public onlyOwner {
        require(_min <= _max, "min > max");
        burnMin = _min;
        burnMax = _max;
        emit SetBurnBounds(_min, _max);
    }
}

// File: contracts/CompliantToken.sol

contract CompliantToken is ModularMintableToken {
    // In order to deposit USD and receive newly minted TrueUSD, or to burn TrueUSD to
    // redeem it for USD, users must first go through a KYC/AML check (which includes proving they
    // control their ethereum address using AddressValidation.sol).
    bytes32 public constant HAS_PASSED_KYC_AML = "hasPassedKYC/AML";
    // Redeeming ("burning") TrueUSD tokens for USD requires a separate flag since
    // users must not only be KYC/AML'ed but must also have bank information on file.
    bytes32 public constant CAN_BURN = "canBurn";
    // Addresses can also be blacklisted, preventing them from sending or receiving
    // TrueUSD. This can be used to prevent the use of TrueUSD by bad actors in
    // accordance with law enforcement. See [TrueCoin Terms of Use](https://www.trusttoken.com/trueusd/terms-of-use)
    bytes32 public constant IS_BLACKLISTED = "isBlacklisted";

    event WipeBlacklistedAccount(address indexed account, uint256 balance);
    event SetRegistry(address indexed registry);
    
    /**
    * @dev Point to the registry that contains all compliance related data
    @param _registry The address of the registry instance
    */
    function setRegistry(Registry _registry) public onlyOwner {
        registry = _registry;
        emit SetRegistry(registry);
    }

    function _burnAllArgs(address _burner, uint256 _value) internal {
        registry.requireCanBurn(_burner);
        super._burnAllArgs(_burner, _value);
    }

    // Destroy the tokens owned by a blacklisted account
    function wipeBlacklistedAccount(address _account) public onlyOwner {
        require(registry.hasAttribute(_account, IS_BLACKLISTED), "_account is not blacklisted");
        uint256 oldValue = balanceOf(_account);
        balances.setBalance(_account, 0);
        totalSupply_ = totalSupply_.sub(oldValue);
        emit WipeBlacklistedAccount(_account, oldValue);
        emit Transfer(_account, address(0), oldValue);
    }
}

// File: contracts/DepositToken.sol

/** @title Deposit Token
Allows users to register their address so that all transfers to deposit addresses
of the registered address will be forwarded to the registered address.  
For example for address 0x9052BE99C9C8C5545743859e4559A751bDe4c923,
its deposit addresses are all addresses between
0x9052BE99C9C8C5545743859e4559A75100000 and 0x9052BE99C9C8C5545743859e4559A751fffff
Transfers to 0x9052BE99C9C8C5545743859e4559A75100005 will be forwared to 0x9052BE99C9C8C5545743859e4559A751bDe4c923
 */
contract DepositToken is ModularMintableToken {
    
    bytes32 public constant IS_DEPOSIT_ADDRESS = "isDepositAddress"; 

}

// File: contracts/TrueCoinReceiver.sol

contract TrueCoinReceiver {
    function tokenFallback( address from, uint256 value ) external;
}

// File: contracts/TokenWithHook.sol

/** @title Token With Hook
If tokens are transferred to a Registered Token Receiver contract, trigger the tokenFallback function in the 
Token Receiver contract. Assume all Registered Token Receiver contract implements the TrueCoinReceiver 
interface. If the tokenFallback reverts, the entire transaction reverts. 
 */
contract TokenWithHook is ModularMintableToken {
    
    bytes32 public constant IS_REGISTERED_CONTRACT = "isRegisteredContract"; 

}

// File: contracts/CompliantDepositTokenWithHook.sol

contract CompliantDepositTokenWithHook is CompliantToken, DepositToken, TokenWithHook {

    function _transferFromAllArgs(address _from, address _to, uint256 _value, address _sender) internal {
        bool hasHook;
        address originalTo = _to;
        (_to, hasHook) = registry.requireCanTransferFrom(_sender, _from, _to);
        allowances.subAllowance(_from, _sender, _value);
        balances.subBalance(_from, _value);
        balances.addBalance(_to, _value);
        emit Transfer(_from, originalTo, _value);
        if (originalTo != _to) {
            emit Transfer(originalTo, _to, _value);
            if (hasHook) {
                TrueCoinReceiver(_to).tokenFallback(originalTo, _value);
            }
        } else {
            if (hasHook) {
                TrueCoinReceiver(_to).tokenFallback(_from, _value);
            }
        }
    }

    function _transferAllArgs(address _from, address _to, uint256 _value) internal {
        bool hasHook;
        address originalTo = _to;
        (_to, hasHook) = registry.requireCanTransfer(_from, _to);
        balances.subBalance(_from, _value);
        balances.addBalance(_to, _value);
        emit Transfer(_from, originalTo, _value);
        if (originalTo != _to) {
            emit Transfer(originalTo, _to, _value);
            if (hasHook) {
                TrueCoinReceiver(_to).tokenFallback(originalTo, _value);
            }
        } else {
            if (hasHook) {
                TrueCoinReceiver(_to).tokenFallback(_from, _value);
            }
        }
    }

    function mint(address _to, uint256 _value) public onlyOwner {
        require(_to != address(0), "to address cannot be zero");
        bool hasHook;
        address originalTo = _to;
        (_to, hasHook) = registry.requireCanMint(_to);
        totalSupply_ = totalSupply_.add(_value);
        emit Mint(originalTo, _value);
        emit Transfer(address(0), originalTo, _value);
        if (_to != originalTo) {
            emit Transfer(originalTo, _to, _value);
        }
        balances.addBalance(_to, _value);
        if (hasHook) {
            if (_to != originalTo) {
                TrueCoinReceiver(_to).tokenFallback(originalTo, _value);
            } else {
                TrueCoinReceiver(_to).tokenFallback(address(0), _value);
            }
        }
    }
}

// File: contracts/RedeemableToken.sol

/** @title Redeemable Token 
Makes transfers to 0x0 alias to Burn
Implement Redemption Addresses
*/
contract RedeemableToken is ModularMintableToken {

    event RedemptionAddress(address indexed addr);

    uint256 public constant REDEMPTION_ADDRESS_COUNT = 0x100000;

    function _transferAllArgs(address _from, address _to, uint256 _value) internal {
        if (_to == address(0)) {
            revert("_to address is 0x0");
        } else if (uint(_to) < REDEMPTION_ADDRESS_COUNT) {
            // Transfers to redemption addresses becomes burn
            super._transferAllArgs(_from, _to, _value);
            _burnAllArgs(_to, _value);
        } else {
            super._transferAllArgs(_from, _to, _value);
        }
    }

    function _transferFromAllArgs(address _from, address _to, uint256 _value, address _sender) internal {
        if (_to == address(0)) {
            revert("_to address is 0x0");
        } else if (uint(_to) < REDEMPTION_ADDRESS_COUNT) {
            // Transfers to redemption addresses becomes burn
            super._transferFromAllArgs(_from, _to, _value, _sender);
            _burnAllArgs(_to, _value);
        } else {
            super._transferFromAllArgs(_from, _to, _value, _sender);
        }
    }
}

// File: contracts/GasRefundToken.sol

/**  
@title Gas Refund Token
Allow any user to sponsor gas refunds for transfer and mints. Utilitzes the gas refund mechanism in EVM
Each time an non-empty storage slot is set to 0, evm refund 15,000 (19,000 after Constantinople) to the sender
of the transaction. 
*/
contract GasRefundToken is ModularMintableToken {

    function sponsorGas() external {
        uint256 len = gasRefundPool.length;
        uint256 refundPrice = minimumGasPriceForFutureRefunds;
        require(refundPrice > 0);
        gasRefundPool.length = len + 9;
        gasRefundPool[len] = refundPrice;
        gasRefundPool[len + 1] = refundPrice;
        gasRefundPool[len + 2] = refundPrice;
        gasRefundPool[len + 3] = refundPrice;
        gasRefundPool[len + 4] = refundPrice;
        gasRefundPool[len + 5] = refundPrice;
        gasRefundPool[len + 6] = refundPrice;
        gasRefundPool[len + 7] = refundPrice;
        gasRefundPool[len + 8] = refundPrice;
    }

    function minimumGasPriceForRefund() public view returns (uint256) {
        uint256 len = gasRefundPool.length;
        if (len > 0) {
          return gasRefundPool[len - 1] + 1;
        }
        return uint256(-1);
    }

    /**  
    @dev refund 45,000 gas for functions with gasRefund modifier.
    */
    modifier gasRefund {
        uint256 len = gasRefundPool.length;
        if (len > 2 && tx.gasprice > gasRefundPool[len-1]) {
            gasRefundPool[--len] = 0;
            gasRefundPool[--len] = 0;
            gasRefundPool[--len] = 0;
            gasRefundPool.length = len;
        }   
        _;
    }

    /**  
    *@dev Return the remaining sponsored gas slots
    */
    function remainingGasRefundPool() public view returns (uint) {
        return gasRefundPool.length;
    }

    function remainingSponsoredTransactions() public view returns (uint) {
        return gasRefundPool.length / 3;
    }

    function _transferAllArgs(address _from, address _to, uint256 _value) internal gasRefund {
        super._transferAllArgs(_from, _to, _value);
    }

    function _transferFromAllArgs(address _from, address _to, uint256 _value, address _sender) internal gasRefund {
        super._transferFromAllArgs(_from, _to, _value, _sender);
    }

    function mint(address _to, uint256 _value) public onlyOwner gasRefund {
        super.mint(_to, _value);
    }

    bytes32 public constant CAN_SET_FUTURE_REFUND_MIN_GAS_PRICE = "canSetFutureRefundMinGasPrice";

    function setMinimumGasPriceForFutureRefunds(uint256 _minimumGasPriceForFutureRefunds) public {
        require(registry.hasAttribute(msg.sender, CAN_SET_FUTURE_REFUND_MIN_GAS_PRICE));
        minimumGasPriceForFutureRefunds = _minimumGasPriceForFutureRefunds;
    }
}

// File: contracts/DelegateERC20.sol

/** @title DelegateERC20
Accept forwarding delegation calls from the old TrueUSD (V1) contract. This way the all the ERC20
functions in the old contract still works (except Burn). 
*/
contract DelegateERC20 is ModularStandardToken {

    address public constant DELEGATE_FROM = 0x8dd5fbCe2F6a956C3022bA3663759011Dd51e73E;
    
    modifier onlyDelegateFrom() {
        require(msg.sender == DELEGATE_FROM);
        _;
    }

    function delegateTotalSupply() public view returns (uint256) {
        return totalSupply();
    }

    function delegateBalanceOf(address who) public view returns (uint256) {
        return balanceOf(who);
    }

    function delegateTransfer(address to, uint256 value, address origSender) public onlyDelegateFrom returns (bool) {
        _transferAllArgs(origSender, to, value);
        return true;
    }

    function delegateAllowance(address owner, address spender) public view returns (uint256) {
        return allowance(owner, spender);
    }

    function delegateTransferFrom(address from, address to, uint256 value, address origSender) public onlyDelegateFrom returns (bool) {
        _transferFromAllArgs(from, to, value, origSender);
        return true;
    }

    function delegateApprove(address spender, uint256 value, address origSender) public onlyDelegateFrom returns (bool) {
        _approveAllArgs(spender, value, origSender);
        return true;
    }

    function delegateIncreaseApproval(address spender, uint addedValue, address origSender) public onlyDelegateFrom returns (bool) {
        _increaseApprovalAllArgs(spender, addedValue, origSender);
        return true;
    }

    function delegateDecreaseApproval(address spender, uint subtractedValue, address origSender) public onlyDelegateFrom returns (bool) {
        _decreaseApprovalAllArgs(spender, subtractedValue, origSender);
        return true;
    }
}

// File: contracts/TrueUSD.sol

/** @title TrueUSD
* @dev This is the top-level ERC20 contract, but most of the interesting functionality is
* inherited - see the documentation on the corresponding contracts.
*/
contract TrueUSD is 
ModularMintableToken, 
CompliantDepositTokenWithHook,
BurnableTokenWithBounds, 
RedeemableToken,
DelegateERC20,
GasRefundToken {
    using SafeMath for *;

    uint8 public constant DECIMALS = 18;
    uint8 public constant ROUNDING = 2;

    event ChangeTokenName(string newName, string newSymbol);

    function decimals() public pure returns (uint8) {
        return DECIMALS;
    }

    function rounding() public pure returns (uint8) {
        return ROUNDING;
    }

    function changeTokenName(string _name, string _symbol) external onlyOwner {
        name = _name;
        symbol = _symbol;
        emit ChangeTokenName(_name, _symbol);
    }

    /**  
    *@dev send all eth balance in the TrueUSD contract to another address
    */
    function reclaimEther(address _to) external onlyOwner {
        _to.transfer(address(this).balance);
    }

    /**  
    *@dev send all token balance of an arbitary erc20 token
    in the TrueUSD contract to another address
    */
    function reclaimToken(ERC20 token, address _to) external onlyOwner {
        uint256 balance = token.balanceOf(this);
        token.transfer(_to, balance);
    }

    function paused() public pure returns (bool) {
        return false;
    }

    /**  
    *@dev allows owner of TrueUSD to gain ownership of any contract that TrueUSD currently owns
    */
    function reclaimContract(Ownable _ownable) external onlyOwner {
        _ownable.transferOwnership(owner);
    }

    function _burnAllArgs(address _burner, uint256 _value) internal {
        //round down burn amount so that the lowest amount allowed is 1 cent
        uint burnAmount = _value.div(10 ** uint256(DECIMALS - ROUNDING)).mul(10 ** uint256(DECIMALS - ROUNDING));
        super._burnAllArgs(_burner, burnAmount);
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"burnMin","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ROUNDING","outputs":[{"name":"","type":"uint8"}],"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":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"delegateAllowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"CAN_BURN","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"initialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_minimumGasPriceForFutureRefunds","type":"uint256"}],"name":"setMinimumGasPriceForFutureRefunds","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"IS_DEPOSIT_ADDRESS","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","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":"sponsorGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"origSender","type":"address"}],"name":"delegateApprove","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_ownable","type":"address"}],"name":"reclaimContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"REDEMPTION_ADDRESS_COUNT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DECIMALS","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rounding","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"minimumGasPriceForFutureRefunds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"allowances","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"delegateBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"}],"name":"changeTokenName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"origSender","type":"address"}],"name":"delegateTransferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_min","type":"uint256"},{"name":"_max","type":"uint256"}],"name":"setBurnBounds","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_sheet","type":"address"}],"name":"setBalanceSheet","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"},{"name":"origSender","type":"address"}],"name":"delegateIncreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minimumGasPriceForRefund","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"CAN_SET_FUTURE_REFUND_MIN_GAS_PRICE","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"burnMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"delegateTotalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balances","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DELEGATE_FROM","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"HAS_PASSED_KYC_AML","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"remainingGasRefundPool","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"IS_BLACKLISTED","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"_to","type":"address"}],"name":"reclaimToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"},{"name":"origSender","type":"address"}],"name":"delegateDecreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"remainingSponsoredTransactions","outputs":[{"name":"","type":"uint256"}],"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":"_to","type":"address"}],"name":"reclaimEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"origSender","type":"address"}],"name":"delegateTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_registry","type":"address"}],"name":"setRegistry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"IS_REGISTERED_CONTRACT","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_account","type":"address"}],"name":"wipeBlacklistedAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"pendingOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_sheet","type":"address"}],"name":"setAllowanceSheet","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"gasRefundPool","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newName","type":"string"},{"indexed":false,"name":"newSymbol","type":"string"}],"name":"ChangeTokenName","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"addr","type":"address"}],"name":"RedemptionAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newMin","type":"uint256"},{"indexed":false,"name":"newMax","type":"uint256"}],"name":"SetBurnBounds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"WipeBlacklistedAccount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"registry","type":"address"}],"name":"SetRegistry","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sheet","type":"address"}],"name":"AllowanceSheetSet","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":true,"name":"sheet","type":"address"}],"name":"BalanceSheetSet","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":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6005805460ff1916905560006006819055600790815560c060405260808190527f547275655553440000000000000000000000000000000000000000000000000060a0908152620000549160099190620000ef565b506040805180820190915260048082527f545553440000000000000000000000000000000000000000000000000000000060209092019182526200009b91600a91620000ef565b5060008054600160a060020a03191633600160a060020a0390811691909117808355604051911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a362000194565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200013257805160ff191683800117855562000162565b8280016001018555821562000162579182015b828111156200016257825182559160200191906001019062000145565b506200017092915062000174565b5090565b6200019191905b808211156200017057600081556001016200017b565b90565b61343e80620001a46000396000f3006080604052600436106102a55763ffffffff60e060020a60003504166302d3fdc981146102aa57806306aa9bd1146102d157806306fdde03146102fc578063095ea7b31461038657806309ab8bba146103be578063121d8fdd146103e5578063158ef93e146103fa57806318160ddd1461040f5780631e1256c3146104245780631e2893331461043e57806323b872dd1461045357806323f2cbb01461047d578063296f4000146104925780632aed7f3f146104bd5780632d04899f146104de5780632e0f2625146104f35780632e44040314610508578063313ce5671461051d5780633db6b7ff146105325780633ed10b921461054757806340c10f191461057857806342966c681461059c57806343a468c8146105b4578063453920cb146105d55780634df6b45d146106015780634e71e0c814610632578063520060501461064757806354f78dad14610662578063554249b31461068357806357e1ba4f146106ae5780635aaa858f146106c35780635c131d70146106d85780635c975abb146106ed578063661884631461070257806370a082311461072657806376e71dd8146107475780637b1039991461075c5780637bb98a68146107715780637d221e951461078657806380da04101461079b57806381a084fd146107b0578063833099a4146107c557806388ee39cc146107da5780638da5cb5b1461080157806393d3173a1461081657806394ae9b081461084157806395d89b41146108565780639a6a30a41461086b5780639cd1a1211461088c578063a9059cbb146108b7578063a91ee0dc146108db578063b09fbabb146108fc578063bd7243f614610911578063d73dd62314610932578063dd62ed3e14610956578063e30c39781461097d578063edc1e4f914610992578063ef286e96146109b3578063f2fde38b146109cb575b600080fd5b3480156102b657600080fd5b506102bf6109ec565b60408051918252519081900360200190f35b3480156102dd57600080fd5b506102e66109f2565b6040805160ff9092168252519081900360200190f35b34801561030857600080fd5b506103116109f7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561034b578181015183820152602001610333565b50505050905090810190601f1680156103785780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561039257600080fd5b506103aa600160a060020a0360043516602435610a85565b604080519115158252519081900360200190f35b3480156103ca57600080fd5b506102bf600160a060020a0360043581169060243516610a9c565b3480156103f157600080fd5b506102bf610aaf565b34801561040657600080fd5b506103aa610ad3565b34801561041b57600080fd5b506102bf610af4565b34801561043057600080fd5b5061043c600435610afb565b005b34801561044a57600080fd5b506102bf610bc5565b34801561045f57600080fd5b506103aa600160a060020a0360043581169060243516604435610be9565b34801561048957600080fd5b5061043c610c01565b34801561049e57600080fd5b506103aa600160a060020a036004358116906024359060443516610d4c565b3480156104c957600080fd5b5061043c600160a060020a0360043516610d82565b3480156104ea57600080fd5b506102bf610e53565b3480156104ff57600080fd5b506102e6610e5a565b34801561051457600080fd5b506102e6610e5f565b34801561052957600080fd5b506102e6610e64565b34801561053e57600080fd5b506102bf610e69565b34801561055357600080fd5b5061055c610e6f565b60408051600160a060020a039092168252519081900360200190f35b34801561058457600080fd5b5061043c600160a060020a0360043516602435610e7e565b3480156105a857600080fd5b5061043c600435610f8c565b3480156105c057600080fd5b506102bf600160a060020a0360043516610f99565b3480156105e157600080fd5b5061043c6024600480358281019290820135918135918201910135610fa4565b34801561060d57600080fd5b506103aa600160a060020a036004358116906024358116906044359060643516611087565b34801561063e57600080fd5b5061043c6110c9565b34801561065357600080fd5b5061043c600435602435611155565b34801561066e57600080fd5b506103aa600160a060020a036004351661124a565b34801561068f57600080fd5b506103aa600160a060020a036004358116906024359060443516611376565b3480156106ba57600080fd5b506102bf6113ac565b3480156106cf57600080fd5b506102bf6113eb565b3480156106e457600080fd5b506102bf61140f565b3480156106f957600080fd5b506103aa611415565b34801561070e57600080fd5b506103aa600160a060020a036004351660243561141a565b34801561073257600080fd5b506102bf600160a060020a0360043516611427565b34801561075357600080fd5b506102bf6114c4565b34801561076857600080fd5b5061055c6114d3565b34801561077d57600080fd5b5061055c6114e2565b34801561079257600080fd5b5061055c6114f1565b3480156107a757600080fd5b506102bf611509565b3480156107bc57600080fd5b506102bf61152d565b3480156107d157600080fd5b506102bf611533565b3480156107e657600080fd5b5061043c600160a060020a0360043581169060243516611557565b34801561080d57600080fd5b5061055c6116cc565b34801561082257600080fd5b506103aa600160a060020a0360043581169060243590604435166116db565b34801561084d57600080fd5b506102bf611711565b34801561086257600080fd5b5061031161171b565b34801561087757600080fd5b5061043c600160a060020a0360043516611776565b34801561089857600080fd5b506103aa600160a060020a036004358116906024359060443516611808565b3480156108c357600080fd5b506103aa600160a060020a036004351660243561183e565b3480156108e757600080fd5b5061043c600160a060020a036004351661184b565b34801561090857600080fd5b506102bf6118fc565b34801561091d57600080fd5b5061043c600160a060020a0360043516611920565b34801561093e57600080fd5b506103aa600160a060020a0360043516602435611b9e565b34801561096257600080fd5b506102bf600160a060020a0360043581169060243516611bab565b34801561098957600080fd5b5061055c611c3b565b34801561099e57600080fd5b506103aa600160a060020a0360043516611c4a565b3480156109bf57600080fd5b506102bf600435611d76565b3480156109d757600080fd5b5061043c600160a060020a0360043516611d95565b60065481565b600281565b6009805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b820191906000526020600020905b815481529060010190602001808311610a6057829003601f168201915b505050505081565b6000610a92838333611e18565b5060015b92915050565b6000610aa88383611bab565b9392505050565b7f63616e4275726e0000000000000000000000000000000000000000000000000081565b60015474010000000000000000000000000000000000000000900460ff1681565b6004545b90565b600854604080517f7338c25c000000000000000000000000000000000000000000000000000000008152600160a060020a0333811660048301527f63616e536574467574757265526566756e644d696e4761735072696365000000602483015291519190921691637338c25c9160448083019260209291908290030181600087803b158015610b8957600080fd5b505af1158015610b9d573d6000803e3d6000fd5b505050506040513d6020811015610bb357600080fd5b50511515610bc057600080fd5b600d55565b7f69734465706f736974416464726573730000000000000000000000000000000081565b6000610bf784848433611eed565b5060019392505050565b600b54600d5460008111610c1457600080fd5b60098201610c23600b8261331e565b5080600b83815481101515610c3457fe5b906000526020600020018190555080600b83600101815481101515610c5557fe5b906000526020600020018190555080600b83600201815481101515610c7657fe5b906000526020600020018190555080600b83600301815481101515610c9757fe5b906000526020600020018190555080600b83600401815481101515610cb857fe5b906000526020600020018190555080600b83600501815481101515610cd957fe5b906000526020600020018190555080600b83600601815481101515610cfa57fe5b906000526020600020018190555080600b83600701815481101515610d1b57fe5b906000526020600020018190555080600b83600801815481101515610d3c57fe5b6000918252602090912001555050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e14610d7757600080fd5b610bf7848484611e18565b60005433600160a060020a03908116911614610dd6576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b60008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015290519184169263f2fde38b9260248084019382900301818387803b158015610e3857600080fd5b505af1158015610e4c573d6000803e3d6000fd5b5050505050565b6210000081565b601281565b600290565b601290565b600d5481565b600354600160a060020a031681565b60005433600160a060020a03908116911614610ed2576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b600b54600281118015610f005750600b80546000198301908110610ef257fe5b90600052602060002001543a115b15610f7d576000600b8260019003925082815481101515610f1d57fe5b6000918252602082200191909155600b80546000199093019283908110610f4057fe5b6000918252602082200191909155600b80546000199093019283908110610f6357fe5b60009182526020909120015580610f7b600b8261331e565b505b610f878383611fa4565b505050565b610f96338261236f565b50565b6000610a9682611427565b60005433600160a060020a03908116911614610ff8576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b61100460098585613342565b50611011600a8383613342565b507f2c586a8161695058b918f15f079ee9cf05427ae067f6ede6ddda358cd6c8c3d28484848460405180806020018060200183810383528787828181526020019250808284379091018481038352858152602001905085858082843760405192018290039850909650505050505050a150505050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e146110b257600080fd5b6110be85858585611eed565b506001949350505050565b60015433600160a060020a039081169116146110e457600080fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b60005433600160a060020a039081169116146111a9576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b80821115611201576040805160e560020a62461bcd02815260206004820152600960248201527f6d696e203e206d61780000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60068290556007819055604080518381526020810183905281517f21d54a4c1f750b4f93779e3e8b4de89db3f31bab8f203e68569727fee906cc32929181900390910190a15050565b6000805433600160a060020a0390811691161461129f576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038481169190911791829055604080517f4e71e0c800000000000000000000000000000000000000000000000000000000815290519290911691634e71e0c89160048082019260009290919082900301818387803b15801561132257600080fd5b505af1158015611336573d6000803e3d6000fd5b5050604051600160a060020a03851692507fa89fb8ab3845cb6919c98b54ca0d8f398df48c64ae04ed309cd7b130539badd49150600090a2506001919050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e146113a157600080fd5b610bf78484846123a4565b600b54600090818111156113e157600b805460001983019081106113cc57fe5b906000526020600020015460010191506113e7565b60001991505b5090565b7f63616e536574467574757265526566756e644d696e476173507269636500000081565b60075481565b600090565b6000610a928383336124f5565b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038481166004830152915160009392909216916370a082319160248082019260209290919082900301818787803b15801561149257600080fd5b505af11580156114a6573d6000803e3d6000fd5b505050506040513d60208110156114bc57600080fd5b505192915050565b60006114ce610af4565b905090565b600854600160a060020a031681565b600254600160a060020a031681565b738dd5fbce2f6a956c3022ba3663759011dd51e73e81565b7f6861735061737365644b59432f414d4c0000000000000000000000000000000081565b600b5490565b7f6973426c61636b6c69737465640000000000000000000000000000000000000081565b6000805433600160a060020a039081169116146115ac576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b82600160a060020a03166370a08231306040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b15801561160757600080fd5b505af115801561161b573d6000803e3d6000fd5b505050506040513d602081101561163157600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301526024820184905291519293509085169163a9059cbb916044808201926020929091908290030181600087803b1580156116a257600080fd5b505af11580156116b6573d6000803e3d6000fd5b505050506040513d6020811015610e4c57600080fd5b600054600160a060020a031681565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e1461170657600080fd5b610bf78484846124f5565b600b546003900490565b600a805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b60005433600160a060020a039081169116146117ca576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b604051600160a060020a0380831691309091163180156108fc02916000818181858888f19350505050158015611804573d6000803e3d6000fd5b5050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e1461183357600080fd5b610bf782858561276f565b6000610a9233848461276f565b60005433600160a060020a0390811691161461189f576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907f278c70ced5f3e0e5eeb385b5ff9cb735748ba00a625147e66065ed48fc1562cd90600090a250565b7f697352656769737465726564436f6e747261637400000000000000000000000081565b6000805433600160a060020a03908116911614611975576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b600854604080517f7338c25c000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301527f6973426c61636b6c697374656400000000000000000000000000000000000000602483015291519190921691637338c25c9160448083019260209291908290030181600087803b158015611a0357600080fd5b505af1158015611a17573d6000803e3d6000fd5b505050506040513d6020811015611a2d57600080fd5b50511515611a85576040805160e560020a62461bcd02815260206004820152601b60248201527f5f6163636f756e74206973206e6f7420626c61636b6c69737465640000000000604482015290519081900360640190fd5b611a8e82611427565b600254604080517fe30443bc000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260006024830181905292519495509092169263e30443bc92604480820193929182900301818387803b158015611afd57600080fd5b505af1158015611b11573d6000803e3d6000fd5b5050600454611b29925090508263ffffffff61282516565b600455604080518281529051600160a060020a038416917ffa8f14973a436f651cdc72fcb50527f364a3b92681dc7aacb0ebeed1e7fb7070919081900360200190a2604080518281529051600091600160a060020a038516916000805160206133f38339815191529181900360200190a35050565b6000610a928383336123a4565b6003546040805160e160020a630d237641028152600160a060020a038581166004830152848116602483015291516000939290921691631a46ec829160448082019260209290919082900301818787803b158015611c0857600080fd5b505af1158015611c1c573d6000803e3d6000fd5b505050506040513d6020811015611c3257600080fd5b50519392505050565b600154600160a060020a031681565b6000805433600160a060020a03908116911614611c9f576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038481169190911791829055604080517f4e71e0c800000000000000000000000000000000000000000000000000000000815290519290911691634e71e0c89160048082019260009290919082900301818387803b158015611d2257600080fd5b505af1158015611d36573d6000803e3d6000fd5b5050604051600160a060020a03851692507fb02601a43e72e0ac747eb6d02226aec79064038d7ce3db3e633b1e769c5ed3bb9150600090a2506001919050565b600b805482908110611d8457fe5b600091825260209091200154905081565b60005433600160a060020a03908116911614611de9576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600354604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0384811660048301528681166024830152604482018690529151919092169163da46098c91606480830192600092919082900301818387803b158015611e8e57600080fd5b505af1158015611ea2573d6000803e3d6000fd5b5050604080518581529051600160a060020a038088169450851692507f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360200190a3505050565b600b54600281118015611f1b5750600b80546000198301908110611f0d57fe5b90600052602060002001543a115b15611f98576000600b8260019003925082815481101515611f3857fe5b6000918252602082200191909155600b80546000199093019283908110611f5b57fe5b6000918252602082200191909155600b80546000199093019283908110611f7e57fe5b60009182526020909120015580611f96600b8261331e565b505b610e4c85858585612837565b60008054819033600160a060020a03908116911614611ffb576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b600160a060020a038416151561205b576040805160e560020a62461bcd02815260206004820152601960248201527f746f20616464726573732063616e6e6f74206265207a65726f00000000000000604482015290519081900360640190fd5b50600854604080517f0a91cfb8000000000000000000000000000000000000000000000000000000008152600160a060020a038087166004830152825187949190911692630a91cfb892602480820193918290030181600087803b1580156120c257600080fd5b505af11580156120d6573d6000803e3d6000fd5b505050506040513d60408110156120ec57600080fd5b508051602090910151600454919550925061210d908463ffffffff6128d216565b600455604080518481529051600160a060020a038316917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885919081900360200190a2604080518481529051600160a060020a038316916000916000805160206133f38339815191529181900360200190a3600160a060020a03848116908216146121cb5783600160a060020a031681600160a060020a03166000805160206133f3833981519152856040518082815260200191505060405180910390a35b600254604080517f21e5383a000000000000000000000000000000000000000000000000000000008152600160a060020a03878116600483015260248201879052915191909216916321e5383a91604480830192600092919082900301818387803b15801561223957600080fd5b505af115801561224d573d6000803e3d6000fd5b50505050811561236957600160a060020a03848116908216146122ea5783600160a060020a0316633b66d02b82856040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156122cd57600080fd5b505af11580156122e1573d6000803e3d6000fd5b50505050612369565b604080517f3b66d02b000000000000000000000000000000000000000000000000000000008152600060048201819052602482018690529151600160a060020a03871692633b66d02b926044808201939182900301818387803b15801561235057600080fd5b505af1158015612364573d6000803e3d6000fd5b505050505b50505050565b6000612398662386f26fc1000061238c848263ffffffff6128df16565b9063ffffffff6128f416565b9050610f87838261291d565b600354604080517f5fd72d16000000000000000000000000000000000000000000000000000000008152600160a060020a03848116600483015286811660248301526044820186905291519190921691635fd72d1691606480830192600092919082900301818387803b15801561241a57600080fd5b505af115801561242e573d6000803e3d6000fd5b50506003546040805160e160020a630d237641028152600160a060020a0386811660048301819052818a1660248401819052935193965094507f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925931691631a46ec82916044808201926020929091908290030181600087803b1580156124b357600080fd5b505af11580156124c7573d6000803e3d6000fd5b505050506040513d60208110156124dd57600080fd5b505160408051918252519081900360200190a3505050565b6003546040805160e160020a630d237641028152600160a060020a038481166004830152868116602483015291516000939290921691631a46ec829160448082019260209290919082900301818787803b15801561255257600080fd5b505af1158015612566573d6000803e3d6000fd5b505050506040513d602081101561257c57600080fd5b505190508083111561261957600354604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301528781166024830152600060448301819052925193169263da46098c9260648084019391929182900301818387803b1580156125fc57600080fd5b505af1158015612610573d6000803e3d6000fd5b505050506126a8565b600354604080517f97d88cd2000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152878116602483015260448201879052915191909216916397d88cd291606480830192600092919082900301818387803b15801561268f57600080fd5b505af11580156126a3573d6000803e3d6000fd5b505050505b6003546040805160e160020a630d237641028152600160a060020a0385811660048301819052888216602484018190529351939490937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925939290911691631a46ec829160448083019260209291908290030181600087803b15801561272c57600080fd5b505af1158015612740573d6000803e3d6000fd5b505050506040513d602081101561275657600080fd5b505160408051918252519081900360200190a350505050565b600b5460028111801561279d5750600b8054600019830190811061278f57fe5b90600052602060002001543a115b1561281a576000600b82600190039250828154811015156127ba57fe5b6000918252602082200191909155600b805460001990930192839081106127dd57fe5b6000918252602082200191909155600b8054600019909301928390811061280057fe5b60009182526020909120015580612818600b8261331e565b505b6123698484846129db565b60008282111561283157fe5b50900390565b600160a060020a0383161515612897576040805160e560020a62461bcd02815260206004820152601260248201527f5f746f2061646472657373206973203078300000000000000000000000000000604482015290519081900360640190fd5b6210000083600160a060020a031610156128c6576128b784848484612a74565b6128c1838361236f565b612369565b61236984848484612a74565b81810182811015610a9657fe5b600081838115156128ec57fe5b049392505050565b600082151561290557506000610a96565b5081810281838281151561291557fe5b0414610a9657fe5b600654811015612977576040805160e560020a62461bcd02815260206004820152601460248201527f62656c6f77206d696e206275726e20626f756e64000000000000000000000000604482015290519081900360640190fd5b6007548111156129d1576040805160e560020a62461bcd02815260206004820152601660248201527f65786365656473206d6178206275726e20626f756e6400000000000000000000604482015290519081900360640190fd5b6118048282612e49565b600160a060020a0382161515612a3b576040805160e560020a62461bcd02815260206004820152601260248201527f5f746f2061646472657373206973203078300000000000000000000000000000604482015290519081900360640190fd5b6210000082600160a060020a03161015612a6957612a5a838383612ed2565b612a64828261236f565b610f87565b610f87838383612ed2565b600854604080517ff26e06df000000000000000000000000000000000000000000000000000000008152600160a060020a038481166004830152878116602483015280871660448301528251600094889492169263f26e06df92606480830193919282900301818887803b158015612aeb57600080fd5b505af1158015612aff573d6000803e3d6000fd5b505050506040513d6040811015612b1557600080fd5b508051602090910151600354604080517f97d88cd2000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528881166024830152604482018a9052915194995092955016916397d88cd29160648082019260009290919082900301818387803b158015612b9857600080fd5b505af1158015612bac573d6000803e3d6000fd5b5050600254604080517fcf8eeb7e000000000000000000000000000000000000000000000000000000008152600160a060020a038b81166004830152602482018a9052915191909216935063cf8eeb7e9250604480830192600092919082900301818387803b158015612c1e57600080fd5b505af1158015612c32573d6000803e3d6000fd5b5050600254604080517f21e5383a000000000000000000000000000000000000000000000000000000008152600160a060020a038a81166004830152602482018a905291519190921693506321e5383a9250604480830192600092919082900301818387803b158015612ca457600080fd5b505af1158015612cb8573d6000803e3d6000fd5b5050604080518781529051600160a060020a0380861694508a1692506000805160206133f38339815191529181900360200190a3600160a060020a0381811690861614612dbf5784600160a060020a031681600160a060020a03166000805160206133f3833981519152866040518082815260200191505060405180910390a38115612dba5784600160a060020a0316633b66d02b82866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b158015612da157600080fd5b505af1158015612db5573d6000803e3d6000fd5b505050505b612e41565b8115612e415784600160a060020a0316633b66d02b87866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b158015612e2857600080fd5b505af1158015612e3c573d6000803e3d6000fd5b505050505b505050505050565b600854604080517f1a039201000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015291519190921691631a03920191602480830192600092919082900301818387803b158015612eb057600080fd5b505af1158015612ec4573d6000803e3d6000fd5b50505050611804828261320f565b600854604080517fc342734b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015280861660248301528251600094879492169263c342734b92604480830193919282900301818887803b158015612f4157600080fd5b505af1158015612f55573d6000803e3d6000fd5b505050506040513d6040811015612f6b57600080fd5b508051602090910151600254604080517fcf8eeb7e000000000000000000000000000000000000000000000000000000008152600160a060020a038a81166004830152602482018990529151949850929550169163cf8eeb7e9160448082019260009290919082900301818387803b158015612fe657600080fd5b505af1158015612ffa573d6000803e3d6000fd5b5050600254604080517f21e5383a000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301526024820189905291519190921693506321e5383a9250604480830192600092919082900301818387803b15801561306c57600080fd5b505af1158015613080573d6000803e3d6000fd5b5050604080518681529051600160a060020a038086169450891692506000805160206133f38339815191529181900360200190a3600160a060020a03818116908516146131875783600160a060020a031681600160a060020a03166000805160206133f3833981519152856040518082815260200191505060405180910390a381156131825783600160a060020a0316633b66d02b82856040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561316957600080fd5b505af115801561317d573d6000803e3d6000fd5b505050505b610e4c565b8115610e4c5783600160a060020a0316633b66d02b86856040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156131f057600080fd5b505af1158015613204573d6000803e3d6000fd5b505050505050505050565b600254604080517fcf8eeb7e000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169163cf8eeb7e91604480830192600092919082900301818387803b15801561327d57600080fd5b505af1158015613291573d6000803e3d6000fd5b50506004546132a9925090508263ffffffff61282516565b600455604080518281529051600160a060020a038416917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2604080518281529051600091600160a060020a038516916000805160206133f38339815191529181900360200190a35050565b815481835581811115610f8757600083815260209020610f879181019083016133b8565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106133835782800160ff198235161785556133b0565b828001600101855582156133b0579182015b828111156133b0578235825591602001919060010190613395565b506113e79291505b610af891905b808211156113e757600081556001016133be56006f6e6c79204f776e657200000000000000000000000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820fce452cb20b48dfaf926744be96de912b53846096ddb5536c519f814ce65c3c10029

Deployed Bytecode

0x6080604052600436106102a55763ffffffff60e060020a60003504166302d3fdc981146102aa57806306aa9bd1146102d157806306fdde03146102fc578063095ea7b31461038657806309ab8bba146103be578063121d8fdd146103e5578063158ef93e146103fa57806318160ddd1461040f5780631e1256c3146104245780631e2893331461043e57806323b872dd1461045357806323f2cbb01461047d578063296f4000146104925780632aed7f3f146104bd5780632d04899f146104de5780632e0f2625146104f35780632e44040314610508578063313ce5671461051d5780633db6b7ff146105325780633ed10b921461054757806340c10f191461057857806342966c681461059c57806343a468c8146105b4578063453920cb146105d55780634df6b45d146106015780634e71e0c814610632578063520060501461064757806354f78dad14610662578063554249b31461068357806357e1ba4f146106ae5780635aaa858f146106c35780635c131d70146106d85780635c975abb146106ed578063661884631461070257806370a082311461072657806376e71dd8146107475780637b1039991461075c5780637bb98a68146107715780637d221e951461078657806380da04101461079b57806381a084fd146107b0578063833099a4146107c557806388ee39cc146107da5780638da5cb5b1461080157806393d3173a1461081657806394ae9b081461084157806395d89b41146108565780639a6a30a41461086b5780639cd1a1211461088c578063a9059cbb146108b7578063a91ee0dc146108db578063b09fbabb146108fc578063bd7243f614610911578063d73dd62314610932578063dd62ed3e14610956578063e30c39781461097d578063edc1e4f914610992578063ef286e96146109b3578063f2fde38b146109cb575b600080fd5b3480156102b657600080fd5b506102bf6109ec565b60408051918252519081900360200190f35b3480156102dd57600080fd5b506102e66109f2565b6040805160ff9092168252519081900360200190f35b34801561030857600080fd5b506103116109f7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561034b578181015183820152602001610333565b50505050905090810190601f1680156103785780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561039257600080fd5b506103aa600160a060020a0360043516602435610a85565b604080519115158252519081900360200190f35b3480156103ca57600080fd5b506102bf600160a060020a0360043581169060243516610a9c565b3480156103f157600080fd5b506102bf610aaf565b34801561040657600080fd5b506103aa610ad3565b34801561041b57600080fd5b506102bf610af4565b34801561043057600080fd5b5061043c600435610afb565b005b34801561044a57600080fd5b506102bf610bc5565b34801561045f57600080fd5b506103aa600160a060020a0360043581169060243516604435610be9565b34801561048957600080fd5b5061043c610c01565b34801561049e57600080fd5b506103aa600160a060020a036004358116906024359060443516610d4c565b3480156104c957600080fd5b5061043c600160a060020a0360043516610d82565b3480156104ea57600080fd5b506102bf610e53565b3480156104ff57600080fd5b506102e6610e5a565b34801561051457600080fd5b506102e6610e5f565b34801561052957600080fd5b506102e6610e64565b34801561053e57600080fd5b506102bf610e69565b34801561055357600080fd5b5061055c610e6f565b60408051600160a060020a039092168252519081900360200190f35b34801561058457600080fd5b5061043c600160a060020a0360043516602435610e7e565b3480156105a857600080fd5b5061043c600435610f8c565b3480156105c057600080fd5b506102bf600160a060020a0360043516610f99565b3480156105e157600080fd5b5061043c6024600480358281019290820135918135918201910135610fa4565b34801561060d57600080fd5b506103aa600160a060020a036004358116906024358116906044359060643516611087565b34801561063e57600080fd5b5061043c6110c9565b34801561065357600080fd5b5061043c600435602435611155565b34801561066e57600080fd5b506103aa600160a060020a036004351661124a565b34801561068f57600080fd5b506103aa600160a060020a036004358116906024359060443516611376565b3480156106ba57600080fd5b506102bf6113ac565b3480156106cf57600080fd5b506102bf6113eb565b3480156106e457600080fd5b506102bf61140f565b3480156106f957600080fd5b506103aa611415565b34801561070e57600080fd5b506103aa600160a060020a036004351660243561141a565b34801561073257600080fd5b506102bf600160a060020a0360043516611427565b34801561075357600080fd5b506102bf6114c4565b34801561076857600080fd5b5061055c6114d3565b34801561077d57600080fd5b5061055c6114e2565b34801561079257600080fd5b5061055c6114f1565b3480156107a757600080fd5b506102bf611509565b3480156107bc57600080fd5b506102bf61152d565b3480156107d157600080fd5b506102bf611533565b3480156107e657600080fd5b5061043c600160a060020a0360043581169060243516611557565b34801561080d57600080fd5b5061055c6116cc565b34801561082257600080fd5b506103aa600160a060020a0360043581169060243590604435166116db565b34801561084d57600080fd5b506102bf611711565b34801561086257600080fd5b5061031161171b565b34801561087757600080fd5b5061043c600160a060020a0360043516611776565b34801561089857600080fd5b506103aa600160a060020a036004358116906024359060443516611808565b3480156108c357600080fd5b506103aa600160a060020a036004351660243561183e565b3480156108e757600080fd5b5061043c600160a060020a036004351661184b565b34801561090857600080fd5b506102bf6118fc565b34801561091d57600080fd5b5061043c600160a060020a0360043516611920565b34801561093e57600080fd5b506103aa600160a060020a0360043516602435611b9e565b34801561096257600080fd5b506102bf600160a060020a0360043581169060243516611bab565b34801561098957600080fd5b5061055c611c3b565b34801561099e57600080fd5b506103aa600160a060020a0360043516611c4a565b3480156109bf57600080fd5b506102bf600435611d76565b3480156109d757600080fd5b5061043c600160a060020a0360043516611d95565b60065481565b600281565b6009805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b820191906000526020600020905b815481529060010190602001808311610a6057829003601f168201915b505050505081565b6000610a92838333611e18565b5060015b92915050565b6000610aa88383611bab565b9392505050565b7f63616e4275726e0000000000000000000000000000000000000000000000000081565b60015474010000000000000000000000000000000000000000900460ff1681565b6004545b90565b600854604080517f7338c25c000000000000000000000000000000000000000000000000000000008152600160a060020a0333811660048301527f63616e536574467574757265526566756e644d696e4761735072696365000000602483015291519190921691637338c25c9160448083019260209291908290030181600087803b158015610b8957600080fd5b505af1158015610b9d573d6000803e3d6000fd5b505050506040513d6020811015610bb357600080fd5b50511515610bc057600080fd5b600d55565b7f69734465706f736974416464726573730000000000000000000000000000000081565b6000610bf784848433611eed565b5060019392505050565b600b54600d5460008111610c1457600080fd5b60098201610c23600b8261331e565b5080600b83815481101515610c3457fe5b906000526020600020018190555080600b83600101815481101515610c5557fe5b906000526020600020018190555080600b83600201815481101515610c7657fe5b906000526020600020018190555080600b83600301815481101515610c9757fe5b906000526020600020018190555080600b83600401815481101515610cb857fe5b906000526020600020018190555080600b83600501815481101515610cd957fe5b906000526020600020018190555080600b83600601815481101515610cfa57fe5b906000526020600020018190555080600b83600701815481101515610d1b57fe5b906000526020600020018190555080600b83600801815481101515610d3c57fe5b6000918252602090912001555050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e14610d7757600080fd5b610bf7848484611e18565b60005433600160a060020a03908116911614610dd6576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b60008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015290519184169263f2fde38b9260248084019382900301818387803b158015610e3857600080fd5b505af1158015610e4c573d6000803e3d6000fd5b5050505050565b6210000081565b601281565b600290565b601290565b600d5481565b600354600160a060020a031681565b60005433600160a060020a03908116911614610ed2576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b600b54600281118015610f005750600b80546000198301908110610ef257fe5b90600052602060002001543a115b15610f7d576000600b8260019003925082815481101515610f1d57fe5b6000918252602082200191909155600b80546000199093019283908110610f4057fe5b6000918252602082200191909155600b80546000199093019283908110610f6357fe5b60009182526020909120015580610f7b600b8261331e565b505b610f878383611fa4565b505050565b610f96338261236f565b50565b6000610a9682611427565b60005433600160a060020a03908116911614610ff8576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b61100460098585613342565b50611011600a8383613342565b507f2c586a8161695058b918f15f079ee9cf05427ae067f6ede6ddda358cd6c8c3d28484848460405180806020018060200183810383528787828181526020019250808284379091018481038352858152602001905085858082843760405192018290039850909650505050505050a150505050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e146110b257600080fd5b6110be85858585611eed565b506001949350505050565b60015433600160a060020a039081169116146110e457600080fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b60005433600160a060020a039081169116146111a9576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b80821115611201576040805160e560020a62461bcd02815260206004820152600960248201527f6d696e203e206d61780000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60068290556007819055604080518381526020810183905281517f21d54a4c1f750b4f93779e3e8b4de89db3f31bab8f203e68569727fee906cc32929181900390910190a15050565b6000805433600160a060020a0390811691161461129f576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038481169190911791829055604080517f4e71e0c800000000000000000000000000000000000000000000000000000000815290519290911691634e71e0c89160048082019260009290919082900301818387803b15801561132257600080fd5b505af1158015611336573d6000803e3d6000fd5b5050604051600160a060020a03851692507fa89fb8ab3845cb6919c98b54ca0d8f398df48c64ae04ed309cd7b130539badd49150600090a2506001919050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e146113a157600080fd5b610bf78484846123a4565b600b54600090818111156113e157600b805460001983019081106113cc57fe5b906000526020600020015460010191506113e7565b60001991505b5090565b7f63616e536574467574757265526566756e644d696e476173507269636500000081565b60075481565b600090565b6000610a928383336124f5565b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038481166004830152915160009392909216916370a082319160248082019260209290919082900301818787803b15801561149257600080fd5b505af11580156114a6573d6000803e3d6000fd5b505050506040513d60208110156114bc57600080fd5b505192915050565b60006114ce610af4565b905090565b600854600160a060020a031681565b600254600160a060020a031681565b738dd5fbce2f6a956c3022ba3663759011dd51e73e81565b7f6861735061737365644b59432f414d4c0000000000000000000000000000000081565b600b5490565b7f6973426c61636b6c69737465640000000000000000000000000000000000000081565b6000805433600160a060020a039081169116146115ac576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b82600160a060020a03166370a08231306040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b15801561160757600080fd5b505af115801561161b573d6000803e3d6000fd5b505050506040513d602081101561163157600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301526024820184905291519293509085169163a9059cbb916044808201926020929091908290030181600087803b1580156116a257600080fd5b505af11580156116b6573d6000803e3d6000fd5b505050506040513d6020811015610e4c57600080fd5b600054600160a060020a031681565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e1461170657600080fd5b610bf78484846124f5565b600b546003900490565b600a805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b60005433600160a060020a039081169116146117ca576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b604051600160a060020a0380831691309091163180156108fc02916000818181858888f19350505050158015611804573d6000803e3d6000fd5b5050565b600033600160a060020a0316738dd5fbce2f6a956c3022ba3663759011dd51e73e1461183357600080fd5b610bf782858561276f565b6000610a9233848461276f565b60005433600160a060020a0390811691161461189f576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907f278c70ced5f3e0e5eeb385b5ff9cb735748ba00a625147e66065ed48fc1562cd90600090a250565b7f697352656769737465726564436f6e747261637400000000000000000000000081565b6000805433600160a060020a03908116911614611975576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b600854604080517f7338c25c000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301527f6973426c61636b6c697374656400000000000000000000000000000000000000602483015291519190921691637338c25c9160448083019260209291908290030181600087803b158015611a0357600080fd5b505af1158015611a17573d6000803e3d6000fd5b505050506040513d6020811015611a2d57600080fd5b50511515611a85576040805160e560020a62461bcd02815260206004820152601b60248201527f5f6163636f756e74206973206e6f7420626c61636b6c69737465640000000000604482015290519081900360640190fd5b611a8e82611427565b600254604080517fe30443bc000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015260006024830181905292519495509092169263e30443bc92604480820193929182900301818387803b158015611afd57600080fd5b505af1158015611b11573d6000803e3d6000fd5b5050600454611b29925090508263ffffffff61282516565b600455604080518281529051600160a060020a038416917ffa8f14973a436f651cdc72fcb50527f364a3b92681dc7aacb0ebeed1e7fb7070919081900360200190a2604080518281529051600091600160a060020a038516916000805160206133f38339815191529181900360200190a35050565b6000610a928383336123a4565b6003546040805160e160020a630d237641028152600160a060020a038581166004830152848116602483015291516000939290921691631a46ec829160448082019260209290919082900301818787803b158015611c0857600080fd5b505af1158015611c1c573d6000803e3d6000fd5b505050506040513d6020811015611c3257600080fd5b50519392505050565b600154600160a060020a031681565b6000805433600160a060020a03908116911614611c9f576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038481169190911791829055604080517f4e71e0c800000000000000000000000000000000000000000000000000000000815290519290911691634e71e0c89160048082019260009290919082900301818387803b158015611d2257600080fd5b505af1158015611d36573d6000803e3d6000fd5b5050604051600160a060020a03851692507fb02601a43e72e0ac747eb6d02226aec79064038d7ce3db3e633b1e769c5ed3bb9150600090a2506001919050565b600b805482908110611d8457fe5b600091825260209091200154905081565b60005433600160a060020a03908116911614611de9576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600354604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0384811660048301528681166024830152604482018690529151919092169163da46098c91606480830192600092919082900301818387803b158015611e8e57600080fd5b505af1158015611ea2573d6000803e3d6000fd5b5050604080518581529051600160a060020a038088169450851692507f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259181900360200190a3505050565b600b54600281118015611f1b5750600b80546000198301908110611f0d57fe5b90600052602060002001543a115b15611f98576000600b8260019003925082815481101515611f3857fe5b6000918252602082200191909155600b80546000199093019283908110611f5b57fe5b6000918252602082200191909155600b80546000199093019283908110611f7e57fe5b60009182526020909120015580611f96600b8261331e565b505b610e4c85858585612837565b60008054819033600160a060020a03908116911614611ffb576040805160e560020a62461bcd02815260206004820152600a60248201526000805160206133d3833981519152604482015290519081900360640190fd5b600160a060020a038416151561205b576040805160e560020a62461bcd02815260206004820152601960248201527f746f20616464726573732063616e6e6f74206265207a65726f00000000000000604482015290519081900360640190fd5b50600854604080517f0a91cfb8000000000000000000000000000000000000000000000000000000008152600160a060020a038087166004830152825187949190911692630a91cfb892602480820193918290030181600087803b1580156120c257600080fd5b505af11580156120d6573d6000803e3d6000fd5b505050506040513d60408110156120ec57600080fd5b508051602090910151600454919550925061210d908463ffffffff6128d216565b600455604080518481529051600160a060020a038316917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885919081900360200190a2604080518481529051600160a060020a038316916000916000805160206133f38339815191529181900360200190a3600160a060020a03848116908216146121cb5783600160a060020a031681600160a060020a03166000805160206133f3833981519152856040518082815260200191505060405180910390a35b600254604080517f21e5383a000000000000000000000000000000000000000000000000000000008152600160a060020a03878116600483015260248201879052915191909216916321e5383a91604480830192600092919082900301818387803b15801561223957600080fd5b505af115801561224d573d6000803e3d6000fd5b50505050811561236957600160a060020a03848116908216146122ea5783600160a060020a0316633b66d02b82856040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156122cd57600080fd5b505af11580156122e1573d6000803e3d6000fd5b50505050612369565b604080517f3b66d02b000000000000000000000000000000000000000000000000000000008152600060048201819052602482018690529151600160a060020a03871692633b66d02b926044808201939182900301818387803b15801561235057600080fd5b505af1158015612364573d6000803e3d6000fd5b505050505b50505050565b6000612398662386f26fc1000061238c848263ffffffff6128df16565b9063ffffffff6128f416565b9050610f87838261291d565b600354604080517f5fd72d16000000000000000000000000000000000000000000000000000000008152600160a060020a03848116600483015286811660248301526044820186905291519190921691635fd72d1691606480830192600092919082900301818387803b15801561241a57600080fd5b505af115801561242e573d6000803e3d6000fd5b50506003546040805160e160020a630d237641028152600160a060020a0386811660048301819052818a1660248401819052935193965094507f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925931691631a46ec82916044808201926020929091908290030181600087803b1580156124b357600080fd5b505af11580156124c7573d6000803e3d6000fd5b505050506040513d60208110156124dd57600080fd5b505160408051918252519081900360200190a3505050565b6003546040805160e160020a630d237641028152600160a060020a038481166004830152868116602483015291516000939290921691631a46ec829160448082019260209290919082900301818787803b15801561255257600080fd5b505af1158015612566573d6000803e3d6000fd5b505050506040513d602081101561257c57600080fd5b505190508083111561261957600354604080517fda46098c000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301528781166024830152600060448301819052925193169263da46098c9260648084019391929182900301818387803b1580156125fc57600080fd5b505af1158015612610573d6000803e3d6000fd5b505050506126a8565b600354604080517f97d88cd2000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152878116602483015260448201879052915191909216916397d88cd291606480830192600092919082900301818387803b15801561268f57600080fd5b505af11580156126a3573d6000803e3d6000fd5b505050505b6003546040805160e160020a630d237641028152600160a060020a0385811660048301819052888216602484018190529351939490937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925939290911691631a46ec829160448083019260209291908290030181600087803b15801561272c57600080fd5b505af1158015612740573d6000803e3d6000fd5b505050506040513d602081101561275657600080fd5b505160408051918252519081900360200190a350505050565b600b5460028111801561279d5750600b8054600019830190811061278f57fe5b90600052602060002001543a115b1561281a576000600b82600190039250828154811015156127ba57fe5b6000918252602082200191909155600b805460001990930192839081106127dd57fe5b6000918252602082200191909155600b8054600019909301928390811061280057fe5b60009182526020909120015580612818600b8261331e565b505b6123698484846129db565b60008282111561283157fe5b50900390565b600160a060020a0383161515612897576040805160e560020a62461bcd02815260206004820152601260248201527f5f746f2061646472657373206973203078300000000000000000000000000000604482015290519081900360640190fd5b6210000083600160a060020a031610156128c6576128b784848484612a74565b6128c1838361236f565b612369565b61236984848484612a74565b81810182811015610a9657fe5b600081838115156128ec57fe5b049392505050565b600082151561290557506000610a96565b5081810281838281151561291557fe5b0414610a9657fe5b600654811015612977576040805160e560020a62461bcd02815260206004820152601460248201527f62656c6f77206d696e206275726e20626f756e64000000000000000000000000604482015290519081900360640190fd5b6007548111156129d1576040805160e560020a62461bcd02815260206004820152601660248201527f65786365656473206d6178206275726e20626f756e6400000000000000000000604482015290519081900360640190fd5b6118048282612e49565b600160a060020a0382161515612a3b576040805160e560020a62461bcd02815260206004820152601260248201527f5f746f2061646472657373206973203078300000000000000000000000000000604482015290519081900360640190fd5b6210000082600160a060020a03161015612a6957612a5a838383612ed2565b612a64828261236f565b610f87565b610f87838383612ed2565b600854604080517ff26e06df000000000000000000000000000000000000000000000000000000008152600160a060020a038481166004830152878116602483015280871660448301528251600094889492169263f26e06df92606480830193919282900301818887803b158015612aeb57600080fd5b505af1158015612aff573d6000803e3d6000fd5b505050506040513d6040811015612b1557600080fd5b508051602090910151600354604080517f97d88cd2000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528881166024830152604482018a9052915194995092955016916397d88cd29160648082019260009290919082900301818387803b158015612b9857600080fd5b505af1158015612bac573d6000803e3d6000fd5b5050600254604080517fcf8eeb7e000000000000000000000000000000000000000000000000000000008152600160a060020a038b81166004830152602482018a9052915191909216935063cf8eeb7e9250604480830192600092919082900301818387803b158015612c1e57600080fd5b505af1158015612c32573d6000803e3d6000fd5b5050600254604080517f21e5383a000000000000000000000000000000000000000000000000000000008152600160a060020a038a81166004830152602482018a905291519190921693506321e5383a9250604480830192600092919082900301818387803b158015612ca457600080fd5b505af1158015612cb8573d6000803e3d6000fd5b5050604080518781529051600160a060020a0380861694508a1692506000805160206133f38339815191529181900360200190a3600160a060020a0381811690861614612dbf5784600160a060020a031681600160a060020a03166000805160206133f3833981519152866040518082815260200191505060405180910390a38115612dba5784600160a060020a0316633b66d02b82866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b158015612da157600080fd5b505af1158015612db5573d6000803e3d6000fd5b505050505b612e41565b8115612e415784600160a060020a0316633b66d02b87866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b158015612e2857600080fd5b505af1158015612e3c573d6000803e3d6000fd5b505050505b505050505050565b600854604080517f1a039201000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015291519190921691631a03920191602480830192600092919082900301818387803b158015612eb057600080fd5b505af1158015612ec4573d6000803e3d6000fd5b50505050611804828261320f565b600854604080517fc342734b000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015280861660248301528251600094879492169263c342734b92604480830193919282900301818887803b158015612f4157600080fd5b505af1158015612f55573d6000803e3d6000fd5b505050506040513d6040811015612f6b57600080fd5b508051602090910151600254604080517fcf8eeb7e000000000000000000000000000000000000000000000000000000008152600160a060020a038a81166004830152602482018990529151949850929550169163cf8eeb7e9160448082019260009290919082900301818387803b158015612fe657600080fd5b505af1158015612ffa573d6000803e3d6000fd5b5050600254604080517f21e5383a000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301526024820189905291519190921693506321e5383a9250604480830192600092919082900301818387803b15801561306c57600080fd5b505af1158015613080573d6000803e3d6000fd5b5050604080518681529051600160a060020a038086169450891692506000805160206133f38339815191529181900360200190a3600160a060020a03818116908516146131875783600160a060020a031681600160a060020a03166000805160206133f3833981519152856040518082815260200191505060405180910390a381156131825783600160a060020a0316633b66d02b82856040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561316957600080fd5b505af115801561317d573d6000803e3d6000fd5b505050505b610e4c565b8115610e4c5783600160a060020a0316633b66d02b86856040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b1580156131f057600080fd5b505af1158015613204573d6000803e3d6000fd5b505050505050505050565b600254604080517fcf8eeb7e000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151919092169163cf8eeb7e91604480830192600092919082900301818387803b15801561327d57600080fd5b505af1158015613291573d6000803e3d6000fd5b50506004546132a9925090508263ffffffff61282516565b600455604080518281529051600160a060020a038416917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2604080518281529051600091600160a060020a038516916000805160206133f38339815191529181900360200190a35050565b815481835581811115610f8757600083815260209020610f879181019083016133b8565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106133835782800160ff198235161785556133b0565b828001600101855582156133b0579182015b828111156133b0578235825591602001919060010190613395565b506113e79291505b610af891905b808211156113e757600081556001016133be56006f6e6c79204f776e657200000000000000000000000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820fce452cb20b48dfaf926744be96de912b53846096ddb5536c519f814ce65c3c10029

Swarm Source

bzzr://fce452cb20b48dfaf926744be96de912b53846096ddb5536c519f814ce65c3c1

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

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.