File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
react/web/ui/ConnectWallet/screens/Buy/swap Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments