Skip to content

Feat/feature flags - #22

Open
dapp-whisperer wants to merge 15 commits into
defidollar:mainfrom
Badger-Finance:feat/feature-flags
Open

Feat/feature flags#22
dapp-whisperer wants to merge 15 commits into
defidollar:mainfrom
Badger-Finance:feat/feature-flags

Conversation

@dapp-whisperer

Copy link
Copy Markdown

No description provided.

Comment thread contracts/peaks/BadgerSettPeak.sol Outdated
import {IBadgerSettPeak} from "../interfaces/IPeak.sol";

contract BadgerSettPeak is AccessControlDefended, IBadgerSettPeak {
contract BadgerSettPeak is AccessControlDefended, Pausable, IBadgerSettPeak {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need to use PausableSlot.sol

Comment thread contracts/peaks/BadgerSettPeak.sol Outdated
Comment on lines +47 to +61
modifier onlyGuardianOrGovernance() {
require(msg.sender == guardian || msg.sender == owner(), "onlyGuardianOrGovernance");
_;
}

// ===== Pausing Functionality =====

function pause() external onlyGuardianOrGovernance {
_pause();
}

function unpause() external onlyGovernance {
_unpause();
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would prefer these be moved to AccessControlDefended to avoid code duplication across peaks.

Comment thread contracts/peaks/BadgerSettPeak.sol Outdated
CurvePool memory pool;

// We only will support one asset per peak going forward. While somewhat hacky, this allows us to preserve the interface and existing code.
require(_pools.length <= 1, "maximum of one whitelisted pool");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Discussed on DM, that this doesn't solve anything.


contract AccessControlDefended is GovernableProxy, AccessControlDefendedBase {
uint256[50] private __gap;
uint256[48] private __gap;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why reduce 2 slots?

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