working-with-ferra-dlmm
Installation
SKILL.md
Working with Ferra DLMM SDK
This skill helps you work with the Ferra Discrete Liquidity Market Maker (DLMM) SDK for Sui blockchain. The SDK provides tools for liquidity management, pair creation, token swapping, and position handling in DLMM pools.
Overview
The @ferra-labs/dlmm package is a TypeScript SDK for interacting with Discrete Liquidity Market Maker protocols on Sui. It supports:
- Factory operations: Creating new trading pairs
- Pair management: Fetching pair data and managing liquidity pools
- Position handling: Opening, closing, and managing liquidity positions
- Swap operations: Token swapping with precise price calculations
- Quoter utilities: Price quoting and calculation tools
Quick Start
SDK Initialization
Initialize the SDK with a specific network (mainnet, testnet, beta):