Skip to content

Commit

Permalink
chore: remove logs
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris committed Sep 6, 2024
1 parent 2593992 commit 6d1a23c
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions api/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,24 +598,11 @@ export const getRelayerFeeDetails = async (
relayerAddress?: string,
gasPrice?: sdk.utils.BigNumberish

Check warning on line 599 in api/_utils.ts

View workflow job for this annotation

GitHub Actions / format-and-lint

'gasPrice' is defined but never used. Allowed unused args must match /^_/u
): Promise<sdk.relayFeeCalculator.RelayerFeeDetails> => {
console.log("function inputs:", {
inputToken,
outputToken,
amount: amount.toString(),
originChainId,
destinationChainId,
recipientAddress,
tokenPrice,
message,
relayerAddress,
gasPrice: gasPrice?.toString(),
});

const relayFeeCalculator = getRelayerFeeCalculator(destinationChainId, {
relayerAddress,
});
try {
const results = await relayFeeCalculator.relayerFeeDetails(
return await relayFeeCalculator.relayerFeeDetails(
{
inputAmount: sdk.utils.toBN(amount),
outputAmount: sdk.utils.toBN(amount),
Expand All @@ -640,16 +627,6 @@ export const getRelayerFeeDetails = async (
tokenPrice
// gasPrice // FIXME
);
console.log("Relayer fee details:", {
amountToRelay: results.amountToRelay.toString(),
relayerFee: results.capitalDiscountPercent.toString(),
totalFee: results.capitalFeePercent.toString(),
capitalFeeTotal: results.capitalFeeTotal.toString(),
feeLimitPct: results.feeLimitPercent.toString(),
minDeposit: results.minDeposit.toString(),
});

return results;
} catch (err: unknown) {
const reason = resolveEthersError(err);
throw new InputError(`Relayer fill simulation failed - ${reason}`);
Expand Down

0 comments on commit 6d1a23c

Please sign in to comment.