commit
9edf3e7251
4 changed files with 8 additions and 2 deletions
|
|
@ -898,6 +898,10 @@ function plugins (settings, deviceId) {
|
|||
return walletScoring.rateAddress(settings, cryptoCode, address)
|
||||
}
|
||||
|
||||
function rateTransaction (cryptoCode, address) {
|
||||
return walletScoring.rateTransaction(settings, cryptoCode, address)
|
||||
}
|
||||
|
||||
function isWalletScoringEnabled (tx) {
|
||||
return walletScoring.isWalletScoringEnabled(settings, tx.cryptoCode)
|
||||
}
|
||||
|
|
@ -934,6 +938,7 @@ function plugins (settings, deviceId) {
|
|||
notifyOperator,
|
||||
pruneMachinesHeartbeat,
|
||||
rateAddress,
|
||||
rateTransaction,
|
||||
isWalletScoringEnabled,
|
||||
probeLN,
|
||||
buildAvailableUnits
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ const getApplicantStatus = (account, userId) => {
|
|||
if (levelName !== account.applicantLevel) return { level: account.applicantLevel, answer: RETRY }
|
||||
|
||||
let answer = PENDING
|
||||
if (reviewStatus === 'init') answer = RETRY
|
||||
if (reviewAnswer === 'GREEN' && reviewStatus === 'completed') answer = APPROVED
|
||||
if (reviewAnswer === 'RED' && reviewRejectType === 'RETRY') answer = RETRY
|
||||
if (reviewAnswer === 'RED' && reviewRejectType === 'FINAL') answer = REJECTED
|
||||
|
|
|
|||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "lamassu-server",
|
||||
"version": "10.0.3",
|
||||
"version": "10.0.6",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "lamassu-server",
|
||||
"description": "bitcoin atm client server protocol module",
|
||||
"keywords": [],
|
||||
"version": "10.0.3",
|
||||
"version": "10.0.6",
|
||||
"license": "./LICENSE",
|
||||
"author": "Lamassu (https://lamassu.is)",
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue