Submitted by csanuragjain
Note: this issue had originally been grouped with M-15. Approximately 1 week after judging and awarding were finalized, the judging team re-assessed that this issue should have been classified as a unique issue. It has been broken out here accordingly.
https://github.com/code-423n4/2022-06-yieldy/blob/main/src/contracts/Yieldy.sol#L91
It was observed that if updatedTotalSupply > MAXSUPPLY then updatedTotalSupply becomes MAXSUPPLY. This means _profit amount is not fully used. But _storeRebase function is still called with _profit amount.
This becomes a problem since _storeRebase function caluclates rebasePercent using this incorrect _profit amount.
Use below:
toshiSat (Yieldy) acknowledged and commented: 
JasoonS (judge) commented:
JasoonS (judge) decreased severity to Medium and commented:
