Skip to content

Commit

Permalink
fix c&p error
Browse files Browse the repository at this point in the history
  • Loading branch information
bumi committed Jun 30, 2023
1 parent 68e0121 commit 9b17f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (svc *LndhubService) CalcFeeLimit(destination string, amount int64) int64 {
if amount > 1000 {
limit = int64(math.Ceil(float64(amount)*float64(0.01)) + 1)
}
if amount > svc.Config.MaxFeeAmount {
if limit > svc.Config.MaxFeeAmount {
limit = svc.Config.MaxFeeAmount
}
return limit
Expand Down

0 comments on commit 9b17f35

Please sign in to comment.