Skip to content

Instantly share code, notes, and snippets.

@weserickson
Created April 22, 2021 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weserickson/64206330a3c046a8f159a2fc936f16f1 to your computer and use it in GitHub Desktop.
Save weserickson/64206330a3c046a8f159a2fc936f16f1 to your computer and use it in GitHub Desktop.
(* quick calculations for the annualized rates of return for full node rewards over last several days 2021-04-17 to 2021-04-20 *)
r=17.0;(* daily Vite reward per node, *)
S=10000.0; (* required staking investment *)
vpsUSD = 8.00; (* monthly VPS price in USD *)
vp = 0.20; (* Vite price in USD *)
vps = (vpsUSD/vp)/30.0; (* daily VPS price in Vite *)
(r/S)*365*100(* APR no expenses *)
((r-vps)/S)*365*100 (* APR w/ expenses *)
((1+r/S)^365-1)*100 (* APY no expenses *)
((1+(r-vps)/S)^365-1)*100 (* APY w/ expenses *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment