Skip to content

Instantly share code, notes, and snippets.

@jtakalai
Created January 29, 2018 11:26
Show Gist options
  • Save jtakalai/b4984fc81379677de26924006bf04b02 to your computer and use it in GitHub Desktop.
Save jtakalai/b4984fc81379677de26924006bf04b02 to your computer and use it in GitHub Desktop.
PonziCoin profit calculation
calculation in browser console:
var fyffe = 0, velka = 0, tokenit = 0, p = 1; for (var i = 1; i < 10; i++) { fyffe += p * 100; tokenit += 100; velka = p * tokenit / 4; console.log("Fyffe: " + fyffe + ", tokenit: " + tokenit + ", velka: " + velka + ", profit: " + (fyffe - velka)); p = p * 2; }
console output:
Fyffe: 100, tokenit: 100, velka: 25, profit: 75
Fyffe: 300, tokenit: 200, velka: 100, profit: 200
Fyffe: 700, tokenit: 300, velka: 300, profit: 400
Fyffe: 1500, tokenit: 400, velka: 800, profit: 700
Fyffe: 3100, tokenit: 500, velka: 2000, profit: 1100
Fyffe: 6300, tokenit: 600, velka: 4800, profit: 1500
Fyffe: 12700, tokenit: 700, velka: 11200, profit: 1500
Fyffe: 25500, tokenit: 800, velka: 25600, profit: -100
Fyffe: 51100, tokenit: 900, velka: 57600, profit: -6500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment