This guide outlines the steps required to import your wallet and manage liquidity in the USDC/USDT pool. Follow each section carefully to ensure a smooth setup.
- Phantom Wallet: Installed and configured.
- Solana CLI: Installed and properly configured.
- Cargo: Installed for running Rust commands.
- Wallet Balance: Ensure you have at least 1 USDC and 1 USDT in your wallet.
-
Save Finance (Mainnet Addresses):
Documentation -
Raydium (Mainnet Addresses):
Documentation
-
Retrieve Your Recovery Phrase:
- Open Phantom Wallet.
- Navigate to Settings → Security & Privacy → Show Recovery Phrase.
- Securely store your recovery phrase.
-
Import Your Wallet:
Run the following command to import your wallet using the recovery phrase:
solana-keygen recover 'prompt:?key=0/0' --outfile ~/.config/solana/id.json
-
Verify Wallet Import:
Check that your wallet is correctly imported by running:
solana balance
To add liquidity to the USDC/USDT pool, execute:
cargo run -- open-position 0.999 1.001 500000
- Parameters:
0.999
: Lower bound price.1.001
: Upper bound price.500000
: Liquidity amount (in smallest unit).
To remove liquidity from the USDC/USDT pool, execute:
cargo run -- close-position 0.999 1.001
- Parameters:
0.999
: Lower bound price.1.001
: Upper bound price.
- Funding: Confirm that your wallet has at least 1 USDC and 1 USDT before executing liquidity operations.
- Documentation: Refer to the provided links for more details on the network addresses and protocol configurations.