Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Feb 9, 2024
1 parent d4577b7 commit cd830fb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/crosschain/keeper/msg_server_refund_aborted_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ func (k msgServer) RefundAbortedCCTX(goCtx context.Context, msg *types.MsgRefund
}

// Check if aborted amount is available to maintain zeta accounting
// NOTE: Need to verify if this check works / is required in athens 3
if cctx.InboundTxParams.CoinType == common.CoinType_Zeta {
err := k.RemoveZetaAbortedAmount(ctx, GetAbortedAmount(cctx))
// if the zeta accounting is not found, it means the zeta accounting is not set yet and the refund should not be processed
if errors.Is(err, types.ErrUnableToFindZetaAccounting) {
return nil, errorsmod.Wrap(types.ErrUnableProcessRefund, err.Error())
}
// if the zeta accounting is found but the amount is insufficient, it means the refund can be processed but the zeta accounting is not maintained properly
// aborted amounts for zeta accounting would need to be updated in the envionment via a migration script
if errors.Is(err, types.ErrInsufficientZetaAmount) {
ctx.Logger().Error("Zeta Accounting Error: ", err)
}
Expand Down

0 comments on commit cd830fb

Please sign in to comment.