Skip to content

Commit

Permalink
Minimum BTC order amount set to 0.001 BTC. Anything lower than that w…
Browse files Browse the repository at this point in the history
…ill result in greater than 10% fees.
  • Loading branch information
archived-2 committed May 27, 2022
1 parent 8d168f6 commit a0ce75a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/qortal/crosschain/Bitcoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class Bitcoin extends Bitcoiny {

public static final String CURRENCY_CODE = "BTC";

private static final long MINIMUM_ORDER_AMOUNT = 100000; // 0.001 BTC minimum order, due to high fees

// Temporary values until a dynamic fee system is written.
private static final long OLD_FEE_AMOUNT = 4_000L; // Not 5000 so that existing P2SH-B can output 1000, avoiding dust issue, leaving 4000 for fees.
private static final long NEW_FEE_TIMESTAMP = 1598280000000L; // milliseconds since epoch
Expand Down Expand Up @@ -183,6 +185,11 @@ public static synchronized void resetForTesting() {
instance = null;
}

@Override
public long getMinimumOrderAmount() {
return MINIMUM_ORDER_AMOUNT;
}

// Actual useful methods for use by other classes

/**
Expand Down

0 comments on commit a0ce75a

Please sign in to comment.