Rewards precision overview

Rewards precision consists of 18 decimal places. This is done to improve the accuracy of the rewards calculation. When an admin setups a reward per second, he should add 18 extra symbols (multiply by 10^18). For example:

  • 2 tokens per second โ†’ 2 * 10^18 -> 2000000000000000000;

  • 5.5 tokens per second โ†’ 5.5 * 10^18 -> 5500000000000000000;

  • 12.999 tokens per second โ†’ 12.999 * 10^18 -> 12999000000000000000.

Last updated