Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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