Lines of code
<https://github.com/code-423n4/2023-06-lybra/blob/7b73ef2fbb542b569e182d9abf79be643ca883ee/contracts/lybra/pools/base/LybraEUSDVaultBase.sol#L284>
poolTotalEUSDCirculation calculated incorerctly so it can effect reward distribution
The following line of code deduces repaid amount from poolTotalEUSDCirculation while the fee that is part of repaid amount will be distribute as rewards and wonβt be burned . This also happens for poolTotalPeUSDCirculation .
poolTotalEUSDCirculation -= amount;
Manual Review
Instead use poolTotalEUSDCirculation -= amount;
Other
The text was updated successfully, but these errors were encountered:
All reactions