From 428234f7e3159f4ad769b8f0eb095de45ca52604 Mon Sep 17 00:00:00 2001 From: POPPIN-FUMI Date: Mon, 7 Oct 2024 18:25:57 +0200 Subject: [PATCH] update example --- .changeset/config.json | 2 +- packages/sol-swap/src/examples/jupiter/getQuote.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 52aa9c7..30cb6e9 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "ValidatorsDAO/sol-swap" } + { "repo": "validators-dao/sol-swap" } ], "commit": false, "fixed": [], diff --git a/packages/sol-swap/src/examples/jupiter/getQuote.ts b/packages/sol-swap/src/examples/jupiter/getQuote.ts index a213ae7..bd33064 100644 --- a/packages/sol-swap/src/examples/jupiter/getQuote.ts +++ b/packages/sol-swap/src/examples/jupiter/getQuote.ts @@ -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)