More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 502 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Lend Government ... | 3385866 | 2860 days ago | IN | 0.01 ETH | 0.0007371 | ||||
Total Payed Out | 1743138 | 3132 days ago | IN | 0 ETH | 0.00043302 | ||||
Lend Government ... | 1719866 | 3136 days ago | IN | 0.001 ETH | 0.12664815 | ||||
Lend Government ... | 1719864 | 3136 days ago | IN | 0.001 ETH | 0.25289725 | ||||
Lend Government ... | 1719862 | 3136 days ago | IN | 0.001 ETH | 0.25289725 | ||||
Lend Government ... | 1719859 | 3136 days ago | IN | 0.001 ETH | 0.25289725 | ||||
Lend Government ... | 1719856 | 3136 days ago | IN | 0.001 ETH | 0.25289725 | ||||
0x50cdaa44 | 1701809 | 3139 days ago | IN | 1 ETH | 0.01575 | ||||
0x50cdaa44 | 1701766 | 3139 days ago | IN | 0.8236 ETH | 0.01575 | ||||
0x50cdaa44 | 1701758 | 3139 days ago | IN | 0.01 ETH | 0.01575 | ||||
0x50cdaa44 | 1701388 | 3139 days ago | IN | 0.001 ETH | 0.09896014 | ||||
0x50cdaa44 | 1701343 | 3139 days ago | IN | 0.1 ETH | 0.001113 | ||||
0x50cdaa44 | 1700739 | 3139 days ago | IN | 0.1 ETH | 0.0009072 | ||||
Lend Government ... | 1697379 | 3140 days ago | IN | 0.001 ETH | 0.00252895 | ||||
Lend Government ... | 1697374 | 3140 days ago | IN | 0.001 ETH | 0.00252895 | ||||
Transfer | 1692724 | 3140 days ago | IN | 0.0000175 ETH | 0.000441 | ||||
0x50cdaa44 | 1692712 | 3140 days ago | IN | 0 ETH | 0.0009072 | ||||
0x50cdaa44 | 1692255 | 3141 days ago | IN | 1.2721247 ETH | 0.0009072 | ||||
0x50cdaa44 | 1692215 | 3141 days ago | IN | 0.01 ETH | 0.0018144 | ||||
0x50cdaa44 | 1692073 | 3141 days ago | IN | 1.25205161 ETH | 0.0009072 | ||||
0x50cdaa44 | 1692014 | 3141 days ago | IN | 0.1 ETH | 0.0009072 | ||||
Lend Government ... | 1529600 | 3168 days ago | IN | 0 ETH | 0.09257946 | ||||
Lend Government ... | 1529589 | 3168 days ago | IN | 1 ETH | 0.09264646 | ||||
Lend Government ... | 1529588 | 3168 days ago | IN | 1 ETH | 0.09264646 | ||||
Transfer | 1415882 | 3186 days ago | IN | 1 ETH | 0.1 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
3385866 | 2860 days ago | 0.01 ETH | ||||
2440737 | 3017 days ago | 0 ETH | ||||
2440698 | 3017 days ago | 0 ETH | ||||
2440683 | 3017 days ago | 0 ETH | ||||
2439245 | 3017 days ago | 0 ETH | ||||
2439227 | 3017 days ago | 0 ETH | ||||
2439100 | 3017 days ago | 0 ETH | ||||
2439033 | 3017 days ago | 0 ETH | ||||
2438799 | 3017 days ago | 0 ETH | ||||
2438717 | 3017 days ago | 0 ETH | ||||
2438517 | 3017 days ago | 0 ETH | ||||
2438507 | 3017 days ago | 0 ETH | ||||
2438491 | 3017 days ago | 0 ETH | ||||
2438482 | 3017 days ago | 0 ETH | ||||
2438476 | 3017 days ago | 0 ETH | ||||
2438473 | 3017 days ago | 0 ETH | ||||
2438465 | 3017 days ago | 0 ETH | ||||
2438459 | 3017 days ago | 0 ETH | ||||
2438438 | 3017 days ago | 0 ETH | ||||
2438435 | 3017 days ago | 0 ETH | ||||
2438433 | 3017 days ago | 0 ETH | ||||
2438418 | 3017 days ago | 0 ETH | ||||
2438411 | 3017 days ago | 0 ETH | ||||
2438388 | 3017 days ago | 0 ETH | ||||
2438368 | 3017 days ago | 0 ETH |
Loading...
Loading
Contract Name:
Government
Compiler Version
v0.2.1-2016-01-30-91a6b35
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2016-03-24 */ contract Government { // Global Variables uint32 public lastCreditorPayedOut; uint public lastTimeOfNewCredit; uint public profitFromCrash; address[] public creditorAddresses; uint[] public creditorAmounts; address public corruptElite; mapping (address => uint) buddies; uint constant TWELVE_HOURS = 43200; uint8 public round; function Government() { // The corrupt elite establishes a new government // this is the commitment of the corrupt Elite - everything that can not be saved from a crash profitFromCrash = msg.value; corruptElite = msg.sender; lastTimeOfNewCredit = block.timestamp; } function lendGovernmentMoney(address buddy) returns (bool) { uint amount = msg.value; // check if the system already broke down. If for 12h no new creditor gives new credit to the system it will brake down. // 12h are on average = 60*60*12/12.5 = 3456 if (lastTimeOfNewCredit + TWELVE_HOURS < block.timestamp) { // Return money to sender msg.sender.send(amount); // Sends all contract money to the last creditor creditorAddresses[creditorAddresses.length - 1].send(profitFromCrash); corruptElite.send(this.balance); // Reset contract state lastCreditorPayedOut = 0; lastTimeOfNewCredit = block.timestamp; profitFromCrash = 0; creditorAddresses = new address[](0); creditorAmounts = new uint[](0); round += 1; return false; } else { // the system needs to collect at least 1% of the profit from a crash to stay alive if (amount >= 10 ** 18) { // the System has received fresh money, it will survive at leat 12h more lastTimeOfNewCredit = block.timestamp; // register the new creditor and his amount with 10% interest rate creditorAddresses.push(msg.sender); creditorAmounts.push(amount * 110 / 100); // now the money is distributed // first the corrupt elite grabs 5% - thieves! corruptElite.send(amount * 5/100); // 5% are going into the economy (they will increase the value for the person seeing the crash comming) if (profitFromCrash < 10000 * 10**18) { profitFromCrash += amount * 5/100; } // if you have a buddy in the government (and he is in the creditor list) he can get 5% of your credits. // Make a deal with him. if(buddies[buddy] >= amount) { buddy.send(amount * 5/100); } buddies[msg.sender] += amount * 110 / 100; // 90% of the money will be used to pay out old creditors if (creditorAmounts[lastCreditorPayedOut] <= address(this).balance - profitFromCrash) { creditorAddresses[lastCreditorPayedOut].send(creditorAmounts[lastCreditorPayedOut]); buddies[creditorAddresses[lastCreditorPayedOut]] -= creditorAmounts[lastCreditorPayedOut]; lastCreditorPayedOut += 1; } return true; } else { msg.sender.send(amount); return false; } } } // fallback function function() { lendGovernmentMoney(0); } function totalDebt() returns (uint debt) { for(uint i=lastCreditorPayedOut; i<creditorAmounts.length; i++){ debt += creditorAmounts[i]; } } function totalPayedOut() returns (uint payout) { for(uint i=0; i<lastCreditorPayedOut; i++){ payout += creditorAmounts[i]; } } // better don't do it (unless you are the corrupt elite and you want to establish trust in the system) function investInTheSystem() { profitFromCrash += msg.value; } // From time to time the corrupt elite inherits it's power to the next generation function inheritToNextGeneration(address nextGeneration) { if (msg.sender == corruptElite) { corruptElite = nextGeneration; } } function getCreditorAddresses() returns (address[]) { return creditorAddresses; } function getCreditorAmounts() returns (uint[]) { return creditorAmounts; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"lastCreditorPayedOut","outputs":[{"name":"","type":"uint32"}],"type":"function"},{"constant":true,"inputs":[],"name":"round","outputs":[{"name":"","type":"uint8"}],"type":"function"},{"constant":true,"inputs":[],"name":"corruptElite","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"lastTimeOfNewCredit","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"nextGeneration","type":"address"}],"name":"inheritToNextGeneration","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"investInTheSystem","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"totalPayedOut","outputs":[{"name":"payout","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"profitFromCrash","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"getCreditorAmounts","outputs":[{"name":"","type":"uint256[]"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"creditorAddresses","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[],"name":"getCreditorAddresses","outputs":[{"name":"","type":"address[]"}],"type":"function"},{"constant":false,"inputs":[{"name":"buddy","type":"address"}],"name":"lendGovernmentMoney","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"creditorAmounts","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"totalDebt","outputs":[{"name":"debt","type":"uint256"}],"type":"function"},{"inputs":[],"type":"constructor"}]
Contract Creation Code
60606040523460025560058054600160a060020a03191633179055426001556108ff8061002c6000396000f3606060405236156100ae5760e060020a600035046309f3295781146100bb578063146ca531146100ca5780633beea695146100d657806345941a38146100e85780634a1f0bf6146100f15780634f013184146101255780636831c16914610132578063719874da1461017857806381064e2d14610181578063ce43b0c0146101e9578063d3edcb5b1461021d578063d95a2d421461028c578063f42d1d30146103d5578063fc7b9c1814610400575b6104476104496000610293565b61044c60005463ffffffff1681565b61046560075460ff1681565b61047c600554600160a060020a031681565b61049960015481565b610447600435600554600160a060020a03908116339190911614156104495760058054600160a060020a0319168217905550565b6104476002805434019055565b6104996000805b60005463ffffffff168110156105d15760048054829081101561000257506000526000805160206108df83398151915281015490910190600101610139565b61049960025481565b6104ab60408051602081810183526000825282516004805480840283018401909552848252929390929183018282801561028157602002820191906000526020600020905b8160005054815260200190600101908083116101c6575b50505050509050610289565b61047c60043560038054829081101561000257506000526000805160206108bf8339815191520154600160a060020a031681565b6104ab60408051602081810183526000825282516003805480840283018401909552848252929390929183018282801561028157602002820191906000526020600020905b8154600160a060020a0316815260019190910190602001808311610262575b505050505090505b90565b6104996004355b600060003490504261a8c06001600050540110156104f557604051600160a060020a033316908390839082818181858883f1505060038054909350600019810192508210159050610002575080549083526002546040517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85a90920154600160a060020a03169184919082818181858883f150600554600160a060020a039081169450301631915082818181858883f15050815463ffffffff19168255504260015560028190556040519091508059106103695750595b818152602091820281018201604052600380548251808355600083905291936000805160206108bf8339815191529182019301821561053c579160200282015b8281111561053c5782518254600160a060020a03191617825560209290920191600191909101906103a9565b61049960043560048054829081101561000257506000526000805160206108df833981519152015481565b6104996000805463ffffffff165b6004548110156105d15760048054829081101561000257506000526000805160206108df8339815191528101549091019060010161040e565b005b50565b6040805163ffffffff9092168252519081900360200190f35b6040805160ff929092168252519081900360200190f35b60408051600160a060020a03929092168252519081900360200190f35b60408051918252519081900360200190f35b60405180806020018281038252838181518152602001915080519060200190602002808383829060006004602084601f0104600f02600301f1509050019250505060405180910390f35b670de0b6b3a764000081106106125742600190815560038054918201808255909190828183801582901161063a5781836000526020600020918201910161063a91906105dd565b506105629291505b808211156105d1578054600160a060020a0319168155600101610544565b505060006040518059106105735750595b818152602091820281018201604052600480548251808355600083905291936000805160206108df833981519152918201930182156105d5579160200282015b828111156105d55782518260005055916020019190600101906105b3565b5090565b506105f19291505b808211156105d157600081556001016105dd565b50506007805460ff19811660ff909116600101179055600091505b50919050565b604051600160a060020a03331690600090839082818181858883f15091945061060c92505050565b5050506000928352506020909120018054600160a060020a03191633179055600480546001810180835582818380158290116106895781836000526020600020918201910161068991906105dd565b505050600092835250602082206064606e8502819004919092015560405160058054600160a060020a03169392908502049082818181858883f193505050505069021e19e0c9bab240000060026000505410156106ef5760028054606460058402040190555b600160a060020a03831660009081526006602052604090205481901061073657604051600160a060020a03841690600090606460058502049082818181858883f150505050505b600160a060020a03338116600090815260066020526040812080546064606e860204019055546002546004805430909416319190910392909163ffffffff1690811015610002576000919091526000805160206108df8339815191520154116108b65760005460038054909163ffffffff16908110156100025760009182526000805160206108bf83398151915201909054906101000a9004600160a060020a0316600160a060020a031660006004600050600060009054906101000a900463ffffffff168154811015610002579082526000805160206108df833981519152018150546040516000818181858888f1505090546004805490935063ffffffff919091169150811015610002576000918252600380546000805160206108df83398151915283015493600693909291811015610002576000805160206108bf8339815191520154600160a060020a031682525060209190915260408120805492909203909155805463ffffffff811660010163ffffffff19919091161790555b6001915061060c56c2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b
Deployed Bytecode
0x606060405236156100ae5760e060020a600035046309f3295781146100bb578063146ca531146100ca5780633beea695146100d657806345941a38146100e85780634a1f0bf6146100f15780634f013184146101255780636831c16914610132578063719874da1461017857806381064e2d14610181578063ce43b0c0146101e9578063d3edcb5b1461021d578063d95a2d421461028c578063f42d1d30146103d5578063fc7b9c1814610400575b6104476104496000610293565b61044c60005463ffffffff1681565b61046560075460ff1681565b61047c600554600160a060020a031681565b61049960015481565b610447600435600554600160a060020a03908116339190911614156104495760058054600160a060020a0319168217905550565b6104476002805434019055565b6104996000805b60005463ffffffff168110156105d15760048054829081101561000257506000526000805160206108df83398151915281015490910190600101610139565b61049960025481565b6104ab60408051602081810183526000825282516004805480840283018401909552848252929390929183018282801561028157602002820191906000526020600020905b8160005054815260200190600101908083116101c6575b50505050509050610289565b61047c60043560038054829081101561000257506000526000805160206108bf8339815191520154600160a060020a031681565b6104ab60408051602081810183526000825282516003805480840283018401909552848252929390929183018282801561028157602002820191906000526020600020905b8154600160a060020a0316815260019190910190602001808311610262575b505050505090505b90565b6104996004355b600060003490504261a8c06001600050540110156104f557604051600160a060020a033316908390839082818181858883f1505060038054909350600019810192508210159050610002575080549083526002546040517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85a90920154600160a060020a03169184919082818181858883f150600554600160a060020a039081169450301631915082818181858883f15050815463ffffffff19168255504260015560028190556040519091508059106103695750595b818152602091820281018201604052600380548251808355600083905291936000805160206108bf8339815191529182019301821561053c579160200282015b8281111561053c5782518254600160a060020a03191617825560209290920191600191909101906103a9565b61049960043560048054829081101561000257506000526000805160206108df833981519152015481565b6104996000805463ffffffff165b6004548110156105d15760048054829081101561000257506000526000805160206108df8339815191528101549091019060010161040e565b005b50565b6040805163ffffffff9092168252519081900360200190f35b6040805160ff929092168252519081900360200190f35b60408051600160a060020a03929092168252519081900360200190f35b60408051918252519081900360200190f35b60405180806020018281038252838181518152602001915080519060200190602002808383829060006004602084601f0104600f02600301f1509050019250505060405180910390f35b670de0b6b3a764000081106106125742600190815560038054918201808255909190828183801582901161063a5781836000526020600020918201910161063a91906105dd565b506105629291505b808211156105d1578054600160a060020a0319168155600101610544565b505060006040518059106105735750595b818152602091820281018201604052600480548251808355600083905291936000805160206108df833981519152918201930182156105d5579160200282015b828111156105d55782518260005055916020019190600101906105b3565b5090565b506105f19291505b808211156105d157600081556001016105dd565b50506007805460ff19811660ff909116600101179055600091505b50919050565b604051600160a060020a03331690600090839082818181858883f15091945061060c92505050565b5050506000928352506020909120018054600160a060020a03191633179055600480546001810180835582818380158290116106895781836000526020600020918201910161068991906105dd565b505050600092835250602082206064606e8502819004919092015560405160058054600160a060020a03169392908502049082818181858883f193505050505069021e19e0c9bab240000060026000505410156106ef5760028054606460058402040190555b600160a060020a03831660009081526006602052604090205481901061073657604051600160a060020a03841690600090606460058502049082818181858883f150505050505b600160a060020a03338116600090815260066020526040812080546064606e860204019055546002546004805430909416319190910392909163ffffffff1690811015610002576000919091526000805160206108df8339815191520154116108b65760005460038054909163ffffffff16908110156100025760009182526000805160206108bf83398151915201909054906101000a9004600160a060020a0316600160a060020a031660006004600050600060009054906101000a900463ffffffff168154811015610002579082526000805160206108df833981519152018150546040516000818181858888f1505090546004805490935063ffffffff919091169150811015610002576000918252600380546000805160206108df83398151915283015493600693909291811015610002576000805160206108bf8339815191520154600160a060020a031682525060209190915260408120805492909203909155805463ffffffff811660010163ffffffff19919091161790555b6001915061060c56c2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.