Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- FoamSale
- Optimization enabled
- true
- Compiler version
- v0.4.24+commit.e67f0147
- Optimization runs
- 200
- EVM Version
- byzantium
- Verified at
- 2026-04-04T12:24:14.063316Z
FoamSale.sol
pragma solidity 0.4.24;
// File: @tokenfoundry/sale-contracts/contracts/interfaces/DisbursementHandlerI.sol
interface DisbursementHandlerI {
function withdraw(address _beneficiary, uint256 _index) external;
}
// 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/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event 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/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/SafeERC20.sol
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure.
* To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
function safeTransfer(ERC20Basic token, address to, uint256 value) internal {
require(token.transfer(to, value));
}
function safeTransferFrom(
ERC20 token,
address from,
address to,
uint256 value
)
internal
{
require(token.transferFrom(from, to, value));
}
function safeApprove(ERC20 token, address spender, uint256 value) internal {
require(token.approve(spender, value));
}
}
// File: @tokenfoundry/sale-contracts/contracts/DisbursementHandler.sol
/// @title Disbursement handler - Manages time locked disbursements of ERC20 tokens
contract DisbursementHandler is DisbursementHandlerI, Ownable {
using SafeMath for uint256;
using SafeERC20 for ERC20;
struct Disbursement {
// Tokens cannot be withdrawn before this timestamp
uint256 timestamp;
// Amount of tokens to be disbursed
uint256 value;
}
event Setup(address indexed _beneficiary, uint256 _timestamp, uint256 _value);
event TokensWithdrawn(address indexed _to, uint256 _value);
ERC20 public token;
uint256 public totalAmount;
mapping(address => Disbursement[]) public disbursements;
constructor(ERC20 _token) public {
require(_token != address(0));
token = _token;
}
/// @dev Called by the sale contract to create a disbursement.
/// @param _beneficiary The address of the beneficiary.
/// @param _value Amount of tokens to be locked.
/// @param _timestamp Funds will be locked until this timestamp.
function setupDisbursement(
address _beneficiary,
uint256 _value,
uint256 _timestamp
)
external
onlyOwner
{
require(block.timestamp < _timestamp);
disbursements[_beneficiary].push(Disbursement(_timestamp, _value));
totalAmount = totalAmount.add(_value);
emit Setup(_beneficiary, _timestamp, _value);
}
/// @dev Transfers tokens to a beneficiary
/// @param _beneficiary The address to transfer tokens to
/// @param _index The index of the disbursement
function withdraw(address _beneficiary, uint256 _index)
external
{
Disbursement[] storage beneficiaryDisbursements = disbursements[_beneficiary];
require(_index < beneficiaryDisbursements.length);
Disbursement memory disbursement = beneficiaryDisbursements[_index];
require(disbursement.timestamp < now && disbursement.value > 0);
// Remove the withdrawn disbursement
delete beneficiaryDisbursements[_index];
token.safeTransfer(_beneficiary, disbursement.value);
emit TokensWithdrawn(_beneficiary, disbursement.value);
}
}
// File: @tokenfoundry/sale-contracts/contracts/interfaces/VaultI.sol
interface VaultI {
function deposit(address contributor) external payable;
function saleSuccessful() external;
function enableRefunds() external;
function refund(address contributor) external;
function close() external;
function sendFundsToWallet() external;
}
// File: openzeppelin-solidity/contracts/math/Math.sol
/**
* @title Math
* @dev Assorted math operations
*/
library Math {
function max64(uint64 a, uint64 b) internal pure returns (uint64) {
return a >= b ? a : b;
}
function min64(uint64 a, uint64 b) internal pure returns (uint64) {
return a < b ? a : b;
}
function max256(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
function min256(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
}
// File: @tokenfoundry/sale-contracts/contracts/Vault.sol
// Adapted from Open Zeppelin's RefundVault
/**
* @title Vault
* @dev This contract is used for storing funds while a crowdsale
* is in progress. Supports refunding the money if crowdsale fails,
* and forwarding it if crowdsale is successful.
*/
contract Vault is VaultI, Ownable {
using SafeMath for uint256;
enum State { Active, Success, Refunding, Closed }
// The timestamp of the first deposit
uint256 public firstDepositTimestamp;
mapping (address => uint256) public deposited;
// The amount to be disbursed to the wallet every month
uint256 public disbursementWei;
uint256 public disbursementDuration;
// Wallet from the project team
address public trustedWallet;
// The eth amount the team will get initially if the sale is successful
uint256 public initialWei;
// Timestamp that has to pass before sending funds to the wallet
uint256 public nextDisbursement;
// Total amount that was deposited
uint256 public totalDeposited;
// Amount that can be refunded
uint256 public refundable;
State public state;
event Closed();
event RefundsEnabled();
event Refunded(address indexed contributor, uint256 amount);
modifier atState(State _state) {
require(state == _state);
_;
}
constructor (
address _wallet,
uint256 _initialWei,
uint256 _disbursementWei,
uint256 _disbursementDuration
)
public
{
require(_wallet != address(0));
require(_disbursementWei != 0);
trustedWallet = _wallet;
initialWei = _initialWei;
disbursementWei = _disbursementWei;
disbursementDuration = _disbursementDuration;
state = State.Active;
}
/// @dev Called by the sale contract to deposit ether for a contributor.
function deposit(address _contributor) onlyOwner external payable {
require(state == State.Active || state == State.Success);
if (firstDepositTimestamp == 0) {
firstDepositTimestamp = now;
}
totalDeposited = totalDeposited.add(msg.value);
deposited[_contributor] = deposited[_contributor].add(msg.value);
}
/// @dev Sends initial funds to the wallet.
function saleSuccessful()
onlyOwner
external
atState(State.Active)
{
state = State.Success;
transferToWallet(initialWei);
}
/// @dev Called by the owner if the project didn't deliver the testnet contracts or if we need to stop disbursements for any reasone.
function enableRefunds() onlyOwner external {
require(state != State.Refunding);
state = State.Refunding;
uint256 currentBalance = address(this).balance;
refundable = currentBalance <= totalDeposited ? currentBalance : totalDeposited;
emit RefundsEnabled();
}
/// @dev Refunds ether to the contributors if in the Refunding state.
function refund(address _contributor) external atState(State.Refunding) {
require(deposited[_contributor] > 0);
uint256 refundAmount = deposited[_contributor].mul(refundable).div(totalDeposited);
deposited[_contributor] = 0;
_contributor.transfer(refundAmount);
emit Refunded(_contributor, refundAmount);
}
/// @dev Called by the owner if the sale has ended.
function close() external atState(State.Success) onlyOwner {
state = State.Closed;
nextDisbursement = now;
emit Closed();
}
/// @dev Sends the disbursement amount to the wallet after the disbursement period has passed. Can be called by anyone.
function sendFundsToWallet() external atState(State.Closed) {
require(nextDisbursement <= now);
if (disbursementDuration == 0) {
trustedWallet.transfer(address(this).balance);
return;
}
uint256 numberOfDisbursements = now.sub(nextDisbursement).div(disbursementDuration).add(1);
nextDisbursement = nextDisbursement.add(disbursementDuration.mul(numberOfDisbursements));
transferToWallet(disbursementWei.mul(numberOfDisbursements));
}
function transferToWallet(uint256 _amount) internal {
uint256 amountToSend = Math.min256(_amount, address(this).balance);
trustedWallet.transfer(amountToSend);
}
}
// File: @tokenfoundry/sale-contracts/contracts/interfaces/WhitelistableI.sol
interface WhitelistableI {
function changeAdmin(address _admin) external;
function invalidateHash(bytes32 _hash) external;
function invalidateHashes(bytes32[] _hashes) external;
}
// File: openzeppelin-solidity/contracts/ECRecovery.sol
/**
* @title Eliptic curve signature operations
*
* @dev Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d
*
* TODO Remove this library once solidity supports passing a signature to ecrecover.
* See https://github.com/ethereum/solidity/issues/864
*
*/
library ECRecovery {
/**
* @dev Recover signer address from a message by using their signature
* @param hash bytes32 message, the hash is the signed message. What is recovered is the signer address.
* @param sig bytes signature, the signature is generated using web3.eth.sign()
*/
function recover(bytes32 hash, bytes sig)
internal
pure
returns (address)
{
bytes32 r;
bytes32 s;
uint8 v;
// Check the signature length
if (sig.length != 65) {
return (address(0));
}
// Divide the signature in r, s and v variables
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
// solium-disable-next-line security/no-inline-assembly
assembly {
r := mload(add(sig, 32))
s := mload(add(sig, 64))
v := byte(0, mload(add(sig, 96)))
}
// Version of signature should be 27 or 28, but 0 and 1 are also possible versions
if (v < 27) {
v += 27;
}
// If the version is correct return the signer address
if (v != 27 && v != 28) {
return (address(0));
} else {
// solium-disable-next-line arg-overflow
return ecrecover(hash, v, r, s);
}
}
/**
* toEthSignedMessageHash
* @dev prefix a bytes32 value with "\x19Ethereum Signed Message:"
* @dev and hash the result
*/
function toEthSignedMessageHash(bytes32 hash)
internal
pure
returns (bytes32)
{
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(
"\x19Ethereum Signed Message:\n32",
hash
);
}
}
// File: @tokenfoundry/sale-contracts/contracts/Whitelistable.sol
/**
* @title Whitelistable
* @dev This contract is used to implement a signature based whitelisting mechanism
*/
contract Whitelistable is WhitelistableI, Ownable {
using ECRecovery for bytes32;
address public whitelistAdmin;
// True if the hash has been invalidated
mapping(bytes32 => bool) public invalidHash;
event AdminUpdated(address indexed newAdmin);
modifier validAdmin(address _admin) {
require(_admin != 0);
_;
}
modifier onlyAdmin {
require(msg.sender == whitelistAdmin);
_;
}
modifier isWhitelisted(bytes32 _hash, bytes _sig) {
require(checkWhitelisted(_hash, _sig));
_;
}
/// @dev Constructor for Whitelistable contract
/// @param _admin the address of the admin that will generate the signatures
constructor(address _admin) public validAdmin(_admin) {
whitelistAdmin = _admin;
}
/// @dev Updates whitelistAdmin address
/// @dev Can only be called by the current owner
/// @param _admin the new admin address
function changeAdmin(address _admin)
external
onlyOwner
validAdmin(_admin)
{
emit AdminUpdated(_admin);
whitelistAdmin = _admin;
}
// @dev blacklists the given address to ban them from contributing
// @param _contributor Address of the contributor to blacklist
function invalidateHash(bytes32 _hash) external onlyAdmin {
invalidHash[_hash] = true;
}
function invalidateHashes(bytes32[] _hashes) external onlyAdmin {
for (uint i = 0; i < _hashes.length; i++) {
invalidHash[_hashes[i]] = true;
}
}
/// @dev Checks if a hash has been signed by the whitelistAdmin
/// @param _rawHash The hash that was used to generate the signature
/// @param _sig The EC signature generated by the whitelistAdmin
/// @return Was the signature generated by the admin for the hash?
function checkWhitelisted(
bytes32 _rawHash,
bytes _sig
)
public
view
returns(bool)
{
bytes32 hash = _rawHash.toEthSignedMessageHash();
return !invalidHash[_rawHash] && whitelistAdmin == hash.recover(_sig);
}
}
// File: @tokenfoundry/sale-contracts/contracts/interfaces/EthPriceFeedI.sol
interface EthPriceFeedI {
function getUnit() external view returns(string);
function getRate() external view returns(uint256);
function getLastTimeUpdated() external view returns(uint256);
}
// File: @tokenfoundry/sale-contracts/contracts/interfaces/SaleI.sol
interface SaleI {
function setup() external;
function changeEthPriceFeed(EthPriceFeedI newPriceFeed) external;
function contribute(address _contributor, uint256 _limit, uint256 _expiration, bytes _sig) external payable;
function allocateExtraTokens(address _contributor) external;
function setEndTime(uint256 _endTime) external;
function endSale() external;
}
// File: @tokenfoundry/state-machine/contracts/StateMachine.sol
contract StateMachine {
struct State {
bytes32 nextStateId;
mapping(bytes4 => bool) allowedFunctions;
function() internal[] transitionCallbacks;
function(bytes32) internal returns(bool)[] startConditions;
}
mapping(bytes32 => State) states;
// The current state id
bytes32 private currentStateId;
event Transition(bytes32 stateId, uint256 blockNumber);
/* This modifier performs the conditional transitions and checks that the function
* to be executed is allowed in the current State
*/
modifier checkAllowed {
conditionalTransitions();
require(states[currentStateId].allowedFunctions[msg.sig]);
_;
}
///@dev transitions the state machine into the state it should currently be in
///@dev by taking into account the current conditions and how many further transitions can occur
function conditionalTransitions() public {
bool checkNextState;
do {
checkNextState = false;
bytes32 next = states[currentStateId].nextStateId;
// If one of the next state's conditions is met, go to this state and continue
for (uint256 i = 0; i < states[next].startConditions.length; i++) {
if (states[next].startConditions[i](next)) {
goToNextState();
checkNextState = true;
break;
}
}
} while (checkNextState);
}
function getCurrentStateId() view public returns(bytes32) {
return currentStateId;
}
/// @dev Setup the state machine with the given states.
/// @param _stateIds Array of state ids.
function setStates(bytes32[] _stateIds) internal {
require(_stateIds.length > 0);
require(currentStateId == 0);
require(_stateIds[0] != 0);
currentStateId = _stateIds[0];
for (uint256 i = 1; i < _stateIds.length; i++) {
require(_stateIds[i] != 0);
states[_stateIds[i - 1]].nextStateId = _stateIds[i];
// Check that the state appears only once in the array
require(states[_stateIds[i]].nextStateId == 0);
}
}
/// @dev Allow a function in the given state.
/// @param _stateId The id of the state
/// @param _functionSelector A function selector (bytes4[keccak256(functionSignature)])
function allowFunction(bytes32 _stateId, bytes4 _functionSelector)
internal
{
states[_stateId].allowedFunctions[_functionSelector] = true;
}
/// @dev Goes to the next state if possible (if the next state is valid)
function goToNextState() internal {
bytes32 next = states[currentStateId].nextStateId;
require(next != 0);
currentStateId = next;
for (uint256 i = 0; i < states[next].transitionCallbacks.length; i++) {
states[next].transitionCallbacks[i]();
}
emit Transition(next, block.number);
}
///@dev Add a function returning a boolean as a start condition for a state.
/// If any condition returns true, the StateMachine will transition to the next state.
/// If s.startConditions is empty, the StateMachine will need to enter state s through invoking
/// the goToNextState() function.
/// A start condition should never throw. (Otherwise, the StateMachine may fail to enter into the
/// correct state, and succeeding start conditions may return true.)
/// A start condition should be gas-inexpensive since every one of them is invoked in the same call to
/// transition the state.
///@param _stateId The ID of the state to add the condition for
///@param _condition Start condition function - returns true if a start condition (for a given state ID) is met
function addStartCondition(
bytes32 _stateId,
function(bytes32) internal returns(bool) _condition
)
internal
{
states[_stateId].startConditions.push(_condition);
}
///@dev Add a callback function for a state. All callbacks are invoked immediately after entering the state.
/// Callback functions should never throw. (Otherwise, the StateMachine may fail to enter a state.)
/// Callback functions should also be gas-inexpensive as all callbacks are invoked in the same call to enter the state.
///@param _stateId The ID of the state to add a callback function for
///@param _callback The callback function to add
function addCallback(bytes32 _stateId, function() internal _callback)
internal
{
states[_stateId].transitionCallbacks.push(_callback);
}
}
// File: @tokenfoundry/state-machine/contracts/TimedStateMachine.sol
/// @title A contract that implements the state machine pattern and adds time dependant transitions.
contract TimedStateMachine is StateMachine {
event StateStartTimeSet(bytes32 indexed _stateId, uint256 _startTime);
// Stores the start timestamp for each state (the value is 0 if the state doesn't have a start timestamp).
mapping(bytes32 => uint256) private startTime;
/// @dev Returns the timestamp for the given state id.
/// @param _stateId The id of the state for which we want to set the start timestamp.
function getStateStartTime(bytes32 _stateId) public view returns(uint256) {
return startTime[_stateId];
}
/// @dev Sets the starting timestamp for a state as a startCondition. If other start conditions exist and are
/// met earlier, then the state may be entered into earlier than the specified start time.
/// @param _stateId The id of the state for which we want to set the start timestamp.
/// @param _timestamp The start timestamp for the given state. It should be bigger than the current one.
function setStateStartTime(bytes32 _stateId, uint256 _timestamp) internal {
require(block.timestamp < _timestamp);
if (startTime[_stateId] == 0) {
addStartCondition(_stateId, hasStartTimePassed);
}
startTime[_stateId] = _timestamp;
emit StateStartTimeSet(_stateId, _timestamp);
}
function hasStartTimePassed(bytes32 _stateId) internal returns(bool) {
return startTime[_stateId] <= block.timestamp;
}
}
// File: @tokenfoundry/token-contracts/contracts/TokenControllerI.sol
/// @title Interface for token controllers. The controller specifies whether a transfer can be done.
contract TokenControllerI {
/// @dev Specifies whether a transfer is allowed or not.
/// @return True if the transfer is allowed
function transferAllowed(address _from, address _to)
external
view
returns (bool);
}
// 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: @tokenfoundry/token-contracts/contracts/ControllableToken.sol
/**
* @title Controllable ERC20 token
*
* @dev Token that queries a token controller contract to check if a transfer is allowed.
* @dev controller state var is going to be set with the address of a TokenControllerI contract that has
* implemented transferAllowed() function.
*/
contract ControllableToken is Ownable, StandardToken {
TokenControllerI public controller;
/// @dev Executes transferAllowed() function from the Controller.
modifier isAllowed(address _from, address _to) {
require(controller.transferAllowed(_from, _to));
_;
}
/// @dev Sets the controller that is going to be used by isAllowed modifier
function setController(TokenControllerI _controller) onlyOwner public {
require(_controller != address(0));
controller = _controller;
}
/// @dev It calls parent BasicToken.transfer() function. It will transfer an amount of tokens to an specific address
/// @return True if the token is transfered with success
function transfer(address _to, uint256 _value)
isAllowed(msg.sender, _to)
public
returns (bool)
{
return super.transfer(_to, _value);
}
/// @dev It calls parent StandardToken.transferFrom() function. It will transfer from an address a certain amount of tokens to another address
/// @return True if the token is transfered with success
function transferFrom(address _from, address _to, uint256 _value)
isAllowed(_from, _to)
public
returns (bool)
{
return super.transferFrom(_from, _to, _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: @tokenfoundry/token-contracts/contracts/Token.sol
/**
* @title Token base contract - Defines basic structure for a token
*
* @dev ControllableToken is a StandardToken, an OpenZeppelin ERC20 implementation library. DetailedERC20 is also an OpenZeppelin contract.
* More info about them is available here: https://github.com/OpenZeppelin/zeppelin-solidity/tree/master/contracts/token/ERC20
*/
contract Token is ControllableToken, DetailedERC20 {
/**
* @dev Transfer is an event inherited from ERC20Basic.sol interface (OpenZeppelin).
* @param _supply Total supply of tokens.
* @param _name Is the long name by which the token contract should be known
* @param _symbol The set of capital letters used to represent the token e.g. DTH.
* @param _decimals The number of decimal places the tokens can be split up into. This should be between 0 and 18.
*/
constructor(
uint256 _supply,
string _name,
string _symbol,
uint8 _decimals
) DetailedERC20(_name, _symbol, _decimals) public {
require(_supply != 0);
totalSupply_ = _supply;
balances[msg.sender] = _supply;
emit Transfer(address(0), msg.sender, _supply); //event
}
}
// File: @tokenfoundry/sale-contracts/contracts/Sale.sol
/// @title Sale base contract
contract Sale is SaleI, Ownable, Whitelistable, TimedStateMachine, TokenControllerI {
using SafeMath for uint256;
using SafeERC20 for Token;
// State machine states
bytes32 private constant SETUP = "setup";
bytes32 private constant FREEZE = "freeze";
bytes32 private constant SALE_IN_PROGRESS = "saleInProgress";
bytes32 private constant SALE_ENDED = "saleEnded";
// solium-disable-next-line arg-overflow
bytes32[] public states = [SETUP, FREEZE, SALE_IN_PROGRESS, SALE_ENDED];
// Stores the contribution for each user
mapping(address => uint256) public unitContributions;
// Records extra tokens were allocated
mapping(address => bool) public extraTokensAllocated;
DisbursementHandler public disbursementHandler;
uint256 public totalContributedUnits = 0; // Units
uint256 public totalSaleCapUnits; // Units
uint256 public minContributionUnits; // Units
uint256 public minThresholdUnits; // Units
// How many tokens a user will receive per each unit contributed
uint256 public saleTokensPerUnit;
// Rate that will be used to calculate extra tokens if Sale is not sold out
uint256 public extraTokensPerUnit;
// Total amount of tokens that the sale will distribute to contributors
uint256 public tokensForSale;
Token public trustedToken;
Vault public trustedVault;
EthPriceFeedI public ethPriceFeed;
event Contribution(
address indexed contributor,
address indexed sender,
uint256 valueUnit,
uint256 valueWei,
uint256 excessWei,
uint256 weiPerUnitRate
);
event EthPriceFeedChanged(address previousEthPriceFeed, address newEthPriceFeed);
event TokensAllocated(address indexed contributor, uint256 tokenAmount);
constructor (
uint256 _totalSaleCapUnits, // Units
uint256 _minContributionUnits, // Units
uint256 _minThresholdUnits, // Units
uint256 _maxTokens,
address _whitelistAdmin,
address _wallet,
uint256 _vaultInitialDisburseWei, // Wei
uint256 _vaultDisbursementWei, // Wei
uint256 _vaultDisbursementDuration,
uint256 _startTime,
string _tokenName,
string _tokenSymbol,
uint8 _tokenDecimals,
EthPriceFeedI _ethPriceFeed
)
Whitelistable(_whitelistAdmin)
public
{
require(_totalSaleCapUnits != 0);
require(_maxTokens != 0);
require(_wallet != 0);
require(_minThresholdUnits <= _totalSaleCapUnits);
require(_ethPriceFeed != address(0));
require(now < _startTime);
totalSaleCapUnits = _totalSaleCapUnits;
minContributionUnits = _minContributionUnits;
minThresholdUnits = _minThresholdUnits;
// Setup the necessary contracts
trustedToken = new Token(
_maxTokens,
_tokenName,
_tokenSymbol,
_tokenDecimals
);
disbursementHandler = new DisbursementHandler(trustedToken);
ethPriceFeed = _ethPriceFeed;
// The token will query the isTransferAllowed function contained in this contract
trustedToken.setController(this);
trustedVault = new Vault(
_wallet,
_vaultInitialDisburseWei,
_vaultDisbursementWei, // disbursement amount
_vaultDisbursementDuration
);
// Set the states
setStates(states);
// Specify which functions are allowed in each state
allowFunction(SETUP, this.setup.selector);
allowFunction(FREEZE, this.setEndTime.selector);
allowFunction(SALE_IN_PROGRESS, this.setEndTime.selector);
allowFunction(SALE_IN_PROGRESS, this.contribute.selector);
allowFunction(SALE_IN_PROGRESS, this.endSale.selector);
allowFunction(SALE_ENDED, this.allocateExtraTokens.selector);
// End the sale when the cap is reached
addStartCondition(SALE_ENDED, wasCapReached);
// Set the start time for the sale
setStateStartTime(SALE_IN_PROGRESS, _startTime);
// Set the onSaleEnded callback (will be called when the sale ends)
addCallback(SALE_ENDED, onSaleEnded);
}
/// @dev Setup the disbursements and the number of tokens for sale.
/// @dev This needs to be outside the constructor because the token needs to query the sale for allowed transfers.
function setup() external onlyOwner checkAllowed {
trustedToken.safeTransfer(disbursementHandler, disbursementHandler.totalAmount());
tokensForSale = trustedToken.balanceOf(this);
require(tokensForSale >= totalSaleCapUnits);
// Set the worst rate of tokens per unit
// If sale doesn't sell out, extra tokens will be disbursed after the sale ends.
saleTokensPerUnit = tokensForSale.div(totalSaleCapUnits);
// Go to freeze state
goToNextState();
}
/// @dev To change the EthPriceFeed contract if needed
function changeEthPriceFeed(EthPriceFeedI _ethPriceFeed) external onlyOwner {
require(_ethPriceFeed != address(0));
emit EthPriceFeedChanged(ethPriceFeed, _ethPriceFeed);
ethPriceFeed = _ethPriceFeed;
}
/// @dev Called by users to contribute ETH to the sale.
function contribute(
address _contributor,
uint256 _contributionLimitUnits,
uint256 _payloadExpiration,
bytes _sig
)
external
payable
checkAllowed
isWhitelisted(keccak256(
abi.encodePacked(
_contributor,
_contributionLimitUnits,
_payloadExpiration
)
), _sig)
{
require(msg.sender == _contributor);
require(now < _payloadExpiration);
uint256 weiPerUnitRate = ethPriceFeed.getRate();
require(weiPerUnitRate != 0);
uint256 previouslyContributedUnits = unitContributions[_contributor];
// Check that the contribution amount doesn't go over the sale cap or personal contributionLimitUnits
uint256 currentContributionUnits = min256(
_contributionLimitUnits.sub(previouslyContributedUnits),
totalSaleCapUnits.sub(totalContributedUnits),
msg.value.div(weiPerUnitRate)
);
require(currentContributionUnits != 0);
// Check that it is higher than minContributionUnits
require(currentContributionUnits >= minContributionUnits || previouslyContributedUnits != 0);
// Update the state
unitContributions[_contributor] = previouslyContributedUnits.add(currentContributionUnits);
totalContributedUnits = totalContributedUnits.add(currentContributionUnits);
uint256 currentContributionWei = currentContributionUnits.mul(weiPerUnitRate);
trustedVault.deposit.value(currentContributionWei)(msg.sender);
// If the minThresholdUnits is reached for the first time, notify the vault
if (totalContributedUnits >= minThresholdUnits &&
trustedVault.state() != Vault.State.Success) {
trustedVault.saleSuccessful();
}
// If there is an excess, return it to the sender
uint256 excessWei = msg.value.sub(currentContributionWei);
if (excessWei > 0) {
msg.sender.transfer(excessWei);
}
emit Contribution(
_contributor,
msg.sender,
currentContributionUnits,
currentContributionWei,
excessWei,
weiPerUnitRate
);
// Allocate tokens
uint256 tokenAmount = currentContributionUnits.mul(saleTokensPerUnit);
trustedToken.safeTransfer(_contributor, tokenAmount);
emit TokensAllocated(_contributor, tokenAmount);
}
/// @dev Called to allocate the tokens depending on amount contributed by the end of the sale.
/// @param _contributor The address of the contributor.
function allocateExtraTokens(address _contributor)
external
checkAllowed
{
require(!extraTokensAllocated[_contributor]);
require(unitContributions[_contributor] != 0);
// Allocate extra tokens only if total sale cap is not reached
require(totalContributedUnits < totalSaleCapUnits);
// Transfer the respective tokens to the contributor
extraTokensAllocated[_contributor] = true;
uint256 tokenAmount = unitContributions[_contributor].mul(extraTokensPerUnit);
trustedToken.safeTransfer(_contributor, tokenAmount);
emit TokensAllocated(_contributor, tokenAmount);
}
/// @dev Sets the end time for the sale
/// @param _endTime The timestamp at which the sale will end.
function setEndTime(uint256 _endTime) external onlyOwner checkAllowed {
require(now < _endTime);
require(getStateStartTime(SALE_ENDED) == 0);
setStateStartTime(SALE_ENDED, _endTime);
}
/// @dev Called to enable refunds by the owner. Can only be called in any state (without triggering conditional transitions)
/// @dev This is only meant to be used if there is an emergency and the endSale() function can't be called
function enableRefunds() external onlyOwner {
trustedVault.enableRefunds();
}
/// @dev Called to end the sale by the owner. Can only be called in SALE_IN_PROGRESS state
function endSale() external onlyOwner checkAllowed {
goToNextState();
}
/// @dev Since Sale is TokenControllerI, it has to implement transferAllowed() function
/// @notice only the Sale and DisbursementHandler can disburse the initial tokens to their future owners
function transferAllowed(address _from, address)
external
view
returns (bool)
{
return _from == address(this) || _from == address(disbursementHandler);
}
/// @dev Called internally by the sale to setup a disbursement (it has to be called in the constructor of child sales)
/// param _beneficiary Tokens will be disbursed to this address.
/// param _tokenAmount Number of tokens to be disbursed.
/// param _duration Tokens will be locked for this long.
function setupDisbursement(
address _beneficiary,
uint256 _tokenAmount,
uint256 _duration
)
internal
{
require(tokensForSale == 0);
disbursementHandler.setupDisbursement(
_beneficiary,
_tokenAmount,
now.add(_duration)
);
}
/// @dev Returns true if the cap was reached.
function wasCapReached(bytes32) internal returns (bool) {
return totalSaleCapUnits <= totalContributedUnits;
}
/// @dev Callback that gets called when entering the SALE_ENDED state.
function onSaleEnded() internal {
trustedToken.transferOwnership(owner);
if (totalContributedUnits == 0) {
// If no tokens were sold, transfer them back to the project team
trustedToken.safeTransfer(trustedVault.trustedWallet(), tokensForSale);
} else if (totalContributedUnits < minThresholdUnits) {
// If the minimum threshold wasn't reached, enable refunds
trustedVault.enableRefunds();
} else {
// Calculate the rate for the extra tokens (if the sale was sold out, it will be 0)
extraTokensPerUnit = tokensForSale.div(totalContributedUnits).sub(saleTokensPerUnit);
// Close the vault and transfer ownership to the owner of the sale
trustedVault.close();
trustedVault.transferOwnership(owner);
}
}
/// @dev a function to return the minimum of 3 values
function min256(uint256 x, uint256 y, uint256 z) internal pure returns (uint256) {
return Math.min256(x, Math.min256(y, z));
}
}
// File: contracts/FoamSale.sol
contract FoamSale is Sale {
address private constant FOAM_WALLET = 0x3061CFBAe69Bff0f933353cea20de6C89Ab16acc;
constructor()
Sale(
24000000, // Total sale cap (usd)
90, // Min contribution (usd)
1, // Min threshold (usd)
1000000000 * (10 ** 18), // Max tokens
0x8dAB5379f7979df2Fac963c69B66a25AcdaADbB7, // Whitelist Admin
FOAM_WALLET, // Wallet
1 ether, // Vault initial Wei
25000 ether, // Vault disbursement Wei
0, // Vault disbursement duration (0 means transfer everything right away)
1532803878, // Start time
"FOAM Token", // Token name
"FOAM", // Token symbol
18, // Token decimals
EthPriceFeedI(0x54bF24e1070784D7F0760095932b47CE55eb3A91) // Eth price feed
)
public
{
// Team Wallet
setupDisbursement(FOAM_WALLET, 700000000 * (10 ** 18), 1 hours);
}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"byzantium","compilationTarget":{"FoamSale.sol":"FoamSale"}}
Contract ABI
[{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes32","name":""}],"name":"states","inputs":[{"type":"uint256","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"tokensForSale","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"transferAllowed","inputs":[{"type":"address","name":"_from"},{"type":"address","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"minContributionUnits","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"trustedVault","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"invalidHash","inputs":[{"type":"bytes32","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"totalContributedUnits","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"getStateStartTime","inputs":[{"type":"bytes32","name":"_stateId"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"totalSaleCapUnits","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"endSale","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"invalidateHash","inputs":[{"type":"bytes32","name":"_hash"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"whitelistAdmin","inputs":[],"constant":true},{"type":"function","stateMutability":"payable","payable":true,"outputs":[],"name":"contribute","inputs":[{"type":"address","name":"_contributor"},{"type":"uint256","name":"_contributionLimitUnits"},{"type":"uint256","name":"_payloadExpiration"},{"type":"bytes","name":"_sig"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"renounceOwnership","inputs":[],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"disbursementHandler","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"minThresholdUnits","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"enableRefunds","inputs":[],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"owner","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"changeAdmin","inputs":[{"type":"address","name":"_admin"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"changeEthPriceFeed","inputs":[{"type":"address","name":"_ethPriceFeed"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"unitContributions","inputs":[{"type":"address","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"ethPriceFeed","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setup","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setEndTime","inputs":[{"type":"uint256","name":"_endTime"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"allocateExtraTokens","inputs":[{"type":"address","name":"_contributor"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"saleTokensPerUnit","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"extraTokensAllocated","inputs":[{"type":"address","name":""}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"conditionalTransitions","inputs":[],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes32","name":""}],"name":"getCurrentStateId","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"trustedToken","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"checkWhitelisted","inputs":[{"type":"bytes32","name":"_rawHash"},{"type":"bytes","name":"_sig"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"extraTokensPerUnit","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"invalidateHashes","inputs":[{"type":"bytes32[]","name":"_hashes"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"_newOwner"}],"constant":false},{"type":"constructor","stateMutability":"nonpayable","payable":false,"inputs":[]},{"type":"event","name":"Contribution","inputs":[{"type":"address","name":"contributor","indexed":true},{"type":"address","name":"sender","indexed":true},{"type":"uint256","name":"valueUnit","indexed":false},{"type":"uint256","name":"valueWei","indexed":false},{"type":"uint256","name":"excessWei","indexed":false},{"type":"uint256","name":"weiPerUnitRate","indexed":false}],"anonymous":false},{"type":"event","name":"EthPriceFeedChanged","inputs":[{"type":"address","name":"previousEthPriceFeed","indexed":false},{"type":"address","name":"newEthPriceFeed","indexed":false}],"anonymous":false},{"type":"event","name":"TokensAllocated","inputs":[{"type":"address","name":"contributor","indexed":true},{"type":"uint256","name":"tokenAmount","indexed":false}],"anonymous":false},{"type":"event","name":"StateStartTimeSet","inputs":[{"type":"bytes32","name":"_stateId","indexed":true},{"type":"uint256","name":"_startTime","indexed":false}],"anonymous":false},{"type":"event","name":"Transition","inputs":[{"type":"bytes32","name":"stateId","indexed":false},{"type":"uint256","name":"blockNumber","indexed":false}],"anonymous":false},{"type":"event","name":"AdminUpdated","inputs":[{"type":"address","name":"newAdmin","indexed":true}],"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}]
Contract Creation Code
0x6101006040527f736574757000000000000000000000000000000000000000000000000000000060809081527f667265657a65000000000000000000000000000000000000000000000000000060a0527f73616c65496e50726f677265737300000000000000000000000000000000000060c0527f73616c65456e646564000000000000000000000000000000000000000000000060e052620000a790600690600462000f9e565b506000600a55348015620000ba57600080fd5b50604080518082018252600a81527f464f414d20546f6b656e000000000000000000000000000000000000000000006020808301919091528251808401909352600483527f464f414d000000000000000000000000000000000000000000000000000000009083015260008054600160a060020a03199081163317825560018054738dab5379f7979df2fac963c69b66a25acdaadbb792168217815563016e360094605a9491936b033b2e3c9fd0803ce80000009392733061cfbae69bff0f933353cea20de6c89ab16acc92670de0b6b3a76400009269054b40b1f852bda00000929091635b5cbb26919060127354bf24e1070784d7f0760095932b47ce55eb3a91428511620001c957600080fd5b600b8e9055600c8d9055600d8c90558a848484620001e662000ff0565b84815260ff82166060820152608060208083018281528651928401929092528551604084019160a08501919088019080838360005b83811015620002355781810151838201526020016200021b565b50505050905090810190601f168015620002635780820380516001836020036101000a031916815260200191505b50838103825285518152855160209182019187019080838360005b83811015620002985781810151838201526020016200027e565b50505050905090810190601f168015620002c65780820380516001836020036101000a031916815260200191505b509650505050505050604051809103906000f080158015620002ec573d6000803e3d6000fd5b5060118054600160a060020a031916600160a060020a039283161790819055166200031662001001565b600160a060020a03909116815260405190819003602001906000f08015801562000344573d6000803e3d6000fd5b5060098054600160a060020a0319908116600160a060020a039384161790915560138054909116838316179055601154604080517f92eefe9b000000000000000000000000000000000000000000000000000000008152306004820152905191909216916392eefe9b91602480830192600092919082900301818387803b158015620003cf57600080fd5b505af1158015620003e4573d6000803e3d6000fd5b5050505088888888620003f662001012565b600160a060020a039094168452602084019290925260408084019190915260608301919091525190819003608001906000f0801580156200043b573d6000803e3d6000fd5b50601260006101000a815481600160a060020a030219169083600160a060020a03160217905550620004cf6006805480602002602001604051908101604052809291908181526020018280548015620004b557602002820191906000526020600020905b815481526001909101906020018083116200049f575b5050505050620007e8640100000000026401000000009004565b620005247f73657475700000000000000000000000000000000000000000000000000000007fba0bba400000000000000000000000000000000000000000000000000000000064010000000062000911810204565b620005797f667265657a6500000000000000000000000000000000000000000000000000007fccb98ffc0000000000000000000000000000000000000000000000000000000064010000000062000911810204565b620005ce7f73616c65496e50726f67726573730000000000000000000000000000000000007fccb98ffc0000000000000000000000000000000000000000000000000000000064010000000062000911810204565b620006237f73616c65496e50726f67726573730000000000000000000000000000000000007f58bafdbc0000000000000000000000000000000000000000000000000000000064010000000062000911810204565b620006787f73616c65496e50726f67726573730000000000000000000000000000000000007f380d831b0000000000000000000000000000000000000000000000000000000064010000000062000911810204565b620006cd7f73616c65456e64656400000000000000000000000000000000000000000000007fd1d566cf0000000000000000000000000000000000000000000000000000000064010000000062000911810204565b620007177f73616c65456e646564000000000000000000000000000000000000000000000062000960640100000000026200185f176200096c640100000000026401000000009004565b6200074c7f73616c65496e50726f677265737300000000000000000000000000000000000086640100000000620009b9810204565b620007967f73616c65456e646564000000000000000000000000000000000000000000000062000a51640100000000026200186b1762000d76640100000000026401000000009004565b5050505050505050505050505050620007e2733061cfbae69bff0f933353cea20de6c89ab16acc6b024306c4097859c43c000000610e1062000dc4640100000000026401000000009004565b62001043565b6000808251111515620007fa57600080fd5b600454156200080857600080fd5b8160008151811015156200081857fe5b6020908102909101015115156200082e57600080fd5b8160008151811015156200083e57fe5b602090810290910101516004555060015b81518110156200090d5781818151811015156200086857fe5b6020908102909101015115156200087e57600080fd5b81818151811015156200088d57fe5b90602001906020020151600360008460018503815181101515620008ad57fe5b60209081029091018101518252810191909152604001600090812091909155825160039190849084908110620008df57fe5b6020908102909101810151825281019190915260400160002054156200090457600080fd5b6001016200084f565b5050565b60009182526003602090815260408084207fffffffff0000000000000000000000000000000000000000000000000000000090931684526001928301909152909120805460ff19169091179055565b50600a54600b54111590565b6000918252600360208181526040842082018054600181018255908552932060048404018054939091166008026101000a6001604060020a03818102199094169290931692909202179055565b428111620009c657600080fd5b600082815260056020526040902054151562000a065762000a068262000e9064010000000002620017fc176200096c640100000000026401000000009004565b6000828152600560209081526040918290208390558151838152915184927f9f976d9bff84df26aa98d2a3a52ea3de3e05dc94cdf1962c3d6d33fa8f03f69192908290030190a25050565b60115460008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051919093169263f2fde38b92602480830193919282900301818387803b15801562000aba57600080fd5b505af115801562000acf573d6000803e3d6000fd5b50505050600a546000141562000b9b57601254604080517f570d2f8f000000000000000000000000000000000000000000000000000000008152905162000b9592600160a060020a03169163570d2f8f9160048083019260209291908290030181600087803b15801562000b4257600080fd5b505af115801562000b57573d6000803e3d6000fd5b505050506040513d602081101562000b6e57600080fd5b5051601054601154600160a060020a031691906401000000006200154462000ea582021704565b62000d74565b600d54600a54101562000c3457601260009054906101000a9004600160a060020a0316600160a060020a0316638c52dc416040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801562000c1557600080fd5b505af115801562000c2a573d6000803e3d6000fd5b5050505062000d74565b62000c77600e5462000c62600a5460105462000f6164010000000002620014e4179091906401000000009004565b90640100000000620014d262000f7782021704565b600f55601254604080517f43d726d60000000000000000000000000000000000000000000000000000000081529051600160a060020a03909216916343d726d69160048082019260009290919082900301818387803b15801562000cda57600080fd5b505af115801562000cef573d6000803e3d6000fd5b505060125460008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152905191909316945063f2fde38b935060248084019382900301818387803b15801562000d5a57600080fd5b505af115801562000d6f573d6000803e3d6000fd5b505050505b565b600091825260036020818152604084206002018054600181018255908552932060048404018054939091166008026101000a6001604060020a03818102199094169290931692909202179055565b6010541562000dd257600080fd5b600954600160a060020a031663763ffcec848462000dff42866401000000006200150e62000f8a82021704565b6040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a031681526020018381526020018281526020019350505050600060405180830381600087803b15801562000e7257600080fd5b505af115801562000e87573d6000803e3d6000fd5b50505050505050565b60009081526005602052604090205442101590565b82600160a060020a031663a9059cbb83836040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801562000f2257600080fd5b505af115801562000f37573d6000803e3d6000fd5b505050506040513d602081101562000f4e57600080fd5b5051151562000f5c57600080fd5b505050565b6000818381151562000f6f57fe5b049392505050565b60008282111562000f8457fe5b50900390565b8181018281101562000f9857fe5b92915050565b82805482825590600052602060002090810192821562000fde579160200282015b8281111562000fde578251825560209092019160019091019062000fbf565b5062000fec92915062001023565b5090565b604051610e128062002ba883390190565b6040516106a680620039ba83390190565b604051610a28806200406083390190565b6200104091905b8082111562000fec57600081556001016200102a565b90565b611b5580620010536000396000f3006080604052600436106101925763ffffffff60e060020a600035041663017a9105811461019757806312aef8c3146101c1578063214e52ca146101d6578063274faa9f14610211578063279fdf6d14610226578063311adc751461025757806332484dab1461026f57806332cd724a1461028457806337d486281461029c578063380d831b146102b157806345af7ceb146102c85780634adbe551146102e057806358bafdbc146102f5578063715018a61461031d5780637467bc9214610332578063762549e0146103475780638c52dc411461035c5780638da5cb5b146103715780638f2839701461038657806395550181146103a75780639918fce1146103c8578063af7665ce146103e9578063ba0bba40146103fe578063ccb98ffc14610413578063d1d566cf1461042b578063d30e268b1461044c578063d3682d5714610461578063d525aa3214610482578063de4138de14610497578063e3386a98146104ac578063eac5a89d146104c1578063eced6c571461051f578063edacfd2514610534578063f2fde38b14610554575b600080fd5b3480156101a357600080fd5b506101af600435610575565b60408051918252519081900360200190f35b3480156101cd57600080fd5b506101af610594565b3480156101e257600080fd5b506101fd600160a060020a036004358116906024351661059a565b604080519115158252519081900360200190f35b34801561021d57600080fd5b506101af6105c9565b34801561023257600080fd5b5061023b6105cf565b60408051600160a060020a039092168252519081900360200190f35b34801561026357600080fd5b506101fd6004356105de565b34801561027b57600080fd5b506101af6105f3565b34801561029057600080fd5b506101af6004356105f9565b3480156102a857600080fd5b506101af61060b565b3480156102bd57600080fd5b506102c6610611565b005b3480156102d457600080fd5b506102c6600435610673565b3480156102ec57600080fd5b5061023b6106a5565b6102c660048035600160a060020a0316906024803591604435916064359081019101356106b4565b34801561032957600080fd5b506102c6610c33565b34801561033e57600080fd5b5061023b610c9f565b34801561035357600080fd5b506101af610cae565b34801561036857600080fd5b506102c6610cb4565b34801561037d57600080fd5b5061023b610d38565b34801561039257600080fd5b506102c6600160a060020a0360043516610d47565b3480156103b357600080fd5b506102c6600160a060020a0360043516610dd8565b3480156103d457600080fd5b506101af600160a060020a0360043516610e7b565b3480156103f557600080fd5b5061023b610e8d565b34801561040a57600080fd5b506102c6610e9c565b34801561041f57600080fd5b506102c6600435611062565b34801561043757600080fd5b506102c6600160a060020a0360043516611126565b34801561045857600080fd5b506101af611267565b34801561046d57600080fd5b506101fd600160a060020a036004351661126d565b34801561048e57600080fd5b506102c6611282565b3480156104a357600080fd5b506101af611333565b3480156104b857600080fd5b5061023b611339565b3480156104cd57600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526101fd9583359536956044949193909101919081908401838280828437509497506113489650505050505050565b34801561052b57600080fd5b506101af61139b565b34801561054057600080fd5b506102c660048035602481019101356113a1565b34801561056057600080fd5b506102c6600160a060020a0360043516611409565b600680548290811061058357fe5b600091825260209091200154905081565b60105481565b6000600160a060020a0383163014806105c05750600954600160a060020a038481169116145b90505b92915050565b600c5481565b601254600160a060020a031681565b60026020526000908152604090205460ff1681565b600a5481565b60009081526005602052604090205490565b600b5481565b600054600160a060020a0316331461062857600080fd5b610630611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff16151561066957600080fd5b610671611429565b565b600154600160a060020a0316331461068a57600080fd5b6000908152600260205260409020805460ff19166001179055565b600154600160a060020a031681565b6000806000806000806106c5611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff1615156106fe57600080fd5b8a8a8a6040516020018084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182815260200193505050506040516020818303038152906040526040518082805190602001908083835b6020831061077e5780518252601f19909201916020918201910161075f565b51815160209384036101000a600019018019909216911617905260408051929094018290038220601f8e018290048202830182019094528c825292945092508b918b9150819084018382808284378201915050505050506107df8282611348565b15156107ea57600080fd5b33600160a060020a038e16146107ff57600080fd5b428b1161080b57600080fd5b601360009054906101000a9004600160a060020a0316600160a060020a031663679aefce6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561085e57600080fd5b505af1158015610872573d6000803e3d6000fd5b505050506040513d602081101561088857600080fd5b5051975087151561089857600080fd5b600160a060020a038d1660009081526007602052604090205496506108f06108c68d8963ffffffff6114d216565b600a54600b546108db9163ffffffff6114d216565b6108eb348c63ffffffff6114e416565b6114f9565b95508515156108fe57600080fd5b600c548610158061090e57508615155b151561091957600080fd5b610929878763ffffffff61150e16565b600160a060020a038e16600090815260076020526040902055600a54610955908763ffffffff61150e16565b600a55610968868963ffffffff61151b16565b601254604080517ff340fa010000000000000000000000000000000000000000000000000000000081523360048201529051929750600160a060020a039091169163f340fa01918891602480830192600092919082900301818588803b1580156109d157600080fd5b505af11580156109e5573d6000803e3d6000fd5b5050505050600d54600a5410158015610a935750601254604080517fc19d93fb0000000000000000000000000000000000000000000000000000000081529051600192600160a060020a03169163c19d93fb9160048083019260209291908290030181600087803b158015610a5957600080fd5b505af1158015610a6d573d6000803e3d6000fd5b505050506040513d6020811015610a8357600080fd5b50516003811115610a9057fe5b14155b15610b0457601260009054906101000a9004600160a060020a0316600160a060020a0316635eabe01e6040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015610aeb57600080fd5b505af1158015610aff573d6000803e3d6000fd5b505050505b610b14348663ffffffff6114d216565b93506000841115610b4e57604051339085156108fc029086906000818181858888f19350505050158015610b4c573d6000803e3d6000fd5b505b33600160a060020a03168d600160a060020a03167f33c94e4dd1355f388bbb4eb66a186d239a2d28bdf73cec6aa187de58a2ce17908888888d6040518085815260200184815260200183815260200182815260200194505050505060405180910390a3600e54610bc590879063ffffffff61151b16565b601154909350610be590600160a060020a03168e8563ffffffff61154416565b604080518481529051600160a060020a038f16917f3b87361b8a201c697d51aaa7a509f6dfb3870db9e5c5501d22d3e9fae858f725919081900360200190a250505050505050505050505050565b600054600160a060020a03163314610c4a57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600954600160a060020a031681565b600d5481565b600054600160a060020a03163314610ccb57600080fd5b601260009054906101000a9004600160a060020a0316600160a060020a0316638c52dc416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015610d1e57600080fd5b505af1158015610d32573d6000803e3d6000fd5b50505050565b600054600160a060020a031681565b600054600160a060020a03163314610d5e57600080fd5b80600160a060020a0381161515610d7457600080fd5b604051600160a060020a038316907f54e4612788f90384e6843298d7854436f3a585b2c3831ab66abf1de63bfa6c2d90600090a2506001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a03163314610def57600080fd5b600160a060020a0381161515610e0457600080fd5b60135460408051600160a060020a039283168152918316602083015280517ff41566bf3d02128644efdd2a51c6b4f47c28543bea4096d8c6d1526311cd2f6b9281900390910190a16013805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60076020526000908152604090205481565b601354600160a060020a031681565b600054600160a060020a03163314610eb357600080fd5b610ebb611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff161515610ef457600080fd5b600954604080517f1a39d8ef0000000000000000000000000000000000000000000000000000000081529051610f9d92600160a060020a0316918291631a39d8ef916004808201926020929091908290030181600087803b158015610f5857600080fd5b505af1158015610f6c573d6000803e3d6000fd5b505050506040513d6020811015610f8257600080fd5b5051601154600160a060020a0316919063ffffffff61154416565b601154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a03909216916370a08231916024808201926020929091908290030181600087803b15801561100357600080fd5b505af1158015611017573d6000803e3d6000fd5b505050506040513d602081101561102d57600080fd5b50516010819055600b54111561104257600080fd5b600b546010546110579163ffffffff6114e416565b600e55610671611429565b600054600160a060020a0316331461107957600080fd5b611081611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff1615156110ba57600080fd5b4281116110c657600080fd5b6110ef7f73616c65456e64656400000000000000000000000000000000000000000000006105f9565b156110f957600080fd5b6111237f73616c65456e6465640000000000000000000000000000000000000000000000826115de565b50565b6000611130611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff16151561116957600080fd5b600160a060020a03821660009081526008602052604090205460ff161561118f57600080fd5b600160a060020a03821660009081526007602052604090205415156111b357600080fd5b600b54600a54106111c357600080fd5b600160a060020a0382166000908152600860209081526040808320805460ff19166001179055600f546007909252909120546112049163ffffffff61151b16565b60115490915061122490600160a060020a0316838363ffffffff61154416565b604080518281529051600160a060020a038416917f3b87361b8a201c697d51aaa7a509f6dfb3870db9e5c5501d22d3e9fae858f725919081900360200190a25050565b600e5481565b60086020526000908152604090205460ff1681565b60008060005b5050600454600090815260036020526040812054909150815b60008281526003602081905260409091200154811015611323576000828152600360208190526040909120018054611305918491849081106112df57fe5b6000918252602090912060048204015460039091166008026101000a900463ffffffff16565b1561131b57611312611429565b60019250611323565b6001016112a1565b821561132e57611288565b505050565b60045490565b601154600160a060020a031681565b60008061135484611656565b60008581526002602052604090205490915060ff161580156113935750611381818463ffffffff61169416565b600154600160a060020a039081169116145b949350505050565b600f5481565b600154600090600160a060020a031633146113bb57600080fd5b5060005b8181101561132e576001600260008585858181106113d957fe5b60209081029290920135835250810191909152604001600020805460ff19169115159190911790556001016113bf565b600054600160a060020a0316331461142057600080fd5b61112381611769565b6004546000908152600360205260408120549081151561144857600080fd5b50600481905560005b600082815260036020526040902060020154811015611494576000828152600360205260409020600201805461148c9190839081106112df57fe5b600101611451565b6040805183815243602082015281517fc9eebb3cf39ebcc16f7db0bac8f0e44d050159a092bc2d96fb613c7b142c1264929181900390910190a15050565b6000828211156114de57fe5b50900390565b600081838115156114f157fe5b049392505050565b60006113938461150985856117e6565b6117e6565b818101828110156105c357fe5b600082151561152c575060006105c3565b5081810281838281151561153c57fe5b04146105c357fe5b82600160a060020a031663a9059cbb83836040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156115a757600080fd5b505af11580156115bb573d6000803e3d6000fd5b505050506040513d60208110156115d157600080fd5b5051151561132e57600080fd5b4281116115ea57600080fd5b600082815260056020526040902054151561160b5761160b826117fc611811565b6000828152600560209081526040918290208390558151838152915184927f9f976d9bff84df26aa98d2a3a52ea3de3e05dc94cdf1962c3d6d33fa8f03f69192908290030190a25050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c8101839052905190819003603c019020919050565b600080600080845160411415156116ae5760009350611760565b50505060208201516040830151606084015160001a601b60ff821610156116d357601b015b8060ff16601b141580156116eb57508060ff16601c14155b156116f95760009350611760565b60408051600080825260208083018085528a905260ff8516838501526060830187905260808301869052925160019360a0808501949193601f19840193928390039091019190865af1158015611753573d6000803e3d6000fd5b5050506020604051035193505b50505092915050565b600160a060020a038116151561177e57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008183106117f557816105c0565b5090919050565b60009081526005602052604090205442101590565b6000918252600360208181526040842082018054600181018255908552932060048404018054939091166008026101000a67ffffffffffffffff818102199094169290931692909202179055565b50600a54600b54111590565b60115460008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051919093169263f2fde38b92602480830193919282900301818387803b1580156118d357600080fd5b505af11580156118e7573d6000803e3d6000fd5b50505050600a54600014156119a457601254604080517f570d2f8f000000000000000000000000000000000000000000000000000000008152905161199f92600160a060020a03169163570d2f8f9160048083019260209291908290030181600087803b15801561195757600080fd5b505af115801561196b573d6000803e3d6000fd5b505050506040513d602081101561198157600080fd5b5051601054601154600160a060020a0316919063ffffffff61154416565b610671565b600d54600a541015611a2057601260009054906101000a9004600160a060020a0316600160a060020a0316638c52dc416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611a0357600080fd5b505af1158015611a17573d6000803e3d6000fd5b50505050610671565b611a49600e54611a3d600a546010546114e490919063ffffffff16565b9063ffffffff6114d216565b600f55601254604080517f43d726d60000000000000000000000000000000000000000000000000000000081529051600160a060020a03909216916343d726d69160048082019260009290919082900301818387803b158015611aab57600080fd5b505af1158015611abf573d6000803e3d6000fd5b505060125460008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152905191909316945063f2fde38b935060248084019382900301818387803b158015610d1e57600080fd00a165627a7a7230582043d8a5fe9f808c81b195d348c3d6d9203841447d8f000ac45e19824d01821f650029608060405234801561001057600080fd5b50604051610e12380380610e12833981016040908152815160208084015192840151606085015160008054600160a060020a03191633179055938501805193959094910192909184918491849161006d91600591908601906100f9565b5081516100819060069060208501906100f9565b506007805460ff191660ff9290921691909117905550508315156100a457600080fd5b6002849055336000818152600160209081526040808320889055805188815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350505050610194565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061013a57805160ff1916838001178555610167565b82800160010185558215610167579182015b8281111561016757825182559160200191906001019061014c565b50610173929150610177565b5090565b61019191905b80821115610173576000815560010161017d565b90565b610c6f806101a36000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac57806323b872dd146101d3578063313ce567146101fd578063661884631461022857806370a082311461024c578063715018a61461026d5780638da5cb5b1461028457806392eefe9b146102b557806395d89b41146102d6578063a9059cbb146102eb578063d73dd6231461030f578063dd62ed3e14610333578063f2fde38b1461035a578063f77c47911461037b575b600080fd5b3480156100f657600080fd5b506100ff610390565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a036004351660243561041e565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c1610484565b60408051918252519081900360200190f35b3480156101df57600080fd5b50610198600160a060020a036004358116906024351660443561048a565b34801561020957600080fd5b5061021261054e565b6040805160ff9092168252519081900360200190f35b34801561023457600080fd5b50610198600160a060020a0360043516602435610557565b34801561025857600080fd5b506101c1600160a060020a0360043516610647565b34801561027957600080fd5b50610282610662565b005b34801561029057600080fd5b506102996106ce565b60408051600160a060020a039092168252519081900360200190f35b3480156102c157600080fd5b50610282600160a060020a03600435166106dd565b3480156102e257600080fd5b506100ff610738565b3480156102f757600080fd5b50610198600160a060020a0360043516602435610793565b34801561031b57600080fd5b50610198600160a060020a036004351660243561084f565b34801561033f57600080fd5b506101c1600160a060020a03600435811690602435166108e8565b34801561036657600080fd5b50610282600160a060020a0360043516610913565b34801561038757600080fd5b50610299610936565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104165780601f106103eb57610100808354040283529160200191610416565b820191906000526020600020905b8154815290600101906020018083116103f957829003601f168201915b505050505081565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025490565b60048054604080517f214e52ca000000000000000000000000000000000000000000000000000000008152600160a060020a0380881694820194909452838616602482015290516000938793879391169163214e52ca9160448082019260209290919082900301818987803b15801561050257600080fd5b505af1158015610516573d6000803e3d6000fd5b505050506040513d602081101561052c57600080fd5b5051151561053957600080fd5b610544868686610945565b9695505050505050565b60075460ff1681565b336000908152600360209081526040808320600160a060020a0386168452909152812054808311156105ac57336000908152600360209081526040808320600160a060020a03881684529091528120556105e1565b6105bc818463ffffffff610abe16565b336000908152600360209081526040808320600160a060020a03891684529091529020555b336000818152600360209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a031660009081526001602052604090205490565b600054600160a060020a0316331461067957600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a031633146106f457600080fd5b600160a060020a038116151561070957600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104165780601f106103eb57610100808354040283529160200191610416565b60048054604080517f214e52ca00000000000000000000000000000000000000000000000000000000815233938101849052600160a060020a0380871660248301529151600094938793169163214e52ca91604480830192602092919082900301818987803b15801561080557600080fd5b505af1158015610819573d6000803e3d6000fd5b505050506040513d602081101561082f57600080fd5b5051151561083c57600080fd5b6108468585610ad0565b95945050505050565b336000908152600360209081526040808320600160a060020a0386168452909152812054610883908363ffffffff610bb316565b336000818152600360209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600054600160a060020a0316331461092a57600080fd5b61093381610bc6565b50565b600454600160a060020a031681565b6000600160a060020a038316151561095c57600080fd5b600160a060020a03841660009081526001602052604090205482111561098157600080fd5b600160a060020a03841660009081526003602090815260408083203384529091529020548211156109b157600080fd5b600160a060020a0384166000908152600160205260409020546109da908363ffffffff610abe16565b600160a060020a038086166000908152600160205260408082209390935590851681522054610a0f908363ffffffff610bb316565b600160a060020a038085166000908152600160209081526040808320949094559187168152600382528281203382529091522054610a53908363ffffffff610abe16565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b600082821115610aca57fe5b50900390565b6000600160a060020a0383161515610ae757600080fd5b33600090815260016020526040902054821115610b0357600080fd5b33600090815260016020526040902054610b23908363ffffffff610abe16565b3360009081526001602052604080822092909255600160a060020a03851681522054610b55908363ffffffff610bb316565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b81810182811015610bc057fe5b92915050565b600160a060020a0381161515610bdb57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058205a5ba26a9e59b08cf8f9dcd32b897620fc37f8337a8ea608b1a1fa9b799d25ce0029608060405234801561001057600080fd5b506040516020806106a6833981016040525160008054600160a060020a03191633179055600160a060020a038116151561004957600080fd5b60018054600160a060020a031916600160a060020a039290921691909117905561062e806100786000396000f30060806040526004361061008d5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631a39d8ef8114610092578063715018a6146100b9578063763ffcec146100d05780637a153043146100f75780638da5cb5b14610134578063f2fde38b14610165578063f3fef3a314610186578063fc0c546a146101aa575b600080fd5b34801561009e57600080fd5b506100a76101bf565b60408051918252519081900360200190f35b3480156100c557600080fd5b506100ce6101c5565b005b3480156100dc57600080fd5b506100ce600160a060020a0360043516602435604435610231565b34801561010357600080fd5b5061011b600160a060020a0360043516602435610301565b6040805192835260208301919091528051918290030190f35b34801561014057600080fd5b5061014961033c565b60408051600160a060020a039092168252519081900360200190f35b34801561017157600080fd5b506100ce600160a060020a036004351661034b565b34801561019257600080fd5b506100ce600160a060020a036004351660243561036e565b3480156101b657600080fd5b50610149610494565b60025481565b600054600160a060020a031633146101dc57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a0316331461024857600080fd5b42811161025457600080fd5b600160a060020a0383166000908152600360209081526040808320815180830190925284825281830186815281546001818101845592865293909420915160029384029092019182559251920191909155546102b6908363ffffffff6104a316565b60025560408051828152602081018490528151600160a060020a038616927f15087515acbc5612451a1ed3cc851df9e689d4bcb63c8278a680bcb6293dffdf928290030190a2505050565b60036020528160005260406000208181548110151561031c57fe5b600091825260209091206002909102018054600190910154909250905082565b600054600160a060020a031681565b600054600160a060020a0316331461036257600080fd5b61036b816104b6565b50565b60006103786105eb565b600160a060020a0384166000908152600360205260409020805490925083106103a057600080fd5b81838154811015156103ae57fe5b90600052602060002090600202016040805190810160405290816000820154815260200160018201548152505090504281600001511080156103f4575060008160200151115b15156103ff57600080fd5b818381548110151561040d57fe5b600091825260208083206002909202909101828155600190810192909255820151905461044d91600160a060020a0390911690869063ffffffff61053316565b6020808201516040805191825251600160a060020a038716927f6352c5382c4a4578e712449ca65e83cdb392d045dfcf1cad9615189db2da244b928290030190a250505050565b600154600160a060020a031681565b818101828110156104b057fe5b92915050565b600160a060020a03811615156104cb57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b82600160a060020a031663a9059cbb83836040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156105af57600080fd5b505af11580156105c3573d6000803e3d6000fd5b505050506040513d60208110156105d957600080fd5b505115156105e657600080fd5b505050565b6040805180820190915260008082526020820152905600a165627a7a723058205734aa003473f44179e57607bb374b79c27d35784b7941267a768159aabdcf700029608060405234801561001057600080fd5b50604051608080610a28833981016040908152815160208301519183015160609093015160008054600160a060020a03191633179055909290600160a060020a038416151561005e57600080fd5b81151561006a57600080fd5b60058054600160a060020a031916600160a060020a039590951694909417909355600691909155600355600455600a805460ff19169055610978806100b06000396000f3006080604052600436106101065763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663117d94f5811461010b57806343d726d6146101225780635495794b14610137578063570d2f8f1461015e5780635eabe01e1461018f57806362469353146101a45780636bb3130e146101b9578063715018a6146101ce5780637872e3da146101e35780638c52dc41146101f85780638da5cb5b1461020d578063b2401e1e14610222578063bf89662d14610237578063c19d93fb1461024c578063cb13cddb14610285578063f2fde38b146102a6578063f340fa01146102c7578063fa89401a146102db578063ff50abdc146102fc575b600080fd5b34801561011757600080fd5b50610120610311565b005b34801561012e57600080fd5b5061012061040d565b34801561014357600080fd5b5061014c61047f565b60408051918252519081900360200190f35b34801561016a57600080fd5b50610173610485565b60408051600160a060020a039092168252519081900360200190f35b34801561019b57600080fd5b50610120610494565b3480156101b057600080fd5b5061014c6104e5565b3480156101c557600080fd5b5061014c6104eb565b3480156101da57600080fd5b506101206104f1565b3480156101ef57600080fd5b5061014c61055d565b34801561020457600080fd5b50610120610563565b34801561021957600080fd5b506101736105ed565b34801561022e57600080fd5b5061014c6105fc565b34801561024357600080fd5b5061014c610602565b34801561025857600080fd5b50610261610608565b6040518082600381111561027157fe5b60ff16815260200191505060405180910390f35b34801561029157600080fd5b5061014c600160a060020a0360043516610611565b3480156102b257600080fd5b50610120600160a060020a0360043516610623565b610120600160a060020a0360043516610643565b3480156102e757600080fd5b50610120600160a060020a03600435166106fd565b34801561030857600080fd5b5061014c610802565b6000600380600a5460ff16600381111561032757fe5b1461033157600080fd5b60075442101561034057600080fd5b600454151561038957600554604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015610383573d6000803e3d6000fd5b50610409565b6103c160016103b56004546103a96007544261080890919063ffffffff16565b9063ffffffff61081f16565b9063ffffffff61083416565b91506103ea6103db8360045461084190919063ffffffff16565b6007549063ffffffff61083416565b60075560035461040990610404908463ffffffff61084116565b61086a565b5050565b600180600a5460ff16600381111561042157fe5b1461042b57600080fd5b600054600160a060020a0316331461044257600080fd5b600a805460ff19166003179055426007556040517f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a90600090a150565b60065481565b600554600160a060020a031681565b600054600160a060020a031633146104ab57600080fd5b600080600a5460ff1660038111156104bf57fe5b146104c957600080fd5b600a805460ff191660011790556006546104e29061086a565b50565b60015481565b60035481565b600054600160a060020a0316331461050857600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60045481565b60008054600160a060020a0316331461057b57600080fd5b6002600a5460ff16600381111561058e57fe5b141561059957600080fd5b50600a805460ff191660021790556008543031908111156105bc576008546105be565b805b6009556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a150565b600054600160a060020a031681565b60075481565b60095481565b600a5460ff1681565b60026020526000908152604090205481565b600054600160a060020a0316331461063a57600080fd5b6104e2816108b7565b600054600160a060020a0316331461065a57600080fd5b6000600a5460ff16600381111561066d57fe5b148061068957506001600a5460ff16600381111561068757fe5b145b151561069457600080fd5b60015415156106a257426001555b6008546106b5903463ffffffff61083416565b600855600160a060020a0381166000908152600260205260409020546106e1903463ffffffff61083416565b600160a060020a03909116600090815260026020526040902055565b6000600280600a5460ff16600381111561071357fe5b1461071d57600080fd5b600160a060020a0383166000908152600260205260408120541161074057600080fd5b600854600954600160a060020a03851660009081526002602052604090205461077492916103a9919063ffffffff61084116565b600160a060020a03841660008181526002602052604080822082905551929450909184156108fc0291859190818181858888f193505050501580156107bd573d6000803e3d6000fd5b50604080518381529051600160a060020a038516917fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d0651919081900360200190a2505050565b60085481565b60008282111561081457fe5b508082035b92915050565b6000818381151561082c57fe5b049392505050565b8181018281101561081957fe5b600082151561085257506000610819565b5081810281838281151561086257fe5b041461081957fe5b6000610877823031610934565b600554604051919250600160a060020a03169082156108fc029083906000818181858888f193505050501580156108b2573d6000803e3d6000fd5b505050565b600160a060020a03811615156108cc57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008183106109435781610945565b825b93925050505600a165627a7a72305820beacdcdd4a9f6d152a02bf673775aafd61470a001987c7e12b49f7704e87c7540029
Deployed ByteCode
0x6080604052600436106101925763ffffffff60e060020a600035041663017a9105811461019757806312aef8c3146101c1578063214e52ca146101d6578063274faa9f14610211578063279fdf6d14610226578063311adc751461025757806332484dab1461026f57806332cd724a1461028457806337d486281461029c578063380d831b146102b157806345af7ceb146102c85780634adbe551146102e057806358bafdbc146102f5578063715018a61461031d5780637467bc9214610332578063762549e0146103475780638c52dc411461035c5780638da5cb5b146103715780638f2839701461038657806395550181146103a75780639918fce1146103c8578063af7665ce146103e9578063ba0bba40146103fe578063ccb98ffc14610413578063d1d566cf1461042b578063d30e268b1461044c578063d3682d5714610461578063d525aa3214610482578063de4138de14610497578063e3386a98146104ac578063eac5a89d146104c1578063eced6c571461051f578063edacfd2514610534578063f2fde38b14610554575b600080fd5b3480156101a357600080fd5b506101af600435610575565b60408051918252519081900360200190f35b3480156101cd57600080fd5b506101af610594565b3480156101e257600080fd5b506101fd600160a060020a036004358116906024351661059a565b604080519115158252519081900360200190f35b34801561021d57600080fd5b506101af6105c9565b34801561023257600080fd5b5061023b6105cf565b60408051600160a060020a039092168252519081900360200190f35b34801561026357600080fd5b506101fd6004356105de565b34801561027b57600080fd5b506101af6105f3565b34801561029057600080fd5b506101af6004356105f9565b3480156102a857600080fd5b506101af61060b565b3480156102bd57600080fd5b506102c6610611565b005b3480156102d457600080fd5b506102c6600435610673565b3480156102ec57600080fd5b5061023b6106a5565b6102c660048035600160a060020a0316906024803591604435916064359081019101356106b4565b34801561032957600080fd5b506102c6610c33565b34801561033e57600080fd5b5061023b610c9f565b34801561035357600080fd5b506101af610cae565b34801561036857600080fd5b506102c6610cb4565b34801561037d57600080fd5b5061023b610d38565b34801561039257600080fd5b506102c6600160a060020a0360043516610d47565b3480156103b357600080fd5b506102c6600160a060020a0360043516610dd8565b3480156103d457600080fd5b506101af600160a060020a0360043516610e7b565b3480156103f557600080fd5b5061023b610e8d565b34801561040a57600080fd5b506102c6610e9c565b34801561041f57600080fd5b506102c6600435611062565b34801561043757600080fd5b506102c6600160a060020a0360043516611126565b34801561045857600080fd5b506101af611267565b34801561046d57600080fd5b506101fd600160a060020a036004351661126d565b34801561048e57600080fd5b506102c6611282565b3480156104a357600080fd5b506101af611333565b3480156104b857600080fd5b5061023b611339565b3480156104cd57600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526101fd9583359536956044949193909101919081908401838280828437509497506113489650505050505050565b34801561052b57600080fd5b506101af61139b565b34801561054057600080fd5b506102c660048035602481019101356113a1565b34801561056057600080fd5b506102c6600160a060020a0360043516611409565b600680548290811061058357fe5b600091825260209091200154905081565b60105481565b6000600160a060020a0383163014806105c05750600954600160a060020a038481169116145b90505b92915050565b600c5481565b601254600160a060020a031681565b60026020526000908152604090205460ff1681565b600a5481565b60009081526005602052604090205490565b600b5481565b600054600160a060020a0316331461062857600080fd5b610630611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff16151561066957600080fd5b610671611429565b565b600154600160a060020a0316331461068a57600080fd5b6000908152600260205260409020805460ff19166001179055565b600154600160a060020a031681565b6000806000806000806106c5611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff1615156106fe57600080fd5b8a8a8a6040516020018084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182815260200193505050506040516020818303038152906040526040518082805190602001908083835b6020831061077e5780518252601f19909201916020918201910161075f565b51815160209384036101000a600019018019909216911617905260408051929094018290038220601f8e018290048202830182019094528c825292945092508b918b9150819084018382808284378201915050505050506107df8282611348565b15156107ea57600080fd5b33600160a060020a038e16146107ff57600080fd5b428b1161080b57600080fd5b601360009054906101000a9004600160a060020a0316600160a060020a031663679aefce6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561085e57600080fd5b505af1158015610872573d6000803e3d6000fd5b505050506040513d602081101561088857600080fd5b5051975087151561089857600080fd5b600160a060020a038d1660009081526007602052604090205496506108f06108c68d8963ffffffff6114d216565b600a54600b546108db9163ffffffff6114d216565b6108eb348c63ffffffff6114e416565b6114f9565b95508515156108fe57600080fd5b600c548610158061090e57508615155b151561091957600080fd5b610929878763ffffffff61150e16565b600160a060020a038e16600090815260076020526040902055600a54610955908763ffffffff61150e16565b600a55610968868963ffffffff61151b16565b601254604080517ff340fa010000000000000000000000000000000000000000000000000000000081523360048201529051929750600160a060020a039091169163f340fa01918891602480830192600092919082900301818588803b1580156109d157600080fd5b505af11580156109e5573d6000803e3d6000fd5b5050505050600d54600a5410158015610a935750601254604080517fc19d93fb0000000000000000000000000000000000000000000000000000000081529051600192600160a060020a03169163c19d93fb9160048083019260209291908290030181600087803b158015610a5957600080fd5b505af1158015610a6d573d6000803e3d6000fd5b505050506040513d6020811015610a8357600080fd5b50516003811115610a9057fe5b14155b15610b0457601260009054906101000a9004600160a060020a0316600160a060020a0316635eabe01e6040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015610aeb57600080fd5b505af1158015610aff573d6000803e3d6000fd5b505050505b610b14348663ffffffff6114d216565b93506000841115610b4e57604051339085156108fc029086906000818181858888f19350505050158015610b4c573d6000803e3d6000fd5b505b33600160a060020a03168d600160a060020a03167f33c94e4dd1355f388bbb4eb66a186d239a2d28bdf73cec6aa187de58a2ce17908888888d6040518085815260200184815260200183815260200182815260200194505050505060405180910390a3600e54610bc590879063ffffffff61151b16565b601154909350610be590600160a060020a03168e8563ffffffff61154416565b604080518481529051600160a060020a038f16917f3b87361b8a201c697d51aaa7a509f6dfb3870db9e5c5501d22d3e9fae858f725919081900360200190a250505050505050505050505050565b600054600160a060020a03163314610c4a57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600954600160a060020a031681565b600d5481565b600054600160a060020a03163314610ccb57600080fd5b601260009054906101000a9004600160a060020a0316600160a060020a0316638c52dc416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015610d1e57600080fd5b505af1158015610d32573d6000803e3d6000fd5b50505050565b600054600160a060020a031681565b600054600160a060020a03163314610d5e57600080fd5b80600160a060020a0381161515610d7457600080fd5b604051600160a060020a038316907f54e4612788f90384e6843298d7854436f3a585b2c3831ab66abf1de63bfa6c2d90600090a2506001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a03163314610def57600080fd5b600160a060020a0381161515610e0457600080fd5b60135460408051600160a060020a039283168152918316602083015280517ff41566bf3d02128644efdd2a51c6b4f47c28543bea4096d8c6d1526311cd2f6b9281900390910190a16013805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60076020526000908152604090205481565b601354600160a060020a031681565b600054600160a060020a03163314610eb357600080fd5b610ebb611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff161515610ef457600080fd5b600954604080517f1a39d8ef0000000000000000000000000000000000000000000000000000000081529051610f9d92600160a060020a0316918291631a39d8ef916004808201926020929091908290030181600087803b158015610f5857600080fd5b505af1158015610f6c573d6000803e3d6000fd5b505050506040513d6020811015610f8257600080fd5b5051601154600160a060020a0316919063ffffffff61154416565b601154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a03909216916370a08231916024808201926020929091908290030181600087803b15801561100357600080fd5b505af1158015611017573d6000803e3d6000fd5b505050506040513d602081101561102d57600080fd5b50516010819055600b54111561104257600080fd5b600b546010546110579163ffffffff6114e416565b600e55610671611429565b600054600160a060020a0316331461107957600080fd5b611081611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff1615156110ba57600080fd5b4281116110c657600080fd5b6110ef7f73616c65456e64656400000000000000000000000000000000000000000000006105f9565b156110f957600080fd5b6111237f73616c65456e6465640000000000000000000000000000000000000000000000826115de565b50565b6000611130611282565b6004546000908152600360209081526040808320600160e060020a0319843516845260010190915290205460ff16151561116957600080fd5b600160a060020a03821660009081526008602052604090205460ff161561118f57600080fd5b600160a060020a03821660009081526007602052604090205415156111b357600080fd5b600b54600a54106111c357600080fd5b600160a060020a0382166000908152600860209081526040808320805460ff19166001179055600f546007909252909120546112049163ffffffff61151b16565b60115490915061122490600160a060020a0316838363ffffffff61154416565b604080518281529051600160a060020a038416917f3b87361b8a201c697d51aaa7a509f6dfb3870db9e5c5501d22d3e9fae858f725919081900360200190a25050565b600e5481565b60086020526000908152604090205460ff1681565b60008060005b5050600454600090815260036020526040812054909150815b60008281526003602081905260409091200154811015611323576000828152600360208190526040909120018054611305918491849081106112df57fe5b6000918252602090912060048204015460039091166008026101000a900463ffffffff16565b1561131b57611312611429565b60019250611323565b6001016112a1565b821561132e57611288565b505050565b60045490565b601154600160a060020a031681565b60008061135484611656565b60008581526002602052604090205490915060ff161580156113935750611381818463ffffffff61169416565b600154600160a060020a039081169116145b949350505050565b600f5481565b600154600090600160a060020a031633146113bb57600080fd5b5060005b8181101561132e576001600260008585858181106113d957fe5b60209081029290920135835250810191909152604001600020805460ff19169115159190911790556001016113bf565b600054600160a060020a0316331461142057600080fd5b61112381611769565b6004546000908152600360205260408120549081151561144857600080fd5b50600481905560005b600082815260036020526040902060020154811015611494576000828152600360205260409020600201805461148c9190839081106112df57fe5b600101611451565b6040805183815243602082015281517fc9eebb3cf39ebcc16f7db0bac8f0e44d050159a092bc2d96fb613c7b142c1264929181900390910190a15050565b6000828211156114de57fe5b50900390565b600081838115156114f157fe5b049392505050565b60006113938461150985856117e6565b6117e6565b818101828110156105c357fe5b600082151561152c575060006105c3565b5081810281838281151561153c57fe5b04146105c357fe5b82600160a060020a031663a9059cbb83836040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b1580156115a757600080fd5b505af11580156115bb573d6000803e3d6000fd5b505050506040513d60208110156115d157600080fd5b5051151561132e57600080fd5b4281116115ea57600080fd5b600082815260056020526040902054151561160b5761160b826117fc611811565b6000828152600560209081526040918290208390558151838152915184927f9f976d9bff84df26aa98d2a3a52ea3de3e05dc94cdf1962c3d6d33fa8f03f69192908290030190a25050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c8101839052905190819003603c019020919050565b600080600080845160411415156116ae5760009350611760565b50505060208201516040830151606084015160001a601b60ff821610156116d357601b015b8060ff16601b141580156116eb57508060ff16601c14155b156116f95760009350611760565b60408051600080825260208083018085528a905260ff8516838501526060830187905260808301869052925160019360a0808501949193601f19840193928390039091019190865af1158015611753573d6000803e3d6000fd5b5050506020604051035193505b50505092915050565b600160a060020a038116151561177e57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008183106117f557816105c0565b5090919050565b60009081526005602052604090205442101590565b6000918252600360208181526040842082018054600181018255908552932060048404018054939091166008026101000a67ffffffffffffffff818102199094169290931692909202179055565b50600a54600b54111590565b60115460008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051919093169263f2fde38b92602480830193919282900301818387803b1580156118d357600080fd5b505af11580156118e7573d6000803e3d6000fd5b50505050600a54600014156119a457601254604080517f570d2f8f000000000000000000000000000000000000000000000000000000008152905161199f92600160a060020a03169163570d2f8f9160048083019260209291908290030181600087803b15801561195757600080fd5b505af115801561196b573d6000803e3d6000fd5b505050506040513d602081101561198157600080fd5b5051601054601154600160a060020a0316919063ffffffff61154416565b610671565b600d54600a541015611a2057601260009054906101000a9004600160a060020a0316600160a060020a0316638c52dc416040518163ffffffff1660e060020a028152600401600060405180830381600087803b158015611a0357600080fd5b505af1158015611a17573d6000803e3d6000fd5b50505050610671565b611a49600e54611a3d600a546010546114e490919063ffffffff16565b9063ffffffff6114d216565b600f55601254604080517f43d726d60000000000000000000000000000000000000000000000000000000081529051600160a060020a03909216916343d726d69160048082019260009290919082900301818387803b158015611aab57600080fd5b505af1158015611abf573d6000803e3d6000fd5b505060125460008054604080517ff2fde38b000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152905191909316945063f2fde38b935060248084019382900301818387803b158015610d1e57600080fd00a165627a7a7230582043d8a5fe9f808c81b195d348c3d6d9203841447d8f000ac45e19824d01821f650029