Skip to content

Capminal/capminal-contracts

Repository files navigation

Capminal Contracts

Open-source smart contracts powering the Capminal protocol — staking for the $CAP token and the CAPU compute-credit system that funds AI access on the Capminal LLM Gateway.

This is a Foundry monorepo. Each module lives under projects/ with its own foundry.toml, sources, and tests.

Module Path Summary
Cap Staking projects/cap-staking Lock-duration staking for $CAP. Longer locks earn a larger share multiplier (1×–5×). Shares are recorded on-chain for off-chain reward distribution.
CAPU Vault projects/capu Two-token system: stake CAP → receive non-transferable sCAP → lock sCAP to mint CAPU, a compute asset granting $1/day of AI Credit. UUPS-upgradeable, with Synthetix-style streaming CAP rewards.

The $CAP token is deployed on Base mainnet at 0xbfa733702305280F066D470afDFA784fA70e2649.

Repository layout

capminal-contracts/
├── foundry.toml            # shared Foundry defaults (extended by each project)
├── pnpm-workspace.yaml
└── projects/
    ├── cap-staking/        # CapStaking — lock-duration staking
    └── capu/               # Capu + ScapStaking — sCAP receipt + CAPU mint vault

Getting started

Install Foundry, then pull the Solidity dependencies (tracked as git submodules):

git clone --recurse-submodules https://github.com/Capminal/capminal-contracts.git
cd capminal-contracts
# if you already cloned without submodules:
git submodule update --init --recursive

Build & test

# Cap Staking
cd projects/cap-staking && forge build && forge test

# CAPU Vault
cd projects/capu && forge build && forge test

Dependencies (OpenZeppelin, OpenZeppelin Upgradeable, PRBMath, forge-std) are managed via Foundry git submodules under each project's lib/.

Security

These contracts are provided as-is. Always review the source and run your own tests before interacting with any deployment. See each module's README for detailed security notes. Report vulnerabilities responsibly rather than opening a public issue.

License

MIT © 2026 404AI Labs

About

Capminal Smart Contracts Repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors