From 95f85a645403ce0cbfcc9df4274890aa3ea3b427 Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Fri, 27 Oct 2023 10:29:01 -0400 Subject: [PATCH] improve: use valid utils --- api/_utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/_utils.ts b/api/_utils.ts index 08d46c223..f3bfeb73e 100644 --- a/api/_utils.ts +++ b/api/_utils.ts @@ -505,6 +505,7 @@ export const getRelayerFeeDetails = async ( const relayFeeCalculator = getRelayerFeeCalculator(destinationChainId); try { + const oneBp = ethers.utils.parseEther("0.0001"); return await relayFeeCalculator.relayerFeeDetails( { amount: sdk.utils.toBN(amount), @@ -512,8 +513,8 @@ export const getRelayerFeeDetails = async ( depositor: recipientAddress, destinationChainId, originChainId, - relayerFeePct: sdk.utils.bnZero, - realizedLpFeePct: sdk.utils.bnZero, + relayerFeePct: oneBp, + realizedLpFeePct: oneBp, recipient: recipientAddress, message: message ?? sdk.constants.EMPTY_MESSAGE, quoteTimestamp: sdk.utils.getCurrentTime(),