Commit Graph

671 Commits

Author SHA1 Message Date
royvardhan
79d6c020fa misc: fix _swapChecked for cyclic swap, update encoder swap path validation, add cyclic sequesntial swap integration test 2025-03-12 00:49:42 +05:30
Louise Poole
eaafc0fa9a Merge pull request #109 from propeller-heads/lp/update-tycho
refactor: update tycho-core to 0.60.0
2025-03-11 12:52:20 +02:00
Louise Poole
271c522251 chore: update tycho-core to 0.60.0 2025-03-11 12:45:27 +02:00
semantic-release-bot
0a95fa83e7 chore(release): 0.63.0 [skip ci]
## [0.63.0](https://github.com/propeller-heads/tycho-execution/compare/0.62.0...0.63.0) (2025-03-10)

### Features

* add cyclicSwapAmountOut tracker in _swap, add split cylic tests ([4d67df4](4d67df4096))

### Bug Fixes

* amountConsumed check in _swapChecked for cyclic swap ([91f36fe](91f36fe328))
* remove amountIn addition to amountOut in _swap for cyclic swaps, add testCyclicSwapWithTwoPools test to verify ([57acbd5](57acbd58c5))
2025-03-10 18:10:17 +00:00
Harsh Vardhan Roy
a0305d853c Merge pull request #102 from propeller-heads/router/hr/ENG-4290-cyclic-swap
feat: Support cyclic swaps
2025-03-10 23:37:27 +05:30
royvardhan
91f36fe328 fix: amountConsumed check in _swapChecked for cyclic swap 2025-03-10 23:32:30 +05:30
Harsh Vardhan Roy
38cdf28e7e docs: update testSplitInputCyclicSwap
Co-authored-by: Tamara <tamara@datarevenue.com>
2025-03-10 23:25:38 +05:30
royvardhan
34d5ac6e1c test: update testSplitInputCyclicSwap to use all WETH for USDC 2025-03-10 22:20:13 +05:30
royvardhan
bd6f74ca9c docs: update docs at testSplitInputCyclicSwap and testSplitOutputCyclicSwap 2025-03-10 18:12:58 +05:30
royvardhan
bb10efc0cc docs: update docs at _swap and testSplitOutputCyclicSwap 2025-03-10 18:12:58 +05:30
royvardhan
4d67df4096 feat: add cyclicSwapAmountOut tracker in _swap, add split cylic tests 2025-03-10 18:12:58 +05:30
royvardhan
66c00df4f1 test: add testCyclicSplitSwap test and update var naming in testCyclicSequentialSwap 2025-03-10 18:12:58 +05:30
royvardhan
57acbd58c5 fix: remove amountIn addition to amountOut in _swap for cyclic swaps, add testCyclicSwapWithTwoPools test to verify 2025-03-10 18:12:58 +05:30
Alan Höng
5532c64d87 Merge pull request #107 from propeller-heads/audit
docs: Update Audit report
2025-03-08 20:26:12 -06:00
Markus
ef43f735d7 Update Audit report 2025-03-08 20:24:04 -06:00
Tamara
8390d293a3 Merge pull request #105 from propeller-heads/router/tnl/minor-min-amount-fixes
chore: remove unnecessary min amount check, doc fix
2025-03-06 10:56:03 -05:00
TAMARA LIPOWSKI
b74d4c9e25 chore: remove unnecessary min amount check, doc fix 2025-03-06 10:37:37 -05:00
Markus
dea58b56c5 Merge pull request #104 from propeller-heads/audit
feat: add audit report
2025-03-06 15:02:29 +00:00
Markus
3f1f9db829 add audit report 2025-03-06 14:49:28 +00:00
semantic-release-bot
e718d2deee chore(release): 0.62.0 [skip ci]
## [0.62.0](https://github.com/propeller-heads/tycho-execution/compare/0.61.0...0.62.0) (2025-03-06)

### Features

* enforce checked amount when encoding to router ([a4476e0](a4476e0a17))
2025-03-06 14:10:41 +00:00
Tamara
fad9df3210 Merge pull request #103 from propeller-heads/encoding/tnl/ENG-4300-encorce-min-amount
feat: enforce checked amount when encoding to router
2025-03-06 09:07:46 -05:00
TAMARA LIPOWSKI
a4476e0a17 feat: enforce checked amount when encoding to router
- If using the tycho router, you must either set the slippage with the expected amount in the solution, or you must set the checked amount
- Decided to put this in the split swap strategy validator, since this is not relevant when it comes to direct execution (no checks are performed inside the executors)
2025-03-05 15:59:57 -05:00
semantic-release-bot
852bbbc150 chore(release): 0.61.0 [skip ci]
## [0.61.0](https://github.com/propeller-heads/tycho-execution/compare/0.60.0...0.61.0) (2025-03-05)

### Features

* Rename Etherscan in deployment verification ([bc54eac](bc54eac110))
2025-03-05 18:22:49 +00:00
Tamara
ad4a372401 Merge pull request #97 from propeller-heads/router/tnl/basescan-verify
feat: Rename Etherscan in deployment verification
2025-03-05 13:20:42 -05:00
Tamara
9821ab0c00 Merge branch 'main' into router/tnl/basescan-verify 2025-03-05 13:15:37 -05:00
semantic-release-bot
fa47c6057a chore(release): 0.60.0 [skip ci]
## [0.60.0](https://github.com/propeller-heads/tycho-execution/compare/0.59.0...0.60.0) (2025-03-05)

### Features

* Check min amount out is not zero ([5c28d77](5c28d77f1d))
2025-03-05 18:10:22 +00:00
dianacarvalho1
99438313b4 Merge pull request #101 from propeller-heads/router/dc/min-amount-check
feat: Check min amount out is not zero
2025-03-05 18:08:22 +00:00
TAMARA LIPOWSKI
09208b342a test: Add testSwapCheckedUndefinedMinAmount
To check if the swap actually reverts when min amount is 0.
2025-03-05 13:06:06 -05:00
Diana Carvalho
5c28d77f1d feat: Check min amount out is not zero
Update tests

--- don't change below this line ---
ENG-4286 Took 57 minutes


Took 20 seconds
2025-03-05 17:53:51 +00:00
semantic-release-bot
9eb10e63df chore(release): 0.59.0 [skip ci]
## [0.59.0](https://github.com/propeller-heads/tycho-execution/compare/0.58.2...0.59.0) (2025-03-05)

### Features

* add transferFrom in swap and move core swap logic inside _swapChecked ([f853739](f853739a3d))

### Bug Fixes

* TychoRouter swap check test naming and docs ([7833086](7833086425))
2025-03-05 17:08:55 +00:00
dianacarvalho1
dbfacd1fa4 Merge pull request #100 from propeller-heads/router/hr/ENG-4298-min-amount-out-transfer-from
feat: add safeTransferFrom in swap and move core swap logic inside _swapChecked
2025-03-05 17:06:46 +00:00
royvardhan
7833086425 fix: TychoRouter swap check test naming and docs 2025-03-05 22:23:16 +05:30
Harsh Vardhan Roy
2086484898 docs: remove unnecessary comment from swap
Co-authored-by: Tamara <tamara@datarevenue.com>
2025-03-05 22:23:16 +05:30
royvardhan
f853739a3d feat: add transferFrom in swap and move core swap logic inside _swapChecked 2025-03-05 22:23:16 +05:30
semantic-release-bot
16c57f6aa6 chore(release): 0.58.2 [skip ci]
## [0.58.2](https://github.com/propeller-heads/tycho-execution/compare/0.58.1...0.58.2) (2025-03-05)

### Bug Fixes

* Make permit2 permit an action in the universal router ([db9c8cd](db9c8cde5a))
2025-03-05 16:08:56 +00:00
Harsh Vardhan Roy
7be1ce4b59 Merge pull request #92 from propeller-heads/router/hr/ENG-4280-gas-test
test: add GasTest to compare with Universal Router gas usage
2025-03-05 21:35:45 +05:30
Harsh Vardhan Roy
013113c4d9 Merge branch 'main' into router/hr/ENG-4280-gas-test 2025-03-05 21:32:40 +05:30
semantic-release-bot
2ad846ed27 chore(release): 0.58.1 [skip ci]
## [0.58.1](https://github.com/propeller-heads/tycho-execution/compare/0.58.0...0.58.1) (2025-03-04)

### Bug Fixes

* add amountIn in error TychoRouter__AmountInDiffersFromConsumed ([a3bffd4](a3bffd4f75))
* inequality check for amountConsumed and amountIn ([6f421eb](6f421eb374))
2025-03-04 19:23:30 +00:00
Harsh Vardhan Roy
5f0d2afee3 Merge pull request #99 from propeller-heads/router/hr/ENG-4291-amount-consumed-check 2025-03-05 00:50:44 +05:30
royvardhan
a3bffd4f75 fix: add amountIn in error TychoRouter__AmountInDiffersFromConsumed 2025-03-05 00:45:22 +05:30
royvardhan
6f421eb374 fix: inequality check for amountConsumed and amountIn 2025-03-05 00:35:51 +05:30
TAMARA LIPOWSKI
bc54eac110 feat: Rename Etherscan in deployment verification
This could also be Basescan. Abstract away to blockchain explorer.
2025-03-03 17:14:39 -05:00
Diana Carvalho
db9c8cde5a fix: Make permit2 permit an action in the universal router
--- don't change below this line ---
ENG-4286 Took 1 hour 35 minutes
2025-03-03 18:33:22 +00:00
semantic-release-bot
ceef683202 chore(release): 0.58.0 [skip ci]
## [0.58.0](https://github.com/propeller-heads/tycho-execution/compare/0.57.0...0.58.0) (2025-03-03)

### Features

* Rename ETH_RPC_URL -> RPC_URL ([9bb0d9b](9bb0d9bc84))
2025-03-03 16:50:21 +00:00
Tamara
f5150028e3 Merge pull request #95 from propeller-heads/encoding/tnl/chain-agnostic-rpc
feat: Rename ETH_RPC_URL -> RPC_URL
2025-03-03 11:48:16 -05:00
Tamara
bf3910831f Merge branch 'main' into encoding/tnl/chain-agnostic-rpc 2025-03-03 11:33:51 -05:00
semantic-release-bot
2e1a5aaf45 chore(release): 0.57.0 [skip ci]
## [0.57.0](https://github.com/propeller-heads/tycho-execution/compare/0.56.0...0.57.0) (2025-03-03)

### Features

* Rename shortcut methods of encoder builder ([6f572ee](6f572eed01))
2025-03-03 16:25:04 +00:00
dianacarvalho1
f0f476e510 Merge pull request #96 from propeller-heads/encoding/dc/ENG-4286-rename-default-functions-builder
feat: Rename shortcut methods of encoder builder
2025-03-03 16:22:18 +00:00
Diana Carvalho
6f572eed01 feat: Rename shortcut methods of encoder builder
Also moved executors_file_path to be an independent attribute

--- don't change below this line ---
ENG-4286 Took 19 minutes
2025-03-03 12:59:42 +00:00
TAMARA LIPOWSKI
9bb0d9bc84 feat: Rename ETH_RPC_URL -> RPC_URL
We support multiple chains so this may not just be ETH, but perhaps a Base URL for example.
2025-02-28 14:03:26 -05:00