Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Feb 21, 2024
1 parent 3c9be9d commit 64a91a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/HubPoolClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type V3PartialDepositWithBlock = Pick<
"originChainId" | "inputToken" | "inputAmount" | "quoteTimestamp"
>;

export type LpFeeRequest = (V2PartialDepositWithBlock | V3PartialDepositWithBlock) & { paymentChainId?: number };
export type LpFeeRequest = (V2PartialDepositWithBlock | V3PartialDepositWithBlock) & { paymentChainId: number };

export class HubPoolClient extends BaseAbstractClient {
// L1Token -> destinationChainId -> destinationToken
Expand Down Expand Up @@ -422,7 +422,7 @@ export class HubPoolClient extends BaseAbstractClient {
};

// Helper compute the realizedLpFeePct of an individual deposit based on pre-retrieved batch data.
const computeRealizedLpFeePct = async (deposit: (typeof deposits)[0]) => {
const computeRealizedLpFeePct = async (deposit: V3PartialDepositWithBlock & { paymentChainId: number }) => {
const { originChainId, paymentChainId, inputAmount, quoteTimestamp } = deposit;
const quoteBlock = quoteBlocks[quoteTimestamp];

Expand Down

0 comments on commit 64a91a2

Please sign in to comment.