ZmnSCPxj [ARCHIVE] on Nostr: š
Original date posted:2019-03-14 š Original message: Good morning Rene and ...
š
Original date posted:2019-03-14
š Original message:
Good morning Rene and list,
Let us consider then the rule *when* a rebalancing would be beneficial to the node.
The node is offered a fee amount (`offered_fee_amount`) for the forwarding.
It knows that, under current channel states, it will definitely have to fail and earn 0 fees.
If it engages in JIT-routing, it must pay some fee (`rebalancing_fee_amount`) for the rebalancing operation.
But even if it successfully forwards its hop, it is still possible that the route will fail anyway and it will earn 0 fees.
So let us consider the probability of success (`success_rate`), a value between 0 to 1.0.
This is the estimated probability that we will succeed the route after we forward it.
We should only engage in JIT-routing if:
offered_fee_amount * success_rate - rebalancing_fee_amount > 0
The LHS of the subtraction is the expected earning, while the RHS of the subtraction is the expected cost.
The above is trivial accounting for determining net earnings.
The fee amounts are trivially computable.
Presumably the rebalancing code can compute the fee given a particular rebalance path, and thus can provide `rebalancing_fee_amount`.
The `success_rate` can be computed statically from some node data.
Better, is for the node to start with this precomputed static information, but augment this over time with its own experienced `success_rate` for all forwards.
Regards,
ZmnSCPxj
Published at
2023-06-09 12:54:22Event JSON
{
"id": "1b01a043c1ea6589443a6511f66721c7940d1e7cd1dc6a439b3009550a0ccf22",
"pubkey": "4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861",
"created_at": 1686315262,
"kind": 1,
"tags": [
[
"e",
"e16b9c1668cf2a7a6300336632b33aba4b8b719ccf4afc11121dece1a6d4f0be",
"",
"root"
],
[
"e",
"f8fe9721e2da64a6c5b419f9010db0cf7a0cb6a4bfee3dde035911c100e96603",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "š
Original date posted:2019-03-14\nš Original message:\nGood morning Rene and list,\n\nLet us consider then the rule *when* a rebalancing would be beneficial to the node.\n\nThe node is offered a fee amount (`offered_fee_amount`) for the forwarding.\nIt knows that, under current channel states, it will definitely have to fail and earn 0 fees.\n\nIf it engages in JIT-routing, it must pay some fee (`rebalancing_fee_amount`) for the rebalancing operation.\nBut even if it successfully forwards its hop, it is still possible that the route will fail anyway and it will earn 0 fees.\n\nSo let us consider the probability of success (`success_rate`), a value between 0 to 1.0.\nThis is the estimated probability that we will succeed the route after we forward it.\n\nWe should only engage in JIT-routing if:\n\n offered_fee_amount * success_rate - rebalancing_fee_amount \u003e 0\n\nThe LHS of the subtraction is the expected earning, while the RHS of the subtraction is the expected cost.\nThe above is trivial accounting for determining net earnings.\n\nThe fee amounts are trivially computable.\nPresumably the rebalancing code can compute the fee given a particular rebalance path, and thus can provide `rebalancing_fee_amount`.\n\nThe `success_rate` can be computed statically from some node data.\nBetter, is for the node to start with this precomputed static information, but augment this over time with its own experienced `success_rate` for all forwards.\n\nRegards,\nZmnSCPxj",
"sig": "b257c7baf93488e9578b43de440bdb14715d3a0a155617106c8cb378fd105b5409d3c91d6ca195a110c80b1d4401d613bbfa3bc6c4c7f94d23133509759adcc9"
}