@jup-ag/lend 0.0.35 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,9 +13,9 @@ npm install @jup-ag/lend
13
13
  ```ts
14
14
  import { getDepositIx, getWithdrawIx } from "@jup-ag/lend/earn";
15
15
 
16
- const connection = new Connection("https://api.devnet.solana.com");
16
+ const connection = new Connection("https://api.mainnet-beta.solana.com");
17
17
  const signer = new PublicKey("signerAddress");
18
- const usdc = new PublicKey("4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU");
18
+ const usdc = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
19
19
 
20
20
  const depositIx = await getDepositIx({
21
21
  amount: new BN(1000000),
@@ -23,7 +23,6 @@ const depositIx = await getDepositIx({
23
23
 
24
24
  signer,
25
25
  connection,
26
- cluster: "devnet",
27
26
  });
28
27
 
29
28
  const withdrawIx = await getWithdrawIx({
@@ -32,7 +31,6 @@ const withdrawIx = await getWithdrawIx({
32
31
 
33
32
  signer,
34
33
  connection,
35
- cluster: "devnet",
36
34
  });
37
35
  ```
38
36
 
@@ -41,7 +39,7 @@ const withdrawIx = await getWithdrawIx({
41
39
  ```ts
42
40
  import { getOperateIx } from "@jup-ag/lend/borrow";
43
41
 
44
- const connection = new Connection("https://api.devnet.solana.com");
42
+ const connection = new Connection("https://api.mainnet-beta.solana.com");
45
43
  const signer = new PublicKey("signerAddress");
46
44
 
47
45
  const { ixs, addressLookupTableAccounts } = await getOperateIx({
@@ -53,6 +51,5 @@ const { ixs, addressLookupTableAccounts } = await getOperateIx({
53
51
 
54
52
  signer,
55
53
  connection,
56
- cluster: "devnet",
57
54
  });
58
55
  ```