Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Feb 15, 2024
1 parent 37dc185 commit 3735b24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/SpokeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export function getV3RelayHash(relayData: V3RelayData, destinationChainId: numbe
}

export function getV3RelayHashFromEvent(e: V3Deposit | V3Fill | SlowFillRequest): string {
const relayData: V3RelayData = {
const relayData = {
depositor: e.depositor,
recipient: e.recipient,
exclusiveRelayer: e.exclusiveRelayer,
Expand Down
5 changes: 0 additions & 5 deletions src/utils/V3Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ export function isSlowFill(fill: Fill): boolean {
return isV2Fill(fill) ? fill.updatableRelayData.isSlowRelay : fill.relayExecutionInfo.fillType === FillType.SlowFill;
}

// If needed, this can be made generic in the future.
export function isSlowFillRequest(fill: Fill | SlowFillRequest): fill is SlowFillRequest {
// Relayer field exists in V2Fill, V3Fill, but not SlowFillRequest.
return (fill as Fill).relayer === undefined;
}
type MinV2SlowFillLeaf = Pick<V2SlowFillLeaf, "payoutAdjustmentPct">;
type MinV3SlowFillLeaf = Pick<V3SlowFillLeaf, "updatedOutputAmount">;
export function isV2SlowFillLeaf<T extends MinV2SlowFillLeaf, U extends MinV3SlowFillLeaf>(
Expand Down

0 comments on commit 3735b24

Please sign in to comment.