Skip to content

Commit

Permalink
Fix sellInPtTerms
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo committed May 20, 2024
1 parent 05795dd commit 3cb00b0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ export const makeOrderCalculations = ({
: new BigNumber(pool.ptPriceTokenA)

const sellInPtTerms = asQuantity(
sellQuantity
.multipliedBy(ptPriceSell.shiftedBy(tokens.ptInfo.decimals))
.shiftedBy(-1 * tokens.sellInfo.decimals)
.integerValue(BigNumber.ROUND_DOWN),
sellQuantity.multipliedBy(ptPriceSell).integerValue(BigNumber.ROUND_DOWN),
)

// ffee is based on PT value range + LP holding range
Expand Down

0 comments on commit 3cb00b0

Please sign in to comment.