# Amount ladder modules Glued by `../check_amount_ladder.sh` (phase entry: `ladder` / `max-ladder`). | Path | Role | |------|------| | `extract_rpubs.py` | Force-select: scrape `reservePub` from wallet dumps (no bash heredoc) | | `lib_pay.sh` | **Payment** ladder: free-amount template orders, classic pay list, max-search highest **payable** ≤ available | | *(withdraw stays in `check_amount_ladder.sh`)* | **Withdraw** ladder: classic 23-rung plan + max-search highest **withdrawable** | Phase alias `goa-ladder` maps to `check_amount_ladder.sh` (no separate goa_ladder script). ## Modes - **classic** (default): withdraw plan 0→mids→max-1→max, then matching pay plan (never overspend). - **max** (`max-ladder`): adaptive max withdraw, then adaptive max pay via public free template (hacktivism: `goa-free`). ## Env (pay) | Variable | Default | Meaning | |----------|---------|---------| | `LADDER_PAY` | `1` | `0` = skip all pays | | `LADDER_USE_FREE_TEMPLATE` | `1` | public POST template with `{"amount":…}` | | `LADDER_FREE_TEMPLATE` | `goa-free` | template id (hacktivism) | | `LADDER_FREE_TEMPLATE_INSTANCE` | merchant instance | e.g. `goa-demo-cp4zqk` |