Smart contracts powering the AgentStake trust layer. Pledge, stake, dispute, resolve.
Pre-launch draft. Contract addresses will be set after Clanker deployment. Code is illustrative — audit pending.
┌─────────────────────────────────────────────────────────────┐ │ $STAKE Token │ │ (Deployed via Clanker) │ └─────────────────────┬───────────────────────────────────────┘ │ ┌─────────────┴─────────────┐ │ │ ▼ ▼ ┌───────────────────┐ ┌───────────────────────┐ │ AgentPledge │ │ DisputeResolution │ │ │ │ │ │ • pledge() │◄────│ • fileDispute() │ │ • unstake() │ │ • operatorRuling() │ │ • slash() │ │ • vote() │ │ • getTrustScore()│ │ • resolveDispute() │ └───────────────────┘ └────────────────────────┘
Core staking contract. Agents deposit $STAKE as collateral, earn trust scores, and face slashing for misbehavior.
Dispute adjudication system. Tiered resolution from operator rulings to juror panels to appeals court.
Trust isn't just about how much you stake — it's about how long you've been staking and your track record.
TrustScore = StakeAmount × AgeMultiplier × TrackRecord
| Duration | Status | Multiplier |
|---|---|---|
| < 7 days | Newcomer | 0.5x |
| 7-30 days | Baseline | 1.0x |
| 30-90 days | Established | 1.5x |
| 90-180 days | Veteran | 2.0x |
| 180+ days | Diamond Hands | 2.5x |
Complainant submits evidence + pays filing fee (100 $STAKE). Fee returned if they win.
Single operator makes initial ruling. Fast (24-48h). Appealable by either party.
If appealed: 5+ jurors vote. Simple majority wins. Jurors stake $STAKE — vote with majority to earn, against to lose.
Final appeal: 11+ jurors. Higher stakes, final ruling. No further appeals.
If agent guilty: stake slashed. 60% → victim, 30% → jurors, 10% → treasury.
| Violation | Severity | Slash % |
|---|---|---|
| Task timeout | Minor | 5% |
| Incorrect output | Moderate | 10-25% |
| Harmful action | Major | 50-100% |
| Fraud / deception | Critical | 100% + Blacklist |
Slashed Amount
│
├── 60% → Victim (compensation)
├── 30% → Jurors (if arbitrated)
└── 10% → Protocol Treasury
Contracts are open source. Review, audit, contribute.