Skip to content

Commit

Permalink
Merge pull request #451 from breez/ubbabeck/expose_exemptfee
Browse files Browse the repository at this point in the history
Expose exemptfee to sdk-flutter
  • Loading branch information
ubbabeck authored Sep 13, 2023
2 parents 2f60262 + bdbb28e commit c5379fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/sdk-flutter/lib/breez_bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ extension SDKConfig on Config {
String? defaultLspId,
String? apiKey,
double? maxfeePercent,
int? exemptfeeMsat,
NodeConfig? nodeConfig,
}) {
return Config(
Expand All @@ -464,6 +465,7 @@ extension SDKConfig on Config {
defaultLspId: defaultLspId ?? this.defaultLspId,
apiKey: apiKey ?? this.apiKey,
maxfeePercent: maxfeePercent ?? this.maxfeePercent,
exemptfeeMsat: exemptfeeMsat ?? this.exemptfeeMsat,
nodeConfig: nodeConfig ?? this.nodeConfig,
);
}
Expand Down
4 changes: 4 additions & 0 deletions libs/sdk-flutter/lib/bridge_generated.dart
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,11 @@ class Config {
final int paymentTimeoutSec;
final String? defaultLspId;
final String? apiKey;

/// Maps to the CLN `maxfeepercent` config when paying invoices (`lightning-pay`)
final double maxfeePercent;

/// Maps to the CLN `exemptfee` config when paying invoices (`lightning-pay`)
final int exemptfeeMsat;
final NodeConfig nodeConfig;

Expand Down

0 comments on commit c5379fc

Please sign in to comment.