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

add from amount support #384

Merged
merged 16 commits into from
Nov 22, 2024
Merged

add from amount support #384

merged 16 commits into from
Nov 22, 2024

Conversation

snreynolds
Copy link
Member

Related Issue

Which issue does this pull request resolve?

Description of changes

@snreynolds snreynolds requested a review from hensha256 October 28, 2024 16:10
src/PositionManager.sol Outdated Show resolved Hide resolved
src/libraries/Actions.sol Show resolved Hide resolved
src/PositionManager.sol Show resolved Hide resolved
src/libraries/Actions.sol Outdated Show resolved Hide resolved
import {SafeCast} from "@uniswap/v4-core/src/libraries/SafeCast.sol";

/// @notice Provides functions for computing liquidity amounts from token amounts and prices
library LiquidityAmounts {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diffed with v3 lib, can wrap the functions in unchecked blocks; subtractions guaranteed to not overflow

src/PositionManager.sol Outdated Show resolved Hide resolved
hensha256
hensha256 previously approved these changes Nov 22, 2024
@hensha256 hensha256 merged commit e5829f6 into main Nov 22, 2024
3 checks passed
@hensha256 hensha256 deleted the from-amounts branch November 22, 2024 16:09
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.

5 participants