DeFi · Staking protocol · 2026Verified on Sepolia
Axiom
Staking with an O(1) reward-per-token accumulator, emergency pause and always-open exits.
- Coverage
- 100% core
- Architecture
- 3 contracts
- Rewards
- O(1) accumulator
01 The problem
Naive staking contracts loop over every staker to distribute rewards, so gas grows with users until the contract becomes unusable.
A three-contract system using a Synthetix-style global accumulator: rewards per token are tracked once, and each account settles its share lazily in constant time.
02 How it works
Hover or tap a step
03 What I built
- 01StakingVault, StakeToken and RewardToken with an interface-based architecture.
- 02Controlled reward emissions and a fee on withdrawal.
- 03An emergency pause that blocks deposits but never traps funds: exits always stay open.
- 04Unit, fuzz and invariant suites with 100% coverage on all three contracts.
06 Verify it on-chain
StakingVault
Sepolia