NexusMutual / cover-router

Computes optimal capacity allocation per Nexus Mutual staking pool on cover purchase
MIT License
1 stars 1 forks source link

Cover router: /capacities/ endpoint #3

Closed roxdanila closed 1 year ago

roxdanila commented 2 years ago

Output

Context

In Nexus v1, we display the capacity for each product using capacityETH or capacityDAI.

For the v2 we'd need capacityETH and capacityDAI for display as well, the key difference is that now we have many pools instead of a global one, so we'd need an extra computation to evaluate that server-side or with a view.