Overview
ETH Balance
2.907472302399406303 ETH
Eth Value
$9,887.97 (@ $3,400.88/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 126 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Update Goo Burn ... | 11785302 | 1419 days ago | IN | 0 ETH | 0.00486642 | ||||
Refund Token Pur... | 11713442 | 1430 days ago | IN | 0 ETH | 0.00468358 | ||||
Deposit Eth | 9866423 | 1715 days ago | IN | 4.1 ETH | 0.00014897 | ||||
Refund Token Pur... | 8768200 | 1893 days ago | IN | 0 ETH | 0.00014562 | ||||
Increase Token P... | 8746257 | 1896 days ago | IN | 0 ETH | 0.00013343 | ||||
Refund Token Pur... | 8746249 | 1896 days ago | IN | 0 ETH | 0.00010905 | ||||
Increase Token P... | 8746245 | 1896 days ago | IN | 0 ETH | 0.00008653 | ||||
Increase Token P... | 8707583 | 1902 days ago | IN | 0 ETH | 0.00017647 | ||||
Refund Token Pur... | 8707577 | 1902 days ago | IN | 0 ETH | 0.00017721 | ||||
Refund Token Pur... | 8707564 | 1902 days ago | IN | 0 ETH | 0.00020625 | ||||
Increase Token P... | 8707556 | 1902 days ago | IN | 0 ETH | 0.00011444 | ||||
Increase Token P... | 8702417 | 1903 days ago | IN | 0 ETH | 0.00017673 | ||||
Refund Token Pur... | 8702399 | 1903 days ago | IN | 0 ETH | 0.0001422 | ||||
Increase Token P... | 8702393 | 1903 days ago | IN | 0 ETH | 0.00011444 | ||||
Increase Token P... | 8690801 | 1905 days ago | IN | 0 ETH | 0.00017673 | ||||
Refund Token Pur... | 8690792 | 1905 days ago | IN | 0 ETH | 0.00014423 | ||||
Increase Token P... | 8690785 | 1905 days ago | IN | 0 ETH | 0.00011444 | ||||
Increase Token P... | 8672842 | 1908 days ago | IN | 0 ETH | 0.00017673 | ||||
Refund Token Pur... | 8672832 | 1908 days ago | IN | 0 ETH | 0.00014509 | ||||
Increase Token P... | 8672816 | 1908 days ago | IN | 0 ETH | 0.00008653 | ||||
Increase Token P... | 8662519 | 1909 days ago | IN | 0 ETH | 0.00017242 | ||||
Refund Token Pur... | 8662505 | 1909 days ago | IN | 0 ETH | 0.00057702 | ||||
Increase Token P... | 8662491 | 1909 days ago | IN | 0 ETH | 0.00011444 | ||||
Increase Token P... | 8639992 | 1913 days ago | IN | 0 ETH | 0.000694 | ||||
Refund Token Pur... | 8639984 | 1913 days ago | IN | 0 ETH | 0.00055841 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20608390 | 120 days ago | 0.0000006 ETH | ||||
19652654 | 253 days ago | 0.0001 ETH | ||||
17004156 | 625 days ago | 0.0001 ETH | ||||
13859695 | 1097 days ago | 0.15703701 ETH | ||||
13057469 | 1222 days ago | 3.10292281 ETH | ||||
13057437 | 1222 days ago | 0.96966355 ETH | ||||
13057390 | 1222 days ago | 0.00000096 ETH | ||||
13057198 | 1222 days ago | 0 ETH | ||||
12554950 | 1300 days ago | 0.0004 ETH | ||||
12553817 | 1300 days ago | 0.0002 ETH | ||||
12553660 | 1301 days ago | 0.0001 ETH | ||||
12553113 | 1301 days ago | 0.00079984 ETH | ||||
12526777 | 1305 days ago | 0.0000222 ETH | ||||
12319129 | 1337 days ago | 0.1454825 ETH | ||||
12085218 | 1373 days ago | 0.32495778 ETH | ||||
11856807 | 1408 days ago | 0.53461546 ETH | ||||
11792387 | 1418 days ago | 47.790347 ETH | ||||
11791645 | 1418 days ago | 8.10634698 ETH | ||||
11790475 | 1418 days ago | 3.85855853 ETH | ||||
11787204 | 1419 days ago | 72.71826205 ETH | ||||
11785909 | 1419 days ago | 41.60474715 ETH | ||||
11713442 | 1430 days ago | 1.30737814 ETH | ||||
11672227 | 1436 days ago | 0.47214067 ETH | ||||
11546767 | 1456 days ago | 0.33460591 ETH | ||||
11162795 | 1515 days ago | 0.00152692 ETH |
Loading...
Loading
Contract Name:
Bankroll
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-05 */ pragma solidity ^0.4.25; /** * * World War Goo - Competitive Idle Game * * https://ethergoo.io * */ contract Bankroll { uint256 public gooPurchaseAllocation; // Wei destined to pay to burn players' goo uint256 public tokenPurchaseAllocation; // Wei destined to purchase tokens for clans address public owner; GooBurnAlgo public gooBurner = GooBurnAlgo(0x0); Clans clans = Clans(0x0); address constant gooToken = address(0xdf0960778c6e6597f197ed9a25f12f5d971da86c); event TokenPurchase(address tokenAddress, uint256 tokensBought, uint256 reimbursementWei); constructor() public { owner = msg.sender; } function() payable external { // Accepts donations } function setClans(address clansContract) external { require(msg.sender == owner); clans = Clans(clansContract); } function depositEth(uint256 gooAllocation, uint256 tokenAllocation) payable external { require(gooAllocation <= 100); require(tokenAllocation <= 100); require(gooAllocation + tokenAllocation <= 100); gooPurchaseAllocation += (msg.value * gooAllocation) / 100; tokenPurchaseAllocation += (msg.value * tokenAllocation) / 100; } function updateGooBurnAlgo(address config) external { require(msg.sender == owner); gooBurner = GooBurnAlgo(config); } // Not entirely trustless but seems only way function refundTokenPurchase(uint256 clanId, uint256 tokensAmount, uint256 reimbursement) external { require(msg.sender == owner); require(tokensAmount > 0); require(clans.exists(clanId)); // Transfer tokens address tokenAddress = clans.clanToken(clanId); require(ERC20(tokenAddress).transferFrom(owner, address(clans), tokensAmount)); // Reimburse purchaser require(reimbursement >= tokenPurchaseAllocation); tokenPurchaseAllocation -= reimbursement; owner.transfer(reimbursement); // Auditable log emit TokenPurchase(tokenAddress, tokensAmount, reimbursement); } function increaseGooPurchaseAllocation(uint256 newAllocation) external { require(msg.sender == owner); require(newAllocation < (address(this).balance - tokenPurchaseAllocation)); gooPurchaseAllocation = newAllocation; } function increaseTokenPurchaseAllocation(uint256 newAllocation) external { require(msg.sender == owner); require(newAllocation < (address(this).balance - gooPurchaseAllocation)); tokenPurchaseAllocation = newAllocation; } function receiveApproval(address player, uint256 amount, address, bytes) external { require(msg.sender == gooToken); // Calculate payment uint256 payment = gooBurner.priceOf(amount); require(payment <= gooPurchaseAllocation); // Burn Goo ERC20(msg.sender).transferFrom(player, address(0), amount); // Send Eth gooPurchaseAllocation -= payment; player.transfer(payment); } } contract GooBurnAlgo { Bankroll constant bankroll = Bankroll(0x66a9f1e53173de33bec727ef76afa84956ae1b25); GooToken constant goo = GooToken(0xdf0960778c6e6597f197ed9a25f12f5d971da86c); address public owner; // Minor Management constructor() public { owner = msg.sender; } // Initial naive algorithm, splitting (half) eth between totalSupply function priceOf(uint256 amount) external view returns(uint256 payment) { payment = (bankroll.gooPurchaseAllocation() * amount) / (goo.totalSupply() * 2); } function price() external view returns(uint256 gooPrice) { gooPrice = bankroll.gooPurchaseAllocation() / (goo.totalSupply() * 2); } } contract Clans { function exists(uint256 clanId) public view returns (bool); mapping(uint256 => address) public clanToken; // i.e. BNB } contract GooToken { function totalSupply() external view returns(uint256); } contract ERC20 { function transferFrom(address from, address to, uint tokens) external returns (bool success); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"config","type":"address"}],"name":"updateGooBurnAlgo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gooBurner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newAllocation","type":"uint256"}],"name":"increaseGooPurchaseAllocation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newAllocation","type":"uint256"}],"name":"increaseTokenPurchaseAllocation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"player","type":"address"},{"name":"amount","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenPurchaseAllocation","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gooPurchaseAllocation","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"clanId","type":"uint256"},{"name":"tokensAmount","type":"uint256"},{"name":"reimbursement","type":"uint256"}],"name":"refundTokenPurchase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"gooAllocation","type":"uint256"},{"name":"tokenAllocation","type":"uint256"}],"name":"depositEth","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"clansContract","type":"address"}],"name":"setClans","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenAddress","type":"address"},{"indexed":false,"name":"tokensBought","type":"uint256"},{"indexed":false,"name":"reimbursementWei","type":"uint256"}],"name":"TokenPurchase","type":"event"}]
Contract Creation Code
608060405260038054600160a060020a031990811690915560048054909116905534801561002c57600080fd5b5060028054600160a060020a031916331790556107e88061004e6000396000f3006080604052600436106100ad5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041662fc195e81146100af57806324be33a2146100d057806366c985c914610101578063707504a8146101195780638da5cb5b146101315780638f4ffcb114610146578063a3b287b51461017e578063bb17fa9d146101a5578063d22e5b04146101ba578063ed50aeb9146101d8578063f40b26bd146101e6575b005b3480156100bb57600080fd5b506100ad600160a060020a0360043516610207565b3480156100dc57600080fd5b506100e561024d565b60408051600160a060020a039092168252519081900360200190f35b34801561010d57600080fd5b506100ad60043561025c565b34801561012557600080fd5b506100ad600435610289565b34801561013d57600080fd5b506100e56102b6565b34801561015257600080fd5b506100ad60048035600160a060020a0390811691602480359260443516916064359182019101356102c5565b34801561018a57600080fd5b50610193610471565b60408051918252519081900360200190f35b3480156101b157600080fd5b50610193610477565b3480156101c657600080fd5b506100ad60043560243560443561047d565b6100ad600435602435610729565b3480156101f257600080fd5b506100ad600160a060020a0360043516610776565b600254600160a060020a0316331461021e57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600354600160a060020a031681565b600254600160a060020a0316331461027357600080fd5b600154303103811061028457600080fd5b600055565b600254600160a060020a031633146102a057600080fd5b60005430310381106102b157600080fd5b600155565b600254600160a060020a031681565b60003373df0960778c6e6597f197ed9a25f12f5d971da86c146102e757600080fd5b600354604080517fb9186d7d000000000000000000000000000000000000000000000000000000008152600481018890529051600160a060020a039092169163b9186d7d916024808201926020929091908290030181600087803b15801561034e57600080fd5b505af1158015610362573d6000803e3d6000fd5b505050506040513d602081101561037857600080fd5b505160005490915081111561038c57600080fd5b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038816600482015260006024820181905260448201889052915133926323b872dd92606480820193602093909283900390910190829087803b1580156103ff57600080fd5b505af1158015610413573d6000803e3d6000fd5b505050506040513d602081101561042957600080fd5b5050600080548290038155604051600160a060020a0388169183156108fc02918491818181858888f19350505050158015610468573d6000803e3d6000fd5b50505050505050565b60015481565b60005481565b600254600090600160a060020a0316331461049757600080fd5b600083116104a457600080fd5b60048054604080517f4f558e7900000000000000000000000000000000000000000000000000000000815292830187905251600160a060020a0390911691634f558e799160248083019260209291908290030181600087803b15801561050957600080fd5b505af115801561051d573d6000803e3d6000fd5b505050506040513d602081101561053357600080fd5b5051151561054057600080fd5b60048054604080517f1c2d699800000000000000000000000000000000000000000000000000000000815292830187905251600160a060020a0390911691631c2d69989160248083019260209291908290030181600087803b1580156105a557600080fd5b505af11580156105b9573d6000803e3d6000fd5b505050506040513d60208110156105cf57600080fd5b505160025460048054604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a039485169381019390935290831660248301526044820187905251929350908316916323b872dd916064808201926020929091908290030181600087803b15801561065057600080fd5b505af1158015610664573d6000803e3d6000fd5b505050506040513d602081101561067a57600080fd5b5051151561068757600080fd5b60015482101561069657600080fd5b600180548390039055600254604051600160a060020a039091169083156108fc029084906000818181858888f193505050501580156106d9573d6000803e3d6000fd5b5060408051600160a060020a03831681526020810185905280820184905290517fcd60aa75dea3072fbc07ae6d7d856b5dc5f4eee88854f5b4abf7b680ef8bc50f9181900360600190a150505050565b606482111561073757600080fd5b606481111561074557600080fd5b6064828201111561075557600080fd5b60008054606434948502819004909101909155600180549290930204019055565b600254600160a060020a0316331461078d57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058202e4df2c15683bc430d362d3fa2b9812ee64b74d8b7c96d1028e098acba20e83e0029
Deployed Bytecode
0x6080604052600436106100ad5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041662fc195e81146100af57806324be33a2146100d057806366c985c914610101578063707504a8146101195780638da5cb5b146101315780638f4ffcb114610146578063a3b287b51461017e578063bb17fa9d146101a5578063d22e5b04146101ba578063ed50aeb9146101d8578063f40b26bd146101e6575b005b3480156100bb57600080fd5b506100ad600160a060020a0360043516610207565b3480156100dc57600080fd5b506100e561024d565b60408051600160a060020a039092168252519081900360200190f35b34801561010d57600080fd5b506100ad60043561025c565b34801561012557600080fd5b506100ad600435610289565b34801561013d57600080fd5b506100e56102b6565b34801561015257600080fd5b506100ad60048035600160a060020a0390811691602480359260443516916064359182019101356102c5565b34801561018a57600080fd5b50610193610471565b60408051918252519081900360200190f35b3480156101b157600080fd5b50610193610477565b3480156101c657600080fd5b506100ad60043560243560443561047d565b6100ad600435602435610729565b3480156101f257600080fd5b506100ad600160a060020a0360043516610776565b600254600160a060020a0316331461021e57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600354600160a060020a031681565b600254600160a060020a0316331461027357600080fd5b600154303103811061028457600080fd5b600055565b600254600160a060020a031633146102a057600080fd5b60005430310381106102b157600080fd5b600155565b600254600160a060020a031681565b60003373df0960778c6e6597f197ed9a25f12f5d971da86c146102e757600080fd5b600354604080517fb9186d7d000000000000000000000000000000000000000000000000000000008152600481018890529051600160a060020a039092169163b9186d7d916024808201926020929091908290030181600087803b15801561034e57600080fd5b505af1158015610362573d6000803e3d6000fd5b505050506040513d602081101561037857600080fd5b505160005490915081111561038c57600080fd5b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038816600482015260006024820181905260448201889052915133926323b872dd92606480820193602093909283900390910190829087803b1580156103ff57600080fd5b505af1158015610413573d6000803e3d6000fd5b505050506040513d602081101561042957600080fd5b5050600080548290038155604051600160a060020a0388169183156108fc02918491818181858888f19350505050158015610468573d6000803e3d6000fd5b50505050505050565b60015481565b60005481565b600254600090600160a060020a0316331461049757600080fd5b600083116104a457600080fd5b60048054604080517f4f558e7900000000000000000000000000000000000000000000000000000000815292830187905251600160a060020a0390911691634f558e799160248083019260209291908290030181600087803b15801561050957600080fd5b505af115801561051d573d6000803e3d6000fd5b505050506040513d602081101561053357600080fd5b5051151561054057600080fd5b60048054604080517f1c2d699800000000000000000000000000000000000000000000000000000000815292830187905251600160a060020a0390911691631c2d69989160248083019260209291908290030181600087803b1580156105a557600080fd5b505af11580156105b9573d6000803e3d6000fd5b505050506040513d60208110156105cf57600080fd5b505160025460048054604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a039485169381019390935290831660248301526044820187905251929350908316916323b872dd916064808201926020929091908290030181600087803b15801561065057600080fd5b505af1158015610664573d6000803e3d6000fd5b505050506040513d602081101561067a57600080fd5b5051151561068757600080fd5b60015482101561069657600080fd5b600180548390039055600254604051600160a060020a039091169083156108fc029084906000818181858888f193505050501580156106d9573d6000803e3d6000fd5b5060408051600160a060020a03831681526020810185905280820184905290517fcd60aa75dea3072fbc07ae6d7d856b5dc5f4eee88854f5b4abf7b680ef8bc50f9181900360600190a150505050565b606482111561073757600080fd5b606481111561074557600080fd5b6064828201111561075557600080fd5b60008054606434948502819004909101909155600180549290930204019055565b600254600160a060020a0316331461078d57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058202e4df2c15683bc430d362d3fa2b9812ee64b74d8b7c96d1028e098acba20e83e0029
Swarm Source
bzzr://2e4df2c15683bc430d362d3fa2b9812ee64b74d8b7c96d1028e098acba20e83e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,399.16 | 2.9075 | $9,882.95 |
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.