Created
March 12, 2021 19:58
-
-
Save easement/73fac9b1d66545b0c8e0a3e7a003eaf2 to your computer and use it in GitHub Desktop.
Figure out how many days you need to stake something on rPlanet to recoup it's cost.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Figure out how many days you need to stake something on rPlanet to recoup it's cost. | |
function recoup(aetherPerWax, stakeValue, itemCostInWax) { | |
var aetherPerDay = (24 * stakeValue); | |
var daysUntilOneWax = (aetherPerWax / aetherPerDay) | |
return (daysUntilOneWax * itemCostInWax) | |
} | |
//usage: recoup(5200,40,20) | |
// excchange rate is 5200 aether per wax, the item gets 40 aether per cycle on rPlanet and the item cost 20 wax. | |
// It'll take ~108 days to recoup what I spent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment