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

FIP-60 - Fuse guardian #430

Merged
merged 6 commits into from
Jan 5, 2022

Conversation

Joeysantoro
Copy link
Contributor

@Joeysantoro Joeysantoro commented Jan 2, 2022

Creates a Fuse pause/borrow cap admin wrapper which gives access to Guardian and TribalChiefAdmins the ability to pause pools and set caps.

It also includes a utility for pausing/capping by underlying rather than the cToken. This is important because the cToken address cannot be pre-computed so this feature allows atomic deployment/pausing/capping.

@Joeysantoro Joeysantoro mentioned this pull request Jan 2, 2022
3 tasks
contracts/feirari/FuseGuardian.sol Outdated Show resolved Hide resolved
contracts/feirari/FuseGuardian.sol Outdated Show resolved Hide resolved
comptroller._setMarketSupplyCaps(cTokens, newSupplyCaps);
}

function _setMarketSupplyCapsByUnderlying(address[] calldata underlyings, uint[] calldata newSupplyCaps) external {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like how this function calls a public function that has a modifier on it and has no modifier on itself in the function signature. It obfuscates who is allowed to call it.

@Joeysantoro Joeysantoro merged commit 5659bec into feat/TribalChiefSyncExtension Jan 5, 2022
@Joeysantoro Joeysantoro deleted the feat/fusePauseGuardian branch January 5, 2022 07:01
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.

4 participants