@@ -4,18 +4,20 @@ import {showData} from "./util";
4
4
import { submenuRouteToRecipient } from "./submenu/routeToRecipient" ;
5
5
import { submenuAllocateYield } from "./submenu/allocateYield" ;
6
6
import { submenuUpdateProportions } from "./submenu/updateProportions" ;
7
+ import { submenuUpdateDestinationAddress } from "./submenu/updateDestinationAddress" ;
7
8
8
9
export const showMenu = async ( ) => {
9
10
console . log ( chalk . magentaBright ( '\nChoose an option:' ) ) ;
10
11
console . log ( chalk . cyanBright ( '1) Refresh' ) ) ;
11
12
console . log ( chalk . cyanBright ( '2) Allocate Yield' ) ) ;
12
13
console . log ( chalk . cyanBright ( '3) Route Funds to Recipient' ) ) ;
13
14
console . log ( chalk . cyanBright ( '4) Update Proportions' ) ) ;
14
- console . log ( chalk . cyanBright ( '5) Add Recipient' ) ) ;
15
- console . log ( chalk . cyanBright ( '6) Remove Recipient' ) ) ;
16
- console . log ( chalk . cyanBright ( '7) Quit' ) ) ;
15
+ console . log ( chalk . cyanBright ( '5) Update Recipient Address' ) ) ;
16
+ console . log ( chalk . cyanBright ( '6) Add Recipient' ) ) ;
17
+ console . log ( chalk . cyanBright ( '7) Remove Recipient' ) ) ;
18
+ console . log ( chalk . cyanBright ( '8) Quit' ) ) ;
17
19
18
- const choice = readlineSync . keyIn ( chalk . yellow ( '\nEnter your choice: ' ) , { limit : '$<1-7 >' } ) ;
20
+ const choice = readlineSync . keyIn ( chalk . yellow ( '\nEnter your choice: ' ) , { limit : '$<1-8 >' } ) ;
19
21
20
22
switch ( choice ) {
21
23
case '1' :
@@ -32,12 +34,16 @@ export const showMenu = async () => {
32
34
await submenuUpdateProportions ( ) ;
33
35
break ;
34
36
case '5' :
35
- console . log ( chalk . green ( 'Adding recipient...' ) ) ;
37
+
38
+ await submenuUpdateDestinationAddress ( ) ;
36
39
break ;
37
40
case '6' :
38
- console . log ( chalk . green ( 'Removing recipient...' ) ) ;
41
+ console . log ( chalk . green ( 'Adding recipient...' ) ) ;
39
42
break ;
40
43
case '7' :
44
+ console . log ( chalk . green ( 'Removing recipient...' ) ) ;
45
+ break ;
46
+ case '8' :
41
47
console . log ( chalk . green ( 'Exiting...' ) ) ;
42
48
process . exit ( 0 ) ;
43
49
break ;
0 commit comments