Midgard Cache

MidgardCache

This class retrieves raw information from Midgard API and cached it

Parameters

  • midgardApi MidgardApi an instance of the midgard API (could be pointing to stagenet,testnet,mainnet) (optional, default new midgard_api_1.MidgardApi())

getPools

Get info about existing pools in the protocol from Midgard API

Returns Array<PoolDetail> Array of pools