Skip to content

Commit

Permalink
chore: update basic sdk swappers response
Browse files Browse the repository at this point in the history
  • Loading branch information
RanGojo committed Jul 8, 2024
1 parent 05377cf commit 019a3f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/rango-sdk-basic/src/services/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
SwapperMeta,
RequestOptions,
MessagingProtocolsResponse,
SwapperMetaExtended,
} from '../types'
import { Signer } from 'ethers'
import { executeEvmRoute as executeEvmRoute } from './executor'
Expand Down Expand Up @@ -94,8 +95,8 @@ export class RangoClient {
return axiosResponse.data
}

public async swappers(options?: RequestOptions): Promise<SwapperMeta[]> {
const axiosResponse = await this.httpService.get<SwapperMeta[]>(
public async swappers(options?: RequestOptions): Promise<SwapperMetaExtended[]> {
const axiosResponse = await this.httpService.get<SwapperMetaExtended[]>(
`/basic/meta/swappers?apiKey=${this.apiKey}`,
{ ...options }
)
Expand Down Expand Up @@ -131,7 +132,7 @@ export class RangoClient {
: undefined,
messagingProtocols:
!!quoteRequest.messagingProtocols &&
quoteRequest.messagingProtocols.length > 0
quoteRequest.messagingProtocols.length > 0
? quoteRequest.messagingProtocols.join(',')
: undefined,
}
Expand Down Expand Up @@ -198,7 +199,7 @@ export class RangoClient {
: undefined,
messagingProtocols:
!!swapRequest.messagingProtocols &&
swapRequest.messagingProtocols.length > 0
swapRequest.messagingProtocols.length > 0
? swapRequest.messagingProtocols.join(',')
: undefined,
}
Expand Down

0 comments on commit 019a3f3

Please sign in to comment.