Skip to content

Commit

Permalink
fix getAdjustedSum method issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqiancaosissi committed Dec 22, 2023
1 parent ec4af46 commit b68d192
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions redux/selectors/getWithdrawMaxAmount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export const getAdjustedSum = (
const price = asset.price
? new Decimal(asset.price.multiplier).div(new Decimal(10).pow(asset.price.decimals))
: new Decimal(0);

pricedBalance = new Decimal(portfolio[type][id].balance)
pricedBalance = new Decimal(portfolio.positions[positionId][type][id].balance)
.div(expandTokenDecimal(1, asset.config.extra_decimals))
.mul(price);
} else {
Expand Down

0 comments on commit b68d192

Please sign in to comment.