diff --git a/src/stories/PaginatedDepositsTable.stories.tsx b/src/stories/PaginatedDepositsTable.stories.tsx index 17c1130b7..52e608153 100644 --- a/src/stories/PaginatedDepositsTable.stories.tsx +++ b/src/stories/PaginatedDepositsTable.stories.tsx @@ -95,18 +95,23 @@ const mockedDeposits: Deposit[] = [ initialRelayerFeePct: "28434751200000000", suggestedRelayerFeePct: "28443917866666666", feeBreakdown: { - bridgeFee: { - pct: "28434751200000000", - usd: "341217014400000000", - }, - destinationGasFee: { - pct: "28434751200000000", - usd: "341217014400000000", - }, + lpFeeUsd: "341217014400000000", + lpFeePct: "28434751200000000", + lpFeeAmount: "341217014400000000", + relayCapitalFeeUsd: "341217014400000000", + relayCapitalFeePct: "28434751200000000", + relayCapitalFeeAmount: "341217014400000000", + relayGasFeeUsd: "341217014400000000", + relayGasFeePct: "28434751200000000", + relayGasFeeAmount: "341217014400000000", + totalBridgeFeeUsd: "341217014400000000", + totalBridgeFeePct: "28434751200000000", + totalBridgeFeeAmount: "341217014400000000", }, rewards: { type: "referrals", rate: 0.4, + tier: 1, amount: "341217014400000000", usd: "341217014400000000", }, @@ -135,18 +140,23 @@ const mockedDeposits: Deposit[] = [ initialRelayerFeePct: "28434751200000000", suggestedRelayerFeePct: "28443917866666666", feeBreakdown: { - bridgeFee: { - pct: "28434751200000000", - usd: "341217014400000000", - }, - destinationGasFee: { - pct: "28434751200000000", - usd: "341217014400000000", - }, + lpFeeUsd: "341217014400000000", + lpFeePct: "28434751200000000", + lpFeeAmount: "341217014400000000", + relayCapitalFeeUsd: "341217014400000000", + relayCapitalFeePct: "28434751200000000", + relayCapitalFeeAmount: "341217014400000000", + relayGasFeeUsd: "341217014400000000", + relayGasFeePct: "28434751200000000", + relayGasFeeAmount: "341217014400000000", + totalBridgeFeeUsd: "341217014400000000", + totalBridgeFeePct: "28434751200000000", + totalBridgeFeeAmount: "341217014400000000", }, rewards: { type: "referrals", rate: 0.4, + tier: 1, amount: "341217014400000000", usd: "341217014400000000", }, diff --git a/src/views/DepositStatus/utils.ts b/src/views/DepositStatus/utils.ts index 2b1d8b429..49aa15399 100644 --- a/src/views/DepositStatus/utils.ts +++ b/src/views/DepositStatus/utils.ts @@ -35,14 +35,18 @@ export function convertForDepositQuery( sendDepositArgs.relayerFeePct ).toString(), feeBreakdown: { - bridgeFee: { - pct: quote.totalBridgeFeePct, - usd: quote.totalBridgeFeeUsd, - }, - destinationGasFee: { - pct: quote.relayGasFeePct, - usd: quote.relayGasFeeTotalUsd, - }, + lpFeeUsd: quote.lpFeeTotalUsd, + lpFeePct: quote.lpFeePct, + lpFeeAmount: quote.lpFeeTotal, + relayCapitalFeeUsd: quote.capitalFeeTotalUsd, + relayCapitalFeePct: quote.capitalFeePct, + relayCapitalFeeAmount: quote.capitalFeeTotal, + relayGasFeeUsd: quote.relayGasFeeTotalUsd, + relayGasFeePct: quote.relayGasFeePct, + relayGasFeeAmount: quote.relayFeeTotal, + totalBridgeFeeUsd: quote.totalBridgeFeeUsd, + totalBridgeFeePct: quote.totalBridgeFeePct, + totalBridgeFeeAmount: quote.totalBridgeFee, }, }; } @@ -79,14 +83,18 @@ export function convertForFillQuery( sendDepositArgs.relayerFeePct ).toString(), feeBreakdown: { - bridgeFee: { - pct: quote.totalBridgeFeePct, - usd: quote.totalBridgeFeeUsd, - }, - destinationGasFee: { - pct: quote.relayGasFeePct, - usd: quote.relayGasFeeTotalUsd, - }, + lpFeeUsd: quote.lpFeeTotalUsd, + lpFeePct: quote.lpFeePct, + lpFeeAmount: quote.lpFeeTotal, + relayCapitalFeeUsd: quote.capitalFeeTotalUsd, + relayCapitalFeePct: quote.capitalFeePct, + relayCapitalFeeAmount: quote.capitalFeeTotal, + relayGasFeeUsd: quote.relayGasFeeTotalUsd, + relayGasFeePct: quote.relayGasFeePct, + relayGasFeeAmount: quote.relayFeeTotal, + totalBridgeFeeUsd: quote.totalBridgeFeeUsd, + totalBridgeFeePct: quote.totalBridgeFeePct, + totalBridgeFeeAmount: quote.totalBridgeFee, }, }; }