Skip to content

Commit

Permalink
Merge pull request #315 from morpho-labs/certora/update-ci
Browse files Browse the repository at this point in the history
[Certora] Update CI
  • Loading branch information
jhoenicke authored Aug 16, 2023
2 parents 31b9133 + e46fd73 commit 7cd9d1e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ jobs:
matrix:
script:
- verifyBlue.sh
- verifyBlueRatioMathSummary.sh
1 change: 0 additions & 1 deletion certora/scripts/verifyBlueRatioMath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ certoraRun \
--verify MorphoHarness:certora/specs/BlueRatioMath.spec \
--solc_allow_path src \
--msg "Morpho Ratio Math" \
--send_only \
"$@"
4 changes: 2 additions & 2 deletions certora/specs/Blue.spec
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ rule supplyRevertZero(MorphoHarness.Market market) {
assert lastReverted;
}

invariant invOnlyEnabledLltv(MorphoHarness.Market market)
invariant onlyEnabledLltv(MorphoHarness.Market market)
isInitialized(getMarketId(market)) => isLltvEnabled(market.lltv);

invariant invOnlyEnabledIrm(MorphoHarness.Market market)
invariant onlyEnabledIrm(MorphoHarness.Market market)
isInitialized(getMarketId(market)) => isIrmEnabled(market.irm);

rule marketIdUnique() {
Expand Down
4 changes: 2 additions & 2 deletions certora/specs/BlueRatioMath.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ definition MAX_FEE() returns mathint = 10^18 * 25/100;

invariant feeInRange(MorphoHarness.Id id)
to_mathint(fee(id)) <= MAX_FEE();

/* This is a simple overapproximative summary, stating that it rounds in the right direction.
* The summary is checked by the specification in BlueRatioMathSummary.spec.
*/
Expand All @@ -35,7 +35,7 @@ function summaryMulDivDown(uint256 x, uint256 y, uint256 d) returns uint256 {
return result;
}

rule onlyLiquidateCanDecreasesRatio(method f)
rule onlyLiquidateCanDecreasesRatio(method f)
filtered {
f -> f.selector != sig:liquidate(MorphoHarness.Market, address, uint256, bytes).selector
}
Expand Down

0 comments on commit 7cd9d1e

Please sign in to comment.