Source Code
Overview
ETH Balance
0.035133126806640625 ETH
Eth Value
$103.24 (@ $2,938.49/ETH)Latest 25 from a total of 323 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Earning... | 5298948 | 2669 days ago | IN | 0 ETH | 0.00006734 | ||||
Try Advance | 5298948 | 2669 days ago | IN | 0 ETH | 0.00004542 | ||||
Try Advance | 5298851 | 2669 days ago | IN | 0 ETH | 0.00075752 | ||||
Withdraw Earning... | 5294248 | 2670 days ago | IN | 0 ETH | 0.00005432 | ||||
Try Advance | 5294246 | 2670 days ago | IN | 0 ETH | 0.00005496 | ||||
Withdraw Earning... | 5292782 | 2670 days ago | IN | 0 ETH | 0.00008978 | ||||
Try Advance | 5292779 | 2670 days ago | IN | 0 ETH | 0.00053252 | ||||
Become King | 5286881 | 2671 days ago | IN | 0.001 ETH | 0.00105019 | ||||
Become King | 5286869 | 2671 days ago | IN | 0.001 ETH | 0.00121519 | ||||
Withdraw Earning... | 5286864 | 2671 days ago | IN | 0 ETH | 0.00026936 | ||||
Withdraw Earning... | 5286862 | 2671 days ago | IN | 0 ETH | 0.00026936 | ||||
Try Advance | 5286857 | 2671 days ago | IN | 0 ETH | 0.00127806 | ||||
Become King | 5280853 | 2672 days ago | IN | 0.001 ETH | 0.00105019 | ||||
Become King | 5280848 | 2672 days ago | IN | 0.001 ETH | 0.00121519 | ||||
Withdraw Earning... | 5280844 | 2672 days ago | IN | 0 ETH | 0.00024691 | ||||
Withdraw Earning... | 5280831 | 2672 days ago | IN | 0 ETH | 0.00024691 | ||||
Try Advance | 5280824 | 2672 days ago | IN | 0 ETH | 0.00117155 | ||||
Become King | 5269486 | 2674 days ago | IN | 0.003 ETH | 0.00114566 | ||||
Withdraw Earning... | 5269480 | 2674 days ago | IN | 0 ETH | 0.00026936 | ||||
Become King | 5269464 | 2674 days ago | IN | 0.003 ETH | 0.00132566 | ||||
Withdraw Earning... | 5269459 | 2674 days ago | IN | 0 ETH | 0.00026936 | ||||
Try Advance | 5269077 | 2674 days ago | IN | 0 ETH | 0.00053252 | ||||
Become King | 5261570 | 2675 days ago | IN | 0.003 ETH | 0.00105019 | ||||
Become King | 5261566 | 2675 days ago | IN | 0.003 ETH | 0.00121519 | ||||
Withdraw Earning... | 5261559 | 2675 days ago | IN | 0 ETH | 0.00024691 |
Latest 22 internal transactions
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 5298948 | 2669 days ago | 0.01700998 ETH | ||||
Transfer | 5294248 | 2670 days ago | 0.0273348 ETH | ||||
Transfer | 5292782 | 2670 days ago | 0.03401996 ETH | ||||
Transfer | 5286864 | 2671 days ago | 0.01772314 ETH | ||||
Transfer | 5286862 | 2671 days ago | 0.06653992 ETH | ||||
Transfer | 5280844 | 2672 days ago | 0.03504629 ETH | ||||
Transfer | 5280831 | 2672 days ago | 0.13157984 ETH | ||||
Transfer | 5269480 | 2674 days ago | 0.25865969 ETH | ||||
Transfer | 5269459 | 2674 days ago | 0.06889258 ETH | ||||
Transfer | 5261559 | 2675 days ago | 0.13658516 ETH | ||||
Transfer | 5261555 | 2675 days ago | 0.51281938 ETH | ||||
Transfer | 5256727 | 2676 days ago | 0.27037033 ETH | ||||
Transfer | 5256725 | 2676 days ago | 1.01513876 ETH | ||||
Transfer | 5251895 | 2677 days ago | 0.53114067 ETH | ||||
Transfer | 5251891 | 2677 days ago | 1.99427753 ETH | ||||
Transfer | 5248409 | 2677 days ago | 0.02 ETH | ||||
Transfer | 5244829 | 2678 days ago | 1.03033175 ETH | ||||
Transfer | 5244829 | 2678 days ago | 3.86874406 ETH | ||||
Transfer | 5236559 | 2679 days ago | 0.12300345 ETH | ||||
Transfer | 5234542 | 2680 days ago | 7.11922337 ETH | ||||
Transfer | 5234542 | 2680 days ago | 1.8957929 ETH | ||||
Transfer | 5228517 | 2681 days ago | 0.83066325 ETH |
Loading...
Loading
Contract Name:
EthKing
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-03-05 */ pragma solidity ^0.4.19; /* King of the Hill, but with a twist To with the pot, you must obtain 1 million points. You obtain points by becoming and staying the King. To become the King, you must pay 1% of the pot. As the King, you earn (minutes)^2 points, where minutes is the amount of time you remain King. 50% of the pot is used as an award, and the other 50% seeds the pot for the next round. 20% of bids go to the bonus pot, which is given to the second-place person when someone wins. */ contract EthKing { using SafeMath for uint256; // ------------------ Events ----------------------------- event NewRound( uint _timestamp, uint _round, uint _initialMainPot, uint _initialBonusPot ); event NewKingBid( uint _timestamp, address _address, uint _amount, uint _newMainPot, uint _newBonusPot ); event PlaceChange( uint _timestamp, address _newFirst, address _newSecond, uint _firstPoints, uint _secondPoints ); event Winner( uint _timestamp, address _first, uint _firstAmount, address _second, uint _secondAmount ); event EarningsWithdrawal( uint _timestamp, address _address, uint _amount ); // ------------------------------------------------------- address owner; // ------------------ Game Constants --------------------- // Fraction of the previous pot used to seed the next pot // Currently 50% uint private constant NEXT_POT_FRAC_TOP = 1; uint private constant NEXT_POT_FRAC_BOT = 2; // Minimum fraction of the pot required to become the King // Currently 0.5% uint private constant MIN_LEADER_FRAC_TOP = 5; uint private constant MIN_LEADER_FRAC_BOT = 1000; // Fraction of each bid used for the bonus pot uint private constant BONUS_POT_FRAC_TOP = 20; uint private constant BONUS_POT_FRAC_BOT = 100; // Fractino of each bid used for the developer fee uint private constant DEV_FEE_FRAC_TOP = 5; uint private constant DEV_FEE_FRAC_BOT = 100; // Exponent for point calculation // Currently x^2 uint private constant POINT_EXPONENT = 2; // How many points to win? uint private constant POINTS_TO_WIN = 1000000; // Null address for advancing round address null_address = address(0x0); // ----------------- Game Variables ---------------------- // The current King, and when he was last put in power address public king; uint public crownedTime; // The current leader and the current 2nd-place leader address public first; address public second; // Player info struct Player { uint points; uint roundLastPlayed; uint winnings; } // Player mapping mapping (address => Player) private players; // Current round number uint public round; // Value of pot and bonus pot uint public mainPot; uint public bonusPot; // ----------------- Game Logic ------------------------- function EthKing() public payable { // We should seed the game require(msg.value > 0); // Set owner and round owner = msg.sender; round = 1; // Calculate bonus pot and main pot uint _bonusPot = msg.value.mul(BONUS_POT_FRAC_TOP).div(BONUS_POT_FRAC_BOT); uint _mainPot = msg.value.sub(_bonusPot); // Make sure we didn't make a mistake require(_bonusPot + _mainPot <= msg.value); mainPot = _mainPot; bonusPot = _bonusPot; // Set owner as King // Crowned upon contract creation king = owner; first = null_address; second = null_address; crownedTime = now; players[owner].roundLastPlayed = round; players[owner].points = 0; } // Calculate and reward points to the current King // Should be called when the current King is being kicked out modifier payoutOldKingPoints { uint _pointsToAward = calculatePoints(crownedTime, now); players[king].points = players[king].points.add(_pointsToAward); // Check to see if King now is in first or second place. // If second place, just replace second place with King. // If first place, move first place down to second and King to first if (players[king].points > players[first].points) { second = first; first = king; PlaceChange(now, first, second, players[first].points, players[second].points); } else if (players[king].points > players[second].points && king != first) { second = king; PlaceChange(now, first, second, players[first].points, players[second].points); } _; } // Check current leader's points // Advances the round if he's at 1 million or greater // Pays out main pot and bonus pot modifier advanceRoundIfNeeded { if (players[first].points >= POINTS_TO_WIN) { // Calculate next pots and winnings uint _nextMainPot = mainPot.mul(NEXT_POT_FRAC_TOP).div(NEXT_POT_FRAC_BOT); uint _nextBonusPot = bonusPot.mul(NEXT_POT_FRAC_TOP).div(NEXT_POT_FRAC_BOT); uint _firstEarnings = mainPot.sub(_nextMainPot); uint _secondEarnings = bonusPot.sub(_nextBonusPot); players[first].winnings = players[first].winnings.add(_firstEarnings); players[second].winnings = players[second].winnings.add(_secondEarnings); // Advance round round++; mainPot = _nextMainPot; bonusPot = _nextBonusPot; // Reset first and second and King first = null_address; second = null_address; players[owner].roundLastPlayed = round; players[owner].points = 0; players[king].roundLastPlayed = round; players[king].points = 0; king = owner; crownedTime = now; NewRound(now, round, mainPot, bonusPot); PlaceChange(now, first, second, players[first].points, players[second].points); } _; } // Calculates the points a player earned in a given timer interval function calculatePoints(uint _earlierTime, uint _laterTime) private pure returns (uint) { // Earlier time could be the same as latertime (same block) // But it should never be later than laterTime! assert(_earlierTime <= _laterTime); // If crowned and dethroned on same block, no points if (_earlierTime == _laterTime) { return 0; } // Calculate points. Less than 1 minute is no payout uint timeElapsedInSeconds = _laterTime.sub(_earlierTime); if (timeElapsedInSeconds < 60) { return 0; } uint timeElapsedInMinutes = timeElapsedInSeconds.div(60); assert(timeElapsedInMinutes > 0); // 1000 minutes is an automatic win. if (timeElapsedInMinutes >= 1000) { return POINTS_TO_WIN; } return timeElapsedInMinutes**POINT_EXPONENT; } // Pays out current King // Advances round, if necessary // Makes sender King // Reverts if bid isn't high enough function becomeKing() public payable payoutOldKingPoints advanceRoundIfNeeded { // Calculate minimum bid amount uint _minLeaderAmount = mainPot.mul(MIN_LEADER_FRAC_TOP).div(MIN_LEADER_FRAC_BOT); require(msg.value >= _minLeaderAmount); uint _bidAmountToDeveloper = msg.value.mul(DEV_FEE_FRAC_TOP).div(DEV_FEE_FRAC_BOT); uint _bidAmountToBonusPot = msg.value.mul(BONUS_POT_FRAC_TOP).div(BONUS_POT_FRAC_BOT); uint _bidAmountToMainPot = msg.value.sub(_bidAmountToDeveloper).sub(_bidAmountToBonusPot); assert(_bidAmountToDeveloper + _bidAmountToBonusPot + _bidAmountToMainPot <= msg.value); // Transfer dev fee to owner's winnings players[owner].winnings = players[owner].winnings.add(_bidAmountToDeveloper); // Set new pot values mainPot = mainPot.add(_bidAmountToMainPot); bonusPot = bonusPot.add(_bidAmountToBonusPot); // Clear out King's points if they are from last round if (players[king].roundLastPlayed != round) { players[king].points = 0; } // Set King king = msg.sender; players[king].roundLastPlayed = round; crownedTime = now; NewKingBid(now, king, msg.value, mainPot, bonusPot); } // Transfer players their winnings function withdrawEarnings() public { require(players[msg.sender].winnings > 0); assert(players[msg.sender].winnings <= this.balance); uint _amount = players[msg.sender].winnings; players[msg.sender].winnings = 0; EarningsWithdrawal(now, msg.sender, _amount); msg.sender.transfer(_amount); } // Fallback function. // If 0 ether, triggers tryAdvance() // If > 0 ether, triggers becomeKing() function () public payable { if (msg.value == 0) { tryAdvance(); } else { becomeKing(); } } // Utility function to advance the round / payout the winner function tryAdvance() public { // Calculate the King's current points. // If he's won, we payout and advance the round. // Equivalent to a bid, but without an actual bid. uint kingTotalPoints = calculatePoints(crownedTime, now) + players[king].points; if (kingTotalPoints >= POINTS_TO_WIN) { forceAdvance(); } } // Internal function called by tryAdvance if current King has won function forceAdvance() private payoutOldKingPoints advanceRoundIfNeeded { } // Gets a player's information function getPlayerInfo(address _player) public constant returns(uint, uint, uint) { return (players[_player].points, players[_player].roundLastPlayed, players[_player].winnings); } // Gets the sender's information function getMyInfo() public constant returns(uint, uint, uint) { return getPlayerInfo(msg.sender); } // Get the King's current points function getKingPoints() public constant returns(uint) { return players[king].points; } // Get the first player's current points function getFirstPoints() public constant returns(uint) { return players[first].points; } // Get the second player's current points function getSecondPoints() public constant returns(uint) { return players[second].points; } } /** * @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) { if (a == 0) { return 0; } uint256 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 c; } /** * @dev Substracts 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) { uint256 c = a + b; assert(c >= a); return c; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"round","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"first","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getPlayerInfo","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"second","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"becomeKing","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"tryAdvance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getMyInfo","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bonusPot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"mainPot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getFirstPoints","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getKingPoints","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawEarnings","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"crownedTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getSecondPoints","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"king","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_timestamp","type":"uint256"},{"indexed":false,"name":"_round","type":"uint256"},{"indexed":false,"name":"_initialMainPot","type":"uint256"},{"indexed":false,"name":"_initialBonusPot","type":"uint256"}],"name":"NewRound","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_timestamp","type":"uint256"},{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_newMainPot","type":"uint256"},{"indexed":false,"name":"_newBonusPot","type":"uint256"}],"name":"NewKingBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_timestamp","type":"uint256"},{"indexed":false,"name":"_newFirst","type":"address"},{"indexed":false,"name":"_newSecond","type":"address"},{"indexed":false,"name":"_firstPoints","type":"uint256"},{"indexed":false,"name":"_secondPoints","type":"uint256"}],"name":"PlaceChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_timestamp","type":"uint256"},{"indexed":false,"name":"_first","type":"address"},{"indexed":false,"name":"_firstAmount","type":"uint256"},{"indexed":false,"name":"_second","type":"address"},{"indexed":false,"name":"_secondAmount","type":"uint256"}],"name":"Winner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_timestamp","type":"uint256"},{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"EarningsWithdrawal","type":"event"}]
Contract Creation Code
606060405260018054600160a060020a0319169055600080348190116200002557600080fd5b60008054600160a060020a03191633600160a060020a031617905560016007556200007b6064620000663460146401000000006200011b8102620010211704565b906401000000006200104c6200015582021704565b9150620000973483640100000000620010636200016d82021704565b9050348282011115620000a957600080fd5b6008556009556000805460028054600160a060020a03928316600160a060020a0319918216811790925560018054600480549186169184168217905560058054909316179091554260035560075491845260066020526040808520909101919091558254909116825281205562000180565b6000808315156200013057600091506200014e565b508282028284828115156200014157fe5b04146200014a57fe5b8091505b5092915050565b60008082848115156200016457fe5b04949350505050565b6000828211156200017a57fe5b50900390565b6110c180620001906000396000f3006060604052600436106100da5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663146ca53181146100f85780633df4ddf41461011d578063593284011461014c5780635a8ac02d1461018f5780636708cc63146100ee5780636c1475ad146101a25780637daa10ce146101b557806381cd5eec146101c85780638f2ee2df146101db5780638f7d4dad146101ee578063aa64767314610201578063b73c6ce914610214578063ba9072ea14610227578063c11c0cc11461023a578063cc181ca81461024d575b3415156100ee576100e9610260565b6100f6565b6100f66102a0565b005b341561010357600080fd5b61010b610928565b60405190815260200160405180910390f35b341561012857600080fd5b61013061092e565b604051600160a060020a03909116815260200160405180910390f35b341561015757600080fd5b61016b600160a060020a036004351661093d565b60405180848152602001838152602001828152602001935050505060405180910390f35b341561019a57600080fd5b610130610965565b34156101ad57600080fd5b6100f6610260565b34156101c057600080fd5b61016b610974565b34156101d357600080fd5b61010b61098d565b34156101e657600080fd5b61010b610993565b34156101f957600080fd5b61010b610999565b341561020c57600080fd5b61010b6109b7565b341561021f57600080fd5b6100f66109d5565b341561023257600080fd5b61010b610ace565b341561024557600080fd5b61010b610ad4565b341561025857600080fd5b610130610af2565b600254600160a060020a03166000908152600660205260408120546003546102889042610b01565b019050620f4240811061029d5761029d610b84565b50565b60008060008060006102b460035442610b01565b600254600160a060020a03166000908152600660205260409020549091506102e2908263ffffffff61100716565b60028054600160a060020a0390811660009081526006602052604080822094909455600454821681528381205492549091168152919091205411156103c6576004805460058054600160a060020a03808416600160a060020a0319928316179283905560025481169190931617928390559181166000818152600660205260408082205494909316808252908390205460008051602061107683398151915294429490919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a16104a3565b600554600160a060020a0390811660009081526006602052604080822054600254909316825290205411801561040d5750600454600254600160a060020a03908116911614155b156104a35760025460058054600160a060020a031916600160a060020a039283161790819055600454821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b600454600160a060020a0316600090815260066020526040812054819081908190620f4240901061072e576104f560026104e9600160085461102190919063ffffffff16565b9063ffffffff61104c16565b935061051260026104e9600160095461102190919063ffffffff16565b600854909350610528908563ffffffff61106316565b60095490925061053e908463ffffffff61106316565b600454600160a060020a031660009081526006602052604090206002015490915061056f908363ffffffff61100716565b600454600160a060020a0390811660009081526006602052604080822060029081019490945560055490921681522001546105b0908263ffffffff61100716565b60058054600160a060020a0390811660009081526006602052604080822060029081019590955560078054600190810180835560088c815560098c8155835460048054918a16600160a060020a031992831681179091558a5482161790995586548816875285872084019290925585548716865284862086905583548954881687528587209093019290925587548616855283852085905593548754951694909516939093179094554260038190559154925490547fb5d8636ab45e6cac7a4a61cb7c77f77f61a454d73aa2e6139ff8dcaf463537e594929392518085815260200184815260200183815260200182815260200194505050505060405180910390a1600454600554600160a060020a0391821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b61074a6103e86104e9600560085461102190919063ffffffff16565b9850348990101561075a57600080fd5b61077060646104e934600563ffffffff61102116565b975061078860646104e934601463ffffffff61102116565b96506107aa8761079e348b63ffffffff61106316565b9063ffffffff61106316565b955034888801870111156107ba57fe5b60008054600160a060020a03168152600660205260409020600201546107e6908963ffffffff61100716565b60008054600160a060020a0316815260066020526040902060020155600854610815908763ffffffff61100716565b60085560095461082b908863ffffffff61100716565b600955600754600254600160a060020a03166000908152600660205260409020600101541461087057600254600160a060020a03166000908152600660205260408120555b60028054600160a060020a03191633600160a060020a0390811691909117808355600754908216600090815260066020526040908190206001019190915542600381905592546008546009547fba7431323f46ac3719ae2c8685fda2c5cae744de7d04a2c2850d6206d3c467229594929092169234929051948552600160a060020a0390931660208501526040808501929092526060840152608083019190915260a0909101905180910390a1505050505050505050565b60075481565b600454600160a060020a031681565b600160a060020a03166000908152600660205260409020805460018201546002909201549092565b600554600160a060020a031681565b60008060006109823361093d565b925092509250909192565b60095481565b60085481565b600454600160a060020a031660009081526006602052604090205490565b600254600160a060020a031660009081526006602052604090205490565b600160a060020a0333166000908152600660205260408120600201548190116109fd57600080fd5b600160a060020a033381166000908152600660205260409020600201543090911631901115610a2857fe5b5033600160a060020a038116600090815260066020526040808220600201805492905590917f9722cdc65dd852fc27a66eb73f3075ebafbfe00a914437ce1b7b8c8d9fcde12791429190849051928352600160a060020a0390911660208301526040808301919091526060909101905180910390a1600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561029d57600080fd5b60035481565b600554600160a060020a031660009081526006602052604090205490565b600254600160a060020a031681565b6000808083851115610b0f57fe5b83851415610b205760009250610b7c565b610b30848663ffffffff61106316565b9150603c821015610b445760009250610b7c565b610b5582603c63ffffffff61104c16565b905060008111610b6157fe5b6103e88110610b7557620f42409250610b7c565b6002810a92505b505092915050565b6000610b9260035442610b01565b600254600160a060020a0316600090815260066020526040902054909150610bc0908263ffffffff61100716565b60028054600160a060020a039081166000908152600660205260408082209490945560045482168152838120549254909116815291909120541115610ca4576004805460058054600160a060020a03808416600160a060020a0319928316179283905560025481169190931617928390559181166000818152600660205260408082205494909316808252908390205460008051602061107683398151915294429490919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a1610d81565b600554600160a060020a03908116600090815260066020526040808220546002549093168252902054118015610ceb5750600454600254600160a060020a03908116911614155b15610d815760025460058054600160a060020a031916600160a060020a039283161790819055600454821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b600454600160a060020a0316600090815260066020526040812054819081908190620f4240901061100057610dc760026104e9600160085461102190919063ffffffff16565b9350610de460026104e9600160095461102190919063ffffffff16565b600854909350610dfa908563ffffffff61106316565b600954909250610e10908463ffffffff61106316565b600454600160a060020a0316600090815260066020526040902060020154909150610e41908363ffffffff61100716565b600454600160a060020a039081166000908152600660205260408082206002908101949094556005549092168152200154610e82908263ffffffff61100716565b60058054600160a060020a0390811660009081526006602052604080822060029081019590955560078054600190810180835560088c815560098c8155835460048054918a16600160a060020a031992831681179091558a5482161790995586548816875285872084019290925585548716865284862086905583548954881687528587209093019290925587548616855283852085905593548754951694909516939093179094554260038190559154925490547fb5d8636ab45e6cac7a4a61cb7c77f77f61a454d73aa2e6139ff8dcaf463537e594929392518085815260200184815260200183815260200182815260200194505050505060405180910390a1600454600554600160a060020a0391821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b5050505050565b60008282018381101561101657fe5b8091505b5092915050565b600080831515611034576000915061101a565b5082820282848281151561104457fe5b041461101657fe5b600080828481151561105a57fe5b04949350505050565b60008282111561106f57fe5b50900390560071c960b6df4a6d327a11790ddd078fcb97dcfdf70011981280641d0b207c376ea165627a7a723058208a4aaa6f85a6a433f39d3418c1d8d543cbbfefb4389aca39f408d0999542d49a0029
Deployed Bytecode
0x6060604052600436106100da5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663146ca53181146100f85780633df4ddf41461011d578063593284011461014c5780635a8ac02d1461018f5780636708cc63146100ee5780636c1475ad146101a25780637daa10ce146101b557806381cd5eec146101c85780638f2ee2df146101db5780638f7d4dad146101ee578063aa64767314610201578063b73c6ce914610214578063ba9072ea14610227578063c11c0cc11461023a578063cc181ca81461024d575b3415156100ee576100e9610260565b6100f6565b6100f66102a0565b005b341561010357600080fd5b61010b610928565b60405190815260200160405180910390f35b341561012857600080fd5b61013061092e565b604051600160a060020a03909116815260200160405180910390f35b341561015757600080fd5b61016b600160a060020a036004351661093d565b60405180848152602001838152602001828152602001935050505060405180910390f35b341561019a57600080fd5b610130610965565b34156101ad57600080fd5b6100f6610260565b34156101c057600080fd5b61016b610974565b34156101d357600080fd5b61010b61098d565b34156101e657600080fd5b61010b610993565b34156101f957600080fd5b61010b610999565b341561020c57600080fd5b61010b6109b7565b341561021f57600080fd5b6100f66109d5565b341561023257600080fd5b61010b610ace565b341561024557600080fd5b61010b610ad4565b341561025857600080fd5b610130610af2565b600254600160a060020a03166000908152600660205260408120546003546102889042610b01565b019050620f4240811061029d5761029d610b84565b50565b60008060008060006102b460035442610b01565b600254600160a060020a03166000908152600660205260409020549091506102e2908263ffffffff61100716565b60028054600160a060020a0390811660009081526006602052604080822094909455600454821681528381205492549091168152919091205411156103c6576004805460058054600160a060020a03808416600160a060020a0319928316179283905560025481169190931617928390559181166000818152600660205260408082205494909316808252908390205460008051602061107683398151915294429490919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a16104a3565b600554600160a060020a0390811660009081526006602052604080822054600254909316825290205411801561040d5750600454600254600160a060020a03908116911614155b156104a35760025460058054600160a060020a031916600160a060020a039283161790819055600454821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b600454600160a060020a0316600090815260066020526040812054819081908190620f4240901061072e576104f560026104e9600160085461102190919063ffffffff16565b9063ffffffff61104c16565b935061051260026104e9600160095461102190919063ffffffff16565b600854909350610528908563ffffffff61106316565b60095490925061053e908463ffffffff61106316565b600454600160a060020a031660009081526006602052604090206002015490915061056f908363ffffffff61100716565b600454600160a060020a0390811660009081526006602052604080822060029081019490945560055490921681522001546105b0908263ffffffff61100716565b60058054600160a060020a0390811660009081526006602052604080822060029081019590955560078054600190810180835560088c815560098c8155835460048054918a16600160a060020a031992831681179091558a5482161790995586548816875285872084019290925585548716865284862086905583548954881687528587209093019290925587548616855283852085905593548754951694909516939093179094554260038190559154925490547fb5d8636ab45e6cac7a4a61cb7c77f77f61a454d73aa2e6139ff8dcaf463537e594929392518085815260200184815260200183815260200182815260200194505050505060405180910390a1600454600554600160a060020a0391821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b61074a6103e86104e9600560085461102190919063ffffffff16565b9850348990101561075a57600080fd5b61077060646104e934600563ffffffff61102116565b975061078860646104e934601463ffffffff61102116565b96506107aa8761079e348b63ffffffff61106316565b9063ffffffff61106316565b955034888801870111156107ba57fe5b60008054600160a060020a03168152600660205260409020600201546107e6908963ffffffff61100716565b60008054600160a060020a0316815260066020526040902060020155600854610815908763ffffffff61100716565b60085560095461082b908863ffffffff61100716565b600955600754600254600160a060020a03166000908152600660205260409020600101541461087057600254600160a060020a03166000908152600660205260408120555b60028054600160a060020a03191633600160a060020a0390811691909117808355600754908216600090815260066020526040908190206001019190915542600381905592546008546009547fba7431323f46ac3719ae2c8685fda2c5cae744de7d04a2c2850d6206d3c467229594929092169234929051948552600160a060020a0390931660208501526040808501929092526060840152608083019190915260a0909101905180910390a1505050505050505050565b60075481565b600454600160a060020a031681565b600160a060020a03166000908152600660205260409020805460018201546002909201549092565b600554600160a060020a031681565b60008060006109823361093d565b925092509250909192565b60095481565b60085481565b600454600160a060020a031660009081526006602052604090205490565b600254600160a060020a031660009081526006602052604090205490565b600160a060020a0333166000908152600660205260408120600201548190116109fd57600080fd5b600160a060020a033381166000908152600660205260409020600201543090911631901115610a2857fe5b5033600160a060020a038116600090815260066020526040808220600201805492905590917f9722cdc65dd852fc27a66eb73f3075ebafbfe00a914437ce1b7b8c8d9fcde12791429190849051928352600160a060020a0390911660208301526040808301919091526060909101905180910390a1600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561029d57600080fd5b60035481565b600554600160a060020a031660009081526006602052604090205490565b600254600160a060020a031681565b6000808083851115610b0f57fe5b83851415610b205760009250610b7c565b610b30848663ffffffff61106316565b9150603c821015610b445760009250610b7c565b610b5582603c63ffffffff61104c16565b905060008111610b6157fe5b6103e88110610b7557620f42409250610b7c565b6002810a92505b505092915050565b6000610b9260035442610b01565b600254600160a060020a0316600090815260066020526040902054909150610bc0908263ffffffff61100716565b60028054600160a060020a039081166000908152600660205260408082209490945560045482168152838120549254909116815291909120541115610ca4576004805460058054600160a060020a03808416600160a060020a0319928316179283905560025481169190931617928390559181166000818152600660205260408082205494909316808252908390205460008051602061107683398151915294429490919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a1610d81565b600554600160a060020a03908116600090815260066020526040808220546002549093168252902054118015610ceb5750600454600254600160a060020a03908116911614155b15610d815760025460058054600160a060020a031916600160a060020a039283161790819055600454821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b600454600160a060020a0316600090815260066020526040812054819081908190620f4240901061100057610dc760026104e9600160085461102190919063ffffffff16565b9350610de460026104e9600160095461102190919063ffffffff16565b600854909350610dfa908563ffffffff61106316565b600954909250610e10908463ffffffff61106316565b600454600160a060020a0316600090815260066020526040902060020154909150610e41908363ffffffff61100716565b600454600160a060020a039081166000908152600660205260408082206002908101949094556005549092168152200154610e82908263ffffffff61100716565b60058054600160a060020a0390811660009081526006602052604080822060029081019590955560078054600190810180835560088c815560098c8155835460048054918a16600160a060020a031992831681179091558a5482161790995586548816875285872084019290925585548716865284862086905583548954881687528587209093019290925587548616855283852085905593548754951694909516939093179094554260038190559154925490547fb5d8636ab45e6cac7a4a61cb7c77f77f61a454d73aa2e6139ff8dcaf463537e594929392518085815260200184815260200183815260200182815260200194505050505060405180910390a1600454600554600160a060020a0391821660008181526006602052604080822054939094168082529084902054600080516020611076833981519152944294919051948552600160a060020a039384166020860152919092166040808501919091526060840192909252608083015260a0909101905180910390a15b5050505050565b60008282018381101561101657fe5b8091505b5092915050565b600080831515611034576000915061101a565b5082820282848281151561104457fe5b041461101657fe5b600080828481151561105a57fe5b04949350505050565b60008282111561106f57fe5b50900390560071c960b6df4a6d327a11790ddd078fcb97dcfdf70011981280641d0b207c376ea165627a7a723058208a4aaa6f85a6a433f39d3418c1d8d543cbbfefb4389aca39f408d0999542d49a0029
Swarm Source
bzzr://8a4aaa6f85a6a433f39d3418c1d8d543cbbfefb4389aca39f408d0999542d49a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,938.49 | 0.0351 | $103.24 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.