Skip to content

Commit

Permalink
Merge pull request #82 from getAlby/fixed-fee-limit
Browse files Browse the repository at this point in the history
Set fixed fee limit
  • Loading branch information
kiwiidb authored Jan 31, 2022
2 parents 60a13d9 + 2f44889 commit db8fb00
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/service/invoices.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,13 @@ func (svc *LndhubService) SendInternalPayment(tx *bun.Tx, invoice *models.Invoic

func (svc *LndhubService) SendPaymentSync(tx *bun.Tx, invoice *models.Invoice) (SendPaymentResponse, error) {
sendPaymentResponse := SendPaymentResponse{}
// TODO: set fee limit
// TODO: set dynamic fee limit
feeLimit := lnrpc.FeeLimit{
Limit: &lnrpc.FeeLimit_Percent{
Percent: 2,
//Limit: &lnrpc.FeeLimit_Percent{
// Percent: 2,
//},
Limit: &lnrpc.FeeLimit_Fixed{
Fixed: 300,
},
}

Expand Down

0 comments on commit db8fb00

Please sign in to comment.