-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
@@ -85,7 +85,7 @@ export abstract class DutchQuote<T extends DutchQuoteRequest> implements IQuote | |||
public readonly createdAt: string; | |||
public derived: DutchQuoteDerived; | |||
public routingType: RoutingType.DUTCH_LIMIT | RoutingType.DUTCH_V2; | |||
public abstract readonly defaultDeadlienBufferInSecs: number; | |||
public abstract readonly defaultDeadlineBufferInSecs: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't quoteConfig cover all chains and routingTypes, so that this is no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The quoteConfig doesn't have a default value; it currently acts as an override.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! just two nits
@@ -335,6 +335,82 @@ describe('DutchQuoteContext', () => { | |||
expect((quote?.toJSON() as DutchQuoteDataJSON).orderInfo.exclusiveFiller).toEqual(filler); | |||
}); | |||
|
|||
it('uses synthetic if worse with forceOpenOrders=true and switch=false', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: wdym by switch=false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There used to be a service that URA would call that would say whether synthetic orders were enabled or not: SyntheticStatusProvider
- it's now a noop in the code with DisabledSyntheticStatusProvider
. This test (and others like it use makeProviders(false)
to simulate a false response from that API.
Client managed auction params:
forceOpenOrders
- Setting true will force an Open Order and skip RFQpriceImprovementBps
- Setting this will override whatever the server would have defaulted to for price improvementExisting:
deadlineBufferSecs
Other changes:
skipRFQ
toforceOpenOrders
inChainConfigManager.ts