git404hub

what is capminal-contracts fr?

capminal/capminal-contracts — explained in plain English

Analysis updated 2026-05-18

24SolidityAudience · developerComplexity · 4/5LicenseSetup · hard

tl;dr

Open-source smart contracts for the Capminal protocol on Base blockchain, letting users stake $CAP tokens to earn rewards or convert them into daily AI compute credits.

vibe map

mindmap
  root((capminal-contracts))
    Modules
      Cap Staking
      CAPU Vault
    Cap Staking
      Lock $CAP tokens
      Multiplier 1x to 5x
      Off-chain reward share
    CAPU Vault
      Stake $CAP for sCAP
      Lock sCAP for CAPU
      1 dollar per day AI credits
    Tech stack
      Solidity
      Foundry
      OpenZeppelin
      Base blockchain

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Deploy and interact with Cap Staking contracts to let $CAP holders lock tokens and earn proportional rewards based on lock duration

VIBE 2

Convert $CAP into sCAP and then CAPU to grant yourself daily AI compute credits on the Capminal platform

VIBE 3

Study the streaming reward distribution mechanism for a real-world upgradeable vault implementation in Solidity

VIBE 4

Fork the monorepo structure as a starting point for a multi-module Foundry + OpenZeppelin smart contract project

what's the stack?

SolidityFoundryOpenZeppelinBase blockchain

how it stacks up fr

capminal/capminal-contractsagus-ops/amphichenxu0602/pendle-pt-yt-mechanism-lab
Stars2400
LanguageSoliditySoliditySolidity
Setup difficultyhardhardhard
Complexity4/54/55/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · hard time til it works · 1h+

Requires Foundry toolchain and familiarity with Base blockchain deployment, $CAP token interaction needs a funded wallet on Base mainnet.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

in plain english

This repository contains the open-source smart contracts for the Capminal protocol. Smart contracts are programs that run on a blockchain network and execute automatically according to their written rules. Capminal is built on the Base blockchain network and revolves around a token called $CAP. The repository has two main modules. The first is Cap Staking, which lets holders lock up their $CAP tokens for a chosen period of time. Longer lock durations earn a larger share of rewards, with a multiplier that ranges from 1x for short locks up to 5x for longer commitments. The actual reward distribution happens off-chain, with the on-chain contract tracking each person's share. The second module is the CAPU Vault, which introduces a two-step process to convert $CAP into AI compute credits. First, you stake $CAP and receive sCAP in return, a non-transferable receipt token that represents your locked position. Then you lock sCAP to mint CAPU, a compute asset that grants $1 per day of AI access credits on the Capminal platform. The contracts also distribute $CAP rewards to sCAP holders using a streaming mechanism. The vault contracts are designed to be upgradeable over time without redeploying. The project is organized as a monorepo where each module lives in its own folder with its own build configuration. Building and testing uses a Solidity development tool called Foundry. Dependencies come from well-known open-source libraries including OpenZeppelin. The $CAP token is already deployed on Base mainnet. The repository is published under the MIT license.

prompts (copy fr)

prompt 1
I want to stake $CAP tokens using the Capminal staking contract. How do I call the lock function, and what multiplier will I get for a 90-day lock versus a 365-day lock?
prompt 2
Walk me through the two-step process of converting $CAP into CAPU compute credits: how do I go from $CAP to sCAP to CAPU using these contracts?
prompt 3
How are the Capminal contracts structured as a Foundry monorepo? Show me how to build and run the test suite for just the Cap Staking module.
prompt 4
The CAPU Vault is designed to be upgradeable. How does the upgrade mechanism work in these contracts, and what do I need to do to propose an upgrade?

Frequently asked questions

what is capminal-contracts fr?

Open-source smart contracts for the Capminal protocol on Base blockchain, letting users stake $CAP tokens to earn rewards or convert them into daily AI compute credits.

What language is capminal-contracts written in?

Mainly Solidity. The stack also includes Solidity, Foundry, OpenZeppelin.

What license does capminal-contracts use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is capminal-contracts to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is capminal-contracts for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.