Rari-Capital/vaults

๐Ÿ” Possible underflow revert in exitPool

Closed this issue ยท 0 comments

Balance of underlying last harvest could underflow if vault lost assets and regained in between. Should either harvest no matter what or at least document that users may need to harvest before calling exit pool?

balanceOfUnderlyingLastHarvest[cToken] -= underlyingAmount;