Skip to content

Commit

Permalink
fix: routing-api doesn't own the portion bps/amount default value (#389)
Browse files Browse the repository at this point in the history
routing-api doesn't own the portion bps/amount default value
  • Loading branch information
unicorn-here authored Oct 11, 2023
1 parent c31731d commit e4f1565
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/handlers/quote/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,10 @@ export class QuoteHandler extends APIGLambdaHandler<
routeString,
quoteId,
hitsCachedRoutes: hitsCachedRoute,
portionBips: portionBips ?? 0, // business decision is we always return back the portionBips from routing BE
portionBips: portionBips,
portionRecipient: portionRecipient,
portionAmount: portionAmount?.quotient.toString() ?? '0', // business decision is we always return back the portionAmount from routing BE
portionAmountDecimals: portionAmount?.toExact() ?? '0', // business decision is we always return back the portionAmount from routing BE
portionAmount: portionAmount?.quotient.toString(),
portionAmountDecimals: portionAmount?.toExact(),
}

this.logRouteMetrics(
Expand Down

0 comments on commit e4f1565

Please sign in to comment.