You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loggerDeposits.info(`Transaction ${txid} was confirmed`);
76
+
returnsequelize.transaction((transaction)=>{
77
+
returnall(txids[txid].map((withdrawal)=>{
78
+
returnwithdrawal.update(
79
+
{
80
+
waiting: false,
81
+
status: true
82
+
},
83
+
{
84
+
attributes: ['waiting','status'],
85
+
transaction,
86
+
returning: true
87
+
}
88
+
)
89
+
.then((data)=>{
90
+
return{
91
+
success: true,
92
+
status: true,
93
+
data
94
+
};
95
+
});
96
+
}));
97
+
});
98
+
}elseif(tx.data[0].is_rejected){
99
+
loggerDeposits.info(`Transaction ${txid} was rejected`);
100
+
return{
101
+
success: true,
102
+
status: false,
103
+
info: {
104
+
type: 'Vault Withdrawal Rejected',
105
+
data: {
106
+
description: 'This Vault withdrawal was rejected on the blockchain. You can double-check this transaction and proceed to confirm or dismiss the withdrawal through your admin panel.',
107
+
transaction_id: txid,
108
+
withdrawals: txids[txid].map((wd)=>wd.dataValues)
86
109
}
87
-
)
88
-
.then((data)=>{
89
-
return{
90
-
success: true,
91
-
status: true,
92
-
data
93
-
};
94
-
});
95
-
}));
96
-
});
97
-
}elseif(tx.data[0].is_rejected){
98
-
loggerDeposits.info(`Transaction ${txid} was rejected`);
110
+
}
111
+
};
112
+
}else{
113
+
loggerDeposits.info(`Transaction ${txid} is not processed yet`);
114
+
return{};
115
+
}
116
+
}else{
117
+
loggerDeposits.warn(`Transaction ${txid} is not found`);
99
118
return{
100
-
success: true,
101
-
status: false,
119
+
success: false,
102
120
info: {
103
-
type: 'Vault Withdrawal Rejected',
121
+
type: 'Vault Transaction Not Found',
104
122
data: {
105
-
description: 'This Vault withdrawal was rejected on the blockchain. You can double-check this transaction and proceed to confirm or dismiss the withdrawal through your admin panel.',
123
+
description: 'This withdrawal was not found in Vault.',
106
124
transaction_id: txid,
107
125
withdrawals: txids[txid].map((wd)=>wd.dataValues)
108
126
}
109
127
}
110
128
};
111
-
}else{
112
-
loggerDeposits.info(`Transaction ${txid} is not processed yet`);
113
-
return{};
114
129
}
115
-
}else{
116
-
loggerDeposits.warn(`Transaction ${txid} is not found`);
117
-
return{
118
-
success: false,
119
-
info: {
120
-
type: 'Vault Transaction Not Found',
121
-
data: {
122
-
description: 'This withdrawal was not found in Vault.',
0 commit comments