To install the required packages, run the following command:
npm install- Add Token Address
- Add Mnemonic
- Set Token Amount
- Set Native Amount
- Set Native Denom: uluna | uusd
To get the token price, run:
node index get-native <Tokens-in> <Target-Price>Example:
node index get-native 100000 0.00001Run the following command to create a pair:
node index create-pairUpdate the .env file to include the newly created pool address.
To increase the token allowance, execute:
node index increase-allowanceAdd liquidity to the pool by running:
node index add-liquidityUpdate the .env file to include the newly created LP token address.
Remove liquidity from the pool by running:
node index remove-liquidityTo swap native currency for tokens, use:
node index swap-native <Amount> <Spread>Example:
node index swap-native 100 0.1To swap tokens for native currency, use:
node index swap-token <Amount> <Spread>Example:
node index swap-token 100 0.1