mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 06:01:11 +00:00
resolvePool now normalizes base58-or-hex ids (the liquidity view passes base58, the swap card hex) and orients the returned reserves to the caller's requested token order — reserveA is the requested tokenA's reserve — instead of the pool's stored order, which needn't be canonical (e.g. a pool created outside the FFI, like the testnet setup's). Callers read reserveA/reserveB directly; the swap card is unaffected (it reads the reserves for display only and never oriented them itself).