Skip to content

Commit

Permalink
fix fragile freeSky test
Browse files Browse the repository at this point in the history
  • Loading branch information
SidestreamColdMelon committed Oct 17, 2024
1 parent b8443d6 commit f534d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DssSpell.t.base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1374,8 +1374,8 @@ contract DssSpellTestBase is Config, DssTest {
engine.lockSky(address(this), 0, skyAmt, 0);
assertEq(mkr.balanceOf(p.engine), initialEngineBalance + lockAmt, "checkLockstakeIlkIntegration/LockAndFreeSky/invalid-locked-mkr-balance");
engine.freeSky(address(this), 0, address(this), skyAmt);
uint256 exitFee = skyAmt * p.fee / 100_00;
assertEq(sky.balanceOf(address(this)), skyAmt - exitFee, "checkLockstakeIlkIntegration/LockAndFreeSky/invalid-unlocked-balance");
uint256 exitFee = lockAmt * p.fee / 100_00 * afterSpell.sky_mkr_rate;
assertGe(sky.balanceOf(address(this)), skyAmt - exitFee, "checkLockstakeIlkIntegration/LockAndFreeSky/invalid-unlocked-balance");
vm.revertTo(snapshot);
}
// Check drawing and wiping
Expand Down

0 comments on commit f534d3f

Please sign in to comment.