Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Adapt to new RFQ-T namespace in SwapQuoterReqOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
feuGeneA committed Apr 10, 2020
1 parent ba0a999 commit dfd8684
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/services/swap_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,13 @@ export class SwapService {
gasPrice: providedGasPrice,
excludedSources, // TODO(dave4506): overrides the excluded sources selected by chainId
apiKey,
intentOnFilling,
takerAddress: from,
rfqt:
rfqt === undefined || from === undefined
? undefined
: {
...rfqt,
takerAddress: from,
},
};
if (sellAmount !== undefined) {
swapQuote = await this._swapQuoter.getMarketSellSwapQuoteAsync(
Expand Down

0 comments on commit dfd8684

Please sign in to comment.