-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pata.eth
committed
May 22, 2022
1 parent
a17fd32
commit 5a67538
Showing
10 changed files
with
206 additions
and
263 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from brownie import chain | ||
|
||
|
||
def test_gauge_is_properly_setup(gauge): | ||
|
||
assert ( | ||
gauge.reward_count() == 0 | ||
), "Third-party reward tokens not expected for this strategy" | ||
|
||
WEEK = 86400 * 7 | ||
|
||
weeksNum = chain.time() // WEEK | ||
|
||
# Pull current inflation_rate and verify it's not 0; i.e., the | ||
# reward APY is greater than 0%. | ||
assert ( | ||
gauge.inflation_rate(weeksNum) is not 0 | ||
), "This gauge is not currently rewarding any CRV" |
Oops, something went wrong.