Insrt-Finance / insrt-v2-contracts

0 stars 3 forks source link

Update Depositor Earnings on Withdraw #123

Open NouDaimon opened 1 year ago

NouDaimon commented 1 year ago

Currently all the storage variables related to risks and assets are updated correctly upon withdraw action. Since withdrawing an asset affects the future earnings of a depositor, it should include some form of updateDepositorEarnings hook in its flow.