Submitted by xiaoming90
Calling NibblVault.updateTWAP function will change the state of the system. It will cause the TWAP to be updated and buyout to be rejected in certain condition.
When the system is in Pause mode, the system state should be frozen. However, it was possible for someone to call the NibblVault.updateTWAP function during the Pause mode, thus making changes to the system state.
https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/NibblVault.sol#L443
Ensure that the NibblVault.updateVault function cannot be called when the system is in Pause mode.
Add the whenNotPaused modifier to the function.
mundhrakeshav (Nibbl) marked as duplicate and commented:
HardlyDifficult (judge) commented:
