Skip to content

Commit 428234f

Browse files
committed
update example
1 parent 79eb2b1 commit 428234f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
5-
{ "repo": "ValidatorsDAO/sol-swap" }
5+
{ "repo": "validators-dao/sol-swap" }
66
],
77
"commit": false,
88
"fixed": [],

packages/sol-swap/src/examples/jupiter/getQuote.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import getJupiterQuote from '@/lib/jupiter/getJupiterQuote'
22
import jupiterSwap from '@/lib/jupiter/jupiterSwap'
33

44
const getQuote = async () => {
5-
const inputMint = 'inputMint'
6-
const outputMint = 'outputMint'
7-
const inputAmountLamport = 1000000000
5+
const inputMint = 'So11111111111111111111111111111111111111112' // SOL
6+
const outputMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' // USDC
7+
const inputAmountLamport = 0.01 * 10 ** 9 // 0.01 SOL
88
const quote = await getJupiterQuote(inputMint, outputMint, inputAmountLamport)
99
if (typeof quote === 'string') {
1010
throw new Error(quote)

0 commit comments

Comments
 (0)