Skip to content

Commit

Permalink
feat: consistent vernacular
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Jan 9, 2025
1 parent 2ff5ddd commit 3875675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export const ExpandedStepperSteps = ({ activeTradeQuote }: ExpandedStepperStepsP
stepIndicatorVariant='innerSteps'
/>
) : null}
{tradeSteps[StepperStep.FirstHopPermit2Sign] ? (
{tradeSteps[StepperStep.FirstHopPermit2Eip712Sign] ? (
<StepperStepComponent
title={firstHopPermit2SignTitle}
stepIndicator={stepIndicator}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type StepperStepParams = {

export enum StepperStep {
FirstHopReset = 'firstHopReset',
FirstHopPermit2Sign = 'firstHopPermit2Sign',
FirstHopPermit2Eip712Sign = 'firstHopPermit2Eip712Sign',
FirstHopApproval = 'firstHopApproval',
FirstHopSwap = 'firstHopSwap',
LastHopReset = 'lastHopReset',
Expand All @@ -85,7 +85,7 @@ export const getStepperSteps = (params: StepperStepParams): Record<StepperStep,
[StepperStep.FirstHopApproval]:
firstHopAllowanceApproval.isInitiallyRequired === true ||
firstHopAllowanceApproval.txHash !== undefined,
[StepperStep.FirstHopPermit2Sign]: firstHopPermit2.isRequired === true,
[StepperStep.FirstHopPermit2Eip712Sign]: firstHopPermit2.isRequired === true,
[StepperStep.FirstHopSwap]: true,
[StepperStep.LastHopReset]:
isMultiHopTrade === true &&
Expand Down Expand Up @@ -124,7 +124,7 @@ export const getCurrentStepperStep = (
if (hopExecutionState === HopExecutionState.AwaitingAllowanceReset)
return StepperStep.FirstHopReset
if (isInApprovalState(hopExecutionState)) return StepperStep.FirstHopApproval
if (isInPermit2SignState(hopExecutionState)) return StepperStep.FirstHopPermit2Sign
if (isInPermit2SignState(hopExecutionState)) return StepperStep.FirstHopPermit2Eip712Sign
if (hopExecutionState === HopExecutionState.AwaitingSwap) return StepperStep.FirstHopSwap
} else if (currentHopIndex === 1) {
if (hopExecutionState === HopExecutionState.AwaitingAllowanceReset)
Expand Down

0 comments on commit 3875675

Please sign in to comment.