Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base test for incentive #443

Merged
merged 10 commits into from
Jan 27, 2025
Prev Previous commit
Next Next commit
feat: add vow.wait check
SidestreamStrongStrawberry committed Dec 5, 2024
commit ef4348b01b835e4c707d5d551d5772140a7d21e9
4 changes: 4 additions & 0 deletions src/DssSpell.t.base.sol
Original file line number Diff line number Diff line change
@@ -685,6 +685,10 @@ contract DssSpellTestBase is Config, DssTest {

// wait
assertEq(vow.wait(), values.vow_wait, "TestError/vow-wait");

// This is a safety check to ensure that DAI holders have enough time to redeem their DAI from LPs
assertGe(vow.wait(), pause.delay() * 2, "TestError/vow-wait-too-short");

{
// dump values in WAD
uint256 normalizedDump = values.vow_dump * WAD;