We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684db85 commit bb35e03Copy full SHA for bb35e03
assets/client.go
@@ -105,8 +105,12 @@ func (c *TapdClient) GetRfqForAsset(ctx context.Context,
105
expiry int64, feeLimitMultiplier float64) (
106
*rfqrpc.PeerAcceptedSellQuote, error) {
107
108
+ // FeeLimit is the maximum amount we are willing to pay for the payment.
109
+ // E.g. on a 250k sats payment we'll multiply the sat amount by 1.2.
110
+ // The resulting maximum amount we're willing to pay is 300k sats.
111
+ // The response asset amount will be for those 300k sats.
112
feeLimit, err := lnrpc.UnmarshallAmt(
- int64(satAmount)+int64(satAmount.MulF64(feeLimitMultiplier)), 0,
113
+ int64(satAmount.MulF64(feeLimitMultiplier)), 0,
114
)
115
if err != nil {
116
return nil, err
0 commit comments