diff --git a/index.html b/index.html index 1998fe1..47f0a21 100644 --- a/index.html +++ b/index.html @@ -817,7 +817,7 @@

User Initialization

-
const [txSig, userPublickKey] = await driftClient.initializeUser(
+
const [txSig, userPublickKey] = await driftClient.initializeUserAccount(
   0,
   "toly"
 );
@@ -2002,7 +2002,7 @@ 

Getting Deposit/Borrow Amounts

If token amount is greater than 0, it is a deposit. If less than zero, it is a borrow.

Get Perp Position

const marketIndex = 0;
 
-const baseAssetAmount = user.getPerpPosiiton(
+const baseAssetAmount = user.getPerpPosition(
   marketIndex,
 )?.baseAssetAmount;