Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 5868637 | 2804 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x0ad8f9bB...47757F173 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FeeMultiToken
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2018-06-27
*/
pragma solidity ^0.4.24;
// 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: openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol
/**
* @title DetailedERC20 token
* @dev The decimals are only for visualization purposes.
* All the operations are done using the smallest and indivisible token unit,
* just as on Ethereum all the operations are done in wei.
*/
contract DetailedERC20 is ERC20 {
string public name;
string public symbol;
uint8 public decimals;
constructor(string _name, string _symbol, uint8 _decimals) public {
name = _name;
symbol = _symbol;
decimals = _decimals;
}
}
// 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) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
}
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: openzeppelin-solidity/contracts/token/ERC20/BasicToken.sol
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @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) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(msg.sender, _to, _value);
return true;
}
/**
* @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) {
return balances[_owner];
}
}
// File: openzeppelin-solidity/contracts/token/ERC20/StandardToken.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 StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @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)
{
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
emit Transfer(_from, _to, _value);
return true;
}
/**
* @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) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
/**
* @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 allowed[_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)
{
allowed[msg.sender][_spender] = (
allowed[msg.sender][_spender].add(_addedValue));
emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
/**
* @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)
{
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}
// File: contracts/BasicMultiToken.sol
contract BasicMultiToken is StandardToken, DetailedERC20 {
ERC20[] public tokens;
event Mint(address indexed minter, uint256 value);
event Burn(address indexed burner, uint256 value);
constructor() public DetailedERC20("", "", 0) {
}
function init(ERC20[] _tokens, string _name, string _symbol, uint8 _decimals) public {
require(decimals == 0, "init: contract was already initialized");
require(_decimals > 0, "init: _decimals should not be zero");
require(bytes(_name).length > 0, "init: _name should not be empty");
require(bytes(_symbol).length > 0, "init: _symbol should not be empty");
require(_tokens.length >= 2, "Contract do not support less than 2 inner tokens");
name = _name;
symbol = _symbol;
decimals = _decimals;
tokens = _tokens;
}
function mintFirstTokens(address _to, uint256 _amount, uint256[] _tokenAmounts) public {
require(totalSupply_ == 0, "This method can be used with zero total supply only");
_mint(_to, _amount, _tokenAmounts);
}
function mint(address _to, uint256 _amount) public {
require(totalSupply_ != 0, "This method can be used with non zero total supply only");
uint256[] memory tokenAmounts = new uint256[](tokens.length);
for (uint i = 0; i < tokens.length; i++) {
tokenAmounts[i] = tokens[i].balanceOf(this).mul(_amount).div(totalSupply_);
}
_mint(_to, _amount, tokenAmounts);
}
function burn(uint256 _value) public {
burnSome(_value, tokens);
}
function burnSome(uint256 _value, ERC20[] someTokens) public {
require(someTokens.length > 0, "Array of tokens can't be empty");
uint256 totalSupply = totalSupply_;
balances[msg.sender] = balances[msg.sender].sub(_value);
totalSupply_ = totalSupply.sub(_value);
emit Burn(msg.sender, _value);
emit Transfer(msg.sender, address(0), _value);
for (uint i = 0; i < someTokens.length; i++) {
uint256 prevBalance = someTokens[i].balanceOf(this);
uint256 tokenAmount = prevBalance.mul(_value).div(totalSupply);
someTokens[i].transfer(msg.sender, tokenAmount); // Can't use require because not all ERC20 tokens return bool
require(someTokens[i].balanceOf(this) == prevBalance.sub(tokenAmount), "Invalid token behavior");
}
}
function _mint(address _to, uint256 _amount, uint256[] _tokenAmounts) internal {
require(tokens.length == _tokenAmounts.length, "Lenghts of tokens and _tokenAmounts array should be equal");
for (uint i = 0; i < tokens.length; i++) {
uint256 prevBalance = tokens[i].balanceOf(this);
tokens[i].transferFrom(msg.sender, this, _tokenAmounts[i]); // Can't use require because not all ERC20 tokens return bool
require(tokens[i].balanceOf(this) == prevBalance.add(_tokenAmounts[i]), "Invalid token behavior");
}
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amount);
}
function allTokens() public view returns(ERC20[]) {
return tokens;
}
function allBalances() public view returns(uint256[]) {
uint256[] memory balances = new uint256[](tokens.length);
for (uint i = 0; i < tokens.length; i++) {
balances[i] = tokens[i].balanceOf(this);
}
return balances;
}
}
// File: contracts/ERC228.sol
interface ERC228 {
function changeableTokenCount() external view returns (uint16 count);
function changeableToken(uint16 _tokenIndex) external view returns (address tokenAddress);
function getReturn(address _fromToken, address _toToken, uint256 _amount) external view returns (uint256 returnAmount);
function change(address _fromToken, address _toToken, uint256 _amount, uint256 _minReturn) external returns (uint256 returnAmount);
event Update();
event Change(address indexed _fromToken, address indexed _toToken, address indexed _changer, uint256 _amount, uint256 _return);
}
// File: contracts/MultiToken.sol
contract MultiToken is BasicMultiToken, ERC228 {
mapping(address => uint256) public weights;
function init(ERC20[] _tokens, uint256[] _weights, string _name, string _symbol, uint8 _decimals) public {
super.init(_tokens, _name, _symbol, _decimals);
require(_weights.length == tokens.length, "Lenghts of _tokens and _weights array should be equal");
for (uint i = 0; i < tokens.length; i++) {
require(_weights[i] != 0, "The _weights array should not contains zeros");
require(weights[tokens[i]] == 0, "The _tokens array have duplicates");
weights[tokens[i]] = _weights[i];
}
}
function init2(ERC20[] _tokens, uint256[] _weights, string _name, string _symbol, uint8 _decimals) public {
init(_tokens, _weights, _name, _symbol, _decimals);
}
function changeableTokenCount() public view returns (uint16 count) {
count = uint16(tokens.length);
}
function changeableToken(uint16 _tokenIndex) public view returns (address tokenAddress) {
tokenAddress = tokens[_tokenIndex];
}
function getReturn(address _fromToken, address _toToken, uint256 _amount) public view returns(uint256 returnAmount) {
if (weights[_fromToken] > 0 && weights[_toToken] > 0 && _fromToken != _toToken) {
uint256 fromBalance = ERC20(_fromToken).balanceOf(this);
uint256 toBalance = ERC20(_toToken).balanceOf(this);
returnAmount = toBalance.mul(_amount).mul(weights[_fromToken]).div(weights[_toToken]).div(fromBalance.add(_amount));
}
}
function change(address _fromToken, address _toToken, uint256 _amount, uint256 _minReturn) public returns(uint256 returnAmount) {
returnAmount = getReturn(_fromToken, _toToken, _amount);
require(returnAmount > 0, "The return amount is zero");
require(returnAmount >= _minReturn, "The return amount is less than _minReturn value");
uint256 fromBalance = ERC20(_fromToken).balanceOf(this);
ERC20(_fromToken).transferFrom(msg.sender, this, _amount);
require(ERC20(_fromToken).balanceOf(this) == fromBalance + _amount);
uint256 toBalance = ERC20(_toToken).balanceOf(this);
ERC20(_toToken).transfer(msg.sender, returnAmount);
require(ERC20(_toToken).balanceOf(this) == toBalance - returnAmount);
emit Change(_fromToken, _toToken, msg.sender, _amount, returnAmount);
}
function changeOverERC228(address _fromToken, address _toToken, uint256 _amount, address exchange) public returns(uint256 returnAmount) {
returnAmount = getReturn(_fromToken, _toToken, _amount);
require(returnAmount > 0, "The return amount is zero");
uint256 fromBalance = ERC20(_fromToken).balanceOf(this);
ERC20(_toToken).approve(exchange, returnAmount);
ERC228(exchange).change(_toToken, _fromToken, returnAmount, _amount);
uint256 realReturnAmount = ERC20(_fromToken).balanceOf(this).sub(fromBalance);
require(realReturnAmount >= _amount);
if (realReturnAmount > _amount) {
uint256 reward = realReturnAmount.sub(_amount);
ERC20(_fromToken).transfer(msg.sender, reward); // Arbiter reward
require(ERC20(_fromToken).balanceOf(this) == fromBalance.add(_amount));
}
emit Change(_fromToken, _toToken, msg.sender, _amount, returnAmount);
}
function allWeights() public view returns(uint256[]) {
uint256[] memory result = new uint256[](tokens.length);
for (uint i = 0; i < tokens.length; i++) {
result[i] = weights[tokens[i]];
}
return result;
}
}
// File: contracts/FeeMultiToken.sol
contract FeeMultiToken is MultiToken {
function init(ERC20[] _tokens, uint256[] _weights, string _name, string _symbol, uint8 _decimals) public {
super.init(_tokens, _weights, _name, _symbol, 18);
}
function getReturn(address _fromToken, address _toToken, uint256 _amount) public view returns(uint256 returnAmount) {
returnAmount = super.getReturn(_fromToken, _toToken, _amount).mul(998).div(1000); // 0.2% exchange fee
}
}
// File: contracts/registry/IDeployer.sol
interface IDeployer {
function deploy(bytes data) external returns(address mtkn);
}
// File: contracts/registry/MultiTokenDeployer.sol
contract MultiTokenDeployer is IDeployer {
function deploy(bytes data) external returns(address mtkn) {
require(
// init(address[],uint256[],string,string,uint8)
(data[0] == 0x6f && data[1] == 0x5f && data[2] == 0x53 && data[3] == 0x5d) ||
// init2(address[],uint256[],string,string,uint8)
(data[0] == 0x18 && data[1] == 0x2a && data[2] == 0x54 && data[3] == 0x15)
);
mtkn = new FeeMultiToken();
require(mtkn.call(data));
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"someTokens","type":"address[]"}],"name":"burnSome","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokens","type":"address[]"},{"name":"_weights","type":"uint256[]"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_decimals","type":"uint8"}],"name":"init2","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_fromToken","type":"address"},{"name":"_toToken","type":"address"},{"name":"_amount","type":"uint256"}],"name":"getReturn","outputs":[{"name":"returnAmount","type":"uint256"}],"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":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","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":false,"inputs":[{"name":"_tokens","type":"address[]"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_decimals","type":"uint8"}],"name":"init","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"tokens","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenIndex","type":"uint16"}],"name":"changeableToken","outputs":[{"name":"tokenAddress","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"allBalances","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"changeableTokenCount","outputs":[{"name":"count","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_fromToken","type":"address"},{"name":"_toToken","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_minReturn","type":"uint256"}],"name":"change","outputs":[{"name":"returnAmount","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","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":false,"inputs":[{"name":"_tokens","type":"address[]"},{"name":"_weights","type":"uint256[]"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_decimals","type":"uint8"}],"name":"init","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"allTokens","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","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":true,"inputs":[{"name":"","type":"address"}],"name":"weights","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"allWeights","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_fromToken","type":"address"},{"name":"_toToken","type":"address"},{"name":"_amount","type":"uint256"},{"name":"exchange","type":"address"}],"name":"changeOverERC228","outputs":[{"name":"returnAmount","type":"uint256"}],"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":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_tokenAmounts","type":"uint256[]"}],"name":"mintFirstTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[],"name":"Update","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_fromToken","type":"address"},{"indexed":true,"name":"_toToken","type":"address"},{"indexed":true,"name":"_changer","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_return","type":"uint256"}],"name":"Change","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"minter","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":"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":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]Contract Creation Code
0x6000608081815260c060405260a08281529091620000206003838362000054565b5081516200003690600490602085019062000054565b506005805460ff191660ff9290921691909117905550620000f99050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200009757805160ff1916838001178555620000c7565b82800160010185558215620000c7579182015b82811115620000c7578251825591602001919060010190620000aa565b50620000d5929150620000d9565b5090565b620000f691905b80821115620000d55760008155600101620000e0565b90565b612c8580620001096000396000f3006080604052600436106101695763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461016e578063095ea7b3146101f857806315daab901461023057806318160ddd1461028c578063182a5415146102b35780631e1401f8146103c257806323b872dd146103ec578063313ce5671461041657806340c10f191461044157806342966c68146104655780634686b4be1461047d5780634f64b2be14610553578063503adbf614610587578063555b6162146105a357806359f8714b146106085780635e5144eb1461063457806366188463146106615780636f5f535d146106855780636ff97f1d1461079457806370a08231146107a957806395d89b41146107ca578063a7cac846146107df578063a9059cbb14610800578063c1f04f3c14610824578063c97ec03314610839578063d73dd6231461086a578063dd62ed3e1461088e578063e82c6e8a146108b5575b600080fd5b34801561017a57600080fd5b5061018361091c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101bd5781810151838201526020016101a5565b50505050905090810190601f1680156101ea5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020457600080fd5b5061021c600160a060020a03600435166024356109aa565b604080519115158252519081900360200190f35b34801561023c57600080fd5b5060408051602060046024803582810135848102808701860190975280865261028a96843596369660449591949091019291829185019084908082843750949750610a119650505050505050565b005b34801561029857600080fd5b506102a1610d83565b60408051918252519081900360200190f35b3480156102bf57600080fd5b506040805160206004803580820135838102808601850190965280855261028a95369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497505050923560ff169350610d8a92505050565b3480156103ce57600080fd5b506102a1600160a060020a0360043581169060243516604435610d9e565b3480156103f857600080fd5b5061021c600160a060020a0360043581169060243516604435610dcb565b34801561042257600080fd5b5061042b610f30565b6040805160ff9092168252519081900360200190f35b34801561044d57600080fd5b5061028a600160a060020a0360043516602435610f39565b34801561047157600080fd5b5061028a6004356110d8565b34801561048957600080fd5b506040805160206004803580820135838102808601850190965280855261028a9536959394602494938501929182918501908490808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497505050923560ff16935061113f92505050565b34801561055f57600080fd5b5061056b6004356113e3565b60408051600160a060020a039092168252519081900360200190f35b34801561059357600080fd5b5061056b61ffff6004351661140b565b3480156105af57600080fd5b506105b861143b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156105f45781810151838201526020016105dc565b505050509050019250505060405180910390f35b34801561061457600080fd5b5061061d61153b565b6040805161ffff9092168252519081900360200190f35b34801561064057600080fd5b506102a1600160a060020a0360043581169060243516604435606435611541565b34801561066d57600080fd5b5061021c600160a060020a03600435166024356119c0565b34801561069157600080fd5b506040805160206004803580820135838102808601850190965280855261028a95369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497505050923560ff169350611ab092505050565b3480156107a057600080fd5b506105b8611abe565b3480156107b557600080fd5b506102a1600160a060020a0360043516611b20565b3480156107d657600080fd5b50610183611b3b565b3480156107eb57600080fd5b506102a1600160a060020a0360043516611b96565b34801561080c57600080fd5b5061021c600160a060020a0360043516602435611ba8565b34801561083057600080fd5b506105b8611c77565b34801561084557600080fd5b506102a1600160a060020a036004358116906024358116906044359060643516611d15565b34801561087657600080fd5b5061021c600160a060020a036004351660243561217b565b34801561089a57600080fd5b506102a1600160a060020a0360043581169060243516612214565b3480156108c157600080fd5b50604080516020600460443581810135838102808601850190965280855261028a958335600160a060020a031695602480359636969560649593949201929182918501908490808284375094975061223f9650505050505050565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109a25780601f10610977576101008083540402835291602001916109a2565b820191906000526020600020905b81548152906001019060200180831161098557829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60008060008060008551111515610a72576040805160e560020a62461bcd02815260206004820152601e60248201527f4172726179206f6620746f6b656e732063616e277420626520656d7074790000604482015290519081900360640190fd5b60015433600090815260208190526040902054909450610a98908763ffffffff6122cd16565b33600090815260208190526040902055610ab8848763ffffffff6122cd16565b60015560408051878152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a26040805187815290516000913391600080516020612c3a8339815191529181900360200190a3600092505b8451831015610d7b578483815181101515610b3357fe5b60209081029091018101516040805160e060020a6370a082310281523060048201529051600160a060020a03909216926370a08231926024808401938290030181600087803b158015610b8557600080fd5b505af1158015610b99573d6000803e3d6000fd5b505050506040513d6020811015610baf57600080fd5b50519150610bd384610bc7848963ffffffff6122df16565b9063ffffffff61230816565b90508483815181101515610be357fe5b6020908102909101810151604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169263a9059cbb926044808401938290030181600087803b158015610c5257600080fd5b505af1158015610c66573d6000803e3d6000fd5b505050506040513d6020811015610c7c57600080fd5b50610c8f9050828263ffffffff6122cd16565b8584815181101515610c9d57fe5b60209081029091018101516040805160e060020a6370a082310281523060048201529051600160a060020a03909216926370a08231926024808401938290030181600087803b158015610cef57600080fd5b505af1158015610d03573d6000803e3d6000fd5b505050506040513d6020811015610d1957600080fd5b505114610d70576040805160e560020a62461bcd02815260206004820152601660248201527f496e76616c696420746f6b656e206265686176696f7200000000000000000000604482015290519081900360640190fd5b600190920191610b1c565b505050505050565b6001545b90565b610d978585858585611ab0565b5050505050565b6000610dc36103e8610bc76103e6610db788888861231d565b9063ffffffff6122df16565b949350505050565b6000600160a060020a0383161515610de257600080fd5b600160a060020a038416600090815260208190526040902054821115610e0757600080fd5b600160a060020a0384166000908152600260209081526040808320338452909152902054821115610e3757600080fd5b600160a060020a038416600090815260208190526040902054610e60908363ffffffff6122cd16565b600160a060020a038086166000908152602081905260408082209390935590851681522054610e95908363ffffffff6124ce16565b600160a060020a03808516600090815260208181526040808320949094559187168152600282528281203382529091522054610ed7908363ffffffff6122cd16565b600160a060020a0380861660008181526002602090815260408083203384528252918290209490945580518681529051928716939192600080516020612c3a833981519152929181900390910190a35060019392505050565b60055460ff1681565b6001546060906000901515610fbe576040805160e560020a62461bcd02815260206004820152603760248201527f54686973206d6574686f642063616e20626520757365642077697468206e6f6e60448201527f207a65726f20746f74616c20737570706c79206f6e6c79000000000000000000606482015290519081900360840190fd5b600654604080518281526020808402820101909152908015610fea578160200160208202803883390190505b509150600090505b6006548110156110c7576110a7600154610bc78560068581548110151561101557fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b15801561106f57600080fd5b505af1158015611083573d6000803e3d6000fd5b505050506040513d602081101561109957600080fd5b50519063ffffffff6122df16565b82828151811015156110b557fe5b60209081029091010152600101610ff2565b6110d28484846124db565b50505050565b61113c81600680548060200260200160405190810160405280929190818152602001828054801561113257602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611114575b5050505050610a11565b50565b60055460ff16156111c0576040805160e560020a62461bcd02815260206004820152602660248201527f696e69743a20636f6e74726163742077617320616c726561647920696e69746960448201527f616c697a65640000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600060ff821611611241576040805160e560020a62461bcd02815260206004820152602260248201527f696e69743a205f646563696d616c732073686f756c64206e6f74206265207a6560448201527f726f000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b825160001061129a576040805160e560020a62461bcd02815260206004820152601f60248201527f696e69743a205f6e616d652073686f756c64206e6f7420626520656d70747900604482015290519081900360640190fd5b8151600010611319576040805160e560020a62461bcd02815260206004820152602160248201527f696e69743a205f73796d626f6c2073686f756c64206e6f7420626520656d707460448201527f7900000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b835160021115611399576040805160e560020a62461bcd02815260206004820152603060248201527f436f6e747261637420646f206e6f7420737570706f7274206c6573732074686160448201527f6e203220696e6e657220746f6b656e7300000000000000000000000000000000606482015290519081900360840190fd5b82516113ac906003906020860190612b02565b5081516113c0906004906020850190612b02565b506005805460ff191660ff83161790558351610d97906006906020870190612b80565b60068054829081106113f157fe5b600091825260209091200154600160a060020a0316905081565b600060068261ffff1681548110151561142057fe5b600091825260209091200154600160a060020a031692915050565b606080600060068054905060405190808252806020026020018201604052801561146f578160200160208202803883390190505b509150600090505b60065481101561153557600680548290811061148f57fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b1580156114e957600080fd5b505af11580156114fd573d6000803e3d6000fd5b505050506040513d602081101561151357600080fd5b5051825183908390811061152357fe5b60209081029091010152600101611477565b50919050565b60065490565b6000806000611551878787610d9e565b9250600083116115ab576040805160e560020a62461bcd02815260206004820152601960248201527f5468652072657475726e20616d6f756e74206973207a65726f00000000000000604482015290519081900360640190fd5b83831015611629576040805160e560020a62461bcd02815260206004820152602f60248201527f5468652072657475726e20616d6f756e74206973206c657373207468616e205f60448201527f6d696e52657475726e2076616c75650000000000000000000000000000000000606482015290519081900360840190fd5b6040805160e060020a6370a082310281523060048201529051600160a060020a038916916370a082319160248083019260209291908290030181600087803b15801561167457600080fd5b505af1158015611688573d6000803e3d6000fd5b505050506040513d602081101561169e57600080fd5b5051604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890529051919350600160a060020a038916916323b872dd916064808201926020929091908290030181600087803b15801561171257600080fd5b505af1158015611726573d6000803e3d6000fd5b505050506040513d602081101561173c57600080fd5b50506040805160e060020a6370a08231028152306004820152905183870191600160a060020a038a16916370a08231916024808201926020929091908290030181600087803b15801561178e57600080fd5b505af11580156117a2573d6000803e3d6000fd5b505050506040513d60208110156117b857600080fd5b5051146117c457600080fd5b6040805160e060020a6370a082310281523060048201529051600160a060020a038816916370a082319160248083019260209291908290030181600087803b15801561180f57600080fd5b505af1158015611823573d6000803e3d6000fd5b505050506040513d602081101561183957600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018690529051919250600160a060020a0388169163a9059cbb916044808201926020929091908290030181600087803b1580156118a757600080fd5b505af11580156118bb573d6000803e3d6000fd5b505050506040513d60208110156118d157600080fd5b50506040805160e060020a6370a08231028152306004820152905184830391600160a060020a038916916370a08231916024808201926020929091908290030181600087803b15801561192357600080fd5b505af1158015611937573d6000803e3d6000fd5b505050506040513d602081101561194d57600080fd5b50511461195957600080fd5b33600160a060020a031686600160a060020a031688600160a060020a03167f24cee3d6b5651a987362aa6216b9d34a39212f0f1967dfd48c2c3a4fc3c576dc8887604051808381526020018281526020019250505060405180910390a45050949350505050565b336000908152600260209081526040808320600160a060020a038616845290915281205480831115611a1557336000908152600260209081526040808320600160a060020a0388168452909152812055611a4a565b611a25818463ffffffff6122cd16565b336000908152600260209081526040808320600160a060020a03891684529091529020555b336000818152600260209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b610d978585858560126128c7565b60606006805480602002602001604051908101604052809291908181526020018280548015611b1657602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611af8575b5050505050905090565b600160a060020a031660009081526020819052604090205490565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109a25780601f10610977576101008083540402835291602001916109a2565b60076020526000908152604090205481565b6000600160a060020a0383161515611bbf57600080fd5b33600090815260208190526040902054821115611bdb57600080fd5b33600090815260208190526040902054611bfb908363ffffffff6122cd16565b3360009081526020819052604080822092909255600160a060020a03851681522054611c2d908363ffffffff6124ce16565b600160a060020a03841660008181526020818152604091829020939093558051858152905191923392600080516020612c3a8339815191529281900390910190a350600192915050565b6060806000600680549050604051908082528060200260200182016040528015611cab578160200160208202803883390190505b509150600090505b6006548110156115355760076000600683815481101515611cd057fe5b6000918252602080832090910154600160a060020a031683528201929092526040019020548251839083908110611d0357fe5b60209081029091010152600101611cb3565b600080600080611d26888888610d9e565b935060008411611d80576040805160e560020a62461bcd02815260206004820152601960248201527f5468652072657475726e20616d6f756e74206973207a65726f00000000000000604482015290519081900360640190fd5b6040805160e060020a6370a082310281523060048201529051600160a060020a038a16916370a082319160248083019260209291908290030181600087803b158015611dcb57600080fd5b505af1158015611ddf573d6000803e3d6000fd5b505050506040513d6020811015611df557600080fd5b5051604080517f095ea7b3000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301526024820188905291519295509089169163095ea7b3916044808201926020929091908290030181600087803b158015611e6657600080fd5b505af1158015611e7a573d6000803e3d6000fd5b505050506040513d6020811015611e9057600080fd5b5050604080517f5e5144eb000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301528a811660248301526044820187905260648201899052915191871691635e5144eb916084808201926020929091908290030181600087803b158015611f0d57600080fd5b505af1158015611f21573d6000803e3d6000fd5b505050506040513d6020811015611f3757600080fd5b50506040805160e060020a6370a082310281523060048201529051611fc2918591600160a060020a038c16916370a082319160248083019260209291908290030181600087803b158015611f8a57600080fd5b505af1158015611f9e573d6000803e3d6000fd5b505050506040513d6020811015611fb457600080fd5b50519063ffffffff6122cd16565b915085821015611fd157600080fd5b8582111561211357611fe9828763ffffffff6122cd16565b604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a038a169163a9059cbb916044808201926020929091908290030181600087803b15801561205557600080fd5b505af1158015612069573d6000803e3d6000fd5b505050506040513d602081101561207f57600080fd5b506120929050838763ffffffff6124ce16565b6040805160e060020a6370a082310281523060048201529051600160a060020a038b16916370a082319160248083019260209291908290030181600087803b1580156120dd57600080fd5b505af11580156120f1573d6000803e3d6000fd5b505050506040513d602081101561210757600080fd5b50511461211357600080fd5b33600160a060020a031687600160a060020a031689600160a060020a03167f24cee3d6b5651a987362aa6216b9d34a39212f0f1967dfd48c2c3a4fc3c576dc8988604051808381526020018281526020019250505060405180910390a4505050949350505050565b336000908152600260209081526040808320600160a060020a03861684529091528120546121af908363ffffffff6124ce16565b336000818152600260209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600154156122bd576040805160e560020a62461bcd02815260206004820152603360248201527f54686973206d6574686f642063616e20626520757365642077697468207a657260448201527f6f20746f74616c20737570706c79206f6e6c7900000000000000000000000000606482015290519081900360840190fd5b6122c88383836124db565b505050565b6000828211156122d957fe5b50900390565b60008215156122f057506000610a0b565b5081810281838281151561230057fe5b0414610a0b57fe5b6000818381151561231557fe5b049392505050565b600160a060020a038316600090815260076020526040812054819081908110801561235e5750600160a060020a038516600090815260076020526040812054115b801561237c575084600160a060020a031686600160a060020a031614155b156124c5576040805160e060020a6370a082310281523060048201529051600160a060020a038816916370a082319160248083019260209291908290030181600087803b1580156123cc57600080fd5b505af11580156123e0573d6000803e3d6000fd5b505050506040513d60208110156123f657600080fd5b50516040805160e060020a6370a082310281523060048201529051919350600160a060020a038716916370a08231916024808201926020929091908290030181600087803b15801561244757600080fd5b505af115801561245b573d6000803e3d6000fd5b505050506040513d602081101561247157600080fd5b505190506124c2612488838663ffffffff6124ce16565b600160a060020a0380881660009081526007602052604080822054928b168252902054610bc791908290610db7878b63ffffffff6122df16565b92505b50509392505050565b81810182811015610a0b57fe5b8051600654600091829114612560576040805160e560020a62461bcd02815260206004820152603960248201527f4c656e67687473206f6620746f6b656e7320616e64205f746f6b656e416d6f7560448201527f6e74732061727261792073686f756c6420626520657175616c00000000000000606482015290519081900360840190fd5b600091505b60065482101561280257600680548390811061257d57fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b1580156125d757600080fd5b505af11580156125eb573d6000803e3d6000fd5b505050506040513d602081101561260157600080fd5b505160068054919250908390811061261557fe5b6000918252602090912001548351600160a060020a03909116906323b872dd903390309087908790811061264557fe5b6020908102909101810151604080517c010000000000000000000000000000000000000000000000000000000063ffffffff8816028152600160a060020a03958616600482015293909416602484015260448301529151606480830193928290030181600087803b1580156126b957600080fd5b505af11580156126cd573d6000803e3d6000fd5b505050506040513d60208110156126e357600080fd5b5050825161270e908490849081106126f757fe5b60209081029091010151829063ffffffff6124ce16565b600680548490811061271c57fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b15801561277657600080fd5b505af115801561278a573d6000803e3d6000fd5b505050506040513d60208110156127a057600080fd5b5051146127f7576040805160e560020a62461bcd02815260206004820152601660248201527f496e76616c696420746f6b656e206265686176696f7200000000000000000000604482015290519081900360640190fd5b600190910190612565565b600154612815908563ffffffff6124ce16565b600155600160a060020a038516600090815260208190526040902054612841908563ffffffff6124ce16565b600160a060020a03861660008181526020818152604091829020939093558051878152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a2604080518581529051600160a060020a03871691600091600080516020612c3a8339815191529181900360200190a35050505050565b60006128d58685858561113f565b600654855114612955576040805160e560020a62461bcd02815260206004820152603560248201527f4c656e67687473206f66205f746f6b656e7320616e64205f776569676874732060448201527f61727261792073686f756c6420626520657175616c0000000000000000000000606482015290519081900360840190fd5b5060005b600654811015610d7b57848181518110151561297157fe5b6020908102909101015115156129f7576040805160e560020a62461bcd02815260206004820152602c60248201527f546865205f776569676874732061727261792073686f756c64206e6f7420636f60448201527f6e7461696e73207a65726f730000000000000000000000000000000000000000606482015290519081900360840190fd5b60076000600683815481101515612a0a57fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205415612aaa576040805160e560020a62461bcd02815260206004820152602160248201527f546865205f746f6b656e732061727261792068617665206475706c696361746560448201527f7300000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b8481815181101515612ab857fe5b9060200190602002015160076000600684815481101515612ad557fe5b6000918252602080832090910154600160a060020a03168352820192909252604001902055600101612959565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612b4357805160ff1916838001178555612b70565b82800160010185558215612b70579182015b82811115612b70578251825591602001919060010190612b55565b50612b7c929150612bee565b5090565b828054828255906000526020600020908101928215612be2579160200282015b82811115612be2578251825473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909116178255602090920191600190910190612ba0565b50612b7c929150612c08565b610d8791905b80821115612b7c5760008155600101612bf4565b610d8791905b80821115612b7c57805473ffffffffffffffffffffffffffffffffffffffff19168155600101612c0e5600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058208546acdae5572c2e16c7680082e485cb1186eb998e955f6c5cbea4ec8915a2f00029
Deployed Bytecode
0x6080604052600436106101695763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461016e578063095ea7b3146101f857806315daab901461023057806318160ddd1461028c578063182a5415146102b35780631e1401f8146103c257806323b872dd146103ec578063313ce5671461041657806340c10f191461044157806342966c68146104655780634686b4be1461047d5780634f64b2be14610553578063503adbf614610587578063555b6162146105a357806359f8714b146106085780635e5144eb1461063457806366188463146106615780636f5f535d146106855780636ff97f1d1461079457806370a08231146107a957806395d89b41146107ca578063a7cac846146107df578063a9059cbb14610800578063c1f04f3c14610824578063c97ec03314610839578063d73dd6231461086a578063dd62ed3e1461088e578063e82c6e8a146108b5575b600080fd5b34801561017a57600080fd5b5061018361091c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101bd5781810151838201526020016101a5565b50505050905090810190601f1680156101ea5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020457600080fd5b5061021c600160a060020a03600435166024356109aa565b604080519115158252519081900360200190f35b34801561023c57600080fd5b5060408051602060046024803582810135848102808701860190975280865261028a96843596369660449591949091019291829185019084908082843750949750610a119650505050505050565b005b34801561029857600080fd5b506102a1610d83565b60408051918252519081900360200190f35b3480156102bf57600080fd5b506040805160206004803580820135838102808601850190965280855261028a95369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497505050923560ff169350610d8a92505050565b3480156103ce57600080fd5b506102a1600160a060020a0360043581169060243516604435610d9e565b3480156103f857600080fd5b5061021c600160a060020a0360043581169060243516604435610dcb565b34801561042257600080fd5b5061042b610f30565b6040805160ff9092168252519081900360200190f35b34801561044d57600080fd5b5061028a600160a060020a0360043516602435610f39565b34801561047157600080fd5b5061028a6004356110d8565b34801561048957600080fd5b506040805160206004803580820135838102808601850190965280855261028a9536959394602494938501929182918501908490808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497505050923560ff16935061113f92505050565b34801561055f57600080fd5b5061056b6004356113e3565b60408051600160a060020a039092168252519081900360200190f35b34801561059357600080fd5b5061056b61ffff6004351661140b565b3480156105af57600080fd5b506105b861143b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156105f45781810151838201526020016105dc565b505050509050019250505060405180910390f35b34801561061457600080fd5b5061061d61153b565b6040805161ffff9092168252519081900360200190f35b34801561064057600080fd5b506102a1600160a060020a0360043581169060243516604435606435611541565b34801561066d57600080fd5b5061021c600160a060020a03600435166024356119c0565b34801561069157600080fd5b506040805160206004803580820135838102808601850190965280855261028a95369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497505050923560ff169350611ab092505050565b3480156107a057600080fd5b506105b8611abe565b3480156107b557600080fd5b506102a1600160a060020a0360043516611b20565b3480156107d657600080fd5b50610183611b3b565b3480156107eb57600080fd5b506102a1600160a060020a0360043516611b96565b34801561080c57600080fd5b5061021c600160a060020a0360043516602435611ba8565b34801561083057600080fd5b506105b8611c77565b34801561084557600080fd5b506102a1600160a060020a036004358116906024358116906044359060643516611d15565b34801561087657600080fd5b5061021c600160a060020a036004351660243561217b565b34801561089a57600080fd5b506102a1600160a060020a0360043581169060243516612214565b3480156108c157600080fd5b50604080516020600460443581810135838102808601850190965280855261028a958335600160a060020a031695602480359636969560649593949201929182918501908490808284375094975061223f9650505050505050565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109a25780601f10610977576101008083540402835291602001916109a2565b820191906000526020600020905b81548152906001019060200180831161098557829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60008060008060008551111515610a72576040805160e560020a62461bcd02815260206004820152601e60248201527f4172726179206f6620746f6b656e732063616e277420626520656d7074790000604482015290519081900360640190fd5b60015433600090815260208190526040902054909450610a98908763ffffffff6122cd16565b33600090815260208190526040902055610ab8848763ffffffff6122cd16565b60015560408051878152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a26040805187815290516000913391600080516020612c3a8339815191529181900360200190a3600092505b8451831015610d7b578483815181101515610b3357fe5b60209081029091018101516040805160e060020a6370a082310281523060048201529051600160a060020a03909216926370a08231926024808401938290030181600087803b158015610b8557600080fd5b505af1158015610b99573d6000803e3d6000fd5b505050506040513d6020811015610baf57600080fd5b50519150610bd384610bc7848963ffffffff6122df16565b9063ffffffff61230816565b90508483815181101515610be357fe5b6020908102909101810151604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169263a9059cbb926044808401938290030181600087803b158015610c5257600080fd5b505af1158015610c66573d6000803e3d6000fd5b505050506040513d6020811015610c7c57600080fd5b50610c8f9050828263ffffffff6122cd16565b8584815181101515610c9d57fe5b60209081029091018101516040805160e060020a6370a082310281523060048201529051600160a060020a03909216926370a08231926024808401938290030181600087803b158015610cef57600080fd5b505af1158015610d03573d6000803e3d6000fd5b505050506040513d6020811015610d1957600080fd5b505114610d70576040805160e560020a62461bcd02815260206004820152601660248201527f496e76616c696420746f6b656e206265686176696f7200000000000000000000604482015290519081900360640190fd5b600190920191610b1c565b505050505050565b6001545b90565b610d978585858585611ab0565b5050505050565b6000610dc36103e8610bc76103e6610db788888861231d565b9063ffffffff6122df16565b949350505050565b6000600160a060020a0383161515610de257600080fd5b600160a060020a038416600090815260208190526040902054821115610e0757600080fd5b600160a060020a0384166000908152600260209081526040808320338452909152902054821115610e3757600080fd5b600160a060020a038416600090815260208190526040902054610e60908363ffffffff6122cd16565b600160a060020a038086166000908152602081905260408082209390935590851681522054610e95908363ffffffff6124ce16565b600160a060020a03808516600090815260208181526040808320949094559187168152600282528281203382529091522054610ed7908363ffffffff6122cd16565b600160a060020a0380861660008181526002602090815260408083203384528252918290209490945580518681529051928716939192600080516020612c3a833981519152929181900390910190a35060019392505050565b60055460ff1681565b6001546060906000901515610fbe576040805160e560020a62461bcd02815260206004820152603760248201527f54686973206d6574686f642063616e20626520757365642077697468206e6f6e60448201527f207a65726f20746f74616c20737570706c79206f6e6c79000000000000000000606482015290519081900360840190fd5b600654604080518281526020808402820101909152908015610fea578160200160208202803883390190505b509150600090505b6006548110156110c7576110a7600154610bc78560068581548110151561101557fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b15801561106f57600080fd5b505af1158015611083573d6000803e3d6000fd5b505050506040513d602081101561109957600080fd5b50519063ffffffff6122df16565b82828151811015156110b557fe5b60209081029091010152600101610ff2565b6110d28484846124db565b50505050565b61113c81600680548060200260200160405190810160405280929190818152602001828054801561113257602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611114575b5050505050610a11565b50565b60055460ff16156111c0576040805160e560020a62461bcd02815260206004820152602660248201527f696e69743a20636f6e74726163742077617320616c726561647920696e69746960448201527f616c697a65640000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600060ff821611611241576040805160e560020a62461bcd02815260206004820152602260248201527f696e69743a205f646563696d616c732073686f756c64206e6f74206265207a6560448201527f726f000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b825160001061129a576040805160e560020a62461bcd02815260206004820152601f60248201527f696e69743a205f6e616d652073686f756c64206e6f7420626520656d70747900604482015290519081900360640190fd5b8151600010611319576040805160e560020a62461bcd02815260206004820152602160248201527f696e69743a205f73796d626f6c2073686f756c64206e6f7420626520656d707460448201527f7900000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b835160021115611399576040805160e560020a62461bcd02815260206004820152603060248201527f436f6e747261637420646f206e6f7420737570706f7274206c6573732074686160448201527f6e203220696e6e657220746f6b656e7300000000000000000000000000000000606482015290519081900360840190fd5b82516113ac906003906020860190612b02565b5081516113c0906004906020850190612b02565b506005805460ff191660ff83161790558351610d97906006906020870190612b80565b60068054829081106113f157fe5b600091825260209091200154600160a060020a0316905081565b600060068261ffff1681548110151561142057fe5b600091825260209091200154600160a060020a031692915050565b606080600060068054905060405190808252806020026020018201604052801561146f578160200160208202803883390190505b509150600090505b60065481101561153557600680548290811061148f57fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b1580156114e957600080fd5b505af11580156114fd573d6000803e3d6000fd5b505050506040513d602081101561151357600080fd5b5051825183908390811061152357fe5b60209081029091010152600101611477565b50919050565b60065490565b6000806000611551878787610d9e565b9250600083116115ab576040805160e560020a62461bcd02815260206004820152601960248201527f5468652072657475726e20616d6f756e74206973207a65726f00000000000000604482015290519081900360640190fd5b83831015611629576040805160e560020a62461bcd02815260206004820152602f60248201527f5468652072657475726e20616d6f756e74206973206c657373207468616e205f60448201527f6d696e52657475726e2076616c75650000000000000000000000000000000000606482015290519081900360840190fd5b6040805160e060020a6370a082310281523060048201529051600160a060020a038916916370a082319160248083019260209291908290030181600087803b15801561167457600080fd5b505af1158015611688573d6000803e3d6000fd5b505050506040513d602081101561169e57600080fd5b5051604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890529051919350600160a060020a038916916323b872dd916064808201926020929091908290030181600087803b15801561171257600080fd5b505af1158015611726573d6000803e3d6000fd5b505050506040513d602081101561173c57600080fd5b50506040805160e060020a6370a08231028152306004820152905183870191600160a060020a038a16916370a08231916024808201926020929091908290030181600087803b15801561178e57600080fd5b505af11580156117a2573d6000803e3d6000fd5b505050506040513d60208110156117b857600080fd5b5051146117c457600080fd5b6040805160e060020a6370a082310281523060048201529051600160a060020a038816916370a082319160248083019260209291908290030181600087803b15801561180f57600080fd5b505af1158015611823573d6000803e3d6000fd5b505050506040513d602081101561183957600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018690529051919250600160a060020a0388169163a9059cbb916044808201926020929091908290030181600087803b1580156118a757600080fd5b505af11580156118bb573d6000803e3d6000fd5b505050506040513d60208110156118d157600080fd5b50506040805160e060020a6370a08231028152306004820152905184830391600160a060020a038916916370a08231916024808201926020929091908290030181600087803b15801561192357600080fd5b505af1158015611937573d6000803e3d6000fd5b505050506040513d602081101561194d57600080fd5b50511461195957600080fd5b33600160a060020a031686600160a060020a031688600160a060020a03167f24cee3d6b5651a987362aa6216b9d34a39212f0f1967dfd48c2c3a4fc3c576dc8887604051808381526020018281526020019250505060405180910390a45050949350505050565b336000908152600260209081526040808320600160a060020a038616845290915281205480831115611a1557336000908152600260209081526040808320600160a060020a0388168452909152812055611a4a565b611a25818463ffffffff6122cd16565b336000908152600260209081526040808320600160a060020a03891684529091529020555b336000818152600260209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b610d978585858560126128c7565b60606006805480602002602001604051908101604052809291908181526020018280548015611b1657602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611af8575b5050505050905090565b600160a060020a031660009081526020819052604090205490565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109a25780601f10610977576101008083540402835291602001916109a2565b60076020526000908152604090205481565b6000600160a060020a0383161515611bbf57600080fd5b33600090815260208190526040902054821115611bdb57600080fd5b33600090815260208190526040902054611bfb908363ffffffff6122cd16565b3360009081526020819052604080822092909255600160a060020a03851681522054611c2d908363ffffffff6124ce16565b600160a060020a03841660008181526020818152604091829020939093558051858152905191923392600080516020612c3a8339815191529281900390910190a350600192915050565b6060806000600680549050604051908082528060200260200182016040528015611cab578160200160208202803883390190505b509150600090505b6006548110156115355760076000600683815481101515611cd057fe5b6000918252602080832090910154600160a060020a031683528201929092526040019020548251839083908110611d0357fe5b60209081029091010152600101611cb3565b600080600080611d26888888610d9e565b935060008411611d80576040805160e560020a62461bcd02815260206004820152601960248201527f5468652072657475726e20616d6f756e74206973207a65726f00000000000000604482015290519081900360640190fd5b6040805160e060020a6370a082310281523060048201529051600160a060020a038a16916370a082319160248083019260209291908290030181600087803b158015611dcb57600080fd5b505af1158015611ddf573d6000803e3d6000fd5b505050506040513d6020811015611df557600080fd5b5051604080517f095ea7b3000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301526024820188905291519295509089169163095ea7b3916044808201926020929091908290030181600087803b158015611e6657600080fd5b505af1158015611e7a573d6000803e3d6000fd5b505050506040513d6020811015611e9057600080fd5b5050604080517f5e5144eb000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301528a811660248301526044820187905260648201899052915191871691635e5144eb916084808201926020929091908290030181600087803b158015611f0d57600080fd5b505af1158015611f21573d6000803e3d6000fd5b505050506040513d6020811015611f3757600080fd5b50506040805160e060020a6370a082310281523060048201529051611fc2918591600160a060020a038c16916370a082319160248083019260209291908290030181600087803b158015611f8a57600080fd5b505af1158015611f9e573d6000803e3d6000fd5b505050506040513d6020811015611fb457600080fd5b50519063ffffffff6122cd16565b915085821015611fd157600080fd5b8582111561211357611fe9828763ffffffff6122cd16565b604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a038a169163a9059cbb916044808201926020929091908290030181600087803b15801561205557600080fd5b505af1158015612069573d6000803e3d6000fd5b505050506040513d602081101561207f57600080fd5b506120929050838763ffffffff6124ce16565b6040805160e060020a6370a082310281523060048201529051600160a060020a038b16916370a082319160248083019260209291908290030181600087803b1580156120dd57600080fd5b505af11580156120f1573d6000803e3d6000fd5b505050506040513d602081101561210757600080fd5b50511461211357600080fd5b33600160a060020a031687600160a060020a031689600160a060020a03167f24cee3d6b5651a987362aa6216b9d34a39212f0f1967dfd48c2c3a4fc3c576dc8988604051808381526020018281526020019250505060405180910390a4505050949350505050565b336000908152600260209081526040808320600160a060020a03861684529091528120546121af908363ffffffff6124ce16565b336000818152600260209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600154156122bd576040805160e560020a62461bcd02815260206004820152603360248201527f54686973206d6574686f642063616e20626520757365642077697468207a657260448201527f6f20746f74616c20737570706c79206f6e6c7900000000000000000000000000606482015290519081900360840190fd5b6122c88383836124db565b505050565b6000828211156122d957fe5b50900390565b60008215156122f057506000610a0b565b5081810281838281151561230057fe5b0414610a0b57fe5b6000818381151561231557fe5b049392505050565b600160a060020a038316600090815260076020526040812054819081908110801561235e5750600160a060020a038516600090815260076020526040812054115b801561237c575084600160a060020a031686600160a060020a031614155b156124c5576040805160e060020a6370a082310281523060048201529051600160a060020a038816916370a082319160248083019260209291908290030181600087803b1580156123cc57600080fd5b505af11580156123e0573d6000803e3d6000fd5b505050506040513d60208110156123f657600080fd5b50516040805160e060020a6370a082310281523060048201529051919350600160a060020a038716916370a08231916024808201926020929091908290030181600087803b15801561244757600080fd5b505af115801561245b573d6000803e3d6000fd5b505050506040513d602081101561247157600080fd5b505190506124c2612488838663ffffffff6124ce16565b600160a060020a0380881660009081526007602052604080822054928b168252902054610bc791908290610db7878b63ffffffff6122df16565b92505b50509392505050565b81810182811015610a0b57fe5b8051600654600091829114612560576040805160e560020a62461bcd02815260206004820152603960248201527f4c656e67687473206f6620746f6b656e7320616e64205f746f6b656e416d6f7560448201527f6e74732061727261792073686f756c6420626520657175616c00000000000000606482015290519081900360840190fd5b600091505b60065482101561280257600680548390811061257d57fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b1580156125d757600080fd5b505af11580156125eb573d6000803e3d6000fd5b505050506040513d602081101561260157600080fd5b505160068054919250908390811061261557fe5b6000918252602090912001548351600160a060020a03909116906323b872dd903390309087908790811061264557fe5b6020908102909101810151604080517c010000000000000000000000000000000000000000000000000000000063ffffffff8816028152600160a060020a03958616600482015293909416602484015260448301529151606480830193928290030181600087803b1580156126b957600080fd5b505af11580156126cd573d6000803e3d6000fd5b505050506040513d60208110156126e357600080fd5b5050825161270e908490849081106126f757fe5b60209081029091010151829063ffffffff6124ce16565b600680548490811061271c57fe5b60009182526020808320909101546040805160e060020a6370a082310281523060048201529051600160a060020a03909216936370a082319360248084019491939192918390030190829087803b15801561277657600080fd5b505af115801561278a573d6000803e3d6000fd5b505050506040513d60208110156127a057600080fd5b5051146127f7576040805160e560020a62461bcd02815260206004820152601660248201527f496e76616c696420746f6b656e206265686176696f7200000000000000000000604482015290519081900360640190fd5b600190910190612565565b600154612815908563ffffffff6124ce16565b600155600160a060020a038516600090815260208190526040902054612841908563ffffffff6124ce16565b600160a060020a03861660008181526020818152604091829020939093558051878152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a2604080518581529051600160a060020a03871691600091600080516020612c3a8339815191529181900360200190a35050505050565b60006128d58685858561113f565b600654855114612955576040805160e560020a62461bcd02815260206004820152603560248201527f4c656e67687473206f66205f746f6b656e7320616e64205f776569676874732060448201527f61727261792073686f756c6420626520657175616c0000000000000000000000606482015290519081900360840190fd5b5060005b600654811015610d7b57848181518110151561297157fe5b6020908102909101015115156129f7576040805160e560020a62461bcd02815260206004820152602c60248201527f546865205f776569676874732061727261792073686f756c64206e6f7420636f60448201527f6e7461696e73207a65726f730000000000000000000000000000000000000000606482015290519081900360840190fd5b60076000600683815481101515612a0a57fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205415612aaa576040805160e560020a62461bcd02815260206004820152602160248201527f546865205f746f6b656e732061727261792068617665206475706c696361746560448201527f7300000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b8481815181101515612ab857fe5b9060200190602002015160076000600684815481101515612ad557fe5b6000918252602080832090910154600160a060020a03168352820192909252604001902055600101612959565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612b4357805160ff1916838001178555612b70565b82800160010185558215612b70579182015b82811115612b70578251825591602001919060010190612b55565b50612b7c929150612bee565b5090565b828054828255906000526020600020908101928215612be2579160200282015b82811115612be2578251825473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909116178255602090920191600190910190612ba0565b50612b7c929150612c08565b610d8791905b80821115612b7c5760008155600101612bf4565b610d8791905b80821115612b7c57805473ffffffffffffffffffffffffffffffffffffffff19168155600101612c0e5600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058208546acdae5572c2e16c7680082e485cb1186eb998e955f6c5cbea4ec8915a2f00029
Swarm Source
bzzr://8546acdae5572c2e16c7680082e485cb1186eb998e955f6c5cbea4ec8915a2f0
Loading...
Loading
Loading...
Loading
Net Worth in USD
$5.71
Net Worth in ETH
0.002821
Token Allocations
BAT
65.33%
SNT
17.83%
BNT
9.71%
Others
7.14%
Multichain Portfolio | 33 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.