Skip to content

Commit 91de2cc

Browse files
add icon, duration
1 parent cdaf130 commit 91de2cc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/thirdweb/src/pay/buyWithCrypto/getQuote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export async function getBuyWithCryptoQuote(
341341
slippageBPS: 0,
342342
feesUSDCents: 0,
343343
gasCostUSDCents: 0,
344-
durationSeconds: 0,
344+
durationSeconds: firstStep.estimatedExecutionTimeMs / 1000,
345345
},
346346

347347
maxSlippageBPS: 0,

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/useSwapSupportedChains.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function useBuySupportedSources(options: {
120120
destinationTokenAddress: options.destinationTokenAddress,
121121
maxSteps: 1,
122122
sortBy: "popularity",
123-
limit: 1000000,
123+
limit: 50,
124124
});
125125

126126
const tokens = new Set<string>();
@@ -133,6 +133,7 @@ export function useBuySupportedSources(options: {
133133
buyWithFiatEnabled: boolean;
134134
name: string;
135135
symbol: string;
136+
icon?: string;
136137
}>
137138
> = [];
138139
for (const route of routes) {
@@ -157,6 +158,7 @@ export function useBuySupportedSources(options: {
157158
buyWithFiatEnabled: true,
158159
name: route.originToken.name,
159160
symbol: route.originToken.symbol,
161+
icon: route.originToken.iconUri,
160162
},
161163
];
162164
}

0 commit comments

Comments
 (0)