fix admin balance display

This commit is contained in:
jwinterm
2026-02-18 19:20:00 -05:00
parent ec3caabf1c
commit 6860debe9a
2 changed files with 17 additions and 8 deletions
+2 -1
View File
@@ -308,7 +308,8 @@ class AlertService {
*/
async alertPayoutFailed(payout) {
const cryptoType = process.env.CRYPTO_TYPE || 'XMR';
const amountFormatted = (payout.amount / 1e12).toFixed(6);
const divisor = cryptoType === 'WOW' ? 1e11 : 1e12;
const amountFormatted = (payout.amount / divisor).toFixed(6);
await this.sendAlert('payout_failed', {
subject: `💀 Payout Permanently Failed - ${amountFormatted} ${cryptoType}`,