Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fast updates for aura emissions calcs [already deployed] #20

Merged
merged 3 commits into from Jul 4, 2022

Conversation

Tritium-VLK
Copy link
Contributor

  • add some calcs from the aura team for Aura per bal earned
  • marked a number of metrics to move to the coingeckos gauge once we have total supply there.

tritium-vlk added 2 commits July 4, 2022 19:03
- marked a number of metrics to move to the coingeckos gauge once we have total supply there.
@Tritium-VLK Tritium-VLK requested a review from SHAKOTN July 4, 2022 17:44
@@ -541,7 +541,9 @@ def update_aura_info_gauge(aura_gauge: Gauge, aura_token, aura_bal_token) -> Non
# Add auraBAL total supply
aura_gauge.labels("AURA_locker_totalSupply").set(aura_locker.totalSupply() / 1e18)
aura_gauge.labels("AURA_balance").set(aura_token.balanceOf(ADDRESSES['AuraLocker']) / 1e18)
aura_gauge.labels("auraBAL_total_supply").set(aura_bal_token.totalSupply() / 1e18)
aura_gauge.labels("AURA_minted_per_bal_earned").set( ((500 - ((aura_token.totalSupply()/aura_token.decimals()) - 50000000) / 100000) * 2.5 + 700) / 500 )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs some explanation, looks like magic numbers to me

@@ -541,7 +541,9 @@ def update_aura_info_gauge(aura_gauge: Gauge, aura_token, aura_bal_token) -> Non
# Add auraBAL total supply
aura_gauge.labels("AURA_locker_totalSupply").set(aura_locker.totalSupply() / 1e18)
aura_gauge.labels("AURA_balance").set(aura_token.balanceOf(ADDRESSES['AuraLocker']) / 1e18)
aura_gauge.labels("auraBAL_total_supply").set(aura_bal_token.totalSupply() / 1e18)
aura_gauge.labels("AURA_minted_per_bal_earned").set( ((500 - ((aura_token.totalSupply()/aura_token.decimals()) - 50000000) / 100000) * 2.5 + 700) / 500 )
aura_gauge.labels("AURA_totalSupply").set(aura_token.totalSupply() / 1e18) ## TODO remove when in coingecko
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls put one hash # for comment

@@ -553,10 +555,10 @@ def update_convex_info_gauge(convex_gauge: Gauge, convex_token, cvxcrv_token) ->
convex_gauge.labels("CVX_locked").set(convex_locker.lockedSupply() / 1e18)
convex_gauge.labels("CVX_locker_totalSupply").set(convex_locker.totalSupply() / 1e18)
# Add auraBAL total supply
convex_gauge.labels("cvxCRV_total_supply").set(cvxcrv_token.totalSupply() / 1e18)
convex_gauge.labels("CVX_total_supply").set(convex_token.totalSupply() / 1e18)
convex_gauge.labels("cvxCRV_total_supply").set(cvxcrv_token.totalSupply() / 1e18) ##TODO remove when in coingecko and update convex locking dashboard
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add whitespace after # and need only one # sign for commenting

@Tritium-VLK Tritium-VLK merged commit b88d9f1 into master Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants