Skip to content

exclude derived asset pools from TVL calcuations

Orion 9R requested to merge orion/exclude-derived-asset-pools-from-tvl into develop

Problem: /tvl calculation was including derived pools.

relevant PR: !489 (merged)

example:

http https://midgard.ninerealms.com/v2/history/tvl | jq '.intervals[].poolsDepth[] | select(.pool | contains("THOR.")) | {pool: .pool, totalDepth: .totalDepth}' 

{
  "pool": "THOR.ETH",
  "totalDepth": "-550067564771899622"
}
{
  "pool": "THOR.BNB",
  "totalDepth": "-95527265566163258"
}
{
  "pool": "THOR.BTC",
  "totalDepth": "-1087852263677646226"
}
{
  "pool": "THOR.DOGE",
  "totalDepth": "-4974318341296612"
}
{
  "pool": "THOR.ATOM",
  "totalDepth": "-15596495509355402"
}
{
  "pool": "THOR.BCH",
  "totalDepth": "-10512199490921386"
}
{
  "pool": "THOR.LTC",
  "totalDepth": "-41696853507143322"
}
{
  "pool": "THOR.AVAX",
  "totalDepth": "-19221166556298820"
}
Edited by Orion 9R

Merge request reports