Skip to content

Commit

Permalink
small fixes for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMorami committed Nov 22, 2023
1 parent 5542ac2 commit 9b2ebc3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ jobs:
- verifyGhoVariableDebtToken.sh user_index_after_mint accumulated_interest_increase_after_mint user_index_ge_one_ray nonzeroNewDiscountToken
- verifyGhoVariableDebtToken.sh discountCantExceed100Percent disallowedFunctionalities nonMintFunctionCantIncreaseBalance nonMintFunctionCantIncreaseScaledBalance debtTokenIsNotTransferable onlyCertainFunctionsCanModifyScaledBalance userAccumulatedDebtInterestWontDecrease userCantNullifyItsDebt integrityOfMint_updateDiscountRate integrityOfMint_updateIndex integrityOfMint_updateScaledBalance_fixedIndex integrityOfMint_userIsolation onlyMintForUserCanIncreaseUsersBalance integrityOfMint_cantDecreaseInterestWithMint integrityMint_atoken integrityOfBurn_updateDiscountRate integrityOfBurn_updateIndex burnZeroDoesntChangeBalance integrityOfBurn_fullRepay_concrete integrityOfBurn_userIsolation integrityOfUpdateDiscountDistribution_updateIndex integrityOfUpdateDiscountDistribution_userIsolation integrityOfRebalanceUserDiscountPercent_updateDiscountRate integrityOfRebalanceUserDiscountPercent_updateIndex integrityOfRebalanceUserDiscountPercent_userIsolation integrityOfBalanceOf_fullDiscount integrityOfBalanceOf_noDiscount integrityOfBalanceOf_zeroScaledBalance burnAllDebtReturnsZeroDebt integrityOfUpdateDiscountRateStrategy discountCantExceedDiscountRate
- verifyGhoVariableDebtToken_summarized.sh accrueAlwaysCaleldBeforeRefresh
- verifyGhoVariableDebtTokenIntenal.sh
- verifyGhoVariableDebtTokenInternal.sh
- verifyGhoVariableDebtToken_specialBranch.sh sendersDiscountPercentCannotIncrease
- verifyGhoVariableDebtToken-rayMulDiv-summarization.sh
2 changes: 1 addition & 1 deletion certora/scripts/verifyFlashMinter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ certoraRun certora/munged/contracts/facilitators/flashMinter/GhoFlashMinter.sol:
--solc solc8.10 \
--optimistic_loop \
--prover_args "-contractRecursionLimit 1" \
--rules "${@}"
--rule "${@}"
--msg "flashMinter check, rules ${@}"
else
certoraRun certora/munged/contracts/facilitators/flashMinter/GhoFlashMinter.sol:GhoFlashMinter \
Expand Down
2 changes: 1 addition & 1 deletion certora/scripts/verifyGhoAToken.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ certoraRun certora/munged/contracts/facilitators/aave/tokens/GhoAToken.sol \
--link GhoVariableDebtToken:_ghoAToken=GhoAToken \
--solc solc8.10 \
--optimistic_loop \
--rules "${@}" \
--rule "${@}" \
--msg "GhoAToken, rules ${@}"
else
certoraRun certora/munged/contracts/facilitators/aave/tokens/GhoAToken.sol \
Expand Down
28 changes: 14 additions & 14 deletions certora/scripts/verifyGhoDiscountRateStrategy.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#if (($# > 0))
#then
if (($# > 0))
then
certoraRun certora/harness/GhoDiscountRateStrategyHarness.sol:GhoDiscountRateStrategyHarness \
--verify GhoDiscountRateStrategyHarness:certora/specs/ghoDiscountRateStrategy.spec \
--solc solc8.10 \
--loop_iter 2 \
--optimistic_loop \
--prover_args "-mediumTimeout 20 -depth 10" \
--smt_timeout 500 \
--rules "$2" \
--msg "GhoDiscountRateStrategy, rules $2."
# else
# certoraRun certora/harness/GhoDiscountRateStrategyHarness.sol:GhoDiscountRateStrategyHarness \
# --verify GhoDiscountRateStrategyHarness:certora/specs/ghoDiscountRateStrategy.spec \
# --solc solc8.10 \
# --loop_iter 2 \
# --optimistic_loop \
# --prover_args "-mediumTimeout 20 -depth 10" \
# --smt_timeout 500 \
# --msg "GhoDiscountRateStrategy, all rules."
# fi
--rule "${@}" \
--msg "GhoDiscountRateStrategy rules ${@}"
else
certoraRun certora/harness/GhoDiscountRateStrategyHarness.sol:GhoDiscountRateStrategyHarness \
--verify GhoDiscountRateStrategyHarness:certora/specs/ghoDiscountRateStrategy.spec \
--solc solc8.10 \
--loop_iter 2 \
--optimistic_loop \
--prover_args "-mediumTimeout 20 -depth 10" \
--smt_timeout 500 \
--msg "GhoDiscountRateStrategy, all rules."
fi
6 changes: 3 additions & 3 deletions certora/scripts/verifyGhoToken.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ certoraRun certora/harness/GhoTokenHarness.sol:GhoTokenHarness certora/munged/co
--solc solc8.10 \
--loop_iter 3 \
--optimistic_loop \
--rules "${@}" \
--msg "GhoToken workaround for CERT-1060, rules ${@}"
--rule "${@}" \
--msg "GhoToken rules ${@}"
else
certoraRun certora/harness/GhoTokenHarness.sol:GhoTokenHarness certora/munged/contracts/gho/GhoToken.sol \
--verify GhoTokenHarness:certora/specs/ghoToken.spec \
--solc solc8.10 \
--loop_iter 3 \
--optimistic_loop \
--msg "GhoToken, all rules. workaround for CERT-1060"
--msg "GhoToken, all rules."
fi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ certoraRun certora/harness/ghoVariableDebtTokenHarness.sol:GhoVariableDebtTokenH
--solc solc8.10 \
--optimistic_loop \
--smt_timeout 900 \
--fe_version latest \
--prover_args "-mediumTimeout 30 -depth 15" \
$RULE \
--msg "$1 $2"
Expand Down

0 comments on commit 9b2ebc3

Please sign in to comment.