Skip to content

Commit

Permalink
Initial relayer limit config type
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Dec 11, 2024
1 parent f23d721 commit e9d2866
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
56 changes: 56 additions & 0 deletions api/_types/exclusivity.types.ts
Original file line number Diff line number Diff line change
@@ -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,
},
];
1 change: 1 addition & 0 deletions api/_types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./exclusivity.types";
export * from "./generic.types";
export * from "./utility.types";

0 comments on commit e9d2866

Please sign in to comment.