loop/staticaddr/loopin
Boris Nagaev 8d6df2bf20
staticaddr: use dp autoloop selector
Replace the recursive full-deposit autoloop selector with a bounded-memory
DP implementation in staticaddr/loopin/autoloop_dp.go. The new selector
keeps the existing no-change semantics, first finds the best reachable
total, then applies the 25 percent band rule so earlier-expiring deposits
can win inside that near-optimal range.

The DP table is capped at 128 MiB and keeps exact satoshi sums alongside
compressed bucket weights, so planning stays memory-bounded without
allowing oversized candidates. The compressed weighting now rounds down
with a minimum of one bucket, which avoids rejecting valid sums after
multiple per-deposit rounding steps while leaving the exact-sum check
as the real safety boundary.
2026-05-22 02:20:36 -05:00
..
actions.go Revert "staticaddr: support dynamic deposit confirmation requirements" 2026-03-13 11:18:42 +01:00
actions_test.go staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
autoloop.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_dp.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_dp_test.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_test.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
deduce_amount_test.go staticaddr: arbitrary loop-in amount 2025-09-25 11:13:34 +02:00
deposit_swaphash_migration.go staticaddr: migrate swap hashes to deposits 2025-08-01 11:26:32 +02:00
deposit_swaphash_migration_test.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
fsm.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
interface.go staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
loopin.go liquidity: count static loop-ins 2026-05-22 02:20:36 -05:00
loopin_test.go staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
manager.go loopd: validate static loop-in labels at rpc 2026-05-22 02:20:36 -05:00
manager_test.go staticaddr: add autoloop loop-in prep 2026-05-22 02:20:36 -05:00
selected_amount_migration.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
selected_amount_migration_test.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
sql_store.go liquidity: count static loop-ins 2026-05-22 02:20:36 -05:00
sql_store_test.go liquidity: count static loop-ins 2026-05-22 02:20:36 -05:00