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