Skip to content

Commit

Permalink
fix: resolve partial fills for large quotes (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris authored Oct 31, 2023
1 parent 23c2680 commit 550a27e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions api/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,16 @@ export const getRelayerFeeDetails = async (
depositor: recipientAddress,
destinationChainId,
originChainId,
relayerFeePct: sdk.utils.bnZero,
realizedLpFeePct: sdk.utils.bnZero,
relayerFeePct: sdk.utils.bnOne,
realizedLpFeePct: sdk.utils.bnOne,
recipient: recipientAddress,
message: message ?? sdk.constants.EMPTY_MESSAGE,
quoteTimestamp: sdk.utils.getCurrentTime(),
originToken,
destinationToken,
},
amount,
sdk.utils.isMessageEmpty(message),
relayerAddress,
tokenPrice
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "AGPL-3.0-only",
"dependencies": {
"@across-protocol/constants-v2": "^1.0.4",
"@across-protocol/sdk-v2": "^0.17.5",
"@across-protocol/sdk-v2": "^0.17.10",
"@amplitude/analytics-browser": "^1.6.6",
"@amplitude/marketing-analytics-browser": "^0.3.6",
"@balancer-labs/sdk": "^1.1.3",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"@openzeppelin/contracts" "4.1.0"
"@uma/core" "^2.18.0"

"@across-protocol/sdk-v2@^0.17.5":
version "0.17.5"
resolved "https://registry.yarnpkg.com/@across-protocol/sdk-v2/-/sdk-v2-0.17.5.tgz#2163afb65092afa2f5d37eca511b1e4b89c0e2e6"
integrity sha512-C12ih8ZpX4Q+WLkPOCYqkR9K4GPEk9a8TGtPQdtdGszPS6/1t9mGGeU/dDJu52eMKRC8A7VmBNxwWndDcTdw/Q==
"@across-protocol/sdk-v2@^0.17.10":
version "0.17.10"
resolved "https://registry.yarnpkg.com/@across-protocol/sdk-v2/-/sdk-v2-0.17.10.tgz#8043f3e220742b9079ac75187d7c6c18f4a68592"
integrity sha512-HWViQjHHlvN+lnbOtmH2ZgYhu4VcYhwr17tCFOBP3ECdLs4OwBtwSUDhWlc2KG99CgZHvU3eiXN2nvhqPYwZew==
dependencies:
"@across-protocol/across-token" "^1.0.0"
"@across-protocol/constants-v2" "^1.0.4"
Expand Down

2 comments on commit 550a27e

@vercel
Copy link

@vercel vercel bot commented on 550a27e Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

goerli-frontend-v2 – ./

goerli-frontend-v2-git-master-uma.vercel.app
goerli-frontend-v2.vercel.app
goerli-frontend-v2-uma.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 550a27e Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.