Skip to content

Spartan121/EtheriumPyramidSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

EtheriumPyramidSample

Solidity smart contract based on pyramid scheme of distribution with comission to owner of contract

Solidity ver 0.2.1.

Sends value of sender transaction with multiply percents if it has proper balance. There are two rows: senders and payers Senders update every time it gets transaction Payers update every time it pays to sender

HOW IT WORKS:

-People send etherium from 0.01 to 0.025 -If people send bigger or smaller transaction, contract give him back this value -Contract waits for another etherium sender -If balance is bigger than sended value * 111% - contract sends this value to sender -If balance is not enough, contract waits for another sender

EXAMPLE:

  1. 1* send 0.02 eth
  2. contract* set 1 to pay 0.02*111%
  3. contract* pay owner commission 0.02*005%
  4. 2* send 0.012 eth
  5. contract* set 2 to pay 0.012*111%
  6. contract* pay owner commission 0.012*005%
  7. contract* check balance
  8. contract* pay 1 0.02*111%
  9. 3* send 0.025 eth
  10. contract* set 3 to pay 0.025*111%
  11. contract* pay owner commission 0.025*005%
  12. contract* check for balance
  13. contract* pay 2 0.012*111%
  14. 1* send 0.5 eth
  15. contract* pay owner commission 0.5*005%
  16. contract* pay 1 0.5 eth - commission ^

Releases

No releases published

Packages

No packages published