Skip to content

Configuration

GET /wbr-config

Returns the default Weight Breaking Reward (WBR) configuration from Valkey.

bash
curl https://mainnet.api.ryze.pro/api/wbr-config

GET /wbr-config/:address

Returns the WBR configuration for a specific WBR config contract. Use the per-pool wbrConfigAddress from the pool state or the addresses listed in Contract Addresses.

bash
curl https://mainnet.api.ryze.pro/api/wbr-config/0x28Df9B99b09f2CADaaab28665Cd55bca6067163C

Response

json
{
  "wad": "1000000000000000000",
  "maxWbfWad": "990000000000000000",
  "maxExpArgWad": "20000000000000000000",
  "maxFeeBps": "10000",
  "maxSkewPenaltyWad": "40000000000000000",
  "maxWbfRateBps": "400",
  "maxWeightWad": "1000000000000000000",
  "weightThresholdWad": "550000000000000000",
  "weightThresholdLambdaWad": "550000000000000000",
  "weightThresholdLogWad": "800000000000000000",
  "weightThresholdSigmaWad": "550000000000000000",
  "weightMultiplierLogWad": "10000000000000000000",
  "weightHalfWad": "500000000000000000",
  "bQuoteAdjustmentWad": "0",
  "bOverflowCap": "1000000000000000000000000000000",
  "bSAnchorS": [
    "250000000000000000000",
    "1000000000000000000000",
    "10000000000000000000000",
    "100000000000000000000000",
    "500000000000000000000000",
    "1000000000000000000000000",
    "2500000000000000000000000",
    "5000000000000000000000000"
  ],
  "bSAnchorBpsWad": [
    "0",
    "2000000000000000000",
    "3000000000000000000",
    "6000000000000000000",
    "11000000000000000000",
    "15000000000000000000",
    "25000000000000000000",
    "45000000000000000000"
  ],
  "bSNumAnchors": "8",
  "fPowMultiplier": "5",
  "fPowExponentWad": "2500000000000000000",
  "fLogExponentMultiplier": "10",
  "fLogOverflowDivisor": "10",
  "smoothstepCoeff1": "3000000000000000000",
  "smoothstepCoeff2": "2000000000000000000",
  "wrrDivisor": "2",
  "wrrMaxBps": "200",
  "wrrWeightMaxWad": "850000000000000000",
  "basisPointsDivisor": "10000",
  "bpsToWadMultiplier": "100000000000000",
  "bMaxWad": "45000000000000000000",
  "weightThreshold055Wad": "550000000000000000",
  "weightThreshold065Wad": "550000000000000000"
}

Key Fields

FieldTypeDescription
weightThresholdWadstringBase weight threshold used by WBR/WBF math
bSAnchorSstring[]Trade-size anchors in WAD
bSAnchorBpsWadstring[]Reward-rate anchors in WAD basis-point units
bSNumAnchorsstringNumber of configured anchors
fPowMultiplierstringF-power multiplier
fPowExponentWadstringF-power exponent in WAD
wrrDivisorstringWRR divisor
wrrMaxBpsstringMaximum WRR basis points
wrrWeightMaxWadstringMaximum weight for WRR calculation
maxWbfRateBpsstringMaximum WBF rate in basis points
bMaxWadstringMaximum configured reward-rate anchor

All numeric values are returned as strings to preserve precision.

WBR Overview

The Weight Breaking Reward system has two components:

  1. Weight Breaking Fee (WBF): penalizes trades that move pool weights further from targets.
  2. Weight Breaking Reward (WBR): rewards trades that restore pool balance.

The fee or reward depends on the current pool weights, the trade size, and the active per-pool WBR configuration.