solace-fi / solace-core

solace.fi smart contracts
GNU General Public License v3.0
6 stars 3 forks source link

RiskManager - dynamically manage cover capacity for products #148

Closed nikitabuzov closed 3 years ago

nikitabuzov commented 3 years ago

We need to build a feedback loop between the vault size and capacity on coverage we provide. Right now we manually set how much each product can sell and would have to update via TX every time as the capital pool grows and we can provide more coverage. A new contract is needed that will take in a set model and then dynamically adjust capacity across products based on the capital pool size, so we'd only need to update the model once in a while rather than each and every capacity according to the funds in the vault