forked from ACINQ/phoenixd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a best-effort method for estimating liquidity fees (ACINQ#107)
Returns a best-effort **estimate** of liquidity fees for a given amount. Note that: - it depends on the current mining feerate, which is volatile - this estimate is the full cost, it doesn't take into account the `fee credit` (which will be deduced) - if you receive `A` sat with a setting of `--auto-liquidity B`, then the actual liquidity amount will be `A+B` sat. ``` ./phoenix-cli estimateliquidityfees --amountSat 2000000 { "miningFeeSat": 1219, "serviceFeeSat": 20000 } ``` See ACINQ#88,ACINQ#104.
- Loading branch information
1 parent
bab03bc
commit 3b8d32d
Showing
4 changed files
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters