Skip to content

Add tests for total supply zero scenario#15

Open
bingen wants to merge 1 commit intoSynthetixio:masterfrom
bingen:zero_supply_tests
Open

Add tests for total supply zero scenario#15
bingen wants to merge 1 commit intoSynthetixio:masterfrom
bingen:zero_supply_tests

Conversation

@bingen
Copy link

@bingen bingen commented Jul 16, 2020

If total supply is zero during reward period, reward tokens
corresponding to the time while that happens would be lost.

It is a very unlikely scenario, and it has an easy workaround: the
account providing the rewards can make sure that doesn’t happen by
staking a tiny amount. But it’s better to be aware of it.

I didn’t open an issue because it seems “Issues” tab is not enabled in your repo, but you can see it here: aragonone#4

If total supply is zero during reward period, reward tokens
corresponding to the time while that happens would be lost.

It is a very unlikely scenario, and it has an easy workaround: the
account providing the rewards can make sure that doesn’t happen by
staking a tiny amount. But it’s better to be aware of it.
bingen added a commit to liquity/dev that referenced this pull request Jan 27, 2021
See for reference:
aragonone/liquidity-rewards#4
Synthetixio/Unipool#15

Now the time during which totalSupply is zero will be appended at the
end of the rewards period, extending it. So the total time during
which there have been some staked tokens will eventually be `DURATION`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments