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.00001
Run the following command to create a pair:
node index create-pair
Update the .env
file to include the newly created pool address.
To increase the token allowance, execute:
node index increase-allowance
Add liquidity to the pool by running:
node index add-liquidity
Update the .env
file to include the newly created LP token address.
Remove liquidity from the pool by running:
node index remove-liquidity
To swap native currency for tokens, use:
node index swap-native <Amount> <Spread>
Example:
node index swap-native 100 0.1
To swap tokens for native currency, use:
node index swap-token <Amount> <Spread>
Example:
node index swap-token 100 0.1