Skip to content

Commit

Permalink
feat(liquidator.go): add MempoolFeeRate to withdrawalRequest to allow…
Browse files Browse the repository at this point in the history
… for economy fee type

This change allows for more flexibility in fee types when making a withdrawal request.
  • Loading branch information
Jossec101 committed Dec 20, 2023
1 parent f86fa4a commit f9c40e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions liquidator.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,11 @@ func performSwap(info ManageChannelLiquidityInfo, channel *lnrpc.Channel, swapAm
//Request nodeguard to send the swap amount to the invoice address

withdrawalRequest := nodeguard.RequestWithdrawalRequest{
WalletId: rule.SwapWalletId,
Address: resp.InvoiceBTCAddress,
Amount: swapAmount,
Description: fmt.Sprintf("Swap %v", resp.SwapId),
WalletId: rule.SwapWalletId,
Address: resp.InvoiceBTCAddress,
Amount: swapAmount,
Description: fmt.Sprintf("Swap %v", resp.SwapId),
MempoolFeeRate: nodeguard.FEES_TYPE_ECONOMY_FEE,
}

withdrawalResponse, err := info.nodeguardClient.RequestWithdrawal(info.ctx, &withdrawalRequest)
Expand Down

0 comments on commit f9c40e3

Please sign in to comment.