Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshbalusu11 committed Oct 25, 2022
1 parent 2a0829e commit 03a1b63
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. See [standa

## [2.8.0](https://github.com/niteshbalusu11/lndboss/compare/v2.7.1...v2.8.0) (2022-10-25)

- Added support for auto fee policy based on channel inactivity periods.

### [2.7.1](https://github.com/niteshbalusu11/lndboss/compare/v2.7.0...v2.7.1) (2022-10-23)

- Fixed a bug where fee policy updates don't work for new channels.
Expand Down
49 changes: 29 additions & 20 deletions src/client/pages/schedulers/FeesScheduler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,26 @@ const FeesScheduler = () => {
onChange={(event, newValue) => handleRatioChange(index, event, newValue)}
/>

<Autocomplete
id={`inactivity-${index}`}
sx={{ display: 'inline-block' }}
freeSolo
multiple={true}
options={form.inactivity || []}
value={form.inactivity || []}
renderInput={params => (
<TextField
{...params}
label="Inactivity Period (Optional)"
placeholder="Inactivity Period (days)"
value={form.inactivity}
style={styles.textField}
id={`inactivity-${index}`}
/>
)}
onChange={(event, newValue) => handleInactivityPeriodChange(index, event, newValue)}
/>

<Autocomplete
id={`basefees-${index}`}
sx={{ display: 'inline-block' }}
Expand Down Expand Up @@ -341,26 +361,6 @@ const FeesScheduler = () => {
onChange={(event, newValue) => handleMaxHtlcRatioChange(index, event, newValue)}
/>

<Autocomplete
id={`inactivity-${index}`}
sx={{ display: 'inline-block' }}
freeSolo
multiple={true}
options={form.inactivity || []}
value={form.inactivity || []}
renderInput={params => (
<TextField
{...params}
label="Inactivity Period (Optional)"
placeholder="Inactivity Period (days)"
value={form.inactivity}
style={styles.textField}
id={`inactivity-${index}`}
/>
)}
onChange={(event, newValue) => handleInactivityPeriodChange(index, event, newValue)}
/>

<IconButton aria-label="delete" onClick={() => removeFields(index)} style={styles.iconButton}>
<DeleteIcon />
</IconButton>
Expand Down Expand Up @@ -437,6 +437,15 @@ const Instructions = () => {
bubble.
</li>

<br />
<h3>Inactivity Period (optional):</h3>
<li>Set fee policies based on how many days a channel was inactive.</li>
<li>Example: 30 means peers/tags selected had no route for 30 days.</li>
<li>
Works along with ratio ranges, the condition will always be outbound/capacity ratio && inactivity period when
executing.
</li>

<br />
<h3>Base Fees (msat, optional):</h3>
<li>Base fees in milli sats to apply, multiple values can be set in the same field.</li>
Expand Down

0 comments on commit 03a1b63

Please sign in to comment.