Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Jan 17, 2024
1 parent f4b4d30 commit 9cf81ad
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions projects/sdk/src/classes/Workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,31 +298,26 @@ export abstract class Workflow<
switch (input.name) {
case "pipelineDeposit":
pipelineOptions = { tag: `deposit${filteredOptions.length}Amount` };
Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`, pipelineOptions);
break;
case "pipelineUniV3Deposit":
pipelineOptions = { tag: `depositUniV3${filteredOptions.length}Amount` };
Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`, pipelineOptions);
break;
case "pipelineWellSwap":
pipelineOptions = { tag: `wellSwap${filteredOptions.length}Amount` };
Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`, pipelineOptions);
break;
case "pipelineUniswapV3Swap":
pipelineOptions = { tag: `uniswapV3Swap${filteredOptions.length}Amount` };
Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`, pipelineOptions);
break;
case "pipelineUniV3WellSwap":
pipelineOptions = { tag: `uniV3WellSwap${filteredOptions.length}Amount` };
Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`, pipelineOptions);
break;
case "pipelineWellSwapUniV3":
pipelineOptions = { tag: `wellSwapUniV3${filteredOptions.length}Amount` };
Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`, pipelineOptions);
break;
default:
Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`);
}
};

Workflow.sdk.debug(`[Workflow][${this.name}][add] ${input.name || "<unknown>"}`, pipelineOptions || '');

this._generators.push(input);
this._options.push(pipelineOptions || options || null); // null = no options set
Expand Down

0 comments on commit 9cf81ad

Please sign in to comment.