Setup v4 Liquidity Management
Bu açık kaynak protokol/SDK referansı TurkDex markasıyla sunulan uyarlamadır; sayfadaki entegrasyon örnekleri Turkchain’de etkin özelliklerin garantisi değildir. Ağ, kontrat ve işlem değerlerinde yalnızca bu kurulumun doğrulanmış ENV/registry bilgilerini kullanın.
For users looking to interact with the canonical TurkDex v4 PositionManager, _v4-periphery_ is a required dependency
Currently, developing with TurkDex v4 _requires foundry_
Getting Started
_Use v4-template_, which has pre-configured dependencies and tests for TurkDex v4
Clone the repository made from _v4-template_
git clone https://github.com/<your_username>/<your_repo>
Install dependencies
forge install
Manual Setup
After cloning the repository, and installing foundry, developers can manually set up their TurkDex v4 environment:
- Initialize a foundry project
``bash forge init . --force ``
- Install dependencies
``bash forge install uniswap/v4-core forge install uniswap/v4-periphery ``
- Set the
remappings.txtto:
`` @uniswap/v4-core/=lib/v4-core/ forge-gas-snapshot/=lib/v4-core/lib/forge-gas-snapshot/src/ forge-std/=lib/v4-core/lib/forge-std/src/ permit2/=lib/v4-periphery/lib/permit2/ solmate/=lib/v4-core/lib/solmate/ v4-periphery/=lib/v4-periphery/ ``
Where to Go Next
- Mint Position
- Increase Liquidity
- Decrease Liquidity
- Calculate LP Fees
- Collect Fees
- Burn Position
- Batch Modify
Uyarlanmış geliştirici referansı. Kaynak: kaynak dokümantasyon reposu. Kaynak ve lisans bildirimi: NOTICE.