More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,440 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Grow Tree | 11267257 | 1495 days ago | IN | 0 ETH | 0.00104839 | ||||
Withdraw Balance | 11265136 | 1495 days ago | IN | 0 ETH | 0.0004448 | ||||
Give Pecan | 11265066 | 1495 days ago | IN | 0 ETH | 0.00129361 | ||||
Give Pecan | 11265039 | 1495 days ago | IN | 0 ETH | 0.00114669 | ||||
Plant Root | 11264982 | 1495 days ago | IN | 0.001 ETH | 0.01175244 | ||||
Claim Share | 11058516 | 1527 days ago | IN | 0 ETH | 0.00659428 | ||||
Pay Throne | 11058516 | 1527 days ago | IN | 0 ETH | 0.00202153 | ||||
Withdraw Balance | 11019221 | 1533 days ago | IN | 0 ETH | 0.00069611 | ||||
Claim Share | 11019209 | 1533 days ago | IN | 0 ETH | 0.00134555 | ||||
Claim Share | 10951291 | 1544 days ago | IN | 0 ETH | 0.00361974 | ||||
Withdraw Balance | 10467624 | 1618 days ago | IN | 0 ETH | 0.000556 | ||||
Claim Share | 10443304 | 1622 days ago | IN | 0 ETH | 0.00132096 | ||||
Withdraw Balance | 10401309 | 1628 days ago | IN | 0 ETH | 0.00045147 | ||||
Claim Share | 10384299 | 1631 days ago | IN | 0 ETH | 0.00225935 | ||||
Claim Share | 10376341 | 1632 days ago | IN | 0 ETH | 0.00327566 | ||||
Grow Tree | 10264050 | 1650 days ago | IN | 0 ETH | 0.00085977 | ||||
Withdraw Balance | 10264050 | 1650 days ago | IN | 0 ETH | 0.00034472 | ||||
Claim Share | 10260406 | 1650 days ago | IN | 0 ETH | 0.00069764 | ||||
Give Pecan | 10249910 | 1652 days ago | IN | 0 ETH | 0.00111441 | ||||
Claim Share | 10195593 | 1660 days ago | IN | 0 ETH | 0.00131374 | ||||
Withdraw Balance | 10121203 | 1672 days ago | IN | 0 ETH | 0.00022684 | ||||
Claim Share | 10121166 | 1672 days ago | IN | 0 ETH | 0.00058327 | ||||
Claim Share | 10073685 | 1679 days ago | IN | 0 ETH | 0.00086347 | ||||
Claim Share | 10059789 | 1681 days ago | IN | 0 ETH | 0.00094561 | ||||
Withdraw Balance | 10008557 | 1689 days ago | IN | 0 ETH | 0.00007561 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
11265136 | 1495 days ago | 0.00182707 ETH | ||||
11019221 | 1533 days ago | 0.08388036 ETH | ||||
10467624 | 1618 days ago | 0.00318228 ETH | ||||
10401309 | 1628 days ago | 0.01632864 ETH | ||||
10264050 | 1650 days ago | 0.01853234 ETH | ||||
10121203 | 1672 days ago | 0.01499732 ETH | ||||
10008557 | 1689 days ago | 0.01005827 ETH | ||||
9956379 | 1698 days ago | 0.00002588 ETH | ||||
9943515 | 1699 days ago | 0.00000626 ETH | ||||
9925175 | 1702 days ago | 0.00859616 ETH | ||||
9924915 | 1702 days ago | 0.0064161 ETH | ||||
9920626 | 1703 days ago | 0.01713644 ETH | ||||
9839189 | 1716 days ago | 0.02063815 ETH | ||||
9800015 | 1722 days ago | 0.003 ETH | ||||
9799988 | 1722 days ago | 0.00009185 ETH | ||||
9758980 | 1728 days ago | 0.00053721 ETH | ||||
9743554 | 1730 days ago | 0.0041 ETH | ||||
9739155 | 1731 days ago | 0.00542912 ETH | ||||
9699007 | 1737 days ago | 0.0391898 ETH | ||||
9680138 | 1740 days ago | 0.005864 ETH | ||||
9668667 | 1742 days ago | 0.04224531 ETH | ||||
9554207 | 1760 days ago | 0.01197212 ETH | ||||
9142612 | 1825 days ago | 0.00193298 ETH | ||||
9024967 | 1847 days ago | 0.00137329 ETH | ||||
9024259 | 1847 days ago | 0.00218985 ETH |
Loading...
Loading
Contract Name:
SnailTree
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-12-29 */ pragma solidity ^0.4.24; /* SNAILTREE // SnailTree is a mock HYIP, coupled with a jackpot. // To start, players spend ETH to plant a root. // They get a "tree size" proportional to their investment. // They also get Pecans the moment they invest. // Pecan number starts proportional to ETH, and then multiplied. // This buy multiplier is global. // The longer nobody plants a root, the bigger multiplier. // Each player gets to claim ETH equivalent to their treeSize. // This claim starts equivalent to 4% of their initial, daily. // This claim also gets them Pecans. // The amount of Pecans given raises with time. // This claim multiplier builds up the longer the player doesn't claim. // Instead of claiming ETH, players can grow their tree. // Growing the tree reinvests the ETH they would have claimed. // Their treeSize raises proportionally. // If their lastClaim was at least one hour ago, they receive a boost. // Boosts are straight multipliers to Pecan rewards. // A player can give Pecans to Wonkers the Squirrel, // And receive ETH in return, from the wonkPot. // Once Wonkers receives enough Pecans, the round is over. // Whoever gave him Pecans last wins the roundPot (20% of the jackPot). // A new round starts immediately. // Players from the previous round see their treeSize decrease by 20%. // Their growth boost also resets to 1. // This occurs automatically on their next action. */ contract SnailTree { using SafeMath for uint; /* Event */ event PlantedRoot(address indexed player, uint eth, uint pecan, uint treesize); event GavePecan(address indexed player, uint eth, uint pecan); event ClaimedShare(address indexed player, uint eth, uint pecan); event GrewTree(address indexed player, uint eth, uint pecan, uint boost); event WonRound (address indexed player, uint indexed round, uint eth); event WithdrewBalance (address indexed player, uint eth); event PaidThrone (address indexed player, uint eth); event BoostedPot (address indexed player, uint eth); /* Constants */ uint256 constant SECONDS_IN_HOUR = 3600; uint256 constant SECONDS_IN_DAY = 86400; uint256 constant PECAN_WIN_FACTOR = 0.0000000001 ether; //add 1B pecans per 0.1 ETH in pot uint256 constant TREE_SIZE_COST = 0.0000005 ether; //= 1 treeSize uint256 constant REWARD_SIZE_ETH = 0.00000002 ether; //4% per day per treeSize address constant SNAILTHRONE = 0x261d650a521103428C6827a11fc0CBCe96D74DBc; /* Variables */ //Current round uint256 public gameRound = 0; //Fund for %claims uint256 public treePot = 0; //Direct rewards uint256 public wonkPot = 0; //Round winner reward uint256 public jackPot = 0; //Divs for SnailThrone holders uint256 public thronePot = 0; //Pecans required to win this round uint256 public pecanToWin = 0; //Pecans given this round uint256 public pecanGiven = 0; //Last ETH investment uint256 public lastRootPlant = 0; /* Mappings */ mapping (address => uint256) playerRound; mapping (address => uint256) playerBalance; mapping (address => uint256) treeSize; mapping (address => uint256) pecan; mapping (address => uint256) lastClaim; mapping (address => uint256) boost; /* Functions */ // Constructor // Sets round to 1 and lastRootPlant to now constructor() public { gameRound = 1; pecanToWin = 1; lastRootPlant = now; } //-- PRIVATE -- // CheckRound // Ensures player is on correct round // If not, reduce his treeSize by 20% per round missed // Increase his round until he's on the correct one function CheckRound() private { while(playerRound[msg.sender] != gameRound){ treeSize[msg.sender] = treeSize[msg.sender].mul(4).div(5); playerRound[msg.sender] = playerRound[msg.sender].add(1); boost[msg.sender] = 1; } } // WinRound // Called when a player gives enough Pecans to Wonkers // Gives his earnings to winner function WinRound(address _msgSender) private { //Increment round uint256 _round = gameRound; gameRound = gameRound.add(1); //Compute reward and adjust pot uint256 _reward = jackPot.div(5); jackPot = jackPot.sub(_reward); //Reset pecan given to 0 pecanGiven = 0; //Set new pecan requirement pecanToWin = ComputePecanToWin(); //Send reward playerBalance[_msgSender] = playerBalance[_msgSender].add(_reward); emit WonRound(_msgSender, _round, _reward); } // PotSplit // Allocates the ETH of every transaction // 40% treePot, 30% wonkPot, 20% jackPot, 10% thronePot function PotSplit(uint256 _msgValue) private { treePot = treePot.add(_msgValue.mul(4).div(10)); wonkPot = wonkPot.add(_msgValue.mul(3).div(10)); jackPot = jackPot.add(_msgValue.div(5)); thronePot = thronePot.add(_msgValue.div(10)); } //-- GAME ACTIONS -- // PlantRoot // Gives player treeSize and pecan // Sets lastRootPlant and lastClaim to now function PlantRoot() public payable { require(tx.origin == msg.sender, "no contracts allowed"); require(msg.value >= 0.001 ether, "at least 1 finney to plant a root"); //Check if player is in correct round CheckRound(); //Split ETH to pot PotSplit(msg.value); //Set new pecan requirement pecanToWin = ComputePecanToWin(); //Get pecans to give uint256 _newPecan = ComputePlantPecan(msg.value); //Set claims to now lastRootPlant = now; lastClaim[msg.sender] = now; //Get treeSize to give uint256 _treePlant = msg.value.div(TREE_SIZE_COST); //Add player treeSize treeSize[msg.sender] = treeSize[msg.sender].add(_treePlant); //Add player pecans pecan[msg.sender] = pecan[msg.sender].add(_newPecan); emit PlantedRoot(msg.sender, msg.value, _newPecan, treeSize[msg.sender]); } // GivePecan // Exchanges player Pecans for ETH // Wins the round if enough Pecans are given function GivePecan(uint256 _pecanGift) public { require(pecan[msg.sender] >= _pecanGift, "not enough pecans"); //Check if player is in correct round CheckRound(); //Get reward uint256 _ethReward = ComputeWonkTrade(_pecanGift); //Lower player pecan pecan[msg.sender] = pecan[msg.sender].sub(_pecanGift); //Adjust pecan given pecanGiven = pecanGiven.add(_pecanGift); //Lower wonkPot wonkPot = wonkPot.sub(_ethReward); //Give reward playerBalance[msg.sender] = playerBalance[msg.sender].add(_ethReward); //Check if player Wins if(pecanGiven >= pecanToWin){ WinRound(msg.sender); } else { emit GavePecan(msg.sender, _ethReward, _pecanGift); } } // ClaimShare // Gives player his share of ETH, and Pecans // Sets his lastClaim to now function ClaimShare() public { require(treeSize[msg.sender] > 0, "plant a root first"); //Check if player is in correct round CheckRound(); //Get ETH reward uint256 _ethReward = ComputeEtherShare(msg.sender); //Get Pecan reward uint256 _pecanReward = ComputePecanShare(msg.sender); //Set lastClaim lastClaim[msg.sender] = now; //Lower treePot treePot = treePot.sub(_ethReward); //Give rewards pecan[msg.sender] = pecan[msg.sender].add(_pecanReward); playerBalance[msg.sender] = playerBalance[msg.sender].add(_ethReward); emit ClaimedShare(msg.sender, _ethReward, _pecanReward); } // GrowTree // Uses player share to grow his treeSize // Gives share pecans multiplied by boost // Increases boost if last claim was at least one hour ago function GrowTree() public { require(treeSize[msg.sender] > 0, "plant a root first"); //Check if player is in correct round CheckRound(); //Get ETH used uint256 _ethUsed = ComputeEtherShare(msg.sender); //Get Pecan reward uint256 _pecanReward = ComputePecanShare(msg.sender); //Check if player gets a boost increase uint256 _timeSpent = now.sub(lastClaim[msg.sender]); //Set lastClaim lastClaim[msg.sender] = now; //Get treeSize to give uint256 _treeGrowth = _ethUsed.div(TREE_SIZE_COST); //Add player treeSize treeSize[msg.sender] = treeSize[msg.sender].add(_treeGrowth); //Give boost if eligible (maximum +10 at once) if(_timeSpent >= SECONDS_IN_HOUR){ uint256 _boostPlus = _timeSpent.div(SECONDS_IN_HOUR); if(_boostPlus > 10){ _boostPlus = 10; } boost[msg.sender] = boost[msg.sender].add(_boostPlus); } //Give Pecan reward pecan[msg.sender] = pecan[msg.sender].add(_pecanReward); emit GrewTree(msg.sender, _ethUsed, _pecanReward, boost[msg.sender]); } //-- MISC ACTIONS -- // WithdrawBalance // Withdraws the ETH balance of a player to his wallet function WithdrawBalance() public { require(playerBalance[msg.sender] > 0, "no ETH in player balance"); uint _amount = playerBalance[msg.sender]; playerBalance[msg.sender] = 0; msg.sender.transfer(_amount); emit WithdrewBalance(msg.sender, _amount); } // PayThrone // Sends thronePot to SnailThrone function PayThrone() public { uint256 _payThrone = thronePot; thronePot = 0; if (!SNAILTHRONE.call.value(_payThrone)()){ revert(); } emit PaidThrone(msg.sender, _payThrone); } // fallback function // Feeds the jackPot function() public payable { jackPot = jackPot.add(msg.value); emit BoostedPot(msg.sender, msg.value); } //-- CALCULATIONS -- // ComputeEtherShare // Returns ETH reward for a claim // Reward = 0.00000002 ETH per treeSize per day function ComputeEtherShare(address adr) public view returns(uint256) { //Get time since last claim uint256 _timeLapsed = now.sub(lastClaim[adr]); //Compute reward uint256 _reward = _timeLapsed.mul(REWARD_SIZE_ETH).mul(treeSize[adr]).div(SECONDS_IN_DAY); //Check reward isn't above remaining treePot if(_reward >= treePot){ _reward = treePot; } return _reward; } // ComputeShareBoostFactor // Returns current personal Pecan multiplier // Starts at 4, adds 1 per hour function ComputeShareBoostFactor(address adr) public view returns(uint256) { //Get time since last claim uint256 _timeLapsed = now.sub(lastClaim[adr]); //Compute boostFactor (starts at 4, +1 per hour) uint256 _boostFactor = (_timeLapsed.div(SECONDS_IN_HOUR)).add(4); return _boostFactor; } // ComputePecanShare // Returns Pecan reward for a claim // Reward = 1 Pecan per treeSize per day, multiplied by personal boost function ComputePecanShare(address adr) public view returns(uint256) { //Get time since last claim uint256 _timeLapsed = now.sub(lastClaim[adr]); //Get boostFactor uint256 _shareBoostFactor = ComputeShareBoostFactor(adr); //Compute reward uint256 _reward = _timeLapsed.mul(treeSize[adr]).mul(_shareBoostFactor).mul(boost[msg.sender]).div(SECONDS_IN_DAY); return _reward; } // ComputePecanToWin // Returns amount of Pecans that must be given to win the round // Pecans to win = 1B + (1B per 0.2 ETH in jackpot) function ComputePecanToWin() public view returns(uint256) { uint256 _pecanToWin = jackPot.div(PECAN_WIN_FACTOR); return _pecanToWin; } // ComputeWonkTrade // Returns ETH reward for a given amount of Pecans // % of wonkPot rewarded = (Pecans gifted / Pecans to win) / 2, maximum 50% function ComputeWonkTrade(uint256 _pecanGift) public view returns(uint256) { //Make sure gift isn't above requirement to win if(_pecanGift > pecanToWin) { _pecanGift = pecanToWin; } uint256 _reward = _pecanGift.mul(wonkPot).div(pecanToWin).div(2); return _reward; } // ComputePlantBoostFactor // Returns global boost multiplier // +1% per second function ComputePlantBoostFactor() public view returns(uint256) { //Get time since last global plant uint256 _timeLapsed = now.sub(lastRootPlant); //Compute boostFactor (starts at 100, +1 per second) uint256 _boostFactor = (_timeLapsed.mul(1)).add(100); return _boostFactor; } // ComputePlantPecan // Returns Pecan reward for a given buy // 1 Pecan per the cost of 1 Tree Size, multiplied by global boost function ComputePlantPecan(uint256 _msgValue) public view returns(uint256) { //Get boostFactor uint256 _treeBoostFactor = ComputePlantBoostFactor(); //Compute reward uint256 _reward = _msgValue.mul(_treeBoostFactor).div(TREE_SIZE_COST).div(100); return _reward; } //-- GETTERS -- function GetTree(address adr) public view returns(uint256) { return treeSize[adr]; } function GetPecan(address adr) public view returns(uint256) { return pecan[adr]; } function GetMyBoost() public view returns(uint256) { return boost[msg.sender]; } function GetMyBalance() public view returns(uint256) { return playerBalance[msg.sender]; } function GetMyRound() public view returns(uint256) { return playerRound[msg.sender]; } function GetMyLastClaim() public view returns(uint256) { return lastClaim[msg.sender]; } } /* SafeMath library */ 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
[{"constant":true,"inputs":[],"name":"GetMyBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"PlantRoot","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"GetPecan","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_pecanGift","type":"uint256"}],"name":"GivePecan","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"pecanToWin","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"ComputeEtherShare","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"jackPot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"PayThrone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"GrowTree","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ComputePecanToWin","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"ComputePecanShare","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_pecanGift","type":"uint256"}],"name":"ComputeWonkTrade","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GetMyLastClaim","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GetMyBoost","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"treePot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"WithdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gameRound","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wonkPot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ComputePlantBoostFactor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"thronePot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GetMyRound","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"GetTree","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_msgValue","type":"uint256"}],"name":"ComputePlantPecan","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pecanGiven","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"adr","type":"address"}],"name":"ComputeShareBoostFactor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastRootPlant","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"ClaimShare","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"eth","type":"uint256"},{"indexed":false,"name":"pecan","type":"uint256"},{"indexed":false,"name":"treesize","type":"uint256"}],"name":"PlantedRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"eth","type":"uint256"},{"indexed":false,"name":"pecan","type":"uint256"}],"name":"GavePecan","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"eth","type":"uint256"},{"indexed":false,"name":"pecan","type":"uint256"}],"name":"ClaimedShare","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"eth","type":"uint256"},{"indexed":false,"name":"pecan","type":"uint256"},{"indexed":false,"name":"boost","type":"uint256"}],"name":"GrewTree","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":true,"name":"round","type":"uint256"},{"indexed":false,"name":"eth","type":"uint256"}],"name":"WonRound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"eth","type":"uint256"}],"name":"WithdrewBalance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"eth","type":"uint256"}],"name":"PaidThrone","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"eth","type":"uint256"}],"name":"BoostedPot","type":"event"}]
Contract Creation Code
608060405260008055600060015560006002556000600355600060045560006005556000600655600060075534801561003757600080fd5b506001600081905560055542600755611192806100556000396000f30060806040526004361061015e5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663022b973581146101ac5780631d6f4f35146101d3578063330e5192146101dd57806339078e14146101fe578063428dc1eb14610216578063456572961461022b5780634a78cdba1461024c5780634c5f97b6146102615780635b8ad0ba146102765780635e8590041461028b5780637ff8b460146102a05780638ef7f49e146102c157806394065ce8146102d95780639cbbe5ff146102ee5780639e987b2014610303578063a39d716d14610318578063a5f9b5c21461032d578063b879746414610342578063b8deecc314610357578063bd69b0711461036c578063de85c04014610381578063df08c16214610396578063df76b7f3146103b7578063dfdb5e76146103cf578063e2f551c3146103e4578063f851e74c14610405578063fe53e6cc1461041a575b600354610171903463ffffffff61042f16565b60035560408051348152905133917f02ab1e41f7e6cab4a9e4ccd1f35f0cf0d843cb000f1251dfb0eec75ba3538617919081900360200190a2005b3480156101b857600080fd5b506101c1610449565b60408051918252519081900360200190f35b6101db61045c565b005b3480156101e957600080fd5b506101c1600160a060020a036004351661063d565b34801561020a57600080fd5b506101db600435610658565b34801561022257600080fd5b506101c16107b7565b34801561023757600080fd5b506101c1600160a060020a03600435166107bd565b34801561025857600080fd5b506101c1610859565b34801561026d57600080fd5b506101db61085f565b34801561028257600080fd5b506101db6108d5565b34801561029757600080fd5b506101c1610abe565b3480156102ac57600080fd5b506101c1600160a060020a0360043516610ae0565b3480156102cd57600080fd5b506101c1600435610b71565b3480156102e557600080fd5b506101c1610ba4565b3480156102fa57600080fd5b506101c1610bb7565b34801561030f57600080fd5b506101c1610bca565b34801561032457600080fd5b506101db610bd0565b34801561033957600080fd5b506101c1610cb2565b34801561034e57600080fd5b506101c1610cb8565b34801561036357600080fd5b506101c1610cbe565b34801561037857600080fd5b506101c1610cfc565b34801561038d57600080fd5b506101c1610d02565b3480156103a257600080fd5b506101c1600160a060020a0360043516610d15565b3480156103c357600080fd5b506101c1600435610d30565b3480156103db57600080fd5b506101c1610d63565b3480156103f057600080fd5b506101c1600160a060020a0360043516610d69565b34801561041157600080fd5b506101c1610db0565b34801561042657600080fd5b506101db610db6565b60008282018381101561043e57fe5b8091505b5092915050565b3360009081526009602052604090205490565b6000803233146104b6576040805160e560020a62461bcd02815260206004820152601460248201527f6e6f20636f6e74726163747320616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b66038d7ea4c6800034101561053b576040805160e560020a62461bcd02815260206004820152602160248201527f6174206c6561737420312066696e6e657920746f20706c616e74206120726f6f60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b610543610f06565b61054c34610f98565b610554610abe565b60055561056034610d30565b426007819055336000908152600c6020526040902055915061058d3464746a52880063ffffffff61103d16565b336000908152600a60205260409020549091506105b0908263ffffffff61042f16565b336000908152600a6020908152604080832093909355600b905220546105dc908363ffffffff61042f16565b336000818152600b6020908152604080832094909455600a81529083902054835134815291820186905281840152915190917fb1bce97f8be88c355b0458bd4f8d467e824f8fd98fb7bd9ec593e7087f4826cc919081900360600190a25050565b600160a060020a03166000908152600b602052604090205490565b336000908152600b60205260408120548211156106bf576040805160e560020a62461bcd02815260206004820152601160248201527f6e6f7420656e6f75676820706563616e73000000000000000000000000000000604482015290519081900360640190fd5b6106c7610f06565b6106d082610b71565b336000908152600b60205260409020549091506106f3908363ffffffff61105416565b336000908152600b6020526040902055600654610716908363ffffffff61042f16565b60065560025461072c908263ffffffff61105416565b6002553360009081526009602052604090205461074f908263ffffffff61042f16565b33600090815260096020526040902055600554600654106107785761077333611066565b6107b3565b6040805182815260208101849052815133927fc02ed1d39bd99763292fa8dba3ad440709528deeeb558d662a36c708d4f9f937928290030190a25b5050565b60055481565b600160a060020a0381166000908152600c6020526040812054819081906107eb90429063ffffffff61105416565b600160a060020a0385166000908152600a602052604090205490925061084190620151809061083590610829866404a817c80063ffffffff61113b16565b9063ffffffff61113b16565b9063ffffffff61103d16565b600154909150811061085257506001545b9392505050565b60035481565b60048054600091829055604051909173261d650a521103428c6827a11fc0cbce96d74dbc91839181818185875af192505050151561089c57600080fd5b60408051828152905133917ffd2b287395e90cf1891bf11bd61ab2c174577b8854eb26c5d22c6321f969387d919081900360200190a250565b336000908152600a602052604081205481908190819081908110610943576040805160e560020a62461bcd02815260206004820152601260248201527f706c616e74206120726f6f742066697273740000000000000000000000000000604482015290519081900360640190fd5b61094b610f06565b610954336107bd565b945061095f33610ae0565b336000908152600c602052604090205490945061098390429063ffffffff61105416565b336000908152600c6020526040902042905592506109ac8564746a52880063ffffffff61103d16565b336000908152600a60205260409020549092506109cf908363ffffffff61042f16565b336000908152600a6020526040902055610e108310610a3a576109fa83610e1063ffffffff61103d16565b9050600a811115610a095750600a5b336000908152600d6020526040902054610a29908263ffffffff61042f16565b336000908152600d60205260409020555b336000908152600b6020526040902054610a5a908563ffffffff61042f16565b336000818152600b6020908152604080832094909455600d81529083902054835189815291820188905281840152915190917fc0005dc7e9e091d3e43cc9cb0b7b99ed7c9a763646e0e815ccc3a7d6ac8d6f10919081900360600190a25050505050565b600080610ada6305f5e10060035461103d90919063ffffffff16565b92915050565b600160a060020a0381166000908152600c6020526040812054819081908190610b1090429063ffffffff61105416565b9250610b1b85610d69565b336000908152600d6020908152604080832054600160a060020a038a168452600a90925290912054919350610b689162015180916108359161082990879082908a9063ffffffff61113b16565b95945050505050565b600080600554831115610b845760055492505b61085260026108356005546108356002548861113b90919063ffffffff16565b336000908152600c602052604090205490565b336000908152600d602052604090205490565b60015481565b336000908152600960205260408120548110610c36576040805160e560020a62461bcd02815260206004820152601860248201527f6e6f2045544820696e20706c617965722062616c616e63650000000000000000604482015290519081900360640190fd5b5033600081815260096020526040808220805490839055905190929183156108fc02918491818181858888f19350505050158015610c78573d6000803e3d6000fd5b5060408051828152905133917f3b57c8ab659a2ed2a5b1674c7197d3cfefb18665ee17600906500f02dd3a306c919081900360200190a250565b60005481565b60025481565b6000806000610cd86007544261105490919063ffffffff16565b91506108526064610cf084600163ffffffff61113b16565b9063ffffffff61042f16565b60045481565b3360009081526008602052604090205490565b600160a060020a03166000908152600a602052604090205490565b6000806000610d3d610cbe565b9150610d5b606461083564746a52880081888763ffffffff61113b16565b949350505050565b60065481565b600160a060020a0381166000908152600c602052604081205481908190610d9790429063ffffffff61105416565b9150610d5b6004610cf084610e1063ffffffff61103d16565b60075481565b336000908152600a602052604081205481908110610e1e576040805160e560020a62461bcd02815260206004820152601260248201527f706c616e74206120726f6f742066697273740000000000000000000000000000604482015290519081900360640190fd5b610e26610f06565b610e2f336107bd565b9150610e3a33610ae0565b336000908152600c60205260409020429055600154909150610e62908363ffffffff61105416565b600155336000908152600b6020526040902054610e85908263ffffffff61042f16565b336000908152600b6020908152604080832093909355600990522054610eb1908363ffffffff61042f16565b33600081815260096020908152604091829020939093558051858152928301849052805191927f66d719fd9a238e953605aae7cda2d103ec74d8fdadbf451ca38c93fb22e17393929081900390910190a25050565b60008054338252600860205260409091205414610f9657336000908152600a6020526040902054610f459060059061083590600463ffffffff61113b16565b336000908152600a6020908152604080832093909355600890522054610f7290600163ffffffff61042f16565b33600090815260086020908152604080832093909355600d90522060019055610f06565b565b610fc0610fb1600a61083584600463ffffffff61113b16565b6001549063ffffffff61042f16565b600155610feb610fdc600a61083584600363ffffffff61113b16565b6002549063ffffffff61042f16565b60025561101161100282600563ffffffff61103d16565b6003549063ffffffff61042f16565b60035561103761102882600a63ffffffff61103d16565b6004549063ffffffff61042f16565b60045550565b600080828481151561104b57fe5b04949350505050565b60008282111561106057fe5b50900390565b600080549061107c82600163ffffffff61042f16565b60005560035461109390600563ffffffff61103d16565b6003549091506110a9908263ffffffff61105416565b60035560006006556110b9610abe565b600555600160a060020a0383166000908152600960205260409020546110e5908263ffffffff61042f16565b600160a060020a038416600081815260096020908152604091829020939093558051848152905185937fbeb61b2087f6238609c06286d1665e5e096b911589e7aaed8187aa07e1d9d2cb928290030190a3505050565b60008083151561114e5760009150610442565b5082820282848281151561115e57fe5b041461043e57fe00a165627a7a7230582073e428076c94f112824b63bcbadbe24c239168ffeb5f2ae43a9a11d4667b54c60029
Deployed Bytecode
0x60806040526004361061015e5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663022b973581146101ac5780631d6f4f35146101d3578063330e5192146101dd57806339078e14146101fe578063428dc1eb14610216578063456572961461022b5780634a78cdba1461024c5780634c5f97b6146102615780635b8ad0ba146102765780635e8590041461028b5780637ff8b460146102a05780638ef7f49e146102c157806394065ce8146102d95780639cbbe5ff146102ee5780639e987b2014610303578063a39d716d14610318578063a5f9b5c21461032d578063b879746414610342578063b8deecc314610357578063bd69b0711461036c578063de85c04014610381578063df08c16214610396578063df76b7f3146103b7578063dfdb5e76146103cf578063e2f551c3146103e4578063f851e74c14610405578063fe53e6cc1461041a575b600354610171903463ffffffff61042f16565b60035560408051348152905133917f02ab1e41f7e6cab4a9e4ccd1f35f0cf0d843cb000f1251dfb0eec75ba3538617919081900360200190a2005b3480156101b857600080fd5b506101c1610449565b60408051918252519081900360200190f35b6101db61045c565b005b3480156101e957600080fd5b506101c1600160a060020a036004351661063d565b34801561020a57600080fd5b506101db600435610658565b34801561022257600080fd5b506101c16107b7565b34801561023757600080fd5b506101c1600160a060020a03600435166107bd565b34801561025857600080fd5b506101c1610859565b34801561026d57600080fd5b506101db61085f565b34801561028257600080fd5b506101db6108d5565b34801561029757600080fd5b506101c1610abe565b3480156102ac57600080fd5b506101c1600160a060020a0360043516610ae0565b3480156102cd57600080fd5b506101c1600435610b71565b3480156102e557600080fd5b506101c1610ba4565b3480156102fa57600080fd5b506101c1610bb7565b34801561030f57600080fd5b506101c1610bca565b34801561032457600080fd5b506101db610bd0565b34801561033957600080fd5b506101c1610cb2565b34801561034e57600080fd5b506101c1610cb8565b34801561036357600080fd5b506101c1610cbe565b34801561037857600080fd5b506101c1610cfc565b34801561038d57600080fd5b506101c1610d02565b3480156103a257600080fd5b506101c1600160a060020a0360043516610d15565b3480156103c357600080fd5b506101c1600435610d30565b3480156103db57600080fd5b506101c1610d63565b3480156103f057600080fd5b506101c1600160a060020a0360043516610d69565b34801561041157600080fd5b506101c1610db0565b34801561042657600080fd5b506101db610db6565b60008282018381101561043e57fe5b8091505b5092915050565b3360009081526009602052604090205490565b6000803233146104b6576040805160e560020a62461bcd02815260206004820152601460248201527f6e6f20636f6e74726163747320616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b66038d7ea4c6800034101561053b576040805160e560020a62461bcd02815260206004820152602160248201527f6174206c6561737420312066696e6e657920746f20706c616e74206120726f6f60448201527f7400000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b610543610f06565b61054c34610f98565b610554610abe565b60055561056034610d30565b426007819055336000908152600c6020526040902055915061058d3464746a52880063ffffffff61103d16565b336000908152600a60205260409020549091506105b0908263ffffffff61042f16565b336000908152600a6020908152604080832093909355600b905220546105dc908363ffffffff61042f16565b336000818152600b6020908152604080832094909455600a81529083902054835134815291820186905281840152915190917fb1bce97f8be88c355b0458bd4f8d467e824f8fd98fb7bd9ec593e7087f4826cc919081900360600190a25050565b600160a060020a03166000908152600b602052604090205490565b336000908152600b60205260408120548211156106bf576040805160e560020a62461bcd02815260206004820152601160248201527f6e6f7420656e6f75676820706563616e73000000000000000000000000000000604482015290519081900360640190fd5b6106c7610f06565b6106d082610b71565b336000908152600b60205260409020549091506106f3908363ffffffff61105416565b336000908152600b6020526040902055600654610716908363ffffffff61042f16565b60065560025461072c908263ffffffff61105416565b6002553360009081526009602052604090205461074f908263ffffffff61042f16565b33600090815260096020526040902055600554600654106107785761077333611066565b6107b3565b6040805182815260208101849052815133927fc02ed1d39bd99763292fa8dba3ad440709528deeeb558d662a36c708d4f9f937928290030190a25b5050565b60055481565b600160a060020a0381166000908152600c6020526040812054819081906107eb90429063ffffffff61105416565b600160a060020a0385166000908152600a602052604090205490925061084190620151809061083590610829866404a817c80063ffffffff61113b16565b9063ffffffff61113b16565b9063ffffffff61103d16565b600154909150811061085257506001545b9392505050565b60035481565b60048054600091829055604051909173261d650a521103428c6827a11fc0cbce96d74dbc91839181818185875af192505050151561089c57600080fd5b60408051828152905133917ffd2b287395e90cf1891bf11bd61ab2c174577b8854eb26c5d22c6321f969387d919081900360200190a250565b336000908152600a602052604081205481908190819081908110610943576040805160e560020a62461bcd02815260206004820152601260248201527f706c616e74206120726f6f742066697273740000000000000000000000000000604482015290519081900360640190fd5b61094b610f06565b610954336107bd565b945061095f33610ae0565b336000908152600c602052604090205490945061098390429063ffffffff61105416565b336000908152600c6020526040902042905592506109ac8564746a52880063ffffffff61103d16565b336000908152600a60205260409020549092506109cf908363ffffffff61042f16565b336000908152600a6020526040902055610e108310610a3a576109fa83610e1063ffffffff61103d16565b9050600a811115610a095750600a5b336000908152600d6020526040902054610a29908263ffffffff61042f16565b336000908152600d60205260409020555b336000908152600b6020526040902054610a5a908563ffffffff61042f16565b336000818152600b6020908152604080832094909455600d81529083902054835189815291820188905281840152915190917fc0005dc7e9e091d3e43cc9cb0b7b99ed7c9a763646e0e815ccc3a7d6ac8d6f10919081900360600190a25050505050565b600080610ada6305f5e10060035461103d90919063ffffffff16565b92915050565b600160a060020a0381166000908152600c6020526040812054819081908190610b1090429063ffffffff61105416565b9250610b1b85610d69565b336000908152600d6020908152604080832054600160a060020a038a168452600a90925290912054919350610b689162015180916108359161082990879082908a9063ffffffff61113b16565b95945050505050565b600080600554831115610b845760055492505b61085260026108356005546108356002548861113b90919063ffffffff16565b336000908152600c602052604090205490565b336000908152600d602052604090205490565b60015481565b336000908152600960205260408120548110610c36576040805160e560020a62461bcd02815260206004820152601860248201527f6e6f2045544820696e20706c617965722062616c616e63650000000000000000604482015290519081900360640190fd5b5033600081815260096020526040808220805490839055905190929183156108fc02918491818181858888f19350505050158015610c78573d6000803e3d6000fd5b5060408051828152905133917f3b57c8ab659a2ed2a5b1674c7197d3cfefb18665ee17600906500f02dd3a306c919081900360200190a250565b60005481565b60025481565b6000806000610cd86007544261105490919063ffffffff16565b91506108526064610cf084600163ffffffff61113b16565b9063ffffffff61042f16565b60045481565b3360009081526008602052604090205490565b600160a060020a03166000908152600a602052604090205490565b6000806000610d3d610cbe565b9150610d5b606461083564746a52880081888763ffffffff61113b16565b949350505050565b60065481565b600160a060020a0381166000908152600c602052604081205481908190610d9790429063ffffffff61105416565b9150610d5b6004610cf084610e1063ffffffff61103d16565b60075481565b336000908152600a602052604081205481908110610e1e576040805160e560020a62461bcd02815260206004820152601260248201527f706c616e74206120726f6f742066697273740000000000000000000000000000604482015290519081900360640190fd5b610e26610f06565b610e2f336107bd565b9150610e3a33610ae0565b336000908152600c60205260409020429055600154909150610e62908363ffffffff61105416565b600155336000908152600b6020526040902054610e85908263ffffffff61042f16565b336000908152600b6020908152604080832093909355600990522054610eb1908363ffffffff61042f16565b33600081815260096020908152604091829020939093558051858152928301849052805191927f66d719fd9a238e953605aae7cda2d103ec74d8fdadbf451ca38c93fb22e17393929081900390910190a25050565b60008054338252600860205260409091205414610f9657336000908152600a6020526040902054610f459060059061083590600463ffffffff61113b16565b336000908152600a6020908152604080832093909355600890522054610f7290600163ffffffff61042f16565b33600090815260086020908152604080832093909355600d90522060019055610f06565b565b610fc0610fb1600a61083584600463ffffffff61113b16565b6001549063ffffffff61042f16565b600155610feb610fdc600a61083584600363ffffffff61113b16565b6002549063ffffffff61042f16565b60025561101161100282600563ffffffff61103d16565b6003549063ffffffff61042f16565b60035561103761102882600a63ffffffff61103d16565b6004549063ffffffff61042f16565b60045550565b600080828481151561104b57fe5b04949350505050565b60008282111561106057fe5b50900390565b600080549061107c82600163ffffffff61042f16565b60005560035461109390600563ffffffff61103d16565b6003549091506110a9908263ffffffff61105416565b60035560006006556110b9610abe565b600555600160a060020a0383166000908152600960205260409020546110e5908263ffffffff61042f16565b600160a060020a038416600081815260096020908152604091829020939093558051848152905185937fbeb61b2087f6238609c06286d1665e5e096b911589e7aaed8187aa07e1d9d2cb928290030190a3505050565b60008083151561114e5760009150610442565b5082820282848281151561115e57fe5b041461043e57fe00a165627a7a7230582073e428076c94f112824b63bcbadbe24c239168ffeb5f2ae43a9a11d4667b54c60029
Swarm Source
bzzr://73e428076c94f112824b63bcbadbe24c239168ffeb5f2ae43a9a11d4667b54c6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,471.37 | 0.00754436 | $26.19 |
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.