Skip to content

Commit 4eb0d65

Browse files
committed
chore: add proposals to collect fees on ICPSwap pool
1 parent 2cfaecc commit 4eb0d65

File tree

5 files changed

+90
-2
lines changed

5 files changed

+90
-2
lines changed

proposals/proposal-444.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export BLOB="$(didc encode --format blob '(record {canister=principal "sb6zj-3aa
77

88
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
99
record {
10-
title = \"Execute admin_deploy_bucket() to update ic-oss-ic_oss_bucket_02 WASM to v1.2.0\";
11-
url = \"https://github.com/ldclabs/ic-oss/releases/tag/v1.2.0\";
10+
title = \"Execute admin_deploy_bucket() to update ic-oss-ic_oss_bucket_02 WASM to v1.2.2\";
11+
url = \"https://github.com/ldclabs/ic-oss/releases/tag/v1.2.2\";
1212
summary = \"This proposal executes admin_deploy_bucket() on ic_oss_cluster 5szpn-tiaaa-aaaaj-qncoq-cai to upgrade ic_oss_bucket_02 sb6zj-3aaaa-aaaaj-qndla-cai.\";
1313
action = opt variant {
1414
ExecuteGenericNervousSystemFunction = record {

proposals/proposal-445.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
# https://app.icpswap.com/info-tools/positions?principal=dwv6s-6aaaa-aaaaq-aacta-cai&pair=5fq4w-lyaaa-aaaag-qjqta-cai
4+
5+
GOV_CID="dwv6s-6aaaa-aaaaq-aacta-cai" # The governance canister ID.
6+
NEURON_ID="\84\5a\11\4e\6c\35\0d\a9\24\ea\9c\6b\21\cf\f5\04\e2\02\19\e8\3b\60\a6\2c\96\da\36\ad\41\0e\e0\dd" # The subaccount of the neuron you want to use to make the proposal.
7+
FUNC_ID="2000" # The generic function ID defined above.
8+
POOL="5fq4w-lyaaa-aaaag-qjqta-cai" # The ICPSwap pool you want to transfer the position.
9+
TO_PRINCIPAL="xj4cn-sujbq-csa7q-lj5ru-bmavz-gk5ec-eg276-uyo6x-zmedq-rsaqn-nqe" # The principal you want to transfer to.
10+
POSITION_ID="10" # The position ID you want to transfer. https://app.icpswap.com/info-tools/positions?pair=5fq4w-lyaaa-aaaag-qjqta-cai&principal=dwv6s-6aaaa-aaaaq-aacta-cai
11+
URL="https://app.icpswap.com/liquidity/position/$POSITION_ID/$POOL"
12+
13+
TITLE="transfer the position $POSITION_ID to ICPanda DAO team account for maintaining the liquidity of ICPSwap pool $POOL"
14+
SUMMARY="Team account $TO_PRINCIPAL will maintain the liquidity of ICPSwap pool $POOL. We will:\n1. Transfer the position $POSITION_ID to team account.\n2. Collect fees—temporarily held in the team account for team expenses and creating new liquidity pools.\n3. Transfer the position back to the governance account $GOV_CID.\n4. Previous proposal: https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai/proposal/335"
15+
16+
BLOB="$(didc encode --format blob "(principal \"$GOV_CID\", principal \"$TO_PRINCIPAL\", $POSITION_ID:nat)")"
17+
18+
PROPOSAL="record { title=\"$TITLE\"; url=\"$URL\"; summary=\"$SUMMARY\"; action=opt variant {ExecuteGenericNervousSystemFunction = record {function_id=$FUNC_ID:nat64; payload=$BLOB;}}}"
19+
DFX_ARGS="(record { subaccount=blob \"$NEURON_ID\"; command=opt variant { MakeProposal=$PROPOSAL};})"
20+
21+
echo $DFX_ARGS
22+
# dfx canister --network ic call "$GOV_CID" manage_neuron "$DFX_ARGS"

proposals/proposal-446.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
# https://app.icpswap.com/info-tools/positions?principal=dwv6s-6aaaa-aaaaq-aacta-cai&pair=5fq4w-lyaaa-aaaag-qjqta-cai
4+
5+
GOV_CID="dwv6s-6aaaa-aaaaq-aacta-cai" # The governance canister ID.
6+
NEURON_ID="\84\5a\11\4e\6c\35\0d\a9\24\ea\9c\6b\21\cf\f5\04\e2\02\19\e8\3b\60\a6\2c\96\da\36\ad\41\0e\e0\dd" # The subaccount of the neuron you want to use to make the proposal.
7+
FUNC_ID="2000" # The generic function ID defined above.
8+
POOL="5fq4w-lyaaa-aaaag-qjqta-cai" # The ICPSwap pool you want to transfer the position.
9+
TO_PRINCIPAL="xj4cn-sujbq-csa7q-lj5ru-bmavz-gk5ec-eg276-uyo6x-zmedq-rsaqn-nqe" # The principal you want to transfer to.
10+
POSITION_ID="20" # The position ID you want to transfer. https://app.icpswap.com/info-tools/positions?pair=5fq4w-lyaaa-aaaag-qjqta-cai&principal=dwv6s-6aaaa-aaaaq-aacta-cai
11+
URL="https://app.icpswap.com/liquidity/position/$POSITION_ID/$POOL"
12+
13+
TITLE="transfer the position $POSITION_ID to ICPanda DAO team account for maintaining the liquidity of ICPSwap pool $POOL"
14+
SUMMARY="Team account $TO_PRINCIPAL will maintain the liquidity of ICPSwap pool $POOL. We will:\n1. Transfer the position $POSITION_ID to team account.\n2. Collect fees—temporarily held in the team account for team expenses and creating new liquidity pools.\n3. Transfer the position back to the governance account $GOV_CID.\n4. Previous proposal: https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai/proposal/334"
15+
16+
BLOB="$(didc encode --format blob "(principal \"$GOV_CID\", principal \"$TO_PRINCIPAL\", $POSITION_ID:nat)")"
17+
18+
PROPOSAL="record { title=\"$TITLE\"; url=\"$URL\"; summary=\"$SUMMARY\"; action=opt variant {ExecuteGenericNervousSystemFunction = record {function_id=$FUNC_ID:nat64; payload=$BLOB;}}}"
19+
DFX_ARGS="(record { subaccount=blob \"$NEURON_ID\"; command=opt variant { MakeProposal=$PROPOSAL};})"
20+
21+
echo $DFX_ARGS
22+
# dfx canister --network ic call "$GOV_CID" manage_neuron "$DFX_ARGS"

proposals/proposal-447.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
# https://app.icpswap.com/info-tools/positions?principal=dwv6s-6aaaa-aaaaq-aacta-cai&pair=5fq4w-lyaaa-aaaag-qjqta-cai
4+
5+
GOV_CID="dwv6s-6aaaa-aaaaq-aacta-cai" # The governance canister ID.
6+
NEURON_ID="\84\5a\11\4e\6c\35\0d\a9\24\ea\9c\6b\21\cf\f5\04\e2\02\19\e8\3b\60\a6\2c\96\da\36\ad\41\0e\e0\dd" # The subaccount of the neuron you want to use to make the proposal.
7+
FUNC_ID="2000" # The generic function ID defined above.
8+
POOL="5fq4w-lyaaa-aaaag-qjqta-cai" # The ICPSwap pool you want to transfer the position.
9+
TO_PRINCIPAL="xj4cn-sujbq-csa7q-lj5ru-bmavz-gk5ec-eg276-uyo6x-zmedq-rsaqn-nqe" # The principal you want to transfer to.
10+
POSITION_ID="21" # The position ID you want to transfer. https://app.icpswap.com/info-tools/positions?pair=5fq4w-lyaaa-aaaag-qjqta-cai&principal=dwv6s-6aaaa-aaaaq-aacta-cai
11+
URL="https://app.icpswap.com/liquidity/position/$POSITION_ID/$POOL"
12+
13+
TITLE="transfer the position $POSITION_ID to ICPanda DAO team account for maintaining the liquidity of ICPSwap pool $POOL"
14+
SUMMARY="Team account $TO_PRINCIPAL will maintain the liquidity of ICPSwap pool $POOL. We will:\n1. Transfer the position $POSITION_ID to team account.\n2. Collect fees—temporarily held in the team account for team expenses and creating new liquidity pools.\n3. Transfer the position back to the governance account $GOV_CID.\n4. Previous proposal: https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai/proposal/333"
15+
16+
BLOB="$(didc encode --format blob "(principal \"$GOV_CID\", principal \"$TO_PRINCIPAL\", $POSITION_ID:nat)")"
17+
18+
PROPOSAL="record { title=\"$TITLE\"; url=\"$URL\"; summary=\"$SUMMARY\"; action=opt variant {ExecuteGenericNervousSystemFunction = record {function_id=$FUNC_ID:nat64; payload=$BLOB;}}}"
19+
DFX_ARGS="(record { subaccount=blob \"$NEURON_ID\"; command=opt variant { MakeProposal=$PROPOSAL};})"
20+
21+
echo $DFX_ARGS
22+
# dfx canister --network ic call "$GOV_CID" manage_neuron "$DFX_ARGS"

proposals/proposal-448.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
# https://app.icpswap.com/info-tools/positions?principal=dwv6s-6aaaa-aaaaq-aacta-cai&pair=5fq4w-lyaaa-aaaag-qjqta-cai
4+
5+
GOV_CID="dwv6s-6aaaa-aaaaq-aacta-cai" # The governance canister ID.
6+
NEURON_ID="\84\5a\11\4e\6c\35\0d\a9\24\ea\9c\6b\21\cf\f5\04\e2\02\19\e8\3b\60\a6\2c\96\da\36\ad\41\0e\e0\dd" # The subaccount of the neuron you want to use to make the proposal.
7+
FUNC_ID="2000" # The generic function ID defined above.
8+
POOL="5fq4w-lyaaa-aaaag-qjqta-cai" # The ICPSwap pool you want to transfer the position.
9+
TO_PRINCIPAL="xj4cn-sujbq-csa7q-lj5ru-bmavz-gk5ec-eg276-uyo6x-zmedq-rsaqn-nqe" # The principal you want to transfer to.
10+
POSITION_ID="23" # The position ID you want to transfer. https://app.icpswap.com/info-tools/positions?pair=5fq4w-lyaaa-aaaag-qjqta-cai&principal=dwv6s-6aaaa-aaaaq-aacta-cai
11+
URL="https://app.icpswap.com/liquidity/position/$POSITION_ID/$POOL"
12+
13+
TITLE="transfer the position $POSITION_ID to ICPanda DAO team account for maintaining the liquidity of ICPSwap pool $POOL"
14+
SUMMARY="Team account $TO_PRINCIPAL will maintain the liquidity of ICPSwap pool $POOL. We will:\n1. Transfer the position $POSITION_ID to team account.\n2. Collect fees—temporarily held in the team account for team expenses and creating new liquidity pools.\n3. Transfer the position back to the governance account $GOV_CID.\n4. Previous proposal: https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai/proposal/332"
15+
16+
BLOB="$(didc encode --format blob "(principal \"$GOV_CID\", principal \"$TO_PRINCIPAL\", $POSITION_ID:nat)")"
17+
18+
PROPOSAL="record { title=\"$TITLE\"; url=\"$URL\"; summary=\"$SUMMARY\"; action=opt variant {ExecuteGenericNervousSystemFunction = record {function_id=$FUNC_ID:nat64; payload=$BLOB;}}}"
19+
DFX_ARGS="(record { subaccount=blob \"$NEURON_ID\"; command=opt variant { MakeProposal=$PROPOSAL};})"
20+
21+
echo $DFX_ARGS
22+
# dfx canister --network ic call "$GOV_CID" manage_neuron "$DFX_ARGS"

0 commit comments

Comments
 (0)