Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Oct 7, 2024
1 parent 79eb2b1 commit 428234f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "ValidatorsDAO/sol-swap" }
{ "repo": "validators-dao/sol-swap" }
],
"commit": false,
"fixed": [],
Expand Down
6 changes: 3 additions & 3 deletions packages/sol-swap/src/examples/jupiter/getQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import getJupiterQuote from '@/lib/jupiter/getJupiterQuote'
import jupiterSwap from '@/lib/jupiter/jupiterSwap'

const getQuote = async () => {
const inputMint = 'inputMint'
const outputMint = 'outputMint'
const inputAmountLamport = 1000000000
const inputMint = 'So11111111111111111111111111111111111111112' // SOL
const outputMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' // USDC
const inputAmountLamport = 0.01 * 10 ** 9 // 0.01 SOL
const quote = await getJupiterQuote(inputMint, outputMint, inputAmountLamport)
if (typeof quote === 'string') {
throw new Error(quote)
Expand Down

0 comments on commit 428234f

Please sign in to comment.