Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Add tests for total supply zero scenario#15

Open
bingen wants to merge 1 commit into
Synthetixio:masterfrom
bingen:zero_supply_tests
Open

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

Conversation

@bingen

@bingen bingen commented Jul 16, 2020

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant