pool method

Aggregate pool figures (see PoolSummary).

Implementation

Future<PoolSummary> pool() async {
  final s = await pool_reads.poolStats(_c._client, _c._config);
  return PoolSummary(
    plpTotalSupply: s.plpTotalSupply, // shares raw (6-decimal)
    idleUsdc: rawToUsdc(s.idleBalance),
    // These are queue LENGTHS (counts of pending requests), not amounts.
    supplyRequestsPending: s.supplyRequestsPending.toInt(),
    withdrawRequestsPending: s.withdrawRequestsPending.toInt(),
  );
}