Skip to content

Commit

Permalink
chore: updates kado list
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 20, 2024
1 parent fb7fc63 commit bd0ac2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 194 deletions.
182 changes: 0 additions & 182 deletions .aider.chat.history.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/plugins/kado/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function plugin({
partner: "fortress",
amount: buyAsset.getValue("string"),
asset: asset.symbol,
blockchain: asset.chain,
blockchain: ChainToKadoChain(asset.chain),
currency,
};

Expand Down
22 changes: 11 additions & 11 deletions playgrounds/vite/src/Swap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import { AssetValue, FeeOption, type QuoteResponseRoute } from "@swapkit/sdk";
import { type AssetValue, FeeOption, type QuoteResponseRoute } from "@swapkit/sdk";
import { useCallback } from "react";

import type { SwapKitClient } from "../swapKitClient";
Expand Down Expand Up @@ -31,18 +31,18 @@ export default function Swap({
[inputAsset, outputAsset?.chain, skClient],
);

const kadoWidget = async () => {
const quote = await skClient?.kado.onRampQuote({
assetValue: AssetValue.from({ asset: "ETH.ETH", value: 0.01 }),
fiatValue: AssetValue.from({ asset: "FIAT.USD", value: 1000 }),
});
// const kadoWidget = async () => {
// const quote = await skClient?.kado.onRampQuote({
// assetValue: AssetValue.from({ asset: "ETH.ETH", value: 0.01 }),
// fiatValue: AssetValue.from({ asset: "FIAT.USD", value: 1000 }),
// });

if (quote?.routes[0]) {
skClient?.kado.swap({ route: quote.routes[0] });
}
};
// if (quote?.routes[0]) {
// skClient?.kado.swap({ route: quote.routes[0] });
// }
// };

kadoWidget();
// kadoWidget();

return (
<>
Expand Down

0 comments on commit bd0ac2c

Please sign in to comment.