Skip to content

Commit

Permalink
yETH exporter, APY calc and new dash (#637)
Browse files Browse the repository at this point in the history
* wip: first apy calc version for yeth

* fix: EOW is on a Wednesday 23:59:59

* feat: adding YETHLST helper class.

* feat: add net_apy, gross_apr and type labels

* fix: use supply and price more consistently.

* feat: move yeth code into separate file

* feat: added boost

* fix: typos

* fix: use yETH as the type for the apy subhash

* chore: dry some code

* feat: get APY for a given block

* feat: added historical exporter code for yETH and created first dashboard.

* fix: dashboard queries and labels

* fix: reverse boost

* feat: adding daily swap volumes

* feat: add day_ago sample point.

* feat: yeth is a new metric

* feat: add daily swaps via events

* feat: move yeth into separate exporter

* fix: add yeth recipe

* chore: cleanup

* fix: create a nested APY object for yeth

* fix: load constants only for Mainnet

* fix: revert changes to s3 script

* fix: typo in ENV

* feat: add recipe for new yeth apy script

* feat: allow to pass in a custom resolution per exporter script

* fix: missing params and imports

* feat: adding separate yeth APY script

* fix: replace env

* fix: filepaths

* fix: whitespace

* fix: disable grafana error popup for annotations

* feat: showing virtual_balances and tvl denominated in ETH instead of USD. Added weights and target diff chart.

* feat: added dropdown for LST selection and some formatting

* feat: move LST data into separate dash

* Update yETH.json

* fix: sanitize name for grafana dashboards

* update: yeth lst

* fix: yeth dashboard

* fix: yeth dashboard2

---------

Co-authored-by: 0xBasic <[email protected]>
  • Loading branch information
crebsy and 0xBasically authored Oct 16, 2023
1 parent 8081a84 commit 85a7b5a
Show file tree
Hide file tree
Showing 11 changed files with 2,916 additions and 10 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ up:
if [ "$(commands)" == "exporters/veyfi" ] || [ "$(commands)" == $(exporter_scripts) ] || [ "$(commands)" == "" ]; then
make single-network network=ethereum commands="exporters/veyfi"
fi
if [ "$(commands)" == "exporters/yeth" ] || [ "$(commands)" == $(exporter_scripts) ] || [ "$(commands)" == "" ]; then
make single-network network=ethereum commands="exporters/yeth"
fi
fi

# cleanup containers which are temporarily unused or too buggy, ugly workaround until there is a better way to control this:
Expand Down Expand Up @@ -267,6 +270,12 @@ curve-apy-previews:
curve-apy-previews-monitoring:
make up commands="curve_apy_previews with_monitoring" network=eth

apy-yeth-monitoring:
make up commands="yeth with_monitoring" network=eth

apy-yeth:
make up commands="yeth" network=eth filter=yeth

# revenue scripts
revenues:
make up network=eth commands=revenues with_logs=false
Expand All @@ -291,6 +300,10 @@ partners-summary-ftm:
veyfi:
make up network=ethereum commands="exporters/veyfi" logs

# yeth
yeth:
make up network=ethereum commands="exporters/yeth" logs

# utils
fetch-memray:
mkdir reports/memray -p
Expand Down
2 changes: 1 addition & 1 deletion grafana/provisioning/dashboards/yearn/Overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"enable": false,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
Expand Down
Loading

0 comments on commit 85a7b5a

Please sign in to comment.