Skip to content

Commit

Permalink
fix repay decimals issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqiancaosissi committed Dec 28, 2023
1 parent 81b8227 commit 38cae88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ const Modal = () => {
setSelectedCollateralType={setSelectedCollateralType}
/>
) : null}
add prop here
{action === "Repay" ? (
<CollateralTypeSelectorRepay
repayPositions={repayPositions}
Expand Down
2 changes: 1 addition & 1 deletion store/actions/repay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function repay({
PositionRepay: {
asset_amount: {
amount: !isMax
? expandedAmountToken.mul(extraDecimalMultiplier).toFixed(0)
? expandedAmountToken.mul(extraDecimalMultiplier).minus(1).toFixed(0)
: undefined,
token_id: tokenId,
},
Expand Down

0 comments on commit 38cae88

Please sign in to comment.