mirror of https://github.com/lightninglabs/loop
liquidity: add calculations for threshold rule
parent
7a3dcc3a89
commit
cd8a7704af
@ -0,0 +1,18 @@
|
|||||||
|
package liquidity
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/btcsuite/btcutil"
|
||||||
|
)
|
||||||
|
|
||||||
|
// balances summarizes the state of the balances of a channel. Channel reserve,
|
||||||
|
// fees and pending htlc balances are not included in these balances.
|
||||||
|
type balances struct {
|
||||||
|
// capacity is the total capacity of the channel.
|
||||||
|
capacity btcutil.Amount
|
||||||
|
|
||||||
|
// incoming is the remote balance of the channel.
|
||||||
|
incoming btcutil.Amount
|
||||||
|
|
||||||
|
// outgoing is the local balance of the channel.
|
||||||
|
outgoing btcutil.Amount
|
||||||
|
}
|
Loading…
Reference in New Issue