-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeArena] - Med/High Risk fixes #100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
@@ -486,6 +488,7 @@ contract NestedFactory is INestedFactory, ReentrancyGuard, OwnableProxyDelegatio | |||
bool _fromReserve | |||
) private returns (IERC20, uint256) { | |||
if (address(_inputToken) == ETH) { | |||
require(!_fromReserve, "NF: NO_ETH_FROM_RESERVE"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❔ I'm not sure I understand why is this one necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
safe guard to not use ETH when it's from the reserve (this is possible) and the user can take the ETH from the contract
Fixes for all "Med/High Risk issues"
Confirmed on our side for the moment (also "disagree with severity")
areOperatorsImported
code-423n4/2022-02-nested-findings#17 (720b450)NestedFactory
does not track operators properly code-423n4/2022-02-nested-findings#38 (1a16a51)