A vault should be linked to multiple lending providers (Aave, Compound, etc.). On the borrow and manage-position page, we display the borrow and collateral interest rates only for the "active" provider, i.e. only the one to which the vault is currently linked. The user should be aware of what are the APR/APYs of the other lending providers.
TODOs
[x] reorder rows in Overview from
to
and remove redundant provider name
[x] on hover of the row with the supply APY, display a tooltip with a list of all integrated providers and their respective supply APYs
[x] on hover of the row with the borrow APR, display a tooltip with a list of all integrated providers and their respective borrow APRs
The design for the tooltip can be found in (Figma).
We are going to use the same tooltip for the vault's analytics component.
The data about the linked providers to a particular vault and their interest rates can be found in allProviders[vaultAddr] property in "borrow.store".
Future work
Deprecate LendingProviderDetails and use LendingProviderWithFinancials where are available also the farming rewards.
Context
A vault should be linked to multiple lending providers (Aave, Compound, etc.). On the borrow and manage-position page, we display the borrow and collateral interest rates only for the "active" provider, i.e. only the one to which the vault is currently linked. The user should be aware of what are the APR/APYs of the other lending providers.
TODOs
[x] reorder rows in Overview from
to
and remove redundant provider name
[x] on hover of the row with the supply APY, display a tooltip with a list of all integrated providers and their respective supply APYs
[x] on hover of the row with the borrow APR, display a tooltip with a list of all integrated providers and their respective borrow APRs
The design for the tooltip can be found in (Figma).
We are going to use the same tooltip for the vault's analytics component.
The data about the linked providers to a particular vault and their interest rates can be found in
allProviders[vaultAddr]
property in "borrow.store".Future work
LendingProviderDetails
and useLendingProviderWithFinancials
where are available also the farming rewards.