mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 13:45:48 +00:00
a8dc9add24
BridgeViewModel's wUSDT->USDT gate called http://217.77.6.126:3030/status - the legacy single-key bridge bot's endpoint. That service was stopped this same session (see res/validators-tiki.md), so the check always threw, always caught, and always reported "inactive" - the red warning reflected a dead dependency, not real reserve state. Replaced with a direct on-chain read of the multisig's actual USDT balance on Polkadot Asset Hub (BridgeMultisigInteractor.getPolkadotUsdtReserve, via a new Assets.Account storage query mirroring the existing Approvals one). The gate is now per-request: a specific withdrawal is blocked only if it exceeds the real reserve, not on a global on/off flag requiring full 1:1 parity between total circulating supply and total reserve - matching how the Rust listener's own reserve-shortfall check already works. Re-checked on every amount change, not just once per screen load. bridge_wusdt_to_usdt_blocked now takes the available reserve amount as a parameter; updated the English and Turkish strings. Left values-ku untouched deliberately - not fabricating Kurdish translation text without native review.