diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d1c650..eb694c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -124,35 +124,35 @@ jobs: echo "✅ Passed or warnings found" >> $GITHUB_STEP_SUMMARY fi - slither-analyze: - runs-on: "ubuntu-latest" - permissions: - actions: "read" - contents: "read" - security-events: "write" - steps: - - name: "Check out the repo" - uses: "actions/checkout@v4" - - - name: "Install Bun" - uses: "oven-sh/setup-bun@v1" - - - name: "Install the Node.js dependencies" - run: "bun install" - - - name: "Run Slither analysis" - uses: "crytic/slither-action@v0.3.0" - id: "slither" - with: - fail-on: "none" - sarif: "results.sarif" - - - name: "Upload SARIF file to GitHub code scanning" - uses: "github/codeql-action/upload-sarif@v2" - with: - sarif_file: ${{ steps.slither.outputs.sarif }} - - - name: "Add summary" - run: | - echo "## Slither result" >> $GITHUB_STEP_SUMMARY - echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY + # slither-analyze: + # runs-on: "ubuntu-latest" + # permissions: + # actions: "read" + # contents: "read" + # security-events: "write" + # steps: + # - name: "Check out the repo" + # uses: "actions/checkout@v4" + + # - name: "Install Bun" + # uses: "oven-sh/setup-bun@v1" + + # - name: "Install the Node.js dependencies" + # run: "bun install" + + # - name: "Run Slither analysis" + # uses: "crytic/slither-action@v0.3.0" + # id: "slither" + # with: + # fail-on: "none" + # sarif: "results.sarif" + + # - name: "Upload SARIF file to GitHub code scanning" + # uses: "github/codeql-action/upload-sarif@v2" + # with: + # sarif_file: ${{ steps.slither.outputs.sarif }} + + # - name: "Add summary" + # run: | + # echo "## Slither result" >> $GITHUB_STEP_SUMMARY + # echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY diff --git a/test/DelegateStaking.t.sol b/test/DelegateStaking.t.sol index 29ed6fd..4dc1a15 100644 --- a/test/DelegateStaking.t.sol +++ b/test/DelegateStaking.t.sol @@ -454,6 +454,7 @@ contract Stake is DelegateStakingTest { uint256 _amount, uint256 _jump ) public { + vm.assume(_depositor1 != _depositor2); _amount = _boundToRealisticStake(_amount); _jump = _boundRealisticTimeAhead(_jump); diff --git a/test/Staking.t.sol b/test/Staking.t.sol index 07456fc..1b8bdd5 100644 --- a/test/Staking.t.sol +++ b/test/Staking.t.sol @@ -844,7 +844,7 @@ contract ClaimRewards is StakingTest { assertApproxEqAbs(rewards, expectedRewards, 1e18, "Wrong rewards"); } - function testFuzz_claimRewardBurnShares( + function testFuzz_ClaimRewardBurnShares( address _depositor, uint256 _amount, uint256 _jump