Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/btcsuite/bt…
Browse files Browse the repository at this point in the history
…cd-0.24.2-beta.rc1
  • Loading branch information
Jossec101 authored Oct 15, 2024
2 parents 44eb4d1 + 779047c commit 2c8e6d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions provider/loop_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,7 @@ func (l *LoopProvider) RequestReverseSubmarineSwap(ctx context.Context, request
maximumFeesAllowed := int64(float64(request.SatsAmount) * limitQuoteFees)

if sumFees > maximumFeesAllowed {
err := fmt.Errorf("swap quote fees (L1+Service estimation fees) are greater than max limit fees, quote fees: %d, maximum fees allowed: %d", sumFees, maximumFeesAllowed)
log.Error(err)
return ReverseSubmarineSwapResponse{}, err
log.Warnf("swap quote fees (L1+Service estimation fees) are greater than max limit fees, quote fees: %d, maximum fees theoretically allowed: %d", sumFees, maximumFeesAllowed)
}

//Max swap routing fee (L2 fees) is a percentage of the swap amount
Expand Down

0 comments on commit 2c8e6d0

Please sign in to comment.