Skip to content

Commit

Permalink
added todo. to not forgot.
Browse files Browse the repository at this point in the history
  • Loading branch information
RustNinja committed May 22, 2024
1 parent f604b8e commit 99eb137
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom/custompfm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@ func (im IBCMiddleware) OnRecvPacket(
return newErrorAcknowledgement(fmt.Errorf("error charging fee: %w", err))
}
if result != nil {
if token.Amount.LTE(result.Fee.Amount) {
if token.Amount.GTE(result.Fee.Amount) {
token = token.SubAmount(result.Fee.Amount)
} else {
//bank.send..........
ack := channeltypes.NewResultAcknowledgement([]byte{byte(1)}) //??????
return ack
// logger.Error("fee is greater than the amount", "error")
Expand Down

0 comments on commit 99eb137

Please sign in to comment.