Commit 687d9e1
fix(DCA): dca allocation bug (#360)
* fix exclusivity edge-case
* add tests
* full test snapshot
* add exclusivityEndBlock to cosigner data
* forge fmt
* fuzz testing exclusivity
* fix(DCA): allocation bug (#358)
* dca allocation fix
* new test
* unuseful comment
* remove recipients check
* forge fmt
* view -> pure
* test: exactIn sweep rounding remainder
* forge fmt
* revert: undo last two commits
* docs: comments for clarity around fix code
---------
Co-authored-by: Alan Wu <alanwu100@gmail.com>
* ci: integrate Nethermind Audit Agent for automated security scanning (#357)
* ci: integrate Nethermind Audit Agent for automated security scanning
Add GitHub Actions workflow to automatically scan pull requests using
Nethermind's Audit Agent. The workflow triggers on PRs to main and
performs quick security scans on v4 contract files, providing early
vulnerability detection in the development process.
Resolves: PROTO-1020
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Update .github/workflows/audit-agent.yml
Co-authored-by: semgrep-code-uniswap[bot] <212759065+semgrep-code-uniswap[bot]@users.noreply.github.com>
* Update .github/workflows/audit-agent.yml
Co-authored-by: semgrep-code-uniswap[bot] <212759065+semgrep-code-uniswap[bot]@users.noreply.github.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: semgrep-code-uniswap[bot] <212759065+semgrep-code-uniswap[bot]@users.noreply.github.com>
* ci: integrate Nethermind Audit Agent for automated security scanning (#357)
* ci: integrate Nethermind Audit Agent for automated security scanning
Add GitHub Actions workflow to automatically scan pull requests using
Nethermind's Audit Agent. The workflow triggers on PRs to main and
performs quick security scans on v4 contract files, providing early
vulnerability detection in the development process.
Resolves: PROTO-1020
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Update .github/workflows/audit-agent.yml
Co-authored-by: semgrep-code-uniswap[bot] <212759065+semgrep-code-uniswap[bot]@users.noreply.github.com>
* Update .github/workflows/audit-agent.yml
Co-authored-by: semgrep-code-uniswap[bot] <212759065+semgrep-code-uniswap[bot]@users.noreply.github.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: semgrep-code-uniswap[bot] <212759065+semgrep-code-uniswap[bot]@users.noreply.github.com>
* fix(v4 reactor): exclusivity edge case (#356)
* fix exclusivity edge-case
* add tests
* full test snapshot
* add exclusivityEndBlock to cosigner data
* forge fmt
* fuzz testing exclusivity
---------
Co-authored-by: Alan Wu <alanwu100@gmail.com>
Co-authored-by: Cody Born <cody.born@uniswap.org>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: semgrep-code-uniswap[bot] <212759065+semgrep-code-uniswap[bot]@users.noreply.github.com>1 parent e5aa9c4 commit 687d9e1
4 files changed
Lines changed: 135 additions & 11 deletions
File tree
- src/v4
- hooks/dca
- lib
- test/v4/hooks/dca
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | | - | |
399 | | - | |
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
403 | 401 | | |
404 | 402 | | |
405 | 403 | | |
406 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
407 | 432 | | |
408 | 433 | | |
409 | | - | |
410 | 434 | | |
411 | 435 | | |
412 | 436 | | |
413 | 437 | | |
414 | 438 | | |
415 | 439 | | |
416 | | - | |
417 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
418 | 443 | | |
419 | 444 | | |
420 | | - | |
421 | | - | |
| 445 | + | |
| 446 | + | |
422 | 447 | | |
423 | 448 | | |
424 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| |||
Lines changed: 89 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
0 commit comments