Open code423n4 opened 2 years ago
Set it to true before the deposit
true
deposit
File: /src/frxETHMinter.sol activeValidators[pubKey] = true;
https://github.com/code-423n4/2022-09-frax/blob/main/src/frxETHMinter.sol#L151
the deposit() on ERC4626 checked it on the top of the function
deposit()
ERC4626
File: /src/frxETHMinter.sol require(sfrxeth_recieved > 0, 'No sfrxETH was returned');
https://github.com/code-423n4/2022-09-frax/blob/main/src/frxETHMinter.sol#L79
Use effects-Interactions Pattern
Set it to
true
before thedeposit
Finding
https://github.com/code-423n4/2022-09-frax/blob/main/src/frxETHMinter.sol#L151
Unnecessary checking for zero value
the
deposit()
onERC4626
checked it on the top of the functionFinding
https://github.com/code-423n4/2022-09-frax/blob/main/src/frxETHMinter.sol#L79