balancer / backend

MIT License
22 stars 9 forks source link

sfrax apr not showing #50

Closed franzns closed 9 months ago

franzns commented 10 months ago

sfrax apr not showing on OP https://op.beets.fi/pool/0x2feb76966459d7841fa8a7ed0aa4bf574d6111bf00020000000000000000011d

Maybe other added YB aprs are also not working?

gmbronco commented 10 months ago

Tracked it down to the token price being 0.

Coingecko doesn't have it

Main difficulty in debugging is the circular dependency in the config, but at least we've got a specific case for refactoring.

Calling:

const service = new YbTokensAprService(...)
service.updateAprForPools(pools);

results in:

TypeError: yb_tokens_apr_service_1.YbTokensAprService is not a constructor
    at Object.<anonymous> (/Users/jareknowotka/Developer/balancer/backend/modules/network/mainnet.ts:368:9)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)

removing APR services from configs solves the issue. call stack: YbTokensAprService > has a dependency somewhere which is calling something from the network config > network config depends on YbTokensAprService

franzns commented 10 months ago

thanks for checking! I believe they are in the process of listing on coingecko