From c647d8c99a78e8ab7a702e47fb68c39927c302e2 Mon Sep 17 00:00:00 2001 From: yugure <109891005+yugure-orca@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:57:24 +0900 Subject: [PATCH] cleanup --- legacy-sdk/cli/README.md | 17 +- .../sample/position_bundle_state/close.csv | 257 ++++++++++++++++++ .../cli/sample/position_bundle_state/open.csv | 257 ++++++++++++++++++ .../initialize_alt_for_bundled_positions.ts | 24 +- .../alt/initialize_alt_for_whirlpool.ts | 1 - .../bundle/sync_position_bundle_state.ts | 105 ++++++- .../cli/src/commands/poolops/push_price.ts | 6 +- 7 files changed, 643 insertions(+), 24 deletions(-) create mode 100644 legacy-sdk/cli/sample/position_bundle_state/close.csv create mode 100644 legacy-sdk/cli/sample/position_bundle_state/open.csv diff --git a/legacy-sdk/cli/README.md b/legacy-sdk/cli/README.md index f5ae22377..20f2de74d 100644 --- a/legacy-sdk/cli/README.md +++ b/legacy-sdk/cli/README.md @@ -53,14 +53,29 @@ Token-2022 tokens are acceptable 👍 - `yarn start collectRewards`: collect rewards from a position - `yarn start closePosition`: close an empty position +## PositionBundle +- `yarn start initializePositionBundle`: create a new position bundle +- `yarn start syncPositionBundleState`: update the state of a position bundle based on an input CSV file + ## Swap - `yarn start pushPrice`: adjust pool price (possible if pool liquidity is zero or very small) ## WSOL and ATA creation TODO: WSOL handling & create ATA if needed (workaround exists, please see the following) +## ALT +### Shared ALT +Shared ALT contains well-known program ID and WhirlpoolsConfig address and mint addresses. + +Solana: `7Vyx1y8vG9e9Q1MedmXpopRC6ZhVaZzGcvYh5Z3Cs75i` +Eclipse: `Fsq7DQa13Lx9FvR5QheHigaccRkjiNqfnHQouXyFsg4z` + +### Custom ALT +- `yarn start initializeAltForWhirlpool`: create ALT containing whirlpool address, mint address, vault address, some TickArray addresses and ATAs +- `yarn start initializeAltForBundledPositions`: create ALT containing all (256) bundled position addresses + ### workaround for WSOL -`whirlpool-mgmt-tools` works well with ATA, so using WSOL on ATA is workaround. +CLI works well with ATA, so using WSOL on ATA is workaround. - wrap 1 SOL: `spl-token wrap 1` (ATA for WSOL will be initialized with 1 SOL) - unwrap: `spl-token unwrap` (ATA for WSOL will be closed) diff --git a/legacy-sdk/cli/sample/position_bundle_state/close.csv b/legacy-sdk/cli/sample/position_bundle_state/close.csv new file mode 100644 index 000000000..635c645cb --- /dev/null +++ b/legacy-sdk/cli/sample/position_bundle_state/close.csv @@ -0,0 +1,257 @@ +bundle index,state,lower tick index,upper tick index,liquidity +0,closed,,, +1,closed,,, +2,closed,,, +3,closed,,, +4,closed,,, +5,closed,,, +6,closed,,, +7,closed,,, +8,closed,,, +9,closed,,, +10,closed,,, +11,closed,,, +12,closed,,, +13,closed,,, +14,closed,,, +15,closed,,, +16,closed,,, +17,closed,,, +18,closed,,, +19,closed,,, +20,closed,,, +21,closed,,, +22,closed,,, +23,closed,,, +24,closed,,, +25,closed,,, +26,closed,,, +27,closed,,, +28,closed,,, +29,closed,,, +30,closed,,, +31,closed,,, +32,closed,,, +33,closed,,, +34,closed,,, +35,closed,,, +36,closed,,, +37,closed,,, +38,closed,,, +39,closed,,, +40,closed,,, +41,closed,,, +42,closed,,, +43,closed,,, +44,closed,,, +45,closed,,, +46,closed,,, +47,closed,,, +48,closed,,, +49,closed,,, +50,closed,,, +51,closed,,, +52,closed,,, +53,closed,,, +54,closed,,, +55,closed,,, +56,closed,,, +57,closed,,, +58,closed,,, +59,closed,,, +60,closed,,, +61,closed,,, +62,closed,,, +63,closed,,, +64,closed,,, +65,closed,,, +66,closed,,, +67,closed,,, +68,closed,,, +69,closed,,, +70,closed,,, +71,closed,,, +72,closed,,, +73,closed,,, +74,closed,,, +75,closed,,, +76,closed,,, +77,closed,,, +78,closed,,, +79,closed,,, +80,closed,,, +81,closed,,, +82,closed,,, +83,closed,,, +84,closed,,, +85,closed,,, +86,closed,,, +87,closed,,, +88,closed,,, +89,closed,,, +90,closed,,, +91,closed,,, +92,closed,,, +93,closed,,, +94,closed,,, +95,closed,,, +96,closed,,, +97,closed,,, +98,closed,,, +99,closed,,, +100,closed,,, +101,closed,,, +102,closed,,, +103,closed,,, +104,closed,,, +105,closed,,, +106,closed,,, +107,closed,,, +108,closed,,, +109,closed,,, +110,closed,,, +111,closed,,, +112,closed,,, +113,closed,,, +114,closed,,, +115,closed,,, +116,closed,,, +117,closed,,, +118,closed,,, +119,closed,,, +120,closed,,, +121,closed,,, +122,closed,,, +123,closed,,, +124,closed,,, +125,closed,,, +126,closed,,, +127,closed,,, +128,closed,,, +129,closed,,, +130,closed,,, +131,closed,,, +132,closed,,, +133,closed,,, +134,closed,,, +135,closed,,, +136,closed,,, +137,closed,,, +138,closed,,, +139,closed,,, +140,closed,,, +141,closed,,, +142,closed,,, +143,closed,,, +144,closed,,, +145,closed,,, +146,closed,,, +147,closed,,, +148,closed,,, +149,closed,,, +150,closed,,, +151,closed,,, +152,closed,,, +153,closed,,, +154,closed,,, +155,closed,,, +156,closed,,, +157,closed,,, +158,closed,,, +159,closed,,, +160,closed,,, +161,closed,,, +162,closed,,, +163,closed,,, +164,closed,,, +165,closed,,, +166,closed,,, +167,closed,,, +168,closed,,, +169,closed,,, +170,closed,,, +171,closed,,, +172,closed,,, +173,closed,,, +174,closed,,, +175,closed,,, +176,closed,,, +177,closed,,, +178,closed,,, +179,closed,,, +180,closed,,, +181,closed,,, +182,closed,,, +183,closed,,, +184,closed,,, +185,closed,,, +186,closed,,, +187,closed,,, +188,closed,,, +189,closed,,, +190,closed,,, +191,closed,,, +192,closed,,, +193,closed,,, +194,closed,,, +195,closed,,, +196,closed,,, +197,closed,,, +198,closed,,, +199,closed,,, +200,closed,,, +201,closed,,, +202,closed,,, +203,closed,,, +204,closed,,, +205,closed,,, +206,closed,,, +207,closed,,, +208,closed,,, +209,closed,,, +210,closed,,, +211,closed,,, +212,closed,,, +213,closed,,, +214,closed,,, +215,closed,,, +216,closed,,, +217,closed,,, +218,closed,,, +219,closed,,, +220,closed,,, +221,closed,,, +222,closed,,, +223,closed,,, +224,closed,,, +225,closed,,, +226,closed,,, +227,closed,,, +228,closed,,, +229,closed,,, +230,closed,,, +231,closed,,, +232,closed,,, +233,closed,,, +234,closed,,, +235,closed,,, +236,closed,,, +237,closed,,, +238,closed,,, +239,closed,,, +240,closed,,, +241,closed,,, +242,closed,,, +243,closed,,, +244,closed,,, +245,closed,,, +246,closed,,, +247,closed,,, +248,closed,,, +249,closed,,, +250,closed,,, +251,closed,,, +252,closed,,, +253,closed,,, +254,closed,,, +255,closed,,, \ No newline at end of file diff --git a/legacy-sdk/cli/sample/position_bundle_state/open.csv b/legacy-sdk/cli/sample/position_bundle_state/open.csv new file mode 100644 index 000000000..18e1ad007 --- /dev/null +++ b/legacy-sdk/cli/sample/position_bundle_state/open.csv @@ -0,0 +1,257 @@ +bundle index,state,lower tick index,upper tick index,liquidity +0,open,-69120,-68992,20982 +1,open,-68992,-68864,744581 +2,open,-68864,-68736,4280947 +3,open,-68736,-68608,13347375 +4,open,-68608,-68480,31064042 +5,open,-68480,-68352,60993079 +6,open,-68352,-68224,107181618 +7,open,-68224,-68096,174208368 +8,open,-68096,-67968,267233953 +9,open,-67968,-67840,392055320 +10,open,-67840,-67712,555164408 +11,open,-67712,-67584,763811555 +12,open,-67584,-67456,1026073880 +13,open,-67456,-67328,1350928922 +14,open,-67328,-67200,1748334161 +15,open,-67200,-67072,2229312547 +16,open,-67072,-66944,2806044726 +17,open,-66944,-66816,3491968161 +18,open,-66816,-66688,4301884021 +19,open,-66688,-66560,5252071932 +20,open,-66560,-66432,6360413486 +21,open,-66432,-66304,7646525049 +22,open,-66304,-66176,9131900359 +23,open,-66176,-66048,10840063798 +24,open,-66048,-65920,12796734965 +25,open,-65920,-65792,15030005397 +26,open,-65792,-65664,17570528210 +27,open,-65664,-65536,20451721579 +28,open,-65536,-65408,23709987093 +29,open,-65408,-65280,27384943799 +30,open,-65280,-65152,31519679313 +31,open,-65152,-65024,36161018803 +32,open,-65024,-64896,41359813374 +33,open,-64896,-64768,47171249035 +34,open,-64768,-64640,53655177557 +35,open,-64640,-64512,60876470963 +36,open,-64512,-64384,68905400905 +37,open,-64384,-64256,77818044917 +38,open,-64256,-64128,87696721153 +39,open,-64128,-64000,98630453560 +40,open,-64000,-63872,110715469613 +41,open,-63872,-63744,124055732651 +42,open,-63744,-63616,138763511217 +43,open,-63616,-63488,154959987819 +44,open,-63488,-63360,172775909770 +45,open,-63360,-63232,192352284828 +46,open,-63232,-63104,213841124676 +47,open,-63104,-62976,237406239386 +48,open,-62976,-62848,263224086101 +49,open,-62848,-62720,291484675806 +50,open,-62720,-62592,322392541605 +51,open,-62592,-62464,356167772903 +52,open,-62464,-62336,393047119560 +53,open,-62336,-62208,433285170749 +54,open,-62208,-62080,477155613307 +55,open,-62080,-61952,524952574760 +56,open,-61952,-61824,576992056654 +57,open,-61824,-61696,633613463839 +58,open,-61696,-61568,695181236260 +59,open,-61568,-61440,762086589477 +60,open,-61440,-61312,834749371404 +61,open,-61312,-61184,913620042445 +62,open,-61184,-61056,999181787116 +63,open,-61056,-60928,1091952765675 +64,open,-60928,-60800,1192488514750 +65,open,-60800,-60672,1301384506402 +66,open,-60672,-60544,1419278876104 +67,open,-60544,-60416,1546855330194 +68,open,-60416,-60288,1684846244414 +69,open,-60288,-60160,1834035965822 +70,open,-60160,-60032,1995264330925 +71,open,-60032,-59904,2169430414104 +72,open,-59904,-59776,2357496520637 +73,open,-59776,-59648,2560492440375 +74,open,-59648,-59520,2779519978216 +75,open,-59520,-59392,3015757779275 +76,open,-59392,-59264,3270466467438 +77,open,-59264,-59136,3544994117026 +78,open,-59136,-59008,3840782078784 +79,open,-59008,-58880,4159371182832 +80,open,-58880,-58752,4502408341978 +81,open,-58752,-58624,4871653581234 +82,open,-58624,-58496,5268987519924 +83,open,-58496,-58368,5696419335504 +84,open,-58368,-58240,6156095238897 +85,open,-58240,-58112,6650307494009 +86,open,-58112,-57984,7181504015368 +87,open,-57984,-57856,7752298580570 +88,open,-57856,-57728,8365481695640 +89,open,-57728,-57600,9024032154893 +90,open,-57600,-57472,9731129338396 +91,open,-57472,-57344,10490166293550 +92,open,-57344,-57216,11304763649591 +93,open,-57216,-57088,12178784417514 +94,open,-57088,-56960,13116349730425 +95,open,-56960,-56832,14121855583296 +96,open,-56832,-56704,15199990634380 +97,open,-56704,-56576,16355755134693 +98,open,-56576,-56448,17594481055629 +99,open,-56448,-56320,18921853489586 +100,open,-56320,-56192,20343933402721 +101,open,-56192,-56064,21867181823982 +102,open,-56064,-55936,23498485559738 +103,open,-55936,-55808,25245184528629 +104,open,-55808,-55680,27115100817563 +105,open,-55680,-55552,29116569565170 +106,open,-55552,-55424,31258471786556 +107,open,-55424,-55296,33550269259130 +108,open,-55296,-55168,36002041597593 +109,open,-55168,-55040,38624525653229 +110,open,-55040,-54912,41429157381586 +111,open,-54912,-54784,44428116330693 +112,open,-54784,-54656,47634372912294 +113,open,-54656,-54528,51061738627385 +114,open,-54528,-54400,54724919428698 +115,open,-54400,-54272,58639572413563 +116,open,-54272,-54144,62822366052219 +117,open,-54144,-54016,67291044169864 +118,open,-54016,-53888,72064493912922 +119,open,-53888,-53760,77162817945488 +120,open,-53760,-53632,82607411135440 +121,open,-53632,-53504,88421042006865 +122,open,-53504,-53376,94627939251257 +123,open,-53376,-53248,101253883608438 +124,open,-53248,-53120,108326305446800 +125,open,-53120,-52992,115874388392524 +126,closed,,, +127,closed,,, +128,closed,,, +129,closed,,, +130,closed,,, +131,closed,,, +132,closed,,, +133,closed,,, +134,closed,,, +135,closed,,, +136,closed,,, +137,closed,,, +138,closed,,, +139,closed,,, +140,closed,,, +141,closed,,, +142,closed,,, +143,closed,,, +144,closed,,, +145,closed,,, +146,closed,,, +147,closed,,, +148,closed,,, +149,closed,,, +150,closed,,, +151,closed,,, +152,closed,,, +153,closed,,, +154,closed,,, +155,closed,,, +156,closed,,, +157,closed,,, +158,closed,,, +159,closed,,, +160,closed,,, +161,closed,,, +162,closed,,, +163,closed,,, +164,closed,,, +165,closed,,, +166,closed,,, +167,closed,,, +168,closed,,, +169,closed,,, +170,closed,,, +171,closed,,, +172,closed,,, +173,closed,,, +174,closed,,, +175,closed,,, +176,closed,,, +177,closed,,, +178,closed,,, +179,closed,,, +180,closed,,, +181,closed,,, +182,closed,,, +183,closed,,, +184,closed,,, +185,closed,,, +186,closed,,, +187,closed,,, +188,closed,,, +189,closed,,, +190,closed,,, +191,closed,,, +192,closed,,, +193,closed,,, +194,closed,,, +195,closed,,, +196,closed,,, +197,closed,,, +198,closed,,, +199,closed,,, +200,closed,,, +201,closed,,, +202,closed,,, +203,closed,,, +204,closed,,, +205,closed,,, +206,closed,,, +207,closed,,, +208,closed,,, +209,closed,,, +210,closed,,, +211,closed,,, +212,closed,,, +213,closed,,, +214,closed,,, +215,closed,,, +216,closed,,, +217,closed,,, +218,closed,,, +219,closed,,, +220,closed,,, +221,closed,,, +222,closed,,, +223,closed,,, +224,closed,,, +225,closed,,, +226,closed,,, +227,closed,,, +228,closed,,, +229,closed,,, +230,closed,,, +231,closed,,, +232,closed,,, +233,closed,,, +234,closed,,, +235,closed,,, +236,closed,,, +237,closed,,, +238,closed,,, +239,closed,,, +240,closed,,, +241,closed,,, +242,closed,,, +243,closed,,, +244,closed,,, +245,closed,,, +246,closed,,, +247,closed,,, +248,closed,,, +249,closed,,, +250,closed,,, +251,closed,,, +252,closed,,, +253,closed,,, +254,closed,,, +255,closed,,, \ No newline at end of file diff --git a/legacy-sdk/cli/src/commands/alt/initialize_alt_for_bundled_positions.ts b/legacy-sdk/cli/src/commands/alt/initialize_alt_for_bundled_positions.ts index c481420cd..006641083 100644 --- a/legacy-sdk/cli/src/commands/alt/initialize_alt_for_bundled_positions.ts +++ b/legacy-sdk/cli/src/commands/alt/initialize_alt_for_bundled_positions.ts @@ -82,16 +82,26 @@ SAMPLE EXECUTION LOG connection endpoint http://localhost:8899 wallet r21Gamwd9DtyjHeGywsneoQYR39C1VDwrw7tWxHAwh6 -initialize PositionBundle... -estimatedComputeUnits: 170954 -✔ priorityFeeInSOL … 0 -Priority fee: 0 SOL +initialize ALT for bundled positions... +✔ positionBundlePubkey … qHbk42b2ub8K6Rw6p7t1aUoJpwGZ6xpzDC75CQ4QgPD +✔ altAddressPubkey … create new ALT +ALT address: CjBg5mt3n43aGAKVZqNA1rLBoH16sbwcgkAncLrgoXxw +estimatedComputeUnits: 1400000 process transaction... transaction is still valid, 151 blocks left (at most) sending... confirming... -successfully landed -signature 55Qs1vGXeQ8EXokLLdPbD3iYEjPPM2ryvStU3cQm4Qw4sVhboRxzFZwdjPqZR4rGcRQygJut9puYWS1V8i94zsUH -positionBundle address: 3XmaBcpvHdNTv6u35M13w55SpJKVhxSahTkzMiVRVsqC +✅successfully landed +signature 4sHGkrE2XxcNahCZbqG2V3yRAawNYa6VXJH7LfVPe5LuFnwt3YmAeUxXgEdP7pTLPUbizbdGSEaEUGfPcxuKd97C +... +... +... +estimatedComputeUnits: 100900 +process transaction... +transaction is still valid, 151 blocks left (at most) +sending... +confirming... +✅successfully landed +signature 4Y1V9tSLcCEGNueL7Rr8YZrXWJCjWLTuWAk17DRw6v8kLo1QWDT914F26kETEUWEnxuPfsVcFjV82ZwhvnnjUV2i */ diff --git a/legacy-sdk/cli/src/commands/alt/initialize_alt_for_whirlpool.ts b/legacy-sdk/cli/src/commands/alt/initialize_alt_for_whirlpool.ts index eac42459c..660e2c0e0 100644 --- a/legacy-sdk/cli/src/commands/alt/initialize_alt_for_whirlpool.ts +++ b/legacy-sdk/cli/src/commands/alt/initialize_alt_for_whirlpool.ts @@ -87,7 +87,6 @@ if (landed) { SAMPLE EXECUTION LOG -$ yarn start initializeAltForWhirlpool connection endpoint http://localhost:8899 wallet r21Gamwd9DtyjHeGywsneoQYR39C1VDwrw7tWxHAwh6 initialize ALT for whirlpool... diff --git a/legacy-sdk/cli/src/commands/bundle/sync_position_bundle_state.ts b/legacy-sdk/cli/src/commands/bundle/sync_position_bundle_state.ts index 1e44f18a1..dbc713f8a 100644 --- a/legacy-sdk/cli/src/commands/bundle/sync_position_bundle_state.ts +++ b/legacy-sdk/cli/src/commands/bundle/sync_position_bundle_state.ts @@ -11,19 +11,16 @@ import { checkATAInitialization, checkTickArrayInitialization, checkPositionBund console.info("sync PositionBundle state..."); // prompt -console.warn("using test values"); -const positionBundlePubkeyStr = "qHbk42b2ub8K6Rw6p7t1aUoJpwGZ6xpzDC75CQ4QgPD"; -//const positionBundlePubkeyStr = await promptText("positionBundlePubkey"); +const positionBundlePubkeyStr = await promptText("positionBundlePubkey"); const positionBundlePubkey = new PublicKey(positionBundlePubkeyStr); -const whirlpoolPubkeyStr = "95XaJMqCLiWtUwF9DtSvDpDbPYhEHoVyCeeNwmUD7cwr"; -//const whirlpoolPubkeyStr = await promptText("whirlpoolPubkey"); +const whirlpoolPubkeyStr = await promptText("whirlpoolPubkey"); const whirlpoolPubkey = new PublicKey(whirlpoolPubkeyStr); -const positionBundleTargetStateCsvPath = "position_bundle_target_state_close.csv"; -//const positionBundleTargetStateCsvPath = await promptText("positionBundleTargetStateCsvPath"); -const commaSeparatedAltPubkeyStrs = "7Vyx1y8vG9e9Q1MedmXpopRC6ZhVaZzGcvYh5Z3Cs75i , AnXmyHSfuAaWkCxaUuTW39SN5H5ztH8bBxm647uESgTd, FjTZwDecYM3G66VKFuAaLgw3rY1QitziKdM5Ng4EpoKd"; -//const commaSeparatedAltPubkeyStrs = await promptText("commaSeparatedAltPubkeys"); -const altPubkeyStrs = commaSeparatedAltPubkeyStrs.split(",").map((str) => str.trim()).filter((str) => str.length > 0); +const positionBundleTargetStateCsvPath = await promptText("positionBundleTargetStateCsvPath"); + +const commaSeparatedAltPubkeyStrs = await promptText("commaSeparatedAltPubkeys", "no ALTs"); +const noAlts = commaSeparatedAltPubkeyStrs === "no ALTs"; +const altPubkeyStrs = noAlts ? [] : commaSeparatedAltPubkeyStrs.split(",").map((str) => str.trim()).filter((str) => str.length > 0); const altPubkeys = altPubkeyStrs.map((str) => new PublicKey(str)); console.info("check positionBundle..."); @@ -98,8 +95,9 @@ while (true) { console.info([ "\n📝 ACTION SUMMARY\n", "\n", - `Pool: ${whirlpoolPubkey.toBase58()}\n`, + `Pool: ${whirlpoolPubkey.toBase58()}\n`, `PositionBundle: ${positionBundlePubkey.toBase58()}\n`, + `Target state: ${positionBundleTargetStateCsvPath}\n`, "\n", "Position state changes:\n", "\n", @@ -224,6 +222,89 @@ async function getWalletATABalance(ctx: WhirlpoolContext, whirlpool: WhirlpoolDa SAMPLE EXECUTION LOG - +connection endpoint http://localhost:8899 +wallet r21Gamwd9DtyjHeGywsneoQYR39C1VDwrw7tWxHAwh6 +sync PositionBundle state... +✔ positionBundlePubkey … qHbk42b2ub8K6Rw6p7t1aUoJpwGZ6xpzDC75CQ4QgPD +✔ whirlpoolPubkey … 95XaJMqCLiWtUwF9DtSvDpDbPYhEHoVyCeeNwmUD7cwr +✔ positionBundleTargetStateCsvPath … sample/position_bundle_state/open.csv +✔ commaSeparatedAltPubkeys … 7Vyx1y8vG9e9Q1MedmXpopRC6ZhVaZzGcvYh5Z3Cs75i, AnXmyHSfuAaWkCxaUuTW39SN5H5ztH8bBxm647uESgTd, FjTZwDecYM3G66VKFuAaLgw3rY1QitziKdM5Ng4EpoKd +check positionBundle... +check whirlpool... +check ALTs... + loaded ALT 7Vyx1y8vG9e9Q1MedmXpopRC6ZhVaZzGcvYh5Z3Cs75i, 254 entries + loaded ALT AnXmyHSfuAaWkCxaUuTW39SN5H5ztH8bBxm647uESgTd, 256 entries + loaded ALT FjTZwDecYM3G66VKFuAaLgw3rY1QitziKdM5Ng4EpoKd, 20 entries +read position bundle target state... +check if required TickArrays are initialized... +check if required ATAs are initialized... +check position bundle state difference... +building transactions... + +📝 ACTION SUMMARY + +Pool: 95XaJMqCLiWtUwF9DtSvDpDbPYhEHoVyCeeNwmUD7cwr +PositionBundle: qHbk42b2ub8K6Rw6p7t1aUoJpwGZ6xpzDC75CQ4QgPD +Target state: sample/position_bundle_target_state_open.csv + +Position state changes: + + close position: 0 position(s) + open position: 126 position(s) + withdraw liquidity: 0 position(s) + deposit liquidity: 0 position(s) + +Balance changes: + + slippage: 1 % + + tokenA withdrawn (est): 0 + tokenB withdrawn (est): 0 + tokenA withdrawn (min): 0 + tokenB withdrawn (min): 0 + tokenA collected: 0 + tokenB collected: 0 + rewards collected: no reward, no reward, no reward + tokenA deposited (est): 0 + tokenB deposited (est): 711326.515908 + tokenA deposited (max): 0 + tokenB deposited (max): 718439.781001 + + tokenA balance delta (est): 0 + tokenB balance delta (est): -711326.515908 + + * negative balance delta means deposited more than withdrawn + +Wallet balances: + + tokenA: 1000000000 + tokenB: 999999999.999622 + +Transactions: + + withdraw: 0 transaction(s) + deposit: 14 transaction(s) + +✔ proceed? › Yes + +estimatedComputeUnits: 1400000 +process transaction... +transaction is still valid, 151 blocks left (at most) +sending... +confirming... +✅successfully landed +signature 3K2nYSwpSCcHNvNtUCQZ9UCbpeR64BL7GGf2xdW1RMLim1wU53Ju9rfEYv1qLbhmm1vMYRvtV3g2CYxnoz4MQWTT +... +... +... +estimatedComputeUnits: 1400000 +process transaction... +transaction is still valid, 151 blocks left (at most) +sending... +confirming... +✅successfully landed +signature 2U1SLJSQnH434DgTTiAQw52YrSMBKUELJ73knfvNMV2KbMofSTk94w4DKY1fEuMe8rD2bTPT8V6C1qavBYMB2JCc +check position bundle state difference... +synced */ diff --git a/legacy-sdk/cli/src/commands/poolops/push_price.ts b/legacy-sdk/cli/src/commands/poolops/push_price.ts index d89d3108a..76060a473 100644 --- a/legacy-sdk/cli/src/commands/poolops/push_price.ts +++ b/legacy-sdk/cli/src/commands/poolops/push_price.ts @@ -22,10 +22,10 @@ import { } from "@orca-so/common-sdk"; import BN from "bn.js"; import { getAssociatedTokenAddressSync } from "@solana/spl-token"; -import { sendTransaction } from "../utils/transaction_sender"; +import { sendTransaction } from "../../utils/transaction_sender"; import Decimal from "decimal.js"; -import { ctx } from "../utils/provider"; -import { promptConfirm, promptText } from "../utils/prompt"; +import { ctx } from "../../utils/provider"; +import { promptConfirm, promptText } from "../../utils/prompt"; const SIGNIFICANT_DIGITS = 9;