feature/wallet-refactor #5

Merged
Ghasemi merged 2 commits from feature/wallet-refactor into master 2026-08-31 10:23:00 -04:00

2 commits

Author SHA1 Message Date
b8e7ebb295 REVERT(pg): drop the commission-income wallet deposit
The deposit_income_submit/deposit_income_verify/charge_wallet_income
machinery and income_uuid added in 7dcb730 were not intended. Remove
them and the trailing charge_wallet_income() call.

The wallet charge is back to a single deposit: paid from IPG's own
application wallet (WALLET_IPG_CREDIT) into the user's rial wallet
(WALLET_RIAL_DEPOSIT).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 17:44:26 +03:30
e4e13b2235 FIX(pg): deposit user balance from IPG's own wallet, not the user rial wallet
deposit_submit/deposit_verify passed WALLET_RIAL_DEPOSIT (a user-side
wallet type) as the company-side payer wallet. The payer must be IPG's
application wallet, WALLET_IPG_CREDIT; the user's rial wallet stays as
the body payee_wallet. deposit_income_* already used WALLET_IPG_CREDIT
correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 17:39:31 +03:30