Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
fix: utility accepts string instead of BN
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 committed Jan 10, 2024
1 parent 0884745 commit 607d9b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/constants.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import BigNumber from "bignumber.js";
import { satoshisToBitcoins } from "unchained-bitcoin";

export const DUST_IN_SATOSHIS = 546;
export const DUST_IN_BTC = satoshisToBitcoins(BigNumber(DUST_IN_SATOSHIS));
export const DUST_IN_BTC = satoshisToBitcoins(DUST_IN_SATOSHIS.toString());
export const DEFAULT_PREFIX = "m";
export const CHANGE_INDEX = "/1";
export const DEFAULT_CHANGE_PREFIX = DEFAULT_PREFIX + CHANGE_INDEX;

0 comments on commit 607d9b8

Please sign in to comment.