Write a DefiLlama SDK adapter that would compute TVL for our Hydro Auction contract.
There are 2 possible options for computing TVL:
- Leverage our Deployment Tracking service that already tracks what is currently deployed by Hydro Committee in various protocols. To this value, we should also add a balances held by the Hydro Committee SC, since there might be funds that are currently idle. Note that the deployment tracking must be kept up to date in this case.
- Compute TVL by determining the value of all user lockups in Hydro. For this, we need to get all Hydro contract bank balances, then resolve LSM tokens, get their ratios towards ATOM (by leveraging LSM token info provider) and convert into ATOM value before summing them up. For stATOM and dATOM lockups the conversion isn't needed since DefiLlama code can handle the conversion to $ on its own, so we just need to get the contract balances for those two tokens.
Write a DefiLlama SDK adapter that would compute TVL for our Hydro Auction contract.
There are 2 possible options for computing TVL: