• Calculates metrics that depends on Node's retrieved data. Since some metrics are obtained from the Node they have to be calculated outside db queries

    Parameters

    • metrics: {
          activeStake: bigint;
          activeStakePercentage: Percent;
          blocksCreated: number;
          delegators: number;
          lastRos: Percent;
          livePledge: bigint;
          liveStake: bigint;
          ros: Percent;
          saturation: Percent;
      }
      • activeStake: bigint
      • activeStakePercentage: Percent
      • blocksCreated: number
      • delegators: number
      • lastRos: Percent
      • livePledge: bigint
      • liveStake: bigint
      • ros: Percent
      • saturation: Percent
    • Optional apy: number

    Returns StakePoolMetrics

Generated using TypeDoc