diff --git a/components/FeeBreakdown.tsx b/components/FeeBreakdown.tsx
index 38a8547d4..9fa960c5f 100644
--- a/components/FeeBreakdown.tsx
+++ b/components/FeeBreakdown.tsx
@@ -146,6 +146,33 @@ export default class FeeBreakdown extends React.Component<
}%`}
sensitive
/>
+
+ }
+ />
+
)}
{isClosed && (
diff --git a/components/SetFeesForm.tsx b/components/SetFeesForm.tsx
index ea6b6adf0..16449f4c0 100644
--- a/components/SetFeesForm.tsx
+++ b/components/SetFeesForm.tsx
@@ -24,6 +24,8 @@ interface SetFeesFormProps {
SettingsStore?: SettingsStore;
baseFee?: string;
feeRate?: string;
+ baseFeeInbound: string;
+ feeRateInbound: string;
timeLockDelta?: string;
channelPoint?: string;
channelId?: string;
@@ -36,8 +38,8 @@ interface SetFeesFormState {
feesSubmitted: boolean;
newBaseFee: string;
newFeeRate: string;
- baseFeeInbound: string;
- feeRateInbound: string;
+ newBaseFeeInbound: string;
+ newFeeRateInbound: string;
newTimeLockDelta: string;
newMinHtlc: string;
newMaxHtlc: string;
@@ -56,8 +58,8 @@ export default class SetFeesForm extends React.Component<
feesSubmitted: false,
newBaseFee: props.baseFee || '',
newFeeRate: props.feeRate || '',
- baseFeeInbound: '',
- feeRateInbound: '',
+ newBaseFeeInbound: props.baseFeeInbound || '',
+ newFeeRateInbound: props.feeRateInbound || '',
newTimeLockDelta: props.timeLockDelta || '',
newMinHtlc: props.minHtlc || '',
newMaxHtlc: props.maxHtlc || ''
@@ -69,8 +71,8 @@ export default class SetFeesForm extends React.Component<
feesSubmitted,
newBaseFee,
newFeeRate,
- baseFeeInbound,
- feeRateInbound,
+ newBaseFeeInbound,
+ newFeeRateInbound,
newTimeLockDelta,
newMinHtlc,
newMaxHtlc
@@ -81,6 +83,8 @@ export default class SetFeesForm extends React.Component<
SettingsStore,
baseFee,
feeRate,
+ baseFeeInbound,
+ feeRateInbound,
timeLockDelta,
channelPoint,
channelId,
@@ -165,15 +169,17 @@ export default class SetFeesForm extends React.Component<
>
{`${localeString(
'components.SetFeesForm.baseFee'
- )} Inbound (${localeString('general.sats')})`}
+ )} ${localeString(
+ 'views.Channel.inbound'
+ )} (${localeString('general.sats')})`}
this.setState({
- baseFeeInbound: text
+ newBaseFeeInbound: text
})
}
autoCapitalize="none"
@@ -187,15 +193,17 @@ export default class SetFeesForm extends React.Component<
>
{`${localeString(
'components.SetFeesForm.feeRate'
- )} Inbound (${localeString('general.percentage')})`}
+ )} ${localeString(
+ 'views.Channel.inbound'
+ )} (${localeString('general.percentage')})`}
this.setState({
- feeRateInbound: text
+ newFeeRateInbound: text
})
}
autoCapitalize="none"
@@ -284,8 +292,8 @@ export default class SetFeesForm extends React.Component<
setFees(
newBaseFee,
newFeeRate,
- baseFeeInbound,
- feeRateInbound,
+ newBaseFeeInbound,
+ newFeeRateInbound,
Number(newTimeLockDelta),
channelPoint,
channelId,
diff --git a/locales/en.json b/locales/en.json
index 6e13aaac0..ec78224db 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -351,6 +351,9 @@
"views.Channel.localBaseFee": "Local Base Fee",
"views.Channel.remoteFeeRate": "Remote Fee Rate",
"views.Channel.remoteBaseFee": "Remote Base Fee",
+ "views.Channel.inbound": "Inbound",
+ "views.Channel.inboundBaseFee": "Inbound Base Fee",
+ "views.Channel.inboundFeeRate": "Inbound Fee Fee",
"views.Channel.feeRate": "Fee Rate",
"views.Channel.channelPayments": "Channel Payments",
"views.Channel.localMin": "Local Min",
diff --git a/models/ChannelInfo.ts b/models/ChannelInfo.ts
index c452f1921..54bf91e27 100644
--- a/models/ChannelInfo.ts
+++ b/models/ChannelInfo.ts
@@ -6,6 +6,8 @@ interface RoutingPolicy {
min_htlc: string;
fee_base_msat: string;
fee_rate_milli_msat: string;
+ inbound_fee_base_msat: string;
+ inbound_fee_rate_milli_msat: string;
disabled: boolean;
max_htlc_msat: string;
last_update: number;
diff --git a/views/Routing/SetFees.tsx b/views/Routing/SetFees.tsx
index eb666142f..b4f7c5a8a 100644
--- a/views/Routing/SetFees.tsx
+++ b/views/Routing/SetFees.tsx
@@ -102,6 +102,13 @@ export default class SetFees extends React.PureComponent {
feeRate={`${
Number(policy.fee_rate_milli_msat) / 10000
}`}
+ baseFeeInbound={`${
+ Number(policy.inbound_fee_base_msat) / 1000
+ }`}
+ feeRateInbound={`${
+ Number(policy.inbound_fee_rate_milli_msat) /
+ 10000
+ }`}
timeLockDelta={policy.time_lock_delta.toString()}
minHtlc={`${Number(policy.min_htlc) / 1000}`}
maxHtlc={`${