Skip to content

Commit

Permalink
fix: assert pool is owner of position it is adding liquidity to
Browse files Browse the repository at this point in the history
  • Loading branch information
gabririgo committed Sep 6, 2023
1 parent f9413a2 commit 5e29af0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/protocol/extensions/adapters/AUniswapV3NPM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ abstract contract AUniswapV3NPM is IAUniswapV3NPM {
)
{
address uniswapNpm = _getUniswapNpm();
assert(INonfungiblePositionManager(uniswapNpm).ownerOf(params.tokenId) = address(this));
(, , address token0, address token1, , , , , , , , ) = INonfungiblePositionManager(uniswapNpm).positions(
params.tokenId
);
Expand Down

0 comments on commit 5e29af0

Please sign in to comment.