Skip to content

Commit

Permalink
fix price impact decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Dec 14, 2023
1 parent 67ca94e commit 4d60790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sor/sorV2/sorV2.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class SwapResultV2 implements SwapResult {
): Promise<GqlSorGetSwapsResponse> {
const sor = new BalancerSorService();
const tokens = await tokenService.getTokens();
const priceImpact = swap.priceImpact.percentage.toFixed(4);
const priceImpact = swap.priceImpact.decimal.toFixed(4);
let poolIds: string[];
if (swap.isBatchSwap) {
const swaps = swap.swaps as BatchSwapStep[];
Expand Down

0 comments on commit 4d60790

Please sign in to comment.