HODLHODL Docs

Parameters


Protocol Parameters

ParameterValueDescription
HDL mint rate10 MOTO equivalent = 1 HDLFixed rate — does not change with NAV
Rebalance reward10 WRKMinted to caller per successful rebalance
Rebalance trigger≥ 100 BPS (1%)Minimum drift from target weights to allow rebalancing
MOTO target weight5000 BPS (50%)Target allocation for MOTO
PILL target weight5000 BPS (50%)Target allocation for PILL
Token decimals18All OP-20 tokens (HDL, WRK, MOTO, PILL)

Contract Constants

ConstantValueUsed for
PRECISION10^18Fixed-point arithmetic scaling factor
BPS_DENOMINATOR10,000Basis points denominator for weight calculations
INITIAL_IDX_PRICE10 × 10^18Fixed mint rate (10 MOTO = 1 HDL, scaled)
REBALANCE_REWARD10 × 10^18WRK minted per rebalance call (10 WRK, 18 decimals)
MIN_DRIFT_BPS100Minimum drift in BPS to allow rebalancing
RPC_URL_TESTNEThttps://testnet.opnet.orgOPNet testnet JSON-RPC endpoint