Configuration
GET /wbr-config
Returns the default Weight Breaking Reward (WBR) configuration from Valkey.
bash
curl https://mainnet.api.ryze.pro/api/wbr-configGET /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/0x28Df9B99b09f2CADaaab28665Cd55bca6067163CResponse
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
| Field | Type | Description |
|---|---|---|
weightThresholdWad | string | Base weight threshold used by WBR/WBF math |
bSAnchorS | string[] | Trade-size anchors in WAD |
bSAnchorBpsWad | string[] | Reward-rate anchors in WAD basis-point units |
bSNumAnchors | string | Number of configured anchors |
fPowMultiplier | string | F-power multiplier |
fPowExponentWad | string | F-power exponent in WAD |
wrrDivisor | string | WRR divisor |
wrrMaxBps | string | Maximum WRR basis points |
wrrWeightMaxWad | string | Maximum weight for WRR calculation |
maxWbfRateBps | string | Maximum WBF rate in basis points |
bMaxWad | string | Maximum configured reward-rate anchor |
All numeric values are returned as strings to preserve precision.
WBR Overview
The Weight Breaking Reward system has two components:
- Weight Breaking Fee (WBF): penalizes trades that move pool weights further from targets.
- 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.