Skip to content

Commit

Permalink
fix: digits
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-path committed Oct 15, 2024
1 parent 6ac2d01 commit ac5a183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redux/selectors/getCollateralAmount.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSelector } from "@reduxjs/toolkit";

import { shrinkToken, PERCENT_DIGITS } from "../../store";
import { shrinkToken, PERCENT_DIGITS, PERCENT_DIGITS_BTC } from "../../store";
import { RootState } from "../store";
import { hasAssets } from "../utils";
import { toDecimal } from "../../utils/uiNumber";
Expand All @@ -20,7 +20,7 @@ export const getCollateralAmount = (tokenId: string) =>
shrinkToken(
collateral.balance || 0,
metadata.decimals + config.extra_decimals,
PERCENT_DIGITS,
tokenId.indexOf("nbtc") > -1 ? PERCENT_DIGITS_BTC : PERCENT_DIGITS,
),
);
},
Expand Down

0 comments on commit ac5a183

Please sign in to comment.