Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the example below, different interim numbers have been truncated to show the impact on staking and unstaking 10 tokens. The cells highlighted in yellow have been truncated and in these use cases the user receives fewer than 10 tokens upon unstaking.

In our contract we have an assertion that (sufsclaimed >= unstakeamount) which, in the case below, fails.

...

See: https://docs.google.com/spreadsheets/d/1u_G-UnkqLokvgCayWcWau0wFmWQHvEoetswvH9M3aVY/edit#gid=0

...