Address Contract Partially Verified
Address
0x358D12436080a01A16f711014610F8a4c2C2d233
Balance
0 ETH
Nonce
1
Code Size
11621 bytes
Creator
0x6EfB9Fa9...e83c at tx 0xafd267ab...d46047
Indexed Transactions
0
Contract Bytecode
11621 bytes
0x60606040523615610168576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806305d2035b1461016d57806306fdde031461019a578063095ea7b314610228578063153aa7711461028257806318160ddd146102ab57806323b872dd146102d4578063305074511461034d578063313ce567146103625780633feb5f2b1461039157806340c10f19146103f457806342966c681461044e578063500b6b3e146104715780636618846314610486578063668e39f6146104e057806370a08231146105195780637c50fb2f146105665780637d64bcb4146105b15780638da5cb5b146105de57806395d89b4114610633578063a87430ba146106c1578063a9059cbb14610728578063c1f16bdc14610782578063cf40bb58146107cf578063d73dd623146107fe578063dd62ed3e14610858578063e319e7b9146108c4578063ed21187a14610906578063f2fde38b1461092f575b600080fd5b341561017857600080fd5b610180610968565b604051808215151515815260200191505060405180910390f35b34156101a557600080fd5b6101ad61097b565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101ed5780820151818401526020810190506101d2565b50505050905090810190601f16801561021a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561023357600080fd5b610268600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506109b4565b604051808215151515815260200191505060405180910390f35b341561028d57600080fd5b610295610b3b565b6040518082815260200191505060405180910390f35b34156102b657600080fd5b6102be610b41565b6040518082815260200191505060405180910390f35b34156102df57600080fd5b610333600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610b47565b604051808215151515815260200191505060405180910390f35b341561035857600080fd5b610360610b9d565b005b341561036d57600080fd5b610375611031565b604051808260ff1660ff16815260200191505060405180910390f35b341561039c57600080fd5b6103b26004808035906020019091905050611036565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156103ff57600080fd5b610434600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611075565b604051808215151515815260200191505060405180910390f35b341561045957600080fd5b61046f6004808035906020019091905050611116565b005b341561047c57600080fd5b61048461114b565b005b341561049157600080fd5b6104c6600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611225565b604051808215151515815260200191505060405180910390f35b34156104eb57600080fd5b610517600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506114b6565b005b341561052457600080fd5b610550600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506116a5565b6040518082815260200191505060405180910390f35b341561057157600080fd5b61058760048080359060200190919050506116ee565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b34156105bc57600080fd5b6105c461172b565b604051808215151515815260200191505060405180910390f35b34156105e957600080fd5b6105f16117d7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561063e57600080fd5b6106466117fd565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561068657808201518184015260208101905061066b565b50505050905090810190601f1680156106b35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156106cc57600080fd5b6106f8600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611836565b604051808481526020018360ff1660ff1681526020018260ff1660ff168152602001935050505060405180910390f35b341561073357600080fd5b610768600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061187a565b604051808215151515815260200191505060405180910390f35b341561078d57600080fd5b6107b9600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506118ce565b6040518082815260200191505060405180910390f35b34156107da57600080fd5b6107e2611973565b604051808260ff1660ff16815260200191505060405180910390f35b341561080957600080fd5b61083e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611986565b604051808215151515815260200191505060405180910390f35b341561086357600080fd5b6108ae600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611b82565b6040518082815260200191505060405180910390f35b34156108cf57600080fd5b610904600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611c09565b005b341561091157600080fd5b610919611d8d565b6040518082815260200191505060405180910390f35b341561093a57600080fd5b610966600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611df6565b005b600360149054906101000a900460ff1681565b6040805190810160405280600d81526020017f50756e6469205820546f6b656e0000000000000000000000000000000000000081525081565b600080821480610a4057506000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b1515610a4b57600080fd5b81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60045481565b60005481565b600080610b55858585611ed2565b9050808015610b7a5750600580549050600660009054906101000a900460ff1660ff16105b15610b9257610b88856121be565b610b91846121be565b5b809150509392505050565b600080600080600080600080600080610bb46125cd565b6000600660009054906101000a900460ff1660ff161415610bd457611025565b339950600960008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209850600660009054906101000a900460ff1660ff168960020160009054906101000a900460ff1660ff161015610c5057610c4f8a6121be565b5b600960008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002097508760020160009054906101000a900460ff1660ff168860040160009054906101000a900460ff1660ff161480610ce057506005805490508860040160009054906101000a900460ff1660ff1610155b15610cea57611025565b8860020160009054906101000a900460ff1660ff168960040160009054906101000a900460ff1660ff16101515610d2057600080fd5b8760040160009054906101000a900460ff168860020160009054906101000a900460ff160396506000955060068760ff161115610ddd57600687039450600093505b8460ff168460ff161015610ddc57876003018054806001018281610d869190612cbc565b91600052602060002090016000809091909150555087600401600081819054906101000a900460ff168092919060010191906101000a81548160ff021916908360ff160217905550508380600101945050610d62565b5b876001018860020160009054906101000a900460ff1660ff16815481101515610e0257fe5b90600052602060002090015492508760040160009054906101000a900460ff1691505b8760020160009054906101000a900460ff1660ff168260ff161015610ee657610e4e82846126a3565b9050610e63838261278490919063ffffffff16565b9250610e78818761278490919063ffffffff16565b9550876003018054806001018281610e909190612cbc565b91600052602060002090016000839091909150555087600401600081819054906101000a900460ff168092919060010191906101000a81548160ff021916908360ff160217905550508180600101925050610e25565b8973ffffffffffffffffffffffffffffffffffffffff167f9068881fcedccd6ef7baa02c4176cbb2f3e9a4215ac113330d36e6d3ca1d5498876040518082815260200191505060405180910390a26000861415610f4257611025565b610f57866004546127a290919063ffffffff16565b6004819055503073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8b886000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561100857600080fd5b6102c65a03f1151561101957600080fd5b50505060405180519050505b50505050505050505050565b601281565b60088181548110151561104557fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110d457600080fd5b600360149054906101000a900460ff161515156110f057600080fd5b6110fa84846127bb565b9050801561110c5761110b846121be565b5b8091505092915050565b61111f8161298d565b600580549050600660009054906101000a900460ff1660ff16101561114857611147336121be565b5b50565b600080600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156111ad57600080fd5b6111c3600a600054612a9890919063ffffffff16565b93506111d9600485612ab390919063ffffffff16565b92506111ef600285612ab390919063ffffffff16565b91508390506112198161120b848661278490919063ffffffff16565b61278490919063ffffffff16565b60048190555050505050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115611336576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506113ca565b61134983826127a290919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b600080600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561151857600080fd5b6115206125cd565b6022600660009054906101000a900460ff1660ff1611151561154157600080fd5b4293506005600660009054906101000a900460ff1660ff1681548110151561156557fe5b90600052602060002090600491828204019190066008029054906101000a900467ffffffffffffffff169250600091508262ed4e000190508067ffffffffffffffff168467ffffffffffffffff1611156115c757600454915060006004819055505b600082141515156115d757600080fd5b3073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561168257600080fd5b6102c65a03f1151561169357600080fd5b50505060405180519050505050505050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6005818154811015156116fd57fe5b9060005260206000209060049182820401919006600802915054906101000a900467ffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561178957600080fd5b6001600360146101000a81548160ff0219169083151502179055507fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a16001905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600381526020017f505853000000000000000000000000000000000000000000000000000000000081525081565b60096020528060005260406000206000915090508060000154908060020160009054906101000a900460ff16908060040160009054906101000a900460ff16905083565b6000806118878484612ae6565b90508080156118ac5750600580549050600660009054906101000a900460ff1660ff16105b156118c4576118ba336121be565b6118c3846121be565b5b8091505092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561192c57600080fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600660009054906101000a900460ff1681565b6000611a1782600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461278490919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611c6757600080fd5b600360149054906101000a900460ff16151515611c8357600080fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415611d325760088054806001018281611ce29190612ce8565b9160005260206000209001600085909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b611d45828261278490919063ffffffff16565b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611deb57600080fd5b600880549050905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611e5257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611e8e57600080fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614151515611f1157600080fd5b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050611fe283600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127a290919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061207783600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461278490919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506120cd83826127a290919063ffffffff16565b600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a360019150509392505050565b600080600080600080600960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002095506122106125cd565b6005600660009054906101000a900460ff1660ff1681548110151561223157fe5b90600052602060002090600491828204019190066008029054906101000a900467ffffffffffffffff1694508467ffffffffffffffff1686600001541115612278576125c4565b600093506000600660009054906101000a900460ff1660ff1611156122e85760056001600660009054906101000a900460ff160360ff168154811015156122bb57fe5b90600052602060002090600491828204019190066008029054906101000a900467ffffffffffffffff1693505b856001018054905092505b600660009054906101000a900460ff1660ff1683111515612346578560010180548060010182816123249190612cbc565b91600052602060002090016000809091909150555082806001019350506122f3565b6000866000015414156123f657600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205486600101600660009054906101000a900460ff1660ff168154811015156123b657fe5b906000526020600020900181905550600660009054906101000a900460ff168660020160006101000a81548160ff021916908360ff1602179055506125ba565b8367ffffffffffffffff16866000015410151561248457600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205486600101600660009054906101000a900460ff1660ff1681548110151561247057fe5b9060005260206000209001819055506125b9565b856001018660020160009054906101000a900460ff1660ff168154811015156124a957fe5b90600052602060002090015491508560020160009054906101000a900460ff1690505b600660009054906101000a900460ff1660ff168160ff16101561251a5781866001018260ff168154811015156124fe57fe5b90600052602060002090018190555080806001019150506124cc565b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205486600101600660009054906101000a900460ff1660ff1681548110151561257d57fe5b906000526020600020900181905550600660009054906101000a900460ff168660020160006101000a81548160ff021916908360ff1602179055505b5b4286600001819055505b50505050505050565b60008060016005805490500391504290505b8160ff16600660009054906101000a900460ff1660ff16101561269f578067ffffffffffffffff166005600660009054906101000a900460ff1660ff1681548110151561262857fe5b90600052602060002090600491828204019190066008029054906101000a900467ffffffffffffffff1667ffffffffffffffff161015156126685761269f565b6006600081819054906101000a900460ff168092919060010191906101000a81548160ff021916908360ff160217905550506125df565b5050565b60008060009050600c8460ff1610156126f0576126e9660299645e264ead6126db662386f26fc1000086612a9890919063ffffffff16565b612ab390919063ffffffff16565b905061277a565b60188460ff1610156127355761272e65c07b9a1a1058612720662386f26fc1000086612a9890919063ffffffff16565b612ab390919063ffffffff16565b9050612779565b60248460ff161015612778576127756603220e5fb0f3a861276767016345785d8a000086612a9890919063ffffffff16565b612ab390919063ffffffff16565b90505b5b5b8091505092915050565b600080828401905083811015151561279857fe5b8091505092915050565b60008282111515156127b057fe5b818303905092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561281957600080fd5b600360149054906101000a900460ff1615151561283557600080fd5b61284a8260005461278490919063ffffffff16565b6000819055506128a282600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461278490919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885836040518082815260200191505060405180910390a28273ffffffffffffffffffffffffffffffffffffffff1660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000808211151561299d57600080fd5b3390506129f282600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127a290919063ffffffff16565b600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612a4a826000546127a290919063ffffffff16565b600081905550818173ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca560405160405180910390a35050565b6000808284811515612aa657fe5b0490508091505092915050565b60008082840290506000841480612ad45750828482811515612ad157fe5b04145b1515612adc57fe5b8091505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515612b2357600080fd5b612b7582600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127a290919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612c0a82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461278490919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b815481835581811511612ce357818360005260206000209182019101612ce29190612d14565b5b505050565b815481835581811511612d0f57818360005260206000209182019101612d0e9190612d14565b5b505050565b612d3691905b80821115612d32576000816000905550600101612d1a565b5090565b905600a165627a7a7230582042c64deb81c720297448b8ad9de371a29d6407a352383a64b6a0dae67b2fc18c0029
Verified Source Code Partial Match
Compiler: v0.4.17+commit.bdeb9e52
Optimization: No
PundiXToken.sol 600 lines
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant 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 c;
}
function sub(uint256 a, uint256 b) internal constant returns (uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
/**
* @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;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/
function transferOwnership(address newOwner) onlyOwner {
require(newOwner != address(0));
owner = newOwner;
}
}
contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
// how many token units a buyer gets per wei
uint256 public rate;
// amount of raised money in wei
uint256 public weiRaised;
/**
* event for token purchase logging
* @param purchaser who paid for the tokens
* @param beneficiary who got the tokens
* @param value weis paid for purchase
* @param amount amount of tokens purchased
*/
event TokenPurchase(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount);
function Crowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet) {
require(_startTime >= now);
require(_endTime >= _startTime);
require(_rate > 0);
require(_wallet != 0x0);
token = createTokenContract();
startTime = _startTime;
endTime = _endTime;
rate = _rate;
wallet = _wallet;
}
// creates the token to be sold.
// override this method to have crowdsale of a specific mintable token.
function createTokenContract() internal returns (MintableToken) {
return new MintableToken();
}
// fallback function can be used to buy tokens
function () payable {
buyTokens(msg.sender);
}
// low level token purchase function
function buyTokens(address beneficiary) payable {
require(beneficiary != 0x0);
require(validPurchase());
uint256 weiAmount = msg.value;
// calculate token amount to be created
uint256 tokens = weiAmount.mul(rate);
// update state
weiRaised = weiRaised.add(weiAmount);
token.mint(beneficiary, tokens);
TokenPurchase(msg.sender, beneficiary, weiAmount, tokens);
forwardFunds();
}
// send ether to the fund collection wallet
// override to create custom fund forwarding mechanisms
function forwardFunds() internal {
wallet.transfer(msg.value);
}
// @return true if the transaction can buy tokens
function validPurchase() internal constant returns (bool) {
bool withinPeriod = now >= startTime && now <= endTime;
bool nonZeroPurchase = msg.value != 0;
return withinPeriod && nonZeroPurchase;
}
// @return true if crowdsale event has ended
function hasEnded() public constant returns (bool) {
return now > endTime;
}
}
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) constant returns (uint256);
function transfer(address to, uint256 value) returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) constant returns (uint256);
function transferFrom(address from, address to, uint256 value) returns (bool);
function approve(address spender, uint256 value) returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @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) returns (bool) {
require(_to != address(0));
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
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) constant returns (uint256 balance) {
return balances[_owner];
}
}
contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) 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) returns (bool) {
require(_to != address(0));
var _allowance = allowed[_from][msg.sender];
// Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
// require (_value <= _allowance);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = _allowance.sub(_value);
Transfer(_from, _to, _value);
return true;
}
/**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/
function approve(address _spender, uint256 _value) returns (bool) {
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender, 0)` if it is not
// already 0 to mitigate the race condition described here:
// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
require((_value == 0) || (allowed[msg.sender][_spender] == 0));
allowed[msg.sender][_spender] = _value;
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) constant returns (uint256 remaining) {
return allowed[_owner][_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
*/
function increaseApproval (address _spender, uint _addedValue)
returns (bool success) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
function decreaseApproval (address _spender, uint _subtractedValue)
returns (bool success) {
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}
contract BurnableToken is StandardToken {
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint _value)
public
{
require(_value > 0);
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(burner, _value);
}
event Burn(address indexed burner, uint indexed value);
}
contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address _to, uint256 _amount) onlyOwner canMint returns (bool) {
totalSupply = totalSupply.add(_amount);
balances[_to] = balances[_to].add(_amount);
Mint(_to, _amount);
Transfer(0x0, _to, _amount);
return true;
}
/**
* @dev Function to stop minting new tokens.
* @return True if the operation was successful.
*/
function finishMinting() onlyOwner returns (bool) {
mintingFinished = true;
MintFinished();
return true;
}
}
contract PundiXToken is MintableToken, BurnableToken {
event ShowCurrentIndex(address indexed to, uint256 value);
event ShowBonus(address indexed to, uint256 value);
string public constant name = "Pundi X Token";
string public constant symbol = "PXS";
uint8 public constant decimals = 18;
uint256 public totalSupplyBonus;
uint64[] public bonusTimeList = [
1512057600,1514736000,1517414400,1519833600,1522512000,1525104000,1527782400,1530374400,1533052800,1535731200,1538323200,1541001600,
1543593600,1546272000,1548950400,1551369600,1554048000,1556640000,1559318400,1561910400,1564588800,1567267200,1569859200,1572537600,
1575129600,1577808000,1580486400,1582992000,1585670400,1588262400,1590940800,1593532800,1596211200,1598889600,1601481600,1604160000];
uint8 public currentTimeIndex;
function PundiXToken() {
currentTimeIndex = 0;
}
// --------------------------------------------------------
mapping(address=>uint256) weiBalance;
address[] public investors;
function addWei(address _address, uint256 _value) onlyOwner canMint public {
uint256 value = weiBalance[_address];
if (value == 0) {
investors.push(_address);
}
weiBalance[_address] = value.add(_value);
}
function getInvestorsCount() constant onlyOwner public returns (uint256 investorsCount) {
return investors.length;
}
function getWeiBalance(address _address) constant onlyOwner public returns (uint256 balance) {
return weiBalance[_address];
}
// --------------------------------------------------------
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
bool result = super.transferFrom(_from, _to, _value);
if (result && currentTimeIndex < bonusTimeList.length) {
bonus(_from);
bonus(_to);
}
return result;
}
function transfer(address _to, uint256 _value) public returns (bool) {
bool result = super.transfer(_to, _value);
if (result && currentTimeIndex < bonusTimeList.length) {
bonus(msg.sender);
bonus(_to);
}
return result;
}
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
bool result = super.mint(_to, _amount);
if (result) {
bonus(_to);
}
return result;
}
function burn(uint256 _value) public {
super.burn(_value);
if (currentTimeIndex < bonusTimeList.length) {
bonus(msg.sender);
}
}
// --------------------------------------------------------
mapping(address => User) public users;
struct User {
uint256 txTimestamp;
uint256[] monthBalance;
uint8 monthIndex;
uint256[] receiveBonus;
uint8 receiveIndex;
}
function bonus(address _address) internal {
User storage user = users[_address];
tryNextTimeRange();
uint64 maxTime = bonusTimeList[currentTimeIndex];
if (user.txTimestamp > maxTime) {
return;
}
uint64 minTime = 0;
if (currentTimeIndex > 0) {
minTime = bonusTimeList[currentTimeIndex-1];
}
for (uint _i = user.monthBalance.length; _i <= currentTimeIndex; _i++) {
user.monthBalance.push(0);
}
// first time
if (user.txTimestamp == 0) {
user.monthBalance[currentTimeIndex] = balances[_address];
user.monthIndex = currentTimeIndex;
} else if (user.txTimestamp >= minTime) {
user.monthBalance[currentTimeIndex] = balances[_address];
} else { // (user.txTimestamp < minTime) cross month
uint256 pBalance = user.monthBalance[user.monthIndex];
for (uint8 i = user.monthIndex; i < currentTimeIndex; i++) {
user.monthBalance[i] = pBalance;
}
user.monthBalance[currentTimeIndex] = balances[_address];
user.monthIndex = currentTimeIndex;
}
user.txTimestamp = now;
}
function tryNextTimeRange() internal {
uint8 len = uint8(bonusTimeList.length) - 1;
uint64 _now = uint64(now);
for(; currentTimeIndex < len; currentTimeIndex++) {
if (bonusTimeList[currentTimeIndex] >= _now) {
break;
}
}
}
function receiveBonus() public {
tryNextTimeRange();
if (currentTimeIndex == 0) {
return;
}
address addr = msg.sender;
User storage user = users[addr];
if (user.monthIndex < currentTimeIndex) {
bonus(addr);
}
User storage xuser = users[addr];
if (xuser.receiveIndex == xuser.monthIndex || xuser.receiveIndex >= bonusTimeList.length) {
return;
}
require(user.receiveIndex < user.monthIndex);
uint8 monthInterval = xuser.monthIndex - xuser.receiveIndex;
uint256 bonusToken = 0;
if (monthInterval > 6) {
uint8 _length = monthInterval - 6;
for (uint8 j = 0; j < _length; j++) {
xuser.receiveBonus.push(0);
xuser.receiveIndex++;
}
}
uint256 balance = xuser.monthBalance[xuser.monthIndex];
for (uint8 i = xuser.receiveIndex; i < xuser.monthIndex; i++) {
uint256 preMonthBonus = calculateBonusToken(i, balance);
balance = preMonthBonus.add(balance);
bonusToken = bonusToken.add(preMonthBonus);
xuser.receiveBonus.push(preMonthBonus);
xuser.receiveIndex++;
}
// 事件
ShowBonus(addr, bonusToken);
if (bonusToken == 0) {
return;
}
totalSupplyBonus = totalSupplyBonus.sub(bonusToken);
this.transfer(addr, bonusToken);
}
function calculateBonusToken(uint8 _monthIndex, uint256 _balance) internal returns (uint256) {
uint256 bonusToken = 0;
if (_monthIndex < 12) {
// 7.31606308769453%
bonusToken = _balance.div(10000000000000000).mul(731606308769453);
} else if (_monthIndex < 24) {
// 2.11637098909784%
bonusToken = _balance.div(10000000000000000).mul(211637098909784);
} else if (_monthIndex < 36) {
// 0.881870060450728%
bonusToken = _balance.div(100000000000000000).mul(881870060450728);
}
return bonusToken;
}
function calculationTotalSupply() onlyOwner {
uint256 u1 = totalSupply.div(10);
uint256 year1 = u1.mul(4);
uint256 year2 = u1.mul(2);
uint256 year3 = u1;
totalSupplyBonus = year1.add(year2).add(year3);
}
function recycleUnreceivedBonus(address _address) onlyOwner {
tryNextTimeRange();
require(currentTimeIndex > 34);
uint64 _now = uint64(now);
uint64 maxTime = bonusTimeList[currentTimeIndex];
uint256 bonusToken = 0;
// TODO 180 days
uint64 finalTime = 180 days + maxTime;
if (_now > finalTime) {
bonusToken = totalSupplyBonus;
totalSupplyBonus = 0;
}
require(bonusToken != 0);
this.transfer(_address, bonusToken);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
bonusTimeList 0x7c50fb2f → uint64
currentTimeIndex 0xcf40bb58 → uint8
decimals 0x313ce567 → uint8
getInvestorsCount 0xed21187a → uint256
getWeiBalance 0xc1f16bdc → uint256
investors 0x3feb5f2b → address
mintingFinished 0x05d2035b → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
totalSupplyBonus 0x153aa771 → uint256
users 0xa87430ba → uint256, uint8, uint8
Write Contract 13 functions
These functions modify contract state and require a wallet transaction to execute.
addWei 0xe319e7b9
address _address
uint256 _value
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
burn 0x42966c68
uint256 _value
calculationTotalSupply 0x500b6b3e
No parameters
decreaseApproval 0x66188463
address _spender
uint256 _subtractedValue
returns: bool
finishMinting 0x7d64bcb4
No parameters
returns: bool
increaseApproval 0xd73dd623
address _spender
uint256 _addedValue
returns: bool
mint 0x40c10f19
address _to
uint256 _amount
returns: bool
receiveBonus 0x30507451
No parameters
recycleUnreceivedBonus 0x668e39f6
address _address
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address