Skip to content

Commit

Permalink
Avoid another division by 0 - typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ktl-XV committed Aug 22, 2022
1 parent 1b4cc1b commit 0ae45f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions staking-api/src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ae45f9

Please sign in to comment.