Skip to content

Commit

Permalink
Merge pull request #2628 from Kwenta/revert-impact-change
Browse files Browse the repository at this point in the history
Revert price impact change
  • Loading branch information
avclarke authored Jul 19, 2023
2 parents 7930cca + 0310bcf commit 88b4fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/utils/futures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export const formatPotentialTrade = (

const notionalValue = wei(size).mul(wei(price))
const leverage = margin.gt(0) ? notionalValue.div(wei(margin)) : ZERO_WEI
const priceImpact = wei(price).sub(skewAdjustedPrice).div(skewAdjustedPrice)
const priceImpact = wei(price).sub(skewAdjustedPrice).div(skewAdjustedPrice).abs()

return {
fee: wei(fee),
Expand Down

0 comments on commit 88b4fb1

Please sign in to comment.