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.
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.