Skip to content

Commit

Permalink
fix furnace extreme test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmckelvy1 committed Sep 20, 2024
1 parent c2c418f commit bae9e0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/Furnace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,12 @@ describe(`FurnaceP${IMPLEMENTATION} contract`, () => {
await token3.connect(addr1).approve(rToken.address, max256)

// Set up larger throttles
const throttle = { amtRate: bal.lt(fp('1')) ? fp('1') : bal, pctRate: 0 }
await rToken.connect(owner).setIssuanceThrottleParams(throttle)
await rToken.connect(owner).setRedemptionThrottleParams(throttle)
const issuanceThrottle = { amtRate: bal.lt(fp('1')) ? fp('1') : bal, pctRate: 0 }
const redemptionThrottle = {
amtRate: bal.lt(fp('1')) ? fp('1').mul(125).div(100) : bal.mul(125).div(100),
pctRate: 0,
}
await rToken.connect(owner).setThrottleParams(issuanceThrottle, redemptionThrottle)
await advanceTime(3600)

// Issue and send tokens to furnace
Expand Down

0 comments on commit bae9e0c

Please sign in to comment.