Submitted by joestakey, also found by Chom
The emergency exit function recoverEther allows the owner to retrieve the ETH in case an issue were to happen.
The problem is that this function does not update currentWithheldETH.
This means upon deposit starting again after the emergency recovery, currentWithheldETH will have an offset and will not match the withholdRatio.
Direct consequences:
You can add the following Foundry test in frxETHMinter.t.sol to reproduce the issue:
Foundry
Update currentWithheldETH in recoverEther :
FortisFortuna (Frax) commented:
0xean (judge) commented:
