Skip to content
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

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

kamescg
Copy link

@kamescg kamescg commented Jun 28, 2021

@PierrickGT PierrickGT self-assigned this Jul 2, 2021
@aodhgan aodhgan force-pushed the fix/119 branch 2 times, most recently from 850fba6 to a4cb491 Compare July 2, 2021 19:20

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 {

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

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?

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: d8be0a8

@PierrickGT PierrickGT changed the base branch from master to fixes/c4-audit July 12, 2021 14:37
@PierrickGT PierrickGT merged commit 88d73a4 into fixes/c4-audit Jul 12, 2021
@PierrickGT PierrickGT deleted the fix/119 branch July 12, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants