Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
- Contract name:
- ERC677BridgeToken
- Optimization enabled
- true
- Compiler version
- v0.4.24+commit.e67f0147
- Optimization runs
- 200
- EVM Version
- byzantium
- Verified at
- 2025-01-20 09:36:44.993582Z
Constructor Arguments
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000754542d5553445400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000754542d5553445400000000000000000000000000000000000000000000000000
Arg [0] (string) : TT-USDT
Arg [1] (string) : TT-USDT
Arg [2] (uint8) : 6
Contract source code
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
pragma solidity ^0.4.23;
/**
* @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/math/SafeMath.sol
pragma solidity ^0.4.23;
/**
* @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
pragma solidity ^0.4.23;
/**
* @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/BurnableToken.sol
pragma solidity ^0.4.23;
/**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/
contract BurnableToken is BasicToken {
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 {
_burn(msg.sender, _value);
}
function _burn(address _who, uint256 _value) internal {
require(_value <= balances[_who]);
// 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
balances[_who] = balances[_who].sub(_value);
totalSupply_ = totalSupply_.sub(_value);
emit Burn(_who, _value);
emit Transfer(_who, address(0), _value);
}
}
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol
pragma solidity ^0.4.23;
/**
* @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/StandardToken.sol
pragma solidity ^0.4.23;
/**
* @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: openzeppelin-solidity/contracts/ownership/Ownable.sol
pragma solidity ^0.4.23;
/**
* @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 OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() 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 relinquish control of the contract.
*/
function renounceOwnership() public onlyOwner {
emit OwnershipRenounced(owner);
owner = address(0);
}
/**
* @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 {
_transferOwnership(_newOwner);
}
/**
* @dev Transfers control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/
function _transferOwnership(address _newOwner) internal {
require(_newOwner != address(0));
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
}
// File: openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol
pragma solidity ^0.4.23;
/**
* @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 MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
modifier hasMintPermission() {
require(msg.sender == owner);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(
address _to,
uint256 _amount
)
hasMintPermission
canMint
public
returns (bool)
{
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amount);
return true;
}
/**
* @dev Function to stop minting new tokens.
* @return True if the operation was successful.
*/
function finishMinting() onlyOwner canMint public returns (bool) {
mintingFinished = true;
emit MintFinished();
return true;
}
}
// File: openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol
pragma solidity ^0.4.23;
/**
* @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: contracts/ERC677.sol
pragma solidity 0.4.24;
contract ERC677 is ERC20 {
event Transfer(address indexed from, address indexed to, uint value, bytes data);
function transferAndCall(address, uint, bytes) external returns (bool);
}
// File: contracts/IFundableBurnableMintableERC677Token.sol
pragma solidity 0.4.24;
contract IFundableBurnableMintableERC677Token is ERC677 {
function mint(address, uint256) public returns (bool);
function burn(uint256 _value) public;
function claimTokens(address _token, address _to) public;
function setFundingRules(uint256 _periodLength, uint256 _maxPeriodFunds, uint256 _threshold, uint256 _amount) public;
}
// File: contracts/ERC677Receiver.sol
pragma solidity 0.4.24;
contract ERC677Receiver {
function onTokenTransfer(address _from, uint _value, bytes _data) external returns(bool);
}
// File: contracts/ERC677BridgeToken.sol
pragma solidity 0.4.24;
contract ERC677BridgeToken is
IFundableBurnableMintableERC677Token,
DetailedERC20,
BurnableToken,
MintableToken {
event ContractFallbackCallFailed(address from, address to, uint value);
address public bridgeContract;
uint256 lastFundingPeriod = 0;
uint256 totalPeriodFundedAmount = 0;
FundingRules fundingRules;
struct FundingRules {
uint256 periodLength; // refresh period for next funding round in blocks
uint256 maxPeriodFunds; // max amount to fund in a period
uint256 threshold; // amount below which a funding event happens
uint256 amount; // amount to fund
}
constructor(
string _name,
string _symbol,
uint8 _decimals)
public DetailedERC20(_name, _symbol, _decimals) {}
function () payable {}
function setFundingRules(uint256 _periodLength, uint256 _maxPeriodFunds, uint256 _threshold, uint256 _amount) onlyOwner public {
fundingRules.periodLength = _periodLength;
fundingRules.maxPeriodFunds = _maxPeriodFunds;
fundingRules.threshold = _threshold;
fundingRules.amount = _amount;
}
function getFundingRules() public view returns(uint256, uint256, uint256, uint256){
return (fundingRules.periodLength,
fundingRules.maxPeriodFunds,
fundingRules.threshold,
fundingRules.amount);
}
function fundReceiver(address _to) internal {
// reset funding period
if(block.number > fundingRules.periodLength + lastFundingPeriod) {
lastFundingPeriod = block.number;
totalPeriodFundedAmount = 0;
}
// transfer receiver money only if limits are not met and they are below the threshold
if(address(_to).balance < fundingRules.threshold && fundingRules.amount + totalPeriodFundedAmount <= fundingRules.maxPeriodFunds) {
if(address(_to).send(fundingRules.amount)){
totalPeriodFundedAmount += fundingRules.amount;
}
}
}
function setBridgeContract(address _bridgeContract) onlyOwner public {
require(_bridgeContract != address(0) && isContract(_bridgeContract));
bridgeContract = _bridgeContract;
}
modifier validRecipient(address _recipient) {
require(_recipient != address(0) && _recipient != address(this));
_;
}
function transferAndCall(address _to, uint _value, bytes _data)
external validRecipient(_to) returns (bool)
{
require(superTransfer(_to, _value));
fundReceiver(_to);
emit Transfer(msg.sender, _to, _value, _data);
if (isContract(_to)) {
require(contractFallback(_to, _value, _data));
}
return true;
}
function getTokenInterfacesVersion() public pure returns(uint64 major, uint64 minor, uint64 patch) {
return (2, 0, 0);
}
function superTransfer(address _to, uint256 _value) internal returns(bool)
{
return super.transfer(_to, _value);
}
function transfer(address _to, uint256 _value) public returns (bool)
{
require(superTransfer(_to, _value));
fundReceiver(_to);
if (isContract(_to) && !contractFallback(_to, _value, new bytes(0))) {
if (_to == bridgeContract) {
revert();
} else {
emit ContractFallbackCallFailed(msg.sender, _to, _value);
}
}
return true;
}
function contractFallback(address _to, uint _value, bytes _data)
private
returns(bool)
{
return _to.call(abi.encodeWithSignature("onTokenTransfer(address,uint256,bytes)", msg.sender, _value, _data));
}
function isContract(address _addr)
private
view
returns (bool)
{
uint length;
assembly { length := extcodesize(_addr) }
return length > 0;
}
function mint(
address _to,
uint256 _amount
)
public
hasMintPermission
canMint
returns (bool)
{
fundReceiver(_to);
return super.mint(_to, _amount);
}
function finishMinting() public returns (bool) {
revert();
}
function renounceOwnership() public onlyOwner {
revert();
}
function claimTokens(address _token, address _to) public onlyOwner {
require(_to != address(0));
if (_token == address(0)) {
_to.transfer(address(this).balance);
return;
}
DetailedERC20 token = DetailedERC20(_token);
uint256 balance = token.balanceOf(address(this));
require(token.transfer(_to, balance));
}
}
Contract ABI
[{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"mintingFinished","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":""}],"name":"name","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"approve","inputs":[{"type":"address","name":"_spender"},{"type":"uint256","name":"_value"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setBridgeContract","inputs":[{"type":"address","name":"_bridgeContract"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"totalSupply","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"transferFrom","inputs":[{"type":"address","name":"_from"},{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint8","name":""}],"name":"decimals","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"transferAndCall","inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"},{"type":"bytes","name":"_data"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"mint","inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_amount"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"_value"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"decreaseApproval","inputs":[{"type":"address","name":"_spender"},{"type":"uint256","name":"_subtractedValue"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"claimTokens","inputs":[{"type":"address","name":"_token"},{"type":"address","name":"_to"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"balanceOf","inputs":[{"type":"address","name":"_owner"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"renounceOwnership","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"finishMinting","inputs":[],"constant":false},{"type":"function","stateMutability":"pure","payable":false,"outputs":[{"type":"uint64","name":"major"},{"type":"uint64","name":"minor"},{"type":"uint64","name":"patch"}],"name":"getTokenInterfacesVersion","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"owner","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":""}],"name":"symbol","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setFundingRules","inputs":[{"type":"uint256","name":"_periodLength"},{"type":"uint256","name":"_maxPeriodFunds"},{"type":"uint256","name":"_threshold"},{"type":"uint256","name":"_amount"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"transfer","inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""},{"type":"uint256","name":""},{"type":"uint256","name":""},{"type":"uint256","name":""}],"name":"getFundingRules","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"bridgeContract","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":""}],"name":"increaseApproval","inputs":[{"type":"address","name":"_spender"},{"type":"uint256","name":"_addedValue"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"allowance","inputs":[{"type":"address","name":"_owner"},{"type":"address","name":"_spender"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"_newOwner"}],"constant":false},{"type":"constructor","stateMutability":"nonpayable","payable":false,"inputs":[{"type":"string","name":"_name"},{"type":"string","name":"_symbol"},{"type":"uint8","name":"_decimals"}]},{"type":"fallback","stateMutability":"payable","payable":true},{"type":"event","name":"ContractFallbackCallFailed","inputs":[{"type":"address","name":"from","indexed":false},{"type":"address","name":"to","indexed":false},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"Mint","inputs":[{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"MintFinished","inputs":[],"anonymous":false},{"type":"event","name":"OwnershipRenounced","inputs":[{"type":"address","name":"previousOwner","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"anonymous":false},{"type":"event","name":"Burn","inputs":[{"type":"address","name":"burner","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"value","indexed":false},{"type":"bytes","name":"data","indexed":false}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false}]
Contract Creation Code
0x60806040526006805460a060020a60ff0219169055600060088190556009553480156200002b57600080fd5b5060405162001630380380620016308339810160409081528151602080840151928401519184018051909493909301928491849184916200007291600091860190620000bc565b50815162000088906001906020850190620000bc565b506002805460ff90921660ff19909216919091179055505060068054600160a060020a031916331790555062000161915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000ff57805160ff19168380011785556200012f565b828001600101855582156200012f579182015b828111156200012f57825182559160200191906001019062000112565b506200013d92915062000141565b5090565b6200015e91905b808211156200013d576000815560010162000148565b90565b6114bf80620001716000396000f3006080604052600436106101485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305d2035b811461014a57806306fdde0314610173578063095ea7b3146101fd5780630b26cf661461022157806318160ddd1461024257806323b872dd14610269578063313ce567146102935780634000aea0146102be57806340c10f19146102ef57806342966c6814610313578063661884631461032b57806369ffa08a1461034f57806370a0823114610376578063715018a6146103975780637d64bcb4146103ac578063859ba28c146103c15780638da5cb5b1461040257806395d89b411461043357806398a8695414610448578063a9059cbb14610469578063bbc06ebd1461048d578063cd596583146104c8578063d73dd623146104dd578063dd62ed3e14610501578063f2fde38b14610528575b005b34801561015657600080fd5b5061015f610549565b604080519115158252519081900360200190f35b34801561017f57600080fd5b5061018861056a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c25781810151838201526020016101aa565b50505050905090810190601f1680156101ef5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020957600080fd5b5061015f600160a060020a03600435166024356105f8565b34801561022d57600080fd5b50610148600160a060020a036004351661065e565b34801561024e57600080fd5b506102576106cb565b60408051918252519081900360200190f35b34801561027557600080fd5b5061015f600160a060020a03600435811690602435166044356106d1565b34801561029f57600080fd5b506102a8610838565b6040805160ff9092168252519081900360200190f35b3480156102ca57600080fd5b5061015f60048035600160a060020a0316906024803591604435918201910135610841565b3480156102fb57600080fd5b5061015f600160a060020a036004351660243561095a565b34801561031f57600080fd5b506101486004356109b6565b34801561033757600080fd5b5061015f600160a060020a03600435166024356109c3565b34801561035b57600080fd5b50610148600160a060020a0360043581169060243516610ab3565b34801561038257600080fd5b50610257600160a060020a0360043516610c6c565b3480156103a357600080fd5b50610148610c87565b3480156103b857600080fd5b5061015f610ca3565b3480156103cd57600080fd5b506103d6610caa565b6040805167ffffffffffffffff9485168152928416602084015292168183015290519081900360600190f35b34801561040e57600080fd5b50610417610cb4565b60408051600160a060020a039092168252519081900360200190f35b34801561043f57600080fd5b50610188610cc3565b34801561045457600080fd5b50610148600435602435604435606435610d1d565b34801561047557600080fd5b5061015f600160a060020a0360043516602435610d48565b34801561049957600080fd5b506104a2610e08565b604080519485526020850193909352838301919091526060830152519081900360800190f35b3480156104d457600080fd5b50610417610e1a565b3480156104e957600080fd5b5061015f600160a060020a0360043516602435610e29565b34801561050d57600080fd5b50610257600160a060020a0360043581169060243516610ec2565b34801561053457600080fd5b50610148600160a060020a0360043516610eed565b60065474010000000000000000000000000000000000000000900460ff1681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105f05780601f106105c5576101008083540402835291602001916105f0565b820191906000526020600020905b8154815290600101906020018083116105d357829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b600654600160a060020a0316331461067557600080fd5b600160a060020a03811615801590610691575061069181610f0d565b151561069c57600080fd5b6007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60045490565b6000600160a060020a03831615156106e857600080fd5b600160a060020a03841660009081526003602052604090205482111561070d57600080fd5b600160a060020a038416600090815260056020908152604080832033845290915290205482111561073d57600080fd5b600160a060020a038416600090815260036020526040902054610766908363ffffffff610f1516565b600160a060020a03808616600090815260036020526040808220939093559085168152205461079b908363ffffffff610f2716565b600160a060020a0380851660009081526003602090815260408083209490945591871681526005825282812033825290915220546107df908363ffffffff610f1516565b600160a060020a0380861660008181526005602090815260408083203384528252918290209490945580518681529051928716939192600080516020611474833981519152929181900390910190a35060019392505050565b60025460ff1681565b600084600160a060020a038116158015906108655750600160a060020a0381163014155b151561087057600080fd5b61087a8686610f3a565b151561088557600080fd5b61088e86610f46565b85600160a060020a031633600160a060020a03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16878787604051808481526020018060200182810382528484828181526020019250808284376040519201829003965090945050505050a361090386610f0d565b1561094e57610943868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843750610fc0945050505050565b151561094e57600080fd5b50600195945050505050565b600654600090600160a060020a0316331461097457600080fd5b60065474010000000000000000000000000000000000000000900460ff161561099c57600080fd5b6109a583610f46565b6109af838361112a565b9392505050565b6109c03382611235565b50565b336000908152600560209081526040808320600160a060020a038616845290915281205480831115610a1857336000908152600560209081526040808320600160a060020a0388168452909152812055610a4d565b610a28818463ffffffff610f1516565b336000908152600560209081526040808320600160a060020a03891684529091529020555b336000818152600560209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b6006546000908190600160a060020a03163314610acf57600080fd5b600160a060020a0383161515610ae457600080fd5b600160a060020a0384161515610b3057604051600160a060020a03841690303180156108fc02916000818181858888f19350505050158015610b2a573d6000803e3d6000fd5b50610c66565b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051859350600160a060020a038416916370a082319160248083019260209291908290030181600087803b158015610b9457600080fd5b505af1158015610ba8573d6000803e3d6000fd5b505050506040513d6020811015610bbe57600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0386811660048301526024820184905291519293509084169163a9059cbb916044808201926020929091908290030181600087803b158015610c2f57600080fd5b505af1158015610c43573d6000803e3d6000fd5b505050506040513d6020811015610c5957600080fd5b50511515610c6657600080fd5b50505050565b600160a060020a031660009081526003602052604090205490565b600654600160a060020a03163314610c9e57600080fd5b600080fd5b6000806000fd5b6002600080909192565b600654600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105f05780601f106105c5576101008083540402835291602001916105f0565b600654600160a060020a03163314610d3457600080fd5b600a93909355600b91909155600c55600d55565b6000610d548383610f3a565b1515610d5f57600080fd5b610d6883610f46565b610d7183610f0d565b8015610d965750604080516000815260208101909152610d949084908490610fc0565b155b15610dff57600754600160a060020a0384811691161415610db657600080fd5b60408051338152600160a060020a038516602082015280820184905290517f11249f0fc79fc134a15a10d1da8291b79515bf987e036ced05b9ec119614070b9181900360600190a15b50600192915050565b600a54600b54600c54600d5490919293565b600754600160a060020a031681565b336000908152600560209081526040808320600160a060020a0386168452909152812054610e5d908363ffffffff610f2716565b336000818152600560209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b600654600160a060020a03163314610f0457600080fd5b6109c081611324565b6000903b1190565b600082821115610f2157fe5b50900390565b81810182811015610f3457fe5b92915050565b60006109af83836113a2565b600854600a5401431115610f5e574360085560006009555b600c54600160a060020a03821631108015610f815750600b54600954600d540111155b156109c057600d54604051600160a060020a0383169180156108fc02916000818181858888f19350505050156109c057600d5460098054909101905550565b600083600160a060020a03163384846040516024018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561102d578181015183820152602001611015565b50505050905090810190601f16801561105a5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa4c0ed36000000000000000000000000000000000000000000000000000000001781529051825192975095508594509250905080838360005b838110156110e15781810151838201526020016110c9565b50505050905090810190601f16801561110e5780820380516001836020036101000a031916815260200191505b509150506000604051808303816000865af19695505050505050565b600654600090600160a060020a0316331461114457600080fd5b60065474010000000000000000000000000000000000000000900460ff161561116c57600080fd5b60045461117f908363ffffffff610f2716565b600455600160a060020a0383166000908152600360205260409020546111ab908363ffffffff610f2716565b600160a060020a038416600081815260036020908152604091829020939093558051858152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a2604080518381529051600160a060020a038516916000916000805160206114748339815191529181900360200190a350600192915050565b600160a060020a03821660009081526003602052604090205481111561125a57600080fd5b600160a060020a038216600090815260036020526040902054611283908263ffffffff610f1516565b600160a060020a0383166000908152600360205260409020556004546112af908263ffffffff610f1516565b600455604080518281529051600160a060020a038416917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2604080518281529051600091600160a060020a038516916000805160206114748339815191529181900360200190a35050565b600160a060020a038116151561133957600080fd5b600654604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a03831615156113b957600080fd5b336000908152600360205260409020548211156113d557600080fd5b336000908152600360205260409020546113f5908363ffffffff610f1516565b3360009081526003602052604080822092909255600160a060020a03851681522054611427908363ffffffff610f2716565b600160a060020a0384166000818152600360209081526040918290209390935580518581529051919233926000805160206114748339815191529281900390910190a3506001929150505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820202e97809dace2b9ed4f4669f0f78aca6dc674303695002c090e59c434ec83f00029000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000754542d5553445400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000754542d5553445400000000000000000000000000000000000000000000000000
Deployed ByteCode
0x6080604052600436106101485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305d2035b811461014a57806306fdde0314610173578063095ea7b3146101fd5780630b26cf661461022157806318160ddd1461024257806323b872dd14610269578063313ce567146102935780634000aea0146102be57806340c10f19146102ef57806342966c6814610313578063661884631461032b57806369ffa08a1461034f57806370a0823114610376578063715018a6146103975780637d64bcb4146103ac578063859ba28c146103c15780638da5cb5b1461040257806395d89b411461043357806398a8695414610448578063a9059cbb14610469578063bbc06ebd1461048d578063cd596583146104c8578063d73dd623146104dd578063dd62ed3e14610501578063f2fde38b14610528575b005b34801561015657600080fd5b5061015f610549565b604080519115158252519081900360200190f35b34801561017f57600080fd5b5061018861056a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c25781810151838201526020016101aa565b50505050905090810190601f1680156101ef5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020957600080fd5b5061015f600160a060020a03600435166024356105f8565b34801561022d57600080fd5b50610148600160a060020a036004351661065e565b34801561024e57600080fd5b506102576106cb565b60408051918252519081900360200190f35b34801561027557600080fd5b5061015f600160a060020a03600435811690602435166044356106d1565b34801561029f57600080fd5b506102a8610838565b6040805160ff9092168252519081900360200190f35b3480156102ca57600080fd5b5061015f60048035600160a060020a0316906024803591604435918201910135610841565b3480156102fb57600080fd5b5061015f600160a060020a036004351660243561095a565b34801561031f57600080fd5b506101486004356109b6565b34801561033757600080fd5b5061015f600160a060020a03600435166024356109c3565b34801561035b57600080fd5b50610148600160a060020a0360043581169060243516610ab3565b34801561038257600080fd5b50610257600160a060020a0360043516610c6c565b3480156103a357600080fd5b50610148610c87565b3480156103b857600080fd5b5061015f610ca3565b3480156103cd57600080fd5b506103d6610caa565b6040805167ffffffffffffffff9485168152928416602084015292168183015290519081900360600190f35b34801561040e57600080fd5b50610417610cb4565b60408051600160a060020a039092168252519081900360200190f35b34801561043f57600080fd5b50610188610cc3565b34801561045457600080fd5b50610148600435602435604435606435610d1d565b34801561047557600080fd5b5061015f600160a060020a0360043516602435610d48565b34801561049957600080fd5b506104a2610e08565b604080519485526020850193909352838301919091526060830152519081900360800190f35b3480156104d457600080fd5b50610417610e1a565b3480156104e957600080fd5b5061015f600160a060020a0360043516602435610e29565b34801561050d57600080fd5b50610257600160a060020a0360043581169060243516610ec2565b34801561053457600080fd5b50610148600160a060020a0360043516610eed565b60065474010000000000000000000000000000000000000000900460ff1681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105f05780601f106105c5576101008083540402835291602001916105f0565b820191906000526020600020905b8154815290600101906020018083116105d357829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b600654600160a060020a0316331461067557600080fd5b600160a060020a03811615801590610691575061069181610f0d565b151561069c57600080fd5b6007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60045490565b6000600160a060020a03831615156106e857600080fd5b600160a060020a03841660009081526003602052604090205482111561070d57600080fd5b600160a060020a038416600090815260056020908152604080832033845290915290205482111561073d57600080fd5b600160a060020a038416600090815260036020526040902054610766908363ffffffff610f1516565b600160a060020a03808616600090815260036020526040808220939093559085168152205461079b908363ffffffff610f2716565b600160a060020a0380851660009081526003602090815260408083209490945591871681526005825282812033825290915220546107df908363ffffffff610f1516565b600160a060020a0380861660008181526005602090815260408083203384528252918290209490945580518681529051928716939192600080516020611474833981519152929181900390910190a35060019392505050565b60025460ff1681565b600084600160a060020a038116158015906108655750600160a060020a0381163014155b151561087057600080fd5b61087a8686610f3a565b151561088557600080fd5b61088e86610f46565b85600160a060020a031633600160a060020a03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16878787604051808481526020018060200182810382528484828181526020019250808284376040519201829003965090945050505050a361090386610f0d565b1561094e57610943868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843750610fc0945050505050565b151561094e57600080fd5b50600195945050505050565b600654600090600160a060020a0316331461097457600080fd5b60065474010000000000000000000000000000000000000000900460ff161561099c57600080fd5b6109a583610f46565b6109af838361112a565b9392505050565b6109c03382611235565b50565b336000908152600560209081526040808320600160a060020a038616845290915281205480831115610a1857336000908152600560209081526040808320600160a060020a0388168452909152812055610a4d565b610a28818463ffffffff610f1516565b336000908152600560209081526040808320600160a060020a03891684529091529020555b336000818152600560209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b6006546000908190600160a060020a03163314610acf57600080fd5b600160a060020a0383161515610ae457600080fd5b600160a060020a0384161515610b3057604051600160a060020a03841690303180156108fc02916000818181858888f19350505050158015610b2a573d6000803e3d6000fd5b50610c66565b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051859350600160a060020a038416916370a082319160248083019260209291908290030181600087803b158015610b9457600080fd5b505af1158015610ba8573d6000803e3d6000fd5b505050506040513d6020811015610bbe57600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0386811660048301526024820184905291519293509084169163a9059cbb916044808201926020929091908290030181600087803b158015610c2f57600080fd5b505af1158015610c43573d6000803e3d6000fd5b505050506040513d6020811015610c5957600080fd5b50511515610c6657600080fd5b50505050565b600160a060020a031660009081526003602052604090205490565b600654600160a060020a03163314610c9e57600080fd5b600080fd5b6000806000fd5b6002600080909192565b600654600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105f05780601f106105c5576101008083540402835291602001916105f0565b600654600160a060020a03163314610d3457600080fd5b600a93909355600b91909155600c55600d55565b6000610d548383610f3a565b1515610d5f57600080fd5b610d6883610f46565b610d7183610f0d565b8015610d965750604080516000815260208101909152610d949084908490610fc0565b155b15610dff57600754600160a060020a0384811691161415610db657600080fd5b60408051338152600160a060020a038516602082015280820184905290517f11249f0fc79fc134a15a10d1da8291b79515bf987e036ced05b9ec119614070b9181900360600190a15b50600192915050565b600a54600b54600c54600d5490919293565b600754600160a060020a031681565b336000908152600560209081526040808320600160a060020a0386168452909152812054610e5d908363ffffffff610f2716565b336000818152600560209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b600654600160a060020a03163314610f0457600080fd5b6109c081611324565b6000903b1190565b600082821115610f2157fe5b50900390565b81810182811015610f3457fe5b92915050565b60006109af83836113a2565b600854600a5401431115610f5e574360085560006009555b600c54600160a060020a03821631108015610f815750600b54600954600d540111155b156109c057600d54604051600160a060020a0383169180156108fc02916000818181858888f19350505050156109c057600d5460098054909101905550565b600083600160a060020a03163384846040516024018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561102d578181015183820152602001611015565b50505050905090810190601f16801561105a5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa4c0ed36000000000000000000000000000000000000000000000000000000001781529051825192975095508594509250905080838360005b838110156110e15781810151838201526020016110c9565b50505050905090810190601f16801561110e5780820380516001836020036101000a031916815260200191505b509150506000604051808303816000865af19695505050505050565b600654600090600160a060020a0316331461114457600080fd5b60065474010000000000000000000000000000000000000000900460ff161561116c57600080fd5b60045461117f908363ffffffff610f2716565b600455600160a060020a0383166000908152600360205260409020546111ab908363ffffffff610f2716565b600160a060020a038416600081815260036020908152604091829020939093558051858152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a2604080518381529051600160a060020a038516916000916000805160206114748339815191529181900360200190a350600192915050565b600160a060020a03821660009081526003602052604090205481111561125a57600080fd5b600160a060020a038216600090815260036020526040902054611283908263ffffffff610f1516565b600160a060020a0383166000908152600360205260409020556004546112af908263ffffffff610f1516565b600455604080518281529051600160a060020a038416917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2604080518281529051600091600160a060020a038516916000805160206114748339815191529181900360200190a35050565b600160a060020a038116151561133957600080fd5b600654604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a03831615156113b957600080fd5b336000908152600360205260409020548211156113d557600080fd5b336000908152600360205260409020546113f5908363ffffffff610f1516565b3360009081526003602052604080822092909255600160a060020a03851681522054611427908363ffffffff610f2716565b600160a060020a0384166000818152600360209081526040918290209390935580518581529051919233926000805160206114748339815191529281900390910190a3506001929150505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820202e97809dace2b9ed4f4669f0f78aca6dc674303695002c090e59c434ec83f00029