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: Correct usage of NonfungiblePositionManager in LiquidityExamples #804

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/smart-contracts/LiquidityExamples.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract LiquidityExamples is IERC721Receiver {

function _createDeposit(address owner, uint256 tokenId) internal {
(, , address token0, address token1, , , , uint128 liquidity, , , , ) =
nonfungiblePositionManager.positions(tokenId);
INonfungiblePositionManager(nonfungiblePositionManager).positions(tokenId);
// set the owner and data for position
deposits[tokenId] = Deposit({owner: owner, liquidity: liquidity, token0: token0, token1: token1});
}
Expand Down Expand Up @@ -240,4 +240,4 @@ contract LiquidityExamples is IERC721Receiver {
// transfer ownership to original owner
nonfungiblePositionManager.safeTransferFrom(address(this), msg.sender, tokenId);
}
}
}