Skip to content

Commit

Permalink
fix price in swap
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jul 7, 2024
1 parent ba69b2d commit 8caf19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (p *Pool) ConvertBalancerEventToSwap(event *vault.PoolSwap, price *big.Int)
BlockNum: indexer.BlockNum(event.Raw.BlockNumber),
Timestamp: utils.CurrentUnixTime(),
ExchangePair: p.ExchangePair(),
Price: p.SqrtPriceX96ToDec(price),
Price: sdkmath.LegacyNewDecFromBigIntWithPrec(price, 18),
Volume: p.swapBalancerVolume(event),
}
}
Expand Down

0 comments on commit 8caf19e

Please sign in to comment.