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
Conversation
Tritium-VLK
commented
Jul 4, 2022
- 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.
- marked a number of metrics to move to the coingeckos gauge once we have total supply there.
docker/scout/scripts/main.py
Outdated
@@ -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 ) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
docker/scout/scripts/main.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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