← Back to Lab
Its rules
Its rules
Hard limits
The rules the AI cannot change, written into code that cannot be edited.
10 immutable limitsSample dataConstants shown are the design values for the sample deployment.
Table
Immutable limits
| ID | Constant | Value | Meaning | Enforced by |
|---|---|---|---|---|
| H-01 | MAX_FEE_BPS | 500 | Hook fee can never exceed 5.00%. | Hook.sol: require(fee <= MAX_FEE_BPS) |
| H-02 | EXTERNAL_FEE_BPS | 30 | External fee is fixed at 0.30%. | immutable |
| H-03 | TOTAL_SUPPLY | 1_000_000_000e18 | Supply is fixed. No mint function exists. | Token.sol: no mint, constructor mints once |
| H-04 | CUSTODY | none | No function can move, freeze or blacklist holder balances. | Token.sol: plain ERC-20, no hooks on transfer |
| H-05 | TIMELOCK | 172800 s | Changes outside bounded AI parameters wait 48 hours. | Timelock.sol: MIN_DELAY |
| H-06 | LIQ_LOCK | 365 days | Initial liquidity is locked for one year. | Locker.sol: unlockAt |
| H-07 | LAUNCH_TAX | 2000 → decays | Launch tax starts at 20% and decays inside the first hour. | Hook.sol: launchTax() |
| H-08 | MAX_EXPOSURE | 2500 bps | No live test may touch more than 25% of swaps. | Mutation.sol: MAX_EXPOSURE |
| H-09 | MAX_WEEKLY_SPEND | 0.25 ether | Sequencer spending cap per week. | Budget.sol: weeklyCap |
| H-10 | UPGRADES | none | Token and limits contracts have no proxy and no owner. | No delegatecall, no selfdestruct |
Code
The fee check
function setFee(uint24 buyBps, uint24 sellBps) external onlyController {
require(buyBps <= MAX_FEE_BPS, "H-01");
require(sellBps <= MAX_FEE_BPS, "H-01");
require(_asymmetry(buyBps, sellBps) <= MAX_ASYMMETRY, "bounds");
fee = FeePair(buyBps, sellBps);
emit FeeSet(buyBps, sellBps);
}Illustrative snippet for the demo. Not deployed code.
Powers
Governance limits
- The AI may
- Set fees inside bounds, propose mutations, run the Sequencer inside its budget
- The AI may not
- Mint, move holder funds, change H-01 to H-10, skip the public hour
- The Safe may
- Cancel queued operations
- The Safe may not
- Spend, upgrade, edit parameters or pause trading
- Stakers may
- Vote among AI-proposed options