Skip to content

Commit

Permalink
chore: Update UnfilledDeposit types for V3
Browse files Browse the repository at this point in the history
The Dataworker needs a V3 variant to track the realizedLpFeePct of the
deposit with payout on the destination chain.
  • Loading branch information
pxrl committed Feb 12, 2024
1 parent 04be894 commit ea50d2f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/interfaces/SpokePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,19 @@ export interface V3RelayerRefundExecutionWithBlock extends V3RelayerRefundExecut
export type RelayerRefundExecution = V2RelayerRefundExecution | V3RelayerRefundExecution;
export type RelayerRefundExecutionWithBlock = V2RelayerRefundExecutionWithBlock | V3RelayerRefundExecutionWithBlock;

export interface UnfilledDeposit {
deposit: Deposit;
export interface V2UnfilledDeposit {
deposit: V2Deposit;
unfilledAmount: BigNumber;
hasFirstPartialFill?: boolean;
relayerBalancingFee?: BigNumber;
}

export interface V3UnfilledDeposit extends V3Deposit {
realizedLpFeePct: BigNumber; // Assumes repayment on the destination chain.
}

export type UnfilledDeposit = V2UnfilledDeposit | V3UnfilledDeposit;

export interface UnfilledDepositsForOriginChain {
[originChainIdPlusDepositId: string]: UnfilledDeposit[];
}
Expand Down

0 comments on commit ea50d2f

Please sign in to comment.