Skip to content

Invalid idle_balances.fetch_assets logic #52

@armoking32

Description

@armoking32

Regarding idle_balances: https://github.com/Moonsong-Labs/tq-oracle/blob/master/src/tq_oracle/adapters/asset_adapters/idle_balances.py#L114-L126

Here we should iterate not only over the supported assets, but also over any additional assets that may exist on the balance of the vault or its subvaults (for example, fetched dynamically from the config).

In fact, the supported assets in the Oracle or ShareModule correspond to the assets allowed for deposit and redeem queues. So in the case of tqETH, the supported assets could be [ETH, WETH, WSTETH]. However, a subvault might also hold other assets, such as USDC, which could be received through a CowSwap order execution.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions