Commit 01e87657 authored by eddie's avatar eddie Committed by GitHub

fix: format currency amounts as strings in logging (#6966)

* fix: format currency amounts as strings in logging

* fix: toExact
parent 55bf30c0
...@@ -93,7 +93,7 @@ export const formatSwapQuoteReceivedEventProperties = ( ...@@ -93,7 +93,7 @@ export const formatSwapQuoteReceivedEventProperties = (
swap_quote_block_number: isClassicTrade(trade) ? trade.blockNumber : undefined, swap_quote_block_number: isClassicTrade(trade) ? trade.blockNumber : undefined,
swap_quote_received_timestamp: swapQuoteReceivedDate.getTime(), swap_quote_received_timestamp: swapQuoteReceivedDate.getTime(),
allowed_slippage_basis_points: formatPercentInBasisPointsNumber(allowedSlippage), allowed_slippage_basis_points: formatPercentInBasisPointsNumber(allowedSlippage),
token_in_amount_max: trade.maximumAmountIn(allowedSlippage), token_in_amount_max: trade.maximumAmountIn(allowedSlippage).toExact(),
token_out_amount_min: trade.minimumAmountOut(allowedSlippage), token_out_amount_min: trade.minimumAmountOut(allowedSlippage).toExact(),
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment