Submitted by BowTiedWardens, also found by WatchPug
Issue: there is a huge arb opportunity for people who deposit 1 block before the rebase().
Consequences: then they can call instantUnstakeReserve or instantUnstakeCurve to unstake the staked amount, in this way the profit that needs to be distributed on the next rebase increases, he also messes up the rewards for the other holders as the instantUnstakeReserve does not burn the YIELD_TOKEN. Even if there is a fee on the instantUnstakeReserve, there is still a chance for profit.
Affected Code
Burn the YIELD_TOKEN amount in the instantUnstakeReserve.
0xean (Yieldy) acknowledged, but disagreed with severity and commented:
JasoonS (judge) decreased severity to Medium and commented:
