Skip to content

Commit

Permalink
improve: use valid utils
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Oct 27, 2023
1 parent 95e89d5 commit 95f85a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,16 @@ 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),
depositId: sdk.utils.bnUint32Max.toNumber(),
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(),
Expand Down

0 comments on commit 95f85a6

Please sign in to comment.