Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsource147 committed Apr 1, 2024
1 parent f6aa566 commit ed58604
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 1 deletion.
148 changes: 148 additions & 0 deletions cli/farming-cli/command
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
solana config set --url https://api.devnet.solana.com

1. staking mint
spl-token create-token
9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5
spl-token create-account 9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5
spl-token mint 9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5 100000
spl-token transfer 9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5 10000 Ckb2XnnzAoHFv2uACNYR21fwGa61KGW5yWapZDyQqo1E --fund-recipient

spl-token transfer 9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5 10000 EKs1F8DTYA9pREXExCSsmCG4Z16DtbG99QHgfNPDLq4J --fund-recipient

9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5


2. reward token a
BsYNLJoq4gUaLFBSMcGzCXBEjaLZFq8mAKatexxDSNjW
spl-token create-account BsYNLJoq4gUaLFBSMcGzCXBEjaLZFq8mAKatexxDSNjW
spl-token mint BsYNLJoq4gUaLFBSMcGzCXBEjaLZFq8mAKatexxDSNjW 100000

2. reward token b
4yyFQ18bXvnzFjs52mutwPT6UKaHKHjgVDtP3tEWhHZV
spl-token create-account 4yyFQ18bXvnzFjs52mutwPT6UKaHKHjgVDtP3tEWhHZV
spl-token mint 4yyFQ18bXvnzFjs52mutwPT6UKaHKHjgVDtP3tEWhHZV 100000


3. Pool address
dual farming
3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF
single farming
C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv


Dual farming

Create pool
cargo run -- init --staking-mint 9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5 --reward-a-mint BsYNLJoq4gUaLFBSMcGzCXBEjaLZFq8mAKatexxDSNjW --reward-b-mint 4yyFQ18bXvnzFjs52mutwPT6UKaHKHjgVDtP3tEWhHZV 604800 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json

create user
cargo run -- create-user --pool 3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF

deposit
cargo run -- deposit --pool 3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF 10000


fund
cargo run -- fund --pool 3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF --amount-a 10000000000 --amount-b 100000000


withdraw
cargo run -- withdraw --pool 3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF 1000

claim
cargo run -- claim --pool 3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF

show info
cargo run -- show-info --pool 3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF
cargo run -- stake-info --pool 3BuoRUfFHwjQhEd7XxxrAcoXfYsiumcLWEDQY95K3XaF



Single farming
cargo run -- init --staking-mint 9S48aVa1NPZvHdkX2yg3aDRF2x7xPgm7qACtfT6TMbV5 --reward-a-mint BsYNLJoq4gUaLFBSMcGzCXBEjaLZFq8mAKatexxDSNjW --reward-b-mint BsYNLJoq4gUaLFBSMcGzCXBEjaLZFq8mAKatexxDSNjW 604800 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json

create user
cargo run -- create-user --pool C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv

deposit
cargo run -- deposit --pool C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv 10000000000

fund
cargo run -- fund --pool C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv --amount-a 10000000000 --amount-b 0

withdraw
cargo run -- withdraw --pool C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv 1000

claim
cargo run -- claim --pool C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv


show info
cargo run -- show-info --pool C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv
cargo run -- stake-info --pool C9VaAXur26LWbRmqQnKbXAesUwR734ZphnmGUSipbKhv



Mainnet

USDT-USDC
cargo run -- init --staking-mint xLebAypjbaQ9tmxUKHV6DZU4mY8ATAAP2sfkNNQLXjf --reward-a-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K --reward-b-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K 2592000 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json
EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7
cargo run -- create-user --pool EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7
cargo run -- deposit --pool EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7 10000

cargo run -- fund --pool EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7 --amount-a 1000000 --amount-b 0
cargo run -- show-info --pool EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7
cargo run -- stake-info --pool EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7
cargo run -- withdraw --pool EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7 --spt-amount 10000
cargo run -- claim --pool EnYkGjWpxNrHePXss7an55GKkigmqrwyhZ6YHpDYj9a7

SOL-stSOL
cargo run -- init --staking-mint 9Gpvqcua3hLps1AhtTSVEFSgKG2Dni6yLyXtEeZGLR3y --reward-a-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K --reward-b-mint HZRCwxP2Vq9PCpPXooayhJ2bxTpo5xfpQrwB1svh332p 2592000 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json
FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g
cargo run -- create-user --pool FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g
cargo run -- deposit --pool FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g 10000000
cargo run -- fund --pool FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g --amount-a 1000000 --amount-b 10000000
cargo run -- show-info --pool FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g


cargo run -- stake-info --pool FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g
cargo run -- withdraw --pool FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g --spt-amount 10000000
cargo run -- claim --pool FWLtKtGVAP6mxF4ZADvCPn92yybvhUp8MqFPrEJ2QX6g


pool v1 sol-stsol
cargo run -- init --staking-mint 4q19vhpG6y4ZeMPLQiUNNaJStb8XivCFQy4m4mdnVnQZ --reward-a-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K --reward-b-mint HZRCwxP2Vq9PCpPXooayhJ2bxTpo5xfpQrwB1svh332p 2592000 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json
FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6
cargo run -- create-user --pool FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6
cargo run -- deposit --pool FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6 1078144
cargo run -- fund --pool FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6 --amount-a 1000000 --amount-b 10000000
cargo run -- show-info --pool FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6

cargo run -- stake-info --pool FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6
cargo run -- withdraw --pool FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6 --spt-amount 1078144
cargo run -- claim --pool FMPa8bo5D4BoWRw1abaTfvhwiERSiQS91WeXafFQmUA6



Pool new:
SOL-USDC
cargo run -- init --staking-mint 4x76pkvNJYy9YRZM6Y6RZXJckRpsHQEWoD6sM9HEpmB --reward-a-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K --reward-b-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K 2592000 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json
2bxK3p1oEt86ahcqMQXSfsBwArq941NAn8376N84q7vN

SOL-USDC end soon
cargo run -- init --staking-mint 4x76pkvNJYy9YRZM6Y6RZXJckRpsHQEWoD6sM9HEpmB --reward-a-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K --reward-b-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K 600 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json
JEBTEuapRzG3sSDkZyjRwRGhsZsSfLuxVAs6p9h5q3dF
cargo run -- create-user --pool JEBTEuapRzG3sSDkZyjRwRGhsZsSfLuxVAs6p9h5q3dF
cargo run -- deposit --pool JEBTEuapRzG3sSDkZyjRwRGhsZsSfLuxVAs6p9h5q3dF 1000
cargo run -- fund --pool JEBTEuapRzG3sSDkZyjRwRGhsZsSfLuxVAs6p9h5q3dF --amount-a 10000 --amount-b 0
cargo run -- show-info --pool JEBTEuapRzG3sSDkZyjRwRGhsZsSfLuxVAs6p9h5q3dF


SOL-USDT end soon
cargo run -- init --staking-mint xLebAypjbaQ9tmxUKHV6DZU4mY8ATAAP2sfkNNQLXjf --reward-a-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K --reward-b-mint MERt85fc5boKw3BW1eYdxonEuJNvXbiMbs6hvheau5K 600 --base /Users/andrewnguyen/Documents/personal/solana/base_key/base_key.json
8RJMM9prVgwMej2wiZwpU4VddntpTmBHwtBGNqxNketP
cargo run -- create-user --pool 8RJMM9prVgwMej2wiZwpU4VddntpTmBHwtBGNqxNketP
cargo run -- deposit --pool 8RJMM9prVgwMej2wiZwpU4VddntpTmBHwtBGNqxNketP 1000
cargo run -- fund --pool 8RJMM9prVgwMej2wiZwpU4VddntpTmBHwtBGNqxNketP --amount-a 10000 --amount-b 0
cargo run -- show-info --pool 8RJMM9prVgwMej2wiZwpU4VddntpTmBHwtBGNqxNketP
Loading

0 comments on commit ed58604

Please sign in to comment.