|
1 | 1 | name: certora-gsm-4626 |
2 | 2 |
|
| 3 | +concurrency: |
| 4 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 5 | + cancel-in-progress: true |
| 6 | + |
3 | 7 | on: |
4 | 8 | pull_request: |
5 | 9 | branches: |
6 | | - - main |
7 | | - - certora |
| 10 | + - "*" |
8 | 11 | push: |
9 | 12 | branches: |
10 | 13 | - main |
|
14 | 17 | jobs: |
15 | 18 | verify: |
16 | 19 | runs-on: ubuntu-latest |
17 | | - |
| 20 | + permissions: |
| 21 | + contents: read |
| 22 | + statuses: write |
| 23 | + pull-requests: write |
| 24 | + id-token: write |
18 | 25 | steps: |
19 | | - - name: Checkout |
20 | | - uses: actions/checkout@v4 |
| 26 | + - uses: actions/checkout@v4 |
21 | 27 | with: |
22 | 28 | submodules: recursive |
23 | 29 |
|
24 | | - - name: Install python |
25 | | - uses: actions/setup-python@v5 |
26 | | - with: { python-version: 3.9 } |
27 | | - |
28 | | - - name: Install java |
29 | | - uses: actions/setup-java@v4 |
30 | | - with: { distribution: "zulu", java-version: "11", java-package: jre } |
31 | | - |
32 | | - - name: Install certora cli |
33 | | - run: pip install certora-cli==7.14.2 |
34 | | - |
35 | | - - name: Install solc |
36 | | - run: | |
37 | | - wget https://github.com/ethereum/solidity/releases/download/v0.8.10/solc-static-linux |
38 | | - chmod +x solc-static-linux |
39 | | - sudo mv solc-static-linux /usr/local/bin/solc8.10 |
40 | | -
|
41 | | - - name: Verify rule ${{ matrix.rule }} |
42 | | - run: | |
43 | | - certoraRun certora/gsm/conf/gsm4626/${{ matrix.rule }} |
| 30 | + - uses: Certora/certora-run-action@v2 |
| 31 | + with: |
| 32 | + cli-version: 7.31.2 |
| 33 | + configurations: |- |
| 34 | + certora/gsm/conf/gsm4626/gho-gsm4626-1.conf |
| 35 | + certora/gsm/conf/gsm4626/gho-gsm4626-2.conf --rule accruedFeesLEGhoBalanceOfThis |
| 36 | + certora/gsm/conf/gsm4626/gho-gsm4626-2.conf --rule accruedFeesNeverDecrease |
| 37 | + #certora/gsm/conf/gsm4626/gho-gsm4626-2.conf --rule systemBalanceStabilitySell waiting for ticket CERT-9408 |
| 38 | + certora/gsm/conf/gsm4626/gho-gsm4626-inverse.conf --rule buySellInverse27 buySellInverse26 buySellInverse25 buySellInverse24 buySellInverse23 buySellInverse22 buySellInverse21 buySellInverse20 buySellInverse19 |
| 39 | + certora/gsm/conf/gsm4626/balances-buy-4626.conf |
| 40 | + certora/gsm/conf/gsm4626/balances-sell-4626.conf --rule R1_getAssetAmountForSellAsset_arg_vs_return R1a_buyGhoUpdatesGhoBalanceCorrectly1 R2_getAssetAmountForSellAsset_sellAsset_eq |
| 41 | + certora/gsm/conf/gsm4626/balances-sell-4626.conf --rule R3a_sellAssetUpdatesAssetBalanceCorrectly |
| 42 | + certora/gsm/conf/gsm4626/balances-sell-4626.conf --rule R4_buyGhoUpdatesGhoBalanceCorrectly R4a_buyGhoAmountGtGhoBalanceChange |
| 43 | + certora/gsm/conf/gsm4626/fees-buy-4626.conf |
| 44 | + certora/gsm/conf/gsm4626/fees-sell-4626.conf --rule R3a_estimatedSellFeeCanBeLowerThanActualSellFee R2_getAssetAmountForSellAssetVsActualSellFee R4a_getSellFeeVsgetAssetAmountForSellAsset R4_getSellFeeVsgetAssetAmountForSellAsset R1a_getAssetAmountForSellAssetFeeNeGetSellFee R2a_getAssetAmountForSellAssetNeActualSellFee R4b_getSellFeeVsgetAssetAmountForSellAsset R1_getAssetAmountForSellAssetFeeGeGetSellFee R3b_estimatedSellFeeEqActualSellFee |
| 45 | + certora/gsm/conf/gsm4626/optimality4626.conf --rule R5a_externalOptimalityOfSellAsset R6a_externalOptimalityOfBuyAsset |
| 46 | + certora/gsm/conf/gsm4626/optimality4626.conf --rule R1_optimalityOfBuyAsset_v1 |
| 47 | + certora/gsm/conf/gsm4626/optimality4626.conf --rule R3_optimalityOfSellAsset_v1 |
| 48 | + certora/gsm/conf/gsm4626/getAmount-properties-4626.conf --rule getAssetAmountForBuyAsset_correctness_bound1 getAssetAmountForBuyAsset_correctness_bound2 getGhoAmountForBuyAsset_correctness_bound1 getAssetAmountForSellAsset_correctness getAssetAmountForBuyAsset_optimality getAssetAmountForBuyAsset_correctness |
| 49 | + certora/gsm/conf/gsm4626/getAmount-properties-4626.conf --rule getGhoAmountForBuyAsset_optimality |
| 50 | + certora/gsm/conf/gsm4626/getAmount-properties-4626.conf --rule getGhoAmountForBuyAsset_correctness |
| 51 | + certora/gsm/conf/gsm4626/getAmount-properties-4626.conf --rule getAssetAmountForSellAsset_optimality getAssetAmountForBuyAsset_funcProperty |
| 52 | + certora/gsm/conf/gsm4626/finishedRules-4626.conf --rule cantBuyOrSellWhenSeized cantBuyOrSellWhenFrozen sellAssetIncreasesExposure buyAssetDecreasesExposure rescuingAssetKeepsAccruedFees rescuingGhoKeepsAccruedFees giftingGhoDoesntAffectStorageSIMPLE correctnessOfBuyAsset giftingUnderlyingDoesntAffectStorageSIMPLE sellAssetSameAsGetGhoAmountForSellAsset correctnessOfSellAsset giftingGhoDoesntCreateExcessOrDearth backWithGhoDoesntCreateExcess getAssetAmountForSellAsset_correctness collectedSellFeeIsAtLeastAsRequired collectedBuyFeePlus2IsAtLeastAsRequired collectedBuyFeePlus1IsAtLeastAsRequired collectedBuyFeeIsAtLeastAsRequired sellingDoesntExceedExposureCap whoCanChangeAccruedFees whoCanChangeExposure |
| 53 | + certora/gsm/conf/gsm4626/finishedRules-4626.conf --rule giftingUnderlyingDoesntCreateExcessOrDearth |
| 54 | + solc-versions: 0.8.20 |
| 55 | + comment-fail-only: false |
| 56 | + solc-remove-version-prefix: "0." |
| 57 | + job-name: "Certora Prover Run" |
| 58 | + certora-key: ${{ secrets.CERTORAKEY }} |
| 59 | + install-java: true |
44 | 60 | env: |
| 61 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
45 | 62 | CERTORAKEY: ${{ secrets.CERTORAKEY }} |
46 | | - |
47 | | - strategy: |
48 | | - fail-fast: false |
49 | | - max-parallel: 16 |
50 | | - matrix: |
51 | | - rule: |
52 | | - - gho-gsm_4626_inverse.conf --rule buySellInverse27 buySellInverse26 buySellInverse25 buySellInverse24 buySellInverse23 buySellInverse22 buySellInverse21 buySellInverse20 buySellInverse19 |
53 | | - - gho-gsm4626.conf --rule enoughULtoBackGhoNonBuySell NonZeroFeeCheckSellAsset NonZeroFeeCheckBuyAsset |
54 | | - - balances-buy-4626.conf |
55 | | - - balances-sell-4626.conf --rule R1_getAssetAmountForSellAsset_arg_vs_return R1a_buyGhoUpdatesGhoBalanceCorrectly1 R2_getAssetAmountForSellAsset_sellAsset_eq |
56 | | - - balances-sell-4626.conf --rule R3a_sellAssetUpdatesAssetBalanceCorrectly |
57 | | - - balances-sell-4626.conf --rule R4_buyGhoUpdatesGhoBalanceCorrectly R4a_buyGhoAmountGtGhoBalanceChange |
58 | | - - fees-buy-4626.conf |
59 | | - - fees-sell-4626.conf --rule R3a_estimatedSellFeeCanBeLowerThanActualSellFee R2_getAssetAmountForSellAssetVsActualSellFee R4a_getSellFeeVsgetAssetAmountForSellAsset R4_getSellFeeVsgetAssetAmountForSellAsset R1a_getAssetAmountForSellAssetFeeNeGetSellFee R2a_getAssetAmountForSellAssetNeActualSellFee R4b_getSellFeeVsgetAssetAmountForSellAsset R1_getAssetAmountForSellAssetFeeGeGetSellFee R3b_estimatedSellFeeEqActualSellFee |
60 | | - - gho-gsm4626-2.conf --rule accruedFeesLEGhoBalanceOfThis accruedFeesNeverDecrease systemBalanceStabilitySell systemBalanceStabilitySell |
61 | | - - optimality4626.conf --rule R5a_externalOptimalityOfSellAsset R6a_externalOptimalityOfBuyAsset |
62 | | - - optimality4626.conf --rule R1_optimalityOfBuyAsset_v1 |
63 | | - - optimality4626.conf --rule R3_optimalityOfSellAsset_v1 |
64 | | - - getAmount_4626_properties.conf --rule getAssetAmountForBuyAsset_correctness_bound1 getAssetAmountForBuyAsset_correctness_bound2 getGhoAmountForBuyAsset_correctness_bound1 getAssetAmountForSellAsset_correctness getAssetAmountForBuyAsset_optimality getAssetAmountForBuyAsset_correctness |
65 | | - - getAmount_4626_properties.conf --rule getGhoAmountForBuyAsset_optimality |
66 | | - - getAmount_4626_properties.conf --rule getGhoAmountForBuyAsset_correctness |
67 | | - - getAmount_4626_properties.conf --rule getAssetAmountForSellAsset_optimality getAssetAmountForBuyAsset_funcProperty |
68 | | - - finishedRules4626.conf --rule cantBuyOrSellWhenSeized cantBuyOrSellWhenFrozen sellAssetIncreasesExposure buyAssetDecreasesExposure rescuingAssetKeepsAccruedFees rescuingGhoKeepsAccruedFees giftingGhoDoesntAffectStorageSIMPLE correctnessOfBuyAsset giftingUnderlyingDoesntAffectStorageSIMPLE sellAssetSameAsGetGhoAmountForSellAsset correctnessOfSellAsset giftingGhoDoesntCreateExcessOrDearth backWithGhoDoesntCreateExcess getAssetAmountForSellAsset_correctness collectedSellFeeIsAtLeastAsRequired collectedBuyFeePlus2IsAtLeastAsRequired collectedBuyFeePlus1IsAtLeastAsRequired collectedBuyFeeIsAtLeastAsRequired sellingDoesntExceedExposureCap whoCanChangeAccruedFees whoCanChangeExposure |
69 | | - - finishedRules4626.conf --rule giftingUnderlyingDoesntCreateExcessOrDearth |
0 commit comments