@@ -28,66 +28,71 @@ func CreateUpgradeHandler(mm *module.Manager,
2828 _ = keepers .YieldaggregatorKeeper .SetParams (ctx , iyaParam )
2929
3030 // initialize DenomInfos, SymbolInfos, IntermediaryAccountInfo
31- denomInfos := []yieldaggregatortypes.DenomInfo {
32- { // ATOM.osmosis.ununifi
33- Denom : "ibc/20D06D04E1BC1FAC482FECC06C2E2879A596904D64D8BA3285B4A3789DEAF910" ,
34- Symbol : "ATOM" ,
35- Channels : []yieldaggregatortypes.TransferChannel {
36- {
37- RecvChainId : "cosmoshub-4" ,
38- SendChainId : "osmosis-1" ,
39- ChannelId : "channel-0" ,
31+ denomInfos := []yieldaggregatortypes.DenomInfo {}
32+ symbolInfos := []yieldaggregatortypes.SymbolInfo {}
33+ interAcc := yieldaggregatortypes.IntermediaryAccountInfo {}
34+ if ctx .ChainID () == "ununifi-beta-v1" { // mainnet
35+ denomInfos = []yieldaggregatortypes.DenomInfo {
36+ { // ATOM.osmosis.ununifi
37+ Denom : "ibc/20D06D04E1BC1FAC482FECC06C2E2879A596904D64D8BA3285B4A3789DEAF910" ,
38+ Symbol : "ATOM" ,
39+ Channels : []yieldaggregatortypes.TransferChannel {
40+ {
41+ RecvChainId : "cosmoshub-4" ,
42+ SendChainId : "osmosis-1" ,
43+ ChannelId : "channel-0" ,
44+ },
45+ {
46+ RecvChainId : "osmosis-1" ,
47+ SendChainId : "ununifi-beta-v1" ,
48+ ChannelId : "channel-4" ,
49+ },
4050 },
41- {
42- RecvChainId : "osmosis-1" ,
43- SendChainId : "ununifi-beta-v1" ,
44- ChannelId : "channel-4" ,
51+ },
52+ { // ATOM.ununifi
53+ Denom : "ibc/25418646C017D377ADF3202FF1E43590D0DAE3346E594E8D78176A139A928F88" ,
54+ Symbol : "ATOM" ,
55+ Channels : []yieldaggregatortypes.TransferChannel {
56+ {
57+ RecvChainId : "cosmoshub-4" ,
58+ SendChainId : "ununifi-beta-v1" ,
59+ ChannelId : "channel-7" ,
60+ },
4561 },
4662 },
47- },
48- { // ATOM.ununifi
49- Denom : "ibc/25418646C017D377ADF3202FF1E43590D0DAE3346E594E8D78176A139A928F88" ,
50- Symbol : "ATOM" ,
51- Channels : []yieldaggregatortypes.TransferChannel {
52- {
53- RecvChainId : "cosmoshub-4" ,
54- SendChainId : "ununifi-beta-v1" ,
55- ChannelId : "channel-7" ,
63+ }
64+
65+ symbolInfos = []yieldaggregatortypes.SymbolInfo {
66+ {
67+ Symbol : "ATOM" ,
68+ NativeChainId : "cosmoshub-4" ,
69+ Channels : []yieldaggregatortypes.TransferChannel {
70+ {
71+ SendChainId : "cosmoshub-4" ,
72+ RecvChainId : "osmosis-1" ,
73+ ChannelId : "channel-141" ,
74+ },
75+ {
76+ SendChainId : "cosmoshub-4" ,
77+ RecvChainId : "ununifi-beta-v1" ,
78+ ChannelId : "channel-683" ,
79+ },
5680 },
5781 },
58- },
59- }
82+ }
6083
61- symbolInfos := []yieldaggregatortypes.SymbolInfo {
62- {
63- Symbol : "ATOM" ,
64- NativeChainId : "cosmoshub-4" ,
65- Channels : []yieldaggregatortypes.TransferChannel {
84+ interAcc = yieldaggregatortypes.IntermediaryAccountInfo {
85+ Addrs : []yieldaggregatortypes.ChainAddress {
6686 {
67- SendChainId : "cosmoshub-4" ,
68- RecvChainId : "osmosis-1" ,
69- ChannelId : "channel-141" ,
87+ ChainId : "cosmoshub-4" ,
88+ Address : "cosmos1fvhcnyddukcqfnt7nlwv3thm5we22lyxyxylr9h77cvgkcn43xfs60ggw8" ,
7089 },
7190 {
72- SendChainId : "cosmoshub-4" ,
73- RecvChainId : "ununifi-beta-v1" ,
74- ChannelId : "channel-683" ,
91+ ChainId : "osmosis-1" ,
92+ Address : "osmo1fvhcnyddukcqfnt7nlwv3thm5we22lyxyxylr9h77cvgkcn43xfs0jssep" ,
7593 },
7694 },
77- },
78- }
79-
80- interAcc := yieldaggregatortypes.IntermediaryAccountInfo {
81- Addrs : []yieldaggregatortypes.ChainAddress {
82- {
83- ChainId : "cosmoshub-4" ,
84- Address : "cosmos1fvhcnyddukcqfnt7nlwv3thm5we22lyxyxylr9h77cvgkcn43xfs60ggw8" ,
85- },
86- {
87- ChainId : "osmosis-1" ,
88- Address : "osmo1fvhcnyddukcqfnt7nlwv3thm5we22lyxyxylr9h77cvgkcn43xfs0jssep" ,
89- },
90- },
95+ }
9196 }
9297
9398 for _ , denomInfo := range denomInfos {
0 commit comments