-
Notifications
You must be signed in to change notification settings - Fork 96
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
Update GhoSteward #406
Conversation
* Update GhoStewardV2.sol - Allowed GSM fees to be lowered - Allowed GSM exposure & borrow cap to be changed both ways * edit comment
|
@@ -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; |
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.
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; |
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.
Now the spec asserts that any cap is valid as long as it’s lower than twice the old cap 👍
That's for the feedback, Steward is now compatible with latest DAO Governance decisions |
By @marczeller