Skip to content

Commit

Permalink
fix sub(1)."
Browse files Browse the repository at this point in the history
  • Loading branch information
pmckelvy1 committed Sep 30, 2024
1 parent 5e8cae8 commit 6182ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/RTokenExtremes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe(`RTokenP${IMPLEMENTATION} contract`, () => {
const erc20: ERC20MockDecimals = erc20s[i]
// user owner starts with enough basket assets to issue (totalSupply - toIssue)
const toIssue0Scaled: BigNumber = toBNDecimals(toIssue0, Number(collateralDecimals))
const toMint0: BigNumber = toIssue0Scaled.mul(weights[i]).add(e18).div(e18)
const toMint0: BigNumber = toIssue0Scaled.mul(weights[i]).add(e18.sub(1)).div(e18)
await erc20.mint(owner.address, toMint0)
await erc20.connect(owner).increaseAllowance(rToken.address, toMint0)

Expand Down

0 comments on commit 6182ce4

Please sign in to comment.