Lux Restaking allows staked LUX (or sLUX/xLUX from LP-045) to secure additional services (AVSes -- Actively Validated Services) beyond the base Lux consensus. Restakers opt into AVSes, granting them slashing rights over the restaked capital. In return, restakers earn additional yield from AVS fees. This creates a marketplace for cryptoeconomic security where new protocols can bootstrap security without their own validator set.
The central contract manages restaking positions:
struct Restaker {
address owner;
uint256 stakedAmount; // native LUX or LST (sLUX/xLUX)
address[] optedAVSes; // AVSes this restaker has opted into
mapping(address => uint256) avsBond; // per-AVS slashable bond
}
An Actively Validated Service registers with the restaking protocol:
AVS {
address avsContract; // AVS logic contract
uint256 minBond; // minimum restaked amount per operator
uint256 maxSlashPct; // maximum slashable percentage (e.g., 50%)
address slashOracle; // contract that can trigger slashing
uint256 rewardRate; // LUX/second distributed to restakers
}
1. Restaker deposits LUX or LST into RestakingManager
2. Restaker calls optInToAVS(avsAddress, bondAmount)
3. Bond is locked and slashable by the AVS
4. Restaker begins earning AVS rewards
When an AVS detects misbehavior:
1. slashOracle submits a slashing proof to RestakingManager
2. RestakingManager verifies the proof against AVS-specific validation logic
3. Slashed amount (up to maxSlashPct of bond) is burned or sent to the AVS insurance fund
4. Restaker's position is reduced
Restakers can withdraw unstaked capital after an unbonding period:
Restakers can delegate to operators who run AVS infrastructure:
1. Cascading slashing: a restaker opted into multiple AVSes can be slashed by all simultaneously. Maximum total slashing is the full bond.
2. AVS risk assessment: restakers must evaluate AVS slashing conditions. Malicious AVSes could slash unjustly. The maxSlashPct cap limits damage.
3. Economic security: an AVS's security is bounded by the total restaked capital opted in. New AVSes may have low initial security.
github.com/luxfi/standard/contracts/restaking/ |RestakingManager.sol |AVSRegistry.sol |Copyright (C) 2024-2026, Lux Partners Limited. All rights reserved.
Licensed under the MIT License.