File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
packages/xchain-thorchain-query/src Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @xchainjs/xchain-thorchain-query ' : patch
3
+ ---
4
+
5
+ Expose more info on quoteswap
Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ export class ThorchainQuery {
188
188
streamingSwapBlocks : 0 ,
189
189
streamingSwapSeconds : 0 ,
190
190
totalSwapSeconds : 0 ,
191
+ recommendedGasRate : '0' ,
192
+ router : '' ,
191
193
warning : '' ,
192
194
} ,
193
195
}
@@ -250,6 +252,8 @@ export class ThorchainQuery {
250
252
streamingSwapSeconds : swapQuote . streaming_swap_seconds ? swapQuote . streaming_swap_seconds : 0 ,
251
253
totalSwapSeconds : swapQuote . total_swap_seconds ? swapQuote . total_swap_seconds : 0 ,
252
254
canSwap : ! swapQuote . memo || errors . length > 0 ? false : true ,
255
+ recommendedGasRate : swapQuote . recommended_gas_rate ? swapQuote . recommended_gas_rate : '0' ,
256
+ router : swapQuote . router ? swapQuote . router : '' ,
253
257
errors,
254
258
warning : swapQuote . warning ,
255
259
} ,
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ export type SwapEstimate = {
43
43
streamingSwapBlocks : number // The number of blocks for streaming swap
44
44
streamingSwapSeconds : number // The time for streaming swap in seconds
45
45
totalSwapSeconds : number // The total swap time in seconds
46
+ router : string
47
+ recommendedGasRate : string
46
48
canSwap : boolean // Indicates if swap can be performed
47
49
errors : string [ ] // List of errors encountered during estimation
48
50
warning : string // Any warning messages
You can’t perform that action at this time.
0 commit comments