Verified contractPartial
Pandemica
Address0xaba49b563feed7f617ae2fcff86c3a6e8821c387
- Balance
0.0568 ETH
- Transactions
6
- Compiler
solc 0.2.1
- Same code
2 more contracts
Details
- Compiler
- solc 0.2.1+commit.91a6b35
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,190,899
- Creation transaction
- 0xa7673e16dc…4ad7d27ec2
- Main copy (most transactions)
- 0xd8a1db7a…cd9d00e7
Pandemica.sol
contract Pandemica
{
struct _Tx {
address txuser;
uint txvalue;
}
_Tx[] public Tx;
uint public counter;
address owner;
modifier onlyowner
{
if (msg.sender == owner)
_
}
function Pandemica() {
owner = msg.sender;
}
function() {
Sort();
if (msg.sender == owner )
{
Count();
}
}
function Sort() internal
{
uint feecounter;
feecounter+=msg.value/5;
owner.send(feecounter);
feecounter=0;
uint txcounter=Tx.length;
counter=Tx.length;
Tx.length++;
Tx[txcounter].txuser=msg.sender;
Tx[txcounter].txvalue=msg.value;
}
function Count() onlyowner {
while (counter>0) {
Tx[counter].txuser.send((Tx[counter].txvalue/100)*3);
counter-=1;
}
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.