Skip to content

Commit

Permalink
Change time dependent trade limits
Browse files Browse the repository at this point in the history
This is in accordance with bisq-network/proposals#264

Any account type that doesn't need signing can now trade the full
amount immediately, same goes for signed type accounts that are
selling.

Signed type accounts that are buying now has minimum limit (0.01 BTC) up until
30 days after getting signed, when they get the full limits.
  • Loading branch information
sqrrm committed Oct 25, 2020
1 parent 17745e3 commit 38ef548
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,8 @@ private double signedTypeFactor(AccountAge accountAgeCategory,
private double signedBuyFactor(AccountAge accountAgeCategory) {
switch (accountAgeCategory) {
case TWO_MONTHS_OR_MORE:
return 1;
case ONE_TO_TWO_MONTHS:
return 0.5;
return 1;
case LESS_ONE_MONTH:
case UNVERIFIED:
default:
Expand All @@ -408,17 +407,7 @@ private double signedBuyFactor(AccountAge accountAgeCategory) {
}

private double normalFactor(AccountAge accountAgeCategory) {
switch (accountAgeCategory) {
case TWO_MONTHS_OR_MORE:
return 1;
case ONE_TO_TWO_MONTHS:
return 0.5;
case LESS_ONE_MONTH:
case UNVERIFIED:
return 0.25;
default:
}
return 0;
return 1;
}

///////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 38ef548

Please sign in to comment.