Skip to content

Commit

Permalink
fix: rounding issue for protocol fee
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk committed Feb 4, 2025
1 parent 1abb7ac commit 110c7ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@1inch/byte-utils": "3",
"@1inch/limit-order-sdk": "4.11.3",
"@1inch/limit-order-sdk": "4.11.6",
"ethers": "^6.13.5",
"tslib": "^2.8.1",
"ws": "^8.18.0"
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/fusion-order/fusion-order.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ describe('Fusion Order', () => {
)
})

it.skip('Should calculate total fee', () => {
it('Should calculate fees', () => {
// https://etherscan.io/tx/0x8f95dc0e6e836ca0abdad88e20cf61b0caf7c5463d67b577740f3084d428e56e
const data = [
{
Expand Down Expand Up @@ -334,8 +334,8 @@ describe('Fusion Order', () => {
1533984564n
)

expect(userAmount).toEqual(18442228n)
expect(integratorFee).toEqual(11065n)
expect(protocolFee).toEqual(7377n)
expect(userAmount).toEqual(18442228n)
})
})

0 comments on commit 110c7ff

Please sign in to comment.