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

* fix: format currency amounts as strings in logging

* fix: toExact
This commit is contained in:
eddie 2023-07-17 17:27:17 -07:00 committed by GitHub
parent 55bf30c0e0
commit 01e87657c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -93,7 +93,7 @@ export const formatSwapQuoteReceivedEventProperties = (
swap_quote_block_number: isClassicTrade(trade) ? trade.blockNumber : undefined,
swap_quote_received_timestamp: swapQuoteReceivedDate.getTime(),
allowed_slippage_basis_points: formatPercentInBasisPointsNumber(allowedSlippage),
token_in_amount_max: trade.maximumAmountIn(allowedSlippage),
token_out_amount_min: trade.minimumAmountOut(allowedSlippage),
token_in_amount_max: trade.maximumAmountIn(allowedSlippage).toExact(),
token_out_amount_min: trade.minimumAmountOut(allowedSlippage).toExact(),
}
}