Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: slippage checks #285

Merged
merged 5 commits into from
Aug 8, 2024
Merged

fix: slippage checks #285

merged 5 commits into from
Aug 8, 2024

Conversation

snreynolds
Copy link
Member

fixes slippage to use safe cast for decrease/burn
fixes slippage on mint to check for negative deltas
subtracts out the fee amounts before slippage checks

edge case: on an autocompounding add liq, the slippage must be the fee amounts

@snreynolds snreynolds marked this pull request as ready for review August 7, 2024 20:06
src/PositionManager.sol Outdated Show resolved Hide resolved
test/position-managers/IncreaseLiquidity.t.sol Outdated Show resolved Hide resolved
src/PositionManager.sol Outdated Show resolved Hide resolved
src/libraries/SlippageCheck.sol Outdated Show resolved Hide resolved
src/libraries/SlippageCheck.sol Outdated Show resolved Hide resolved
src/PositionManager.sol Outdated Show resolved Hide resolved
test/position-managers/IncreaseLiquidity.t.sol Outdated Show resolved Hide resolved
test/position-managers/IncreaseLiquidity.t.sol Outdated Show resolved Hide resolved
saucepoint
saucepoint previously approved these changes Aug 8, 2024
@hensha256 hensha256 merged commit 7cad2f6 into main Aug 8, 2024
3 checks passed
@hensha256 hensha256 deleted the slippage branch August 8, 2024 09:02
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.

3 participants