The Kraiken protocol is built on four core Solidity contracts deployed on Base. Every contract is immutable (except the upgradeable Optimizer) — what you see here is what runs on-chain.
Full source and verification will be published at mainnet launch.
ERC20 token with controlled minting/burning exclusively by the LiquidityManager. The staking pool grows proportionally with every mint — 20% of supply is reserved for staking positions.
Manages the three-position anti-arbitrage strategy on Uniswap V3 (1% fee tier). Handles FLOOR, ANCHOR, and DISCOVERY positions with dynamic parameter adjustment via the Optimizer. Uses 5-minute TWAP with 50-tick tolerance to prevent oracle manipulation.
Harberger tax-based staking with self-assessed valuations. 30-tier discrete tax rates prevent micro-increment snatching. Stakers set their own tax rate — higher rates protect against buyouts but cost more. Tax revenue flows back as UBI.
Binary bear/bull liquidity optimizer using a direct 2D mapping from (staking%, avgTax) to configuration. Bull requires >91% staked with low tax — any decline snaps instantly to bear mode. UUPS upgradeable proxy pattern allows parameter tuning without redeploying the core contracts.
View the full repository on Codeberg.