diff --git a/index.html b/index.html index 4daba86..e89e243 100644 --- a/index.html +++ b/index.html @@ -921,8 +921,8 @@
associatedTokenAccount,
);
-spot_market_index = 0 # USDC
-amount = drift_client.convert_to_spot_precision(spot_market_index, 100) # $100
+market_index = 0 # USDC
+amount = drift_client.convert_to_spot_precision(market_index, 100) # $100
tx_sig = await drift_client.withdraw(amount, spot_market_index)
market_index = 0
+amount = drift_client.convert_to_spot_precision(market_ndex, 100)
+from_sub_account_id = 0
+to_sub_account_id = 0
+
+await drift_client.transfer_deposit(
+ amount,
+ market_index,
+ from_sub_account_id,
+ to_sub_account_id,
+)