Conversation
| feeToken: undefined, | ||
| }) | ||
| ).quotes as V4RFQIndicativeQuoteMM[]) | ||
| : await rfqt.quoteRequestor.requestRfqtIndicativeQuotesAsync( |
There was a problem hiding this comment.
is there a way we could make quoterequestor conform to IRfqClient so we don't have this weird branching? Or is it not worth it?
There was a problem hiding this comment.
I think it's better to have the IRfqClient conform to the existing code, otherwise, we need to change some stuff downstream. Riskier, for unclear benefit
| @@ -0,0 +1,23 @@ | |||
| import { FillQuoteTransformerOrderType } from '@0x/protocol-utils'; | |||
There was a problem hiding this comment.
consider just putting this in the interface file -- will be easier to clean up later
|
|
||
| import { AltRfqMakerAssetOfferings } from '../types'; | ||
| export interface RfqClientPriceRequest { | ||
| integratorId: string; |
| export interface RfqClientV1PriceRequest { | ||
| altRfqAssetOfferings: AltRfqMakerAssetOfferings | undefined; | ||
| assetFillAmount: BigNumber; | ||
| chainId: number; |
There was a problem hiding this comment.
would be beneficial to use enum ChainId here instead?
| @@ -663,17 +666,49 @@ export class MarketOperationUtils { | |||
| // Timing of RFQT lifecycle | |||
| const timeStart = new Date().getTime(); | |||
| const { makerToken, takerToken } = nativeOrders[0].order; | |||
There was a problem hiding this comment.
[out of scope] it seems like fooToken sometimes mean the symbol(?) (e.g. RfqClientV1PriceRequest has both
takerAddress, and takerToken) while here it's address.
* Add BiSwap (as UniV2 clone) on BSC * changelog PR number * add BSW * remove BiSwap from transformer_utils * Do not initialize BalancerV2SwapInfoCache on unsupported chains [TKR-365] (#472) * Do not initialize BalancerV2SwapInfoCache on unsupported chains * Update CHANGELOG.json * Updated CHANGELOGS & MD docs * Publish - @0x/asset-swapper@16.57.3 * chore: Decomission SnowSwap [TKR-356] (#468) * Decomission SnowSwap * SnowSwap doesn't have much liquidity anymore (the largest pool has ~$50k) * Update CHANGELOG.json * Update CHANGELOG.json * chore: Offboard Swerve Finance and LinkSwap [TKR-356] (#469) * Offboard swerve * Update CHANGELOG.json * Offboard LinkSwap * Remove unused import * Fix CHANGELOG.json * chore: Offboard Eth2Dai [TKR-356] (#470) * Offboard Eth2Dai * Update CHANGELOG.json * feat: add IRfqClient (#467) * add message to changelog for #467 (#474) * Update saddle mainnet pools (#450) * Add saddle v2 pools * remove outdated pools * add two saddle meta pools * forgot changelog * remove saddle metapools * changelog update * Fix a lint issue (#475) * Updated CHANGELOGS & MD docs * Publish - @0x/asset-swapper@16.59.0 * Add BiSwap (as UniV2 clone) on BSC * rebase new changes for balv2, up changelog, quotes working * remove Biswap from transformer_utils once again Co-authored-by: Kyu <kyuhyun217@gmail.com> Co-authored-by: Github Actions <github-actions@github.com> Co-authored-by: phil-ociraptor <phil@0x.org> Co-authored-by: Cece Z <me@cecez.xyz> Co-authored-by: Noah Khamliche <noah@0xproject.com>
* Add BiSwap (as UniV2 clone) on BSC * changelog PR number * add BSW * remove BiSwap from transformer_utils * Do not initialize BalancerV2SwapInfoCache on unsupported chains [TKR-365] (#472) * Do not initialize BalancerV2SwapInfoCache on unsupported chains * Update CHANGELOG.json * Updated CHANGELOGS & MD docs * Publish - @0x/asset-swapper@16.57.3 * chore: Decomission SnowSwap [TKR-356] (#468) * Decomission SnowSwap * SnowSwap doesn't have much liquidity anymore (the largest pool has ~$50k) * Update CHANGELOG.json * Update CHANGELOG.json * chore: Offboard Swerve Finance and LinkSwap [TKR-356] (#469) * Offboard swerve * Update CHANGELOG.json * Offboard LinkSwap * Remove unused import * Fix CHANGELOG.json * chore: Offboard Eth2Dai [TKR-356] (#470) * Offboard Eth2Dai * Update CHANGELOG.json * feat: add IRfqClient (#467) * add message to changelog for #467 (#474) * Update saddle mainnet pools (#450) * Add saddle v2 pools * remove outdated pools * add two saddle meta pools * forgot changelog * remove saddle metapools * changelog update * Fix a lint issue (#475) * Updated CHANGELOGS & MD docs * Publish - @0x/asset-swapper@16.59.0 * Add BiSwap (as UniV2 clone) on BSC * rebase new changes for balv2, up changelog, quotes working * remove Biswap from transformer_utils once again Co-authored-by: Kyu <kyuhyun217@gmail.com> Co-authored-by: Github Actions <github-actions@github.com> Co-authored-by: phil-ociraptor <phil@0x.org> Co-authored-by: Cece Z <me@cecez.xyz> Co-authored-by: Noah Khamliche <noah@0xproject.com>
Description
Allow
SwapQuoterto use anIRfqClientto fetch quotes instead of usingQuoteRequestor. This allows different implementations for quote fetching.Testing instructions
Types of changes
Checklist:
[WIP]if necessary.