Setting up your contract
Setting up the Contract
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.8.20;import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';
import '@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol';
import '@cryptoalgebra/integral-periphery/contracts/interfaces/INonfungiblePositionManager.sol';
import '@cryptoalgebra/integral-periphery/contracts/libraries/TransferHelper.sol';
import '@cryptoalgebra/integral-periphery/contracts/base/LiquidityManagement.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';contract LiquidityExamples is IERC721Receiver, LiquidityManagement {
address public constant DAI = 0x6B175474E89094C44Da98b954EedeAC495271d0F;
address public constant USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
address public constant deployer = address(0);Enabling ERC721 Interactions
The Constructor
Allowing custody of ERC721 tokens
Creating a Deposit
The Full Contract Setup
Last updated