Skip to content

Commit

Permalink
fix: allow tip equal bal (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
trkhoi authored Aug 29, 2023
1 parent 97fcc13 commit 8e008f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/entities/offchain_tip_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (e *Entity) TransferTokenV2(req request.TransferV2Request) (*response.Trans
return nil, errors.New(consts.OffchainTipBotFailReasonInvalidAmount)
}

if bal.Cmp(amount) != 1 {
if bal.Cmp(amount) < 0 {
return nil, errors.New(consts.OffchainTipBotFailReasonNotEnoughBalance)
}

Expand Down

0 comments on commit 8e008f0

Please sign in to comment.