diff --git a/scenario/AddMaticxCollateralScenario.ts b/scenario/AddMaticxCollateralScenario.ts index 894aed5e9..1619bd8e1 100644 --- a/scenario/AddMaticxCollateralScenario.ts +++ b/scenario/AddMaticxCollateralScenario.ts @@ -110,6 +110,6 @@ scenario( expect(await albert.getCometCollateralBalance(maticx.address)).to.be.equal( supplyAmount ); - expect(await albert.getCometBaseBalance()).to.be.equal(-borrowAmount); + expect(await albert.getCometBaseBalance()).to.be.closeTo(-borrowAmount, 1n); } ); diff --git a/scenario/WithdrawReservesScenario.ts b/scenario/WithdrawReservesScenario.ts index 5517bb788..6e81fc910 100644 --- a/scenario/WithdrawReservesScenario.ts +++ b/scenario/WithdrawReservesScenario.ts @@ -59,7 +59,7 @@ scenario( await context.setNextBaseFeeToZero(); await expectRevertCustom( - admin.withdrawReserves(albert.address, 101n * scale, { gasPrice: 0 }), + admin.withdrawReserves(albert.address, 1001n * scale, { gasPrice: 0 }), 'InsufficientReserves()' ); }