Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,20 @@ so the protocol intentionally does not top it up. We simply keep an eye on it an
alarm if it drifts outside its `MIN`/`MAX` band. The shortfall is still computed and recorded,
but no refill is enqueued.

### AO balance checks
### AO balance checks (removed)

The three AO checks (`check-relay-registry`, `check-relay-rewards`,
`check-staking-rewards`) read the controllers' $AO token balances via an `aoconnect`
dry-run against `AO_TOKEN_PROCESS_ID`.
Three checks (`check-relay-registry`, `check-relay-rewards`, `check-staking-rewards`) used
to read the controllers' $AO token balances via an `aoconnect` dry-run against a legacynet
$AO token process, to keep those wallets topped up for message fees.

They are gated by `AO_BALANCE_CHECKS_ENABLED` and are **currently disabled in deployment**
(`AO_BALANCE_CHECKS_ENABLED="false"`): AO processes do not require $AO for gas/transaction
fees yet, so there is nothing to keep topped up. The checks remain in place so they can be
switched on the moment AO begins charging fees. When disabled, these jobs short-circuit and
report a zero balance.
They were removed in the HyperBEAM migration (D17). They had already been disabled in both
live and stage (`AO_BALANCE_CHECKS_ENABLED="false"`) because AO was not charging fees, and
the migration settles the question: we run our own node and pay no per-message $AO, so there
is no balance to deplete and nothing for the checks to observe.

Nothing was refilled by them either — unlike the bundler, rewards-pool and Turbo checks,
they computed a `requestAmount` but never enqueued a refill, so removing them unwinds no
funding path. This service no longer talks to AO at all.

---

Expand Down Expand Up @@ -286,18 +289,13 @@ single-node mode.
| `BUNDLER_OPERATOR_JWK` | Arweave JWK of the bundler operator being monitored |
| `BUNDLER_MIN_AR` / `MAX_AR` | $AR thresholds for the bundler |

### AO checks
### Controller addresses

| Variable | Default | Description |
|----------|---------|-------------|
| `AO_BALANCE_CHECKS_ENABLED` | enabled unless `"false"` | Toggles all $AO balance checks (disabled in deployment) |
| `AO_TOKEN_PROCESS_ID` | — | AO process ID of the $AO token |
| `OPERATOR_REGISTRY_CONTROLLER_ADDRESS` | — | Operator Registry controller (also used for Turbo check) |
| `OPERATOR_REGISTRY_OPERATOR_MIN_AO_BALANCE` / `MAX` | — | $AO thresholds |
| `RELAY_REWARDS_CONTROLLER_ADDRESS` | — | Relay Rewards controller (also used for Turbo check) |
| `RELAY_REWARDS_OPERATOR_MIN_AO_BALANCE` / `MAX` | — | $AO thresholds |
| `STAKING_REWARDS_CONTROLLER_ADDRESS` | — | Staking Rewards controller (also used for Turbo check) |
| `STAKING_REWARDS_OPERATOR_MIN_AO_BALANCE` / `MAX` | — | $AO thresholds |
| `OPERATOR_REGISTRY_CONTROLLER_ADDRESS` | — | Operator Registry controller (Turbo credits check) |
| `RELAY_REWARDS_CONTROLLER_ADDRESS` | — | Relay Rewards controller (Turbo credits check) |
| `STAKING_REWARDS_CONTROLLER_ADDRESS` | — | Staking Rewards controller (Turbo credits check) |

### Turbo Credits

Expand Down
8 changes: 0 additions & 8 deletions operations/operator-checks-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,12 @@ job "operator-checks-live" {
PORT="${NOMAD_PORT_http}"
REDIS_MODE="sentinel"
REDIS_MASTER_NAME="operator-checks-live-redis-master"
AO_BALANCE_CHECKS_ENABLED="false"
HODLER_OPERATOR_MIN_ETH="0.01"
HODLER_OPERATOR_MAX_ETH="0.1"
REWARDS_POOL_MIN_TOKEN=50000
REWARDS_POOL_MAX_TOKEN=100000
BUNDLER_MIN_AR=1
BUNDLER_MAX_AR=2
OPERATOR_REGISTRY_OPERATOR_MIN_AO_BALANCE=100
OPERATOR_REGISTRY_OPERATOR_MAX_AO_BALANCE=1000
RELAY_REWARDS_OPERATOR_MIN_AO_BALANCE=100
RELAY_REWARDS_OPERATOR_MAX_AO_BALANCE=1000
STAKING_REWARDS_OPERATOR_MIN_AO_BALANCE=100
STAKING_REWARDS_OPERATOR_MAX_AO_BALANCE=1000
TURBO_DEPLOYER_MIN_CREDITS=0.5
TURBO_DEPLOYER_MAX_CREDITS=2
TURBO_OPERATOR_REGISTRY_MIN_CREDITS=0.5
Expand All @@ -58,7 +51,6 @@ job "operator-checks-live" {
TURBO_RELAY_REWARDS_MAX_CREDITS=2
TURBO_STAKING_REWARDS_MIN_CREDITS=0.5
TURBO_STAKING_REWARDS_MAX_CREDITS=2
AO_TOKEN_PROCESS_ID="0syT13r0s0tgPmIed95bJnuSqaD29HQNN8D3ElLSrsc"
IS_LOCAL_LEADER="true"
CPU_COUNT="1"
CONSUL_HOST="${NOMAD_IP_http}"
Expand Down
8 changes: 0 additions & 8 deletions operations/operator-checks-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,12 @@ job "operator-checks-stage" {
PORT="${NOMAD_PORT_http}"
REDIS_MODE="sentinel"
REDIS_MASTER_NAME="operator-checks-stage-redis-master"
AO_BALANCE_CHECKS_ENABLED="false"
HODLER_OPERATOR_MIN_ETH="1"
HODLER_OPERATOR_MAX_ETH="5"
REWARDS_POOL_MIN_TOKEN=100000
REWARDS_POOL_MAX_TOKEN=250000
BUNDLER_MIN_AR=1
BUNDLER_MAX_AR=2
OPERATOR_REGISTRY_OPERATOR_MIN_AO_BALANCE=100
OPERATOR_REGISTRY_OPERATOR_MAX_AO_BALANCE=1000
RELAY_REWARDS_OPERATOR_MIN_AO_BALANCE=100
RELAY_REWARDS_OPERATOR_MAX_AO_BALANCE=1000
STAKING_REWARDS_OPERATOR_MIN_AO_BALANCE=100
STAKING_REWARDS_OPERATOR_MAX_AO_BALANCE=1000
TURBO_DEPLOYER_MIN_CREDITS=0.5
TURBO_DEPLOYER_MAX_CREDITS=2
TURBO_OPERATOR_REGISTRY_MIN_CREDITS=0.5
Expand All @@ -58,7 +51,6 @@ job "operator-checks-stage" {
TURBO_RELAY_REWARDS_MAX_CREDITS=2
TURBO_STAKING_REWARDS_MIN_CREDITS=0.5
TURBO_STAKING_REWARDS_MAX_CREDITS=2
AO_TOKEN_PROCESS_ID="0syT13r0s0tgPmIed95bJnuSqaD29HQNN8D3ElLSrsc"
IS_LOCAL_LEADER="true"
CPU_COUNT="1"
CONSUL_HOST="${NOMAD_IP_http}"
Expand Down
Loading