From 3f5aa505e20f3bc1d75e1c9e21c19353a45cbd04 Mon Sep 17 00:00:00 2001 From: Erzengel Date: Wed, 14 May 2025 16:02:03 +0200 Subject: [PATCH 1/2] Updated Wallet to include "balancePending" or "pendingBalance" --- components/account.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/account.js b/components/account.js index 4184998e..14814d00 100644 --- a/components/account.js +++ b/components/account.js @@ -201,15 +201,16 @@ SteamUserBase.prototype._handlerManager.add(EMsg.ClientVACBanStatus, function(bo }); SteamUserBase.prototype._handlerManager.add(EMsg.ClientWalletInfoUpdate, function(body) { - if (this.wallet && body.has_wallet == this.wallet.hasWallet && body.currency == this.wallet.currency && body.balance / 100 == this.wallet.balance) { + if (this.wallet && body.has_wallet == this.wallet.hasWallet && body.currency == this.wallet.currency && body.balance / 100 == this.wallet.balance && body.balancePending / 100 == this.wallet.balancePending) { return; // nothing changed } - this.emit('wallet', body.has_wallet, body.currency, body.balance / 100); + this.emit('wallet', body.has_wallet, body.currency, body.balance / 100, body.balance_delayed / 100); this.wallet = { hasWallet: body.has_wallet, currency: body.currency, - balance: body.balance / 100 + balance: body.balance / 100, + balancePending: body.balance_delayed / 100 }; }); From 93328799c77a11febfb73081562dd16bc79cfae8 Mon Sep 17 00:00:00 2001 From: Erzengel Date: Wed, 14 May 2025 16:06:39 +0200 Subject: [PATCH 2/2] Update account.js --- components/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/account.js b/components/account.js index 14814d00..d548df37 100644 --- a/components/account.js +++ b/components/account.js @@ -201,7 +201,7 @@ SteamUserBase.prototype._handlerManager.add(EMsg.ClientVACBanStatus, function(bo }); SteamUserBase.prototype._handlerManager.add(EMsg.ClientWalletInfoUpdate, function(body) { - if (this.wallet && body.has_wallet == this.wallet.hasWallet && body.currency == this.wallet.currency && body.balance / 100 == this.wallet.balance && body.balancePending / 100 == this.wallet.balancePending) { + if (this.wallet && body.has_wallet == this.wallet.hasWallet && body.currency == this.wallet.currency && body.balance / 100 == this.wallet.balance && body.balance_delayed / 100 == this.wallet.balancePending) { return; // nothing changed }