feat: standardize balance memoizing speed

feat: add infura-only override for getStatus()
fix: remove coin filtering on poller
feat: add getStatus() response caching on infura
This commit is contained in:
Sérgio Salgado 2022-07-06 14:48:49 +01:00
parent 850f488963
commit 6f8561850a
5 changed files with 100 additions and 44 deletions

View file

@ -24,6 +24,11 @@ const RECEIPT = 'sms_receipt'
const WALLET_SCORE_THRESHOLD = 9
const BALANCE_FETCH_SPEED_MULTIPLIER = {
NORMAL: 1,
SLOW: 3
}
module.exports = {
anonymousCustomer,
CASSETTE_MAX_CAPACITY,
@ -39,5 +44,7 @@ module.exports = {
CASH_OUT_MINIMUM_AMOUNT_OF_CASSETTES,
CASH_OUT_MAXIMUM_AMOUNT_OF_CASSETTES,
WALLET_SCORE_THRESHOLD,
RECEIPT
RECEIPT,
PSQL_URL,
BALANCE_FETCH_SPEED_MULTIPLIER
}