Skip to content

Conversation

@TheNewAutonomy
Copy link
Member

totalLiquidity is representing totalLiquidity in a pool rather than in the farm which could be less.
slpBalance represents the number of tokens in the farm so this change calculates the value per share and multiples that by the number of shares in the farm to give the liquidity loaded in the farm.

The result for farms right now is very close to what's in the pools since shares are mostly loaded into farms but several new pools have no liquidity being reported and so the APR was showing as infinity (n rewards shared by 0 shares). That looks a bit strange so I've changed this to show as "-' rather than 'infinity'.

@TheNewAutonomy TheNewAutonomy added the bug Something isn't working label Jul 7, 2022
@TheNewAutonomy TheNewAutonomy requested a review from a team July 7, 2022 16:49
@vercel
Copy link

vercel bot commented Jul 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
dashboard-interface ✅ Ready (Inspect) Visit Preview Jul 7, 2022 at 4:54PM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants