diff --git a/api/_types/exclusivity.types.ts b/api/_types/exclusivity.types.ts new file mode 100644 index 000000000..435ba59a4 --- /dev/null +++ b/api/_types/exclusivity.types.ts @@ -0,0 +1,56 @@ +export type RelayerFillLimit = { + originChainId: number; + inputToken: string; + destinationChainId: number; + outputToken: string; + minOutputAmount?: number; + maxOutputAmount?: number; + minExclusivityPeriod?: number; + minProfitThreshold?: number; + balanceMultiplier?: number; + msgFill?: boolean; +}; + +// Example config. +export const RelayerConfigUpdate: RelayerFillLimit[] = [ + { + originChainId: 1, + inputToken: "", + destinationChainId: 42161, + outputToken: "", + minExclusivityPeriod: 20, + minProfitThreshold: 0.0003, + balanceMultiplier: 0.6, + maxOutputAmount: 2500, + }, + { + originChainId: 10, + inputToken: "", + destinationChainId: 42161, + outputToken: "", + minExclusivityPeriod: 5, + minProfitThreshold: 0.0003, + balanceMultiplier: 0.6, + maxOutputAmount: 2500, + }, + { + originChainId: 137, + inputToken: "", + destinationChainId: 42161, + outputToken: "", + minExclusivityPeriod: 5, + minProfitThreshold: 0.0003, + balanceMultiplier: 0.6, + maxOutputAmount: 2500, + }, + { + originChainId: 324, + inputToken: "", + destinationChainId: 42161, + outputToken: "", + minExclusivityPeriod: 5, + minProfitThreshold: 0.0003, + balanceMultiplier: 0.6, + maxOutputAmount: 2500, + }, +]; diff --git a/api/_types/index.ts b/api/_types/index.ts index 6723d1603..3e5e03912 100644 --- a/api/_types/index.ts +++ b/api/_types/index.ts @@ -1,2 +1,3 @@ +export * from "./exclusivity.types"; export * from "./generic.types"; export * from "./utility.types";