Skip to content

Hydro Auction DefiLlama Adapter #376

@dusan-maksimovic

Description

@dusan-maksimovic

Write a DefiLlama SDK adapter that would compute TVL for our Hydro Auction contract.

There are 2 possible options for computing TVL:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions