Skip to content

Conversation

@liobrasil
Copy link
Contributor

Summary

Removes the hardcoded 1% slippage adjustment from the UniswapV3 swap connector.

Changes

  • Remove unused slippage variable (was set to 0.01 / 1%)
  • Use amountOutMin directly without additional slippage adjustment
  • Slippage should be handled at the caller level, not inside the swap connector

Rationale

The swap connector was applying an extra 1% slippage on top of whatever minimum output amount was passed in. This double-slippage behavior was incorrect - the caller should have full control over the minimum acceptable output amount.

- Remove unused `slippage` variable (0.01 / 1%)
- Use `amountOutMin` directly without additional slippage adjustment
- Slippage should be handled at the caller level, not inside the swap connector
@liobrasil liobrasil closed this Dec 24, 2025
@liobrasil liobrasil deleted the remove-hardcoded-slippage branch December 24, 2025 16:37
@liobrasil liobrasil restored the remove-hardcoded-slippage branch December 24, 2025 17:04
@liobrasil liobrasil reopened this Dec 24, 2025
@liobrasil liobrasil merged commit d96e600 into main Dec 24, 2025
6 checks passed
@liobrasil liobrasil deleted the remove-hardcoded-slippage branch December 24, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants