Submitted by BowTiedWardens, also found by hansfriese, hubble, minhquanym, PwnedNoMore, shung, TrungOre, and WatchPug
https://github.com/code-423n4/2022-06-yieldy/blob/524f3b83522125fb7d4677fa7a7e5ba5a2c0fe67/src/contracts/Yieldy.sol#L110-L114
https://github.com/code-423n4/2022-06-yieldy/blob/524f3b83522125fb7d4677fa7a7e5ba5a2c0fe67/src/contracts/Yieldy.sol#L97-L100
_storeRebase()s signature is as such:
However, instead of being called with the expected _previousCirculating value, its called with the current circulation value:
As a consequence, the functionality isnt doing what it was created for.
Consider calling _storeRebase() with currentTotalSupply:
toshiSat (Yieldy) confirmed and resolved
