@@ -79,16 +79,16 @@ func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState) {
79
79
funcs .MustNoErr (k .SetRateLimit (ctx , rateLimit .Chain , rateLimit .Limit , rateLimit .Window ))
80
80
}
81
81
82
- for _ , transferRate := range genState .TransferRates {
83
- if _ , ok := k .GetChain (ctx , transferRate .Chain ); ! ok {
84
- panic (fmt .Errorf ("chain %s not found" , transferRate .Chain ))
82
+ for _ , transferEpoch := range genState .TransferEpochs {
83
+ if _ , ok := k .GetChain (ctx , transferEpoch .Chain ); ! ok {
84
+ panic (fmt .Errorf ("chain %s not found" , transferEpoch .Chain ))
85
85
}
86
86
87
- if _ , found := k .getTransferRate (ctx , transferRate .Chain , transferRate .Amount .Denom , transferRate .Direction ); found {
88
- panic (fmt .Errorf ("transfer rate for chain %s (%s) and asset %s already registered" , transferRate .Chain , transferRate .Direction , transferRate .Amount .Denom ))
87
+ if _ , found := k .getTransferEpoch (ctx , transferEpoch .Chain , transferEpoch .Amount .Denom , transferEpoch .Direction ); found {
88
+ panic (fmt .Errorf ("transfer rate for chain %s (%s) and asset %s already registered" , transferEpoch .Chain , transferEpoch .Direction , transferEpoch .Amount .Denom ))
89
89
}
90
90
91
- k .setTransferRate (ctx , transferRate )
91
+ k .setTransferEpoch (ctx , transferEpoch )
92
92
}
93
93
}
94
94
@@ -104,6 +104,6 @@ func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState {
104
104
k .getTransferFee (ctx ),
105
105
k .getFeeInfos (ctx ),
106
106
k .getRateLimits (ctx ),
107
- k .getTransferRates (ctx ),
107
+ k .getTransferEpochs (ctx ),
108
108
)
109
109
}
0 commit comments