|
| 1 | +name: certora-gsm-4626 |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + - certora |
| 8 | + push: |
| 9 | + branches: |
| 10 | + - main |
| 11 | + |
| 12 | + workflow_dispatch: |
| 13 | + |
| 14 | +jobs: |
| 15 | + verify: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + |
| 18 | + steps: |
| 19 | + - name: Checkout |
| 20 | + uses: actions/checkout@v4 |
| 21 | + with: |
| 22 | + submodules: recursive |
| 23 | + |
| 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 }} |
| 44 | + env: |
| 45 | + 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