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

Commit

Permalink
expose enableFeeOnTransferFeeFetching post request field (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 authored Sep 11, 2023
1 parent ce73698 commit 020ea37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
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;
}

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

0 comments on commit 020ea37

Please sign in to comment.