-
Notifications
You must be signed in to change notification settings - Fork 2
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
add nonreentrant to supplyTokenTo and redeemToken function #10
Conversation
850fba6
to
a4cb491
Compare
|
||
import "./ISushiBar.sol"; | ||
import "./ISushi.sol"; | ||
|
||
/// @title A pooltogether yield source for sushi token | ||
/// @author Steffel Fenix | ||
contract SushiYieldSource is IYieldSource { | ||
contract SushiYieldSource is IYieldSource, ReentrancyGuard { |
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.
You must initialize the guard
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.
@asselstine there is no need to initialize it when using the non upgradeable version one no?
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.
The constructor must be called
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.
Done: d8be0a8
Issue: code-423n4/2021-06-pooltogether-findings#119