Skip to content

Commit

Permalink
Merge pull request #145 from notional-labs/ducnt/channel
Browse files Browse the repository at this point in the history
Use source channel directly from param
  • Loading branch information
GNaD13 authored Apr 27, 2023
2 parents 7d9c49f + 700a764 commit 645bee5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x/feeabs/keeper/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ func (k Keeper) handleOsmosisIbcQuery(ctx sdk.Context) error {
params := k.GetParams(ctx)

var reqs []types.QueryArithmeticTwapToNowRequest
var queryChannel string
k.IterateHostZone(ctx, func(hostZoneConfig types.HostChainFeeAbsConfig) (stop bool) {
req := types.NewQueryArithmeticTwapToNowRequest(
hostZoneConfig.PoolId,
Expand All @@ -311,10 +310,9 @@ func (k Keeper) handleOsmosisIbcQuery(ctx sdk.Context) error {
startTime,
)
reqs = append(reqs, req)
queryChannel = params.IbcQueryIcqChannel
return false
})
err := k.SendOsmosisQueryRequest(ctx, reqs, types.IBCPortID, queryChannel)
err := k.SendOsmosisQueryRequest(ctx, reqs, types.IBCPortID, params.IbcQueryIcqChannel)
if err != nil {
return err
}
Expand Down

0 comments on commit 645bee5

Please sign in to comment.