diff --git a/staking-api/src/queries.ts b/staking-api/src/queries.ts index 6fd8ad9c..762feb27 100644 --- a/staking-api/src/queries.ts +++ b/staking-api/src/queries.ts @@ -565,6 +565,8 @@ export const currentEpochPoolStatsQuery = ` fbp.protocol_fees = 0 OR ts.total_staked = 0 THEN + NULL + ELSE (cebs.zrx_delegated / ts.total_staked) / (fbp.protocol_fees / tf.total_protocol_fees) END AS approximate_stake_ratio