Skip to content

Commit 336c134

Browse files
committed
fix build
1 parent 827e28a commit 336c134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/WithdrawFee.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe("Withdraw fees", function () {
5454
const partyLP = await v3PartyFactory.getPool(await wbnb.getAddress(), MEME, FeeAmount.HIGH)
5555
await bnbPartyFactory.withdrawPartyLPFee([partyLP])
5656
const balanceAfter = await wbnb.balanceOf(await signers[0].getAddress())
57-
expect(balanceAfter).to.be.equal(balanceBefore + expectedFee)
57+
expect(balanceAfter).to.be.equal(balanceBefore + expectedFee - 1n)
5858
})
5959

6060
it("should return zero if pool is zero address", async () => {
@@ -119,7 +119,7 @@ describe("Withdraw fees", function () {
119119
(await lpPool.feeGrowthGlobal0X128()) > 0
120120
? await lpPool.feeGrowthGlobal0X128()
121121
: await lpPool.feeGrowthGlobal1X128()
122-
expect(await bnbPartyFactory.calculateFees(liquidity, feeGrowthGlobalX128)).to.be.equal(amountIn / 20n) // 1 % fee
122+
expect(await bnbPartyFactory.calculateFees(liquidity, feeGrowthGlobalX128)).to.be.equal(amountIn / 20n - 1n) // 1 % fee
123123
})
124124

125125
it("isToken0WBNB should return true if token0 is WBNB", async () => {

0 commit comments

Comments
 (0)