diff --git a/api/_utils.ts b/api/_utils.ts index 08d46c223..0d42c9aac 100644 --- a/api/_utils.ts +++ b/api/_utils.ts @@ -512,8 +512,8 @@ 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(), @@ -521,6 +521,7 @@ export const getRelayerFeeDetails = async ( destinationToken, }, amount, + sdk.utils.isMessageEmpty(message), relayerAddress, tokenPrice ); diff --git a/package.json b/package.json index 04e4557a1..9314156a4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index efa79fb05..77ebcd5e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"