arbret/shared/constants.json
counterweight 549fbf4975
Step 8: Cleanup old constants
- Remove EUR_TRADE_MIN, EUR_TRADE_MAX, PREMIUM_PERCENTAGE from shared_constants.py
- Remove eurTradeMin, eurTradeMax, premiumPercentage from shared/constants.json
- Update validate_constants.py to not require removed fields
- Update seed.py and seed_e2e.py to use defaults if fields don't exist
- Update tests to handle missing constants gracefully
2025-12-26 20:27:03 +01:00

49 lines
971 B
JSON

{
"roles": {
"ADMIN": "admin",
"REGULAR": "regular"
},
"inviteStatuses": {
"READY": "ready",
"SPENT": "spent",
"REVOKED": "revoked"
},
"exchangeStatuses": {
"BOOKED": "booked",
"COMPLETED": "completed",
"CANCELLED_BY_USER": "cancelled_by_user",
"CANCELLED_BY_ADMIN": "cancelled_by_admin",
"NO_SHOW": "no_show"
},
"tradeDirections": {
"BUY": "buy",
"SELL": "sell"
},
"bitcoinTransferMethods": {
"ONCHAIN": "onchain",
"LIGHTNING": "lightning"
},
"exchange": {
"slotDurationMinutes": 15,
"maxAdvanceDays": 30,
"minAdvanceDays": 1,
"eurTradeIncrement": 20,
"priceRefreshSeconds": 60,
"priceStalenessSeconds": 300,
"lightningMaxEur": 1000
},
"validation": {
"telegram": {
"maxLengthAfterAt": 32,
"mustStartWith": "@"
},
"signal": {
"maxLength": 64
},
"nostrNpub": {
"prefix": "npub1",
"bech32Words": 52
}
}
}