Skip to content

Conversation

gabririgo
Copy link
Contributor

This patch resolves an issue that prevents correct multi-hop path decoding with routes involving more than 2 pairs and introduces further gas optimizations.

- fixed an issue which prevented correct path decoding with path of more than 2 pairs
- directly decode first and last address in path for gas savings
- avoid looping through intermediate pairs for gas savings
- remove 1 private method and move addresses decoding back in their calling methods
- added tests for routes involving more than 2 pairs
- remove tests for rogue path input as they would be reverted in uniswap router anyway
@gabririgo gabririgo added enhancement New feature or request packages/v3-contracts updates v3 contracts package labels Sep 9, 2023
@gabririgo gabririgo merged commit a907180 into development Sep 9, 2023
@gabririgo gabririgo deleted the fix/uniswap-adapter-patch branch September 9, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request packages/v3-contracts updates v3 contracts package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant