Skip to content

Commit

Permalink
allow deduct fee event when outdated hostzone
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantran1702 committed May 27, 2024
1 parent 91ea0d1 commit 510e26f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions x/feeabs/ante/decorate.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ func (fadfd FeeAbstractionDeductFeeDecorate) abstractionDeductFeeHandler(ctx sdk
return ctx, sdkerrors.Wrap(feeabstypes.ErrHostZoneFrozen, "cannot deduct fee as host zone is frozen")
}

if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED {
return ctx, sdkerrors.Wrap(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated")
}
// if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED {
// return ctx, sdkerrors.Wrap(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated")
// }

fee := feeTx.GetFee()
feePayer := feeTx.FeePayer()
Expand Down Expand Up @@ -277,9 +277,9 @@ func (famfd FeeAbstrationMempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk
return ctx, sdkerrors.Wrapf(feeabstypes.ErrHostZoneFrozen, "cannot deduct fee as host zone is frozen")
}

if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED {
return ctx, sdkerrors.Wrapf(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated")
}
// if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED {
// return ctx, sdkerrors.Wrapf(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated")
// }

nativeCoinsFees, err := famfd.feeabsKeeper.CalculateNativeFromIBCCoins(ctx, feeCoinsNonZeroDenom, hostChainConfig)
if err != nil {
Expand Down

0 comments on commit 510e26f

Please sign in to comment.