Function depositStakingProgramsInfo

    • Derives deposit staking programs info from deposit staking info. Use for advanced use cases where optimising number of network request.

      Parameters

      • depositStakingInfo: DepositStakingInfo

        deposit staking info which is returned by retrieveDepositStakingInfo function

      • poolManagerInfo: PoolManagerInfo

        pool manager info which is returned by retrievePoolManagerInfo function

      • pools: Record<string, Pool>

        pools in pool manager (either MainnetPools or TestnetPools)

      • oraclePrices: OraclePrices

        oracle prices which is returned by getOraclePrices function

      Returns DepositStakingProgramInfo[]

      Promise<DepositStakingProgramInfo[]> deposit staking programs info