Parameters
Protocol Parameters
| Parameter | Value | Description |
|---|---|---|
| HDL mint rate | 10 MOTO equivalent = 1 HDL | Fixed rate — does not change with NAV |
| Rebalance reward | 10 WRK | Minted to caller per successful rebalance |
| Rebalance trigger | ≥ 100 BPS (1%) | Minimum drift from target weights to allow rebalancing |
| MOTO target weight | 5000 BPS (50%) | Target allocation for MOTO |
| PILL target weight | 5000 BPS (50%) | Target allocation for PILL |
| Token decimals | 18 | All OP-20 tokens (HDL, WRK, MOTO, PILL) |
Contract Constants
| Constant | Value | Used for |
|---|---|---|
PRECISION | 10^18 | Fixed-point arithmetic scaling factor |
BPS_DENOMINATOR | 10,000 | Basis points denominator for weight calculations |
INITIAL_IDX_PRICE | 10 × 10^18 | Fixed mint rate (10 MOTO = 1 HDL, scaled) |
REBALANCE_REWARD | 10 × 10^18 | WRK minted per rebalance call (10 WRK, 18 decimals) |
MIN_DRIFT_BPS | 100 | Minimum drift in BPS to allow rebalancing |
RPC_URL_TESTNET | https://testnet.opnet.org | OPNet testnet JSON-RPC endpoint |
HODL Docs