Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Critical bug fix to RariFundManager._withdrawFrom
Before this bug fix, RariFundManager._withdrawFrom may have burned more RFT than necessary when processing a user's withdrawal. After withdrawing from a pool, to update the pool balance cache, instead of subtracting the amount actually withdrawn from the pool, the total withdrawal amount was subtracted from the pool balance cache. This could have caused the cached fund balance used in the RFT burn amount calculation to be lower than it should have been, causing the amount of RFT burned to be higher than it should have been.
- Loading branch information