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

Expose enableFeeOnTransferFeeFetching post request field #260

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/entities/request/ClassicRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface ClassicConfig {
debugRoutingConfig?: string;
unicornSecret?: string;
quoteSpeed?: string;
enableFeeOnTransferFeeFetching?: boolean;
jsy1218 marked this conversation as resolved.
Show resolved Hide resolved
}

export interface ClassicConfigJSON extends Omit<ClassicConfig, 'protocols' | 'permitAmount'> {
Expand Down
1 change: 1 addition & 0 deletions lib/providers/quoters/RoutingApiQuoter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export class RoutingApiQuoter implements Quoter {
// expect web/mobile to send it for the 1st fast quote,
// otherwise default not to send it
...(config.quoteSpeed !== undefined && { quoteSpeed: config.quoteSpeed }),
...(config.enableFeeOnTransferFeeFetching !== undefined && { enableFeeOnTransferFeeFetching: config.enableFeeOnTransferFeeFetching}),
})
);
}
Expand Down
1 change: 1 addition & 0 deletions lib/util/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class FieldValidator {
slippageTolerance: FieldValidator.slippageTolerance.optional(),
algorithm: FieldValidator.algorithm.optional(),
quoteSpeed: FieldValidator.quoteSpeed.optional(),
enableFeeOnTransferFeeFetching: Joi.boolean().optional(),
});

public static readonly dutchLimitConfig = Joi.object({
Expand Down
Loading