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

Update GhoSteward #406

Merged
merged 5 commits into from
May 30, 2024
Merged

Update GhoSteward #406

merged 5 commits into from
May 30, 2024

Conversation

miguelmtzinf
Copy link
Contributor

@miguelmtzinf miguelmtzinf commented May 27, 2024

* Update GhoStewardV2.sol

- Allowed GSM fees to be lowered

- Allowed GSM exposure & borrow cap to be changed both ways

* edit comment
@miguelmtzinf miguelmtzinf requested a review from foodaka as a code owner May 27, 2024 10:19
Copy link

height bot commented May 27, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

certora/steward/specs/rules.spec Outdated Show resolved Hide resolved
certora/steward/specs/rules.spec Outdated Show resolved Hide resolved
@@ -289,19 +289,19 @@ rule updateGhoBorrowCap__correctness() {
assert BORROW_CAP==newBorrowCap;

uint256 borrow_cap_after = BORROW_CAP;
assert borrow_cap_before <= borrow_cap_after && to_mathint(borrow_cap_after) <= 2*borrow_cap_before;
assert to_mathint(borrow_cap_after) <= 2*borrow_cap_before;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now the spec asserts that any cap is valid as long as it’s lower than twice the old cap 👍

@@ -313,8 +313,7 @@ rule updateGsmExposureCap__correctness() {
assert EXPOSURE_CAP==newExposureCap;

uint128 exposure_cap_after = EXPOSURE_CAP;
assert exposure_cap_before <= exposure_cap_after &&
to_mathint(exposure_cap_after) <= 2*exposure_cap_before;
assert to_mathint(exposure_cap_after) <= 2*exposure_cap_before;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now the spec asserts that any cap is valid as long as it’s lower than twice the old cap 👍

@marczeller
Copy link
Contributor

That's for the feedback, Steward is now compatible with latest DAO Governance decisions

@miguelmtzinf miguelmtzinf merged commit a8d05e6 into main May 30, 2024
31 checks passed
@miguelmtzinf miguelmtzinf deleted the fix/aci-gho-steward branch May 30, 2024 16:27
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