Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Jul 9, 2024
1 parent 16d3843 commit 06e5aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ui/src/state/farmer/market/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export const castPodOrder = (order: PodOrderFragment): PodOrder => {
BEAN[1].decimals
);

const beanAmountRemaining = toTokenUnitsBN(beanAmount.minus(beanAmountFilled).toFixed(6, BigNumber.ROUND_UP), 0);
const podAmountRemaining = toTokenUnitsBN(beanAmountRemaining.div(pricePerPod).toFixed(6, BigNumber.ROUND_UP), 0);
const beanAmountRemaining = beanAmount.minus(beanAmountFilled).dp(6, BigNumber.ROUND_UP);
const podAmountRemaining = beanAmountRemaining.div(pricePerPod).dp(6, BigNumber.ROUND_UP);
const podAmount = podAmountFilled.plus(podAmountRemaining);

return {
Expand Down

0 comments on commit 06e5aee

Please sign in to comment.