Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Nov 2, 2023
1 parent aa196d5 commit f484c51
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions generator/prompts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {checkbox, input, select} from '@inquirer/prompts';
import {ENGINE_FLAGS, PoolIdentifier} from './types';
import {getAssets, getEModes} from './common';
import {Hex, getAddress, isAddress} from 'viem';
import {advancedInput} from './prompts/advancedInput';

// VALIDATION
Expand All @@ -14,11 +13,6 @@ function isNumberOrKeepCurrent(value: string) {
return 'Must be number or KEEP_CURRENT';
}

function isAddressOrKeepCurrent(value: string) {
if (value == ENGINE_FLAGS.KEEP_CURRENT_ADDRESS || isAddress(value)) return true;
return 'Must be a valid address';
}

// TRANSFORMS
export function transformNumberToPercent(value: string) {
if (value && isNumber(value)) {
Expand Down

0 comments on commit f484c51

Please sign in to comment.