IntegrationsQuick StartBurn And Delegate Fees
Burn and Delegate Fees
Requirements
Before you begin, ensure you have the following installed:
-
Node.js (v16 or higher) and npm
-
Git for version control
-
A code editor (e.g., VS Code)
-
A wallet with testnet funds (e.g., Metamask) connected to the HyperEVM testnet
1. Clone the Repository
Start by cloning the Hyperswap integration repository:
V3 repository:
git clone https://github.com/HyperSwap-Labs/how-tos-burn-and-earn-v3.git
cd <your-repo-name>V2 repository:
git clone https://github.com/HyperSwap-Labs/how-tos-burn-and-earn-v2.git
cd <your-repo-name>2. Install Dependencies
npm install
// Or
yarn install3. Configure Your Environment
Create a .env file in the root of the project and add the following variables:
V3 .env file:
RPC_URL=https://rpc.hyperliquid.xyz/evm
PRIVATE_KEY=0xYourPrivateKey
NFPM_ADDRESS=0x6eDA206207c09e5428F281761DdC0D300851fBC8
VAULT_ADDRESS=0x744C89B7b7F8Cb1E955B1Dcd842A5378d75c96Dc
V3_TOKEN_ID=LpIDToBurnV2 .env file:
RPC_URL=https://rpc.hyperliquid.xyz/evm
PRIVATE_KEY=0xYourPrivateKey
VAULT_ADDRESS=0x744C89B7b7F8Cb1E955B1Dcd842A5378d75c96Dc
V2_FACTORY_ADDRESS=0x724412C00059bf7d6ee7d4a1d0D5cd4de3ea1C48
FEE_COLLECTOR=0xFeeCollector
V2_PAIR_ADDRESS=0xV2PairAddressFunctions
Integrate with Hyperswap to access its DEX and liquidity pools on the HyperEVM blockchain. Build trading bots, manage liquidity, or ship DeFi apps with our developer guides.
Functions
Integrate with Hyperswap to access its DEX and liquidity pools on the HyperEVM blockchain. Build trading bots, manage liquidity, or ship DeFi apps with our developer guides.