Skip to content

Latest commit

Β 

History

History
66 lines (55 loc) Β· 2.77 KB

File metadata and controls

66 lines (55 loc) Β· 2.77 KB

Crypto Capo β€” Smart Contract Audit Package

16 Solidity contracts | Solidity ^0.8.24 | OpenZeppelin v5.x | Hardhat

Architecture

contracts/sol/
β”œβ”€β”€ core/           β€” Game logic
β”‚   β”œβ”€β”€ PlayerRegistry.sol    β€” Player accounts, XP, levels, prestige, vault
β”‚   β”œβ”€β”€ GameEngine.sol        β€” Actions, energy, DUST minting, cooldowns
β”‚   └── PvPArena.sol          β€” PvP combat (bounties, raids, heists)
β”‚
β”œβ”€β”€ economy/        β€” Token & DeFi layer
β”‚   β”œβ”€β”€ DustToken.sol         β€” $DUST ERC-20 (mintable, 10% burn tax, daily limits)
β”‚   β”œβ”€β”€ DustRedemption.sol    β€” Burn $DUST β†’ receive ETH (cash-out)
β”‚   β”œβ”€β”€ DustStaking.sol       β€” Stake $DUST β†’ earn ETH yield
β”‚   β”œβ”€β”€ DustValueEngine.sol   β€” Floor price, lockup, LP burn, milestones
β”‚   β”œβ”€β”€ Treasury.sol          β€” Revenue distribution (8 pools, 48h timelock)
β”‚   β”œβ”€β”€ CapoToken.sol         β€” $CAPO ERC-20 (100M fixed supply, transfer limits)
β”‚   β”œβ”€β”€ CapoStaking.sol       β€” Stake $CAPO β†’ earn ETH from 5% revenue
β”‚   β”œβ”€β”€ CapoBuyback.sol       β€” Auto buyback & burn $CAPO
β”‚   └── DustToCapoSwap.sol    β€” Burn $DUST β†’ receive $CAPO (level-gated)
β”‚
β”œβ”€β”€ governance/     β€” DAO voting
β”‚   └── CapoGovernor.sol      β€” Proposal + vote with $CAPO (quorum from votable supply)
β”‚
β”œβ”€β”€ nft/            β€” Soulbound achievements
β”‚   └── AchievementNFT.sol    β€” Non-transferable ERC-721 (tiered: Commonβ†’Mythic)
β”‚
β”œβ”€β”€ utility/        β€” NFT power system
β”‚   └── NFTUtility.sol        β€” XP/DUST/cooldown/staking/PvP boosts from NFTs
β”‚
└── automation/     β€” Keeper bot
    └── CryptoCapoKeeper.sol  β€” Chainlink-compatible upkeep (6 maintenance tasks)

Quick Start (run tests locally)

npm install
npx hardhat test          # 308 tests, ~15s

Key Security Features

  • OpenZeppelin AccessControl (role-based: MINTER, BURNER, GAME_ENGINE, OPERATOR, DISTRIBUTOR)
  • ReentrancyGuard on all external-facing functions
  • Pausable on Treasury, DustToCapoSwap
  • 48h timelock on Treasury recipient changes
  • 10% burn tax on $DUST player transfers; game contracts whitelisted
  • Daily transfer limits scaled by player level
  • Max wallet cap (2% of total minted)
  • Soulbound NFTs (non-transferable)
  • Level-gated DustToCapoSwap (min level 5)

Dependencies

  • @openzeppelin/contracts v5.x
  • hardhat + @nomicfoundation/hardhat-toolbox
  • Target chains: Base (8453), Base Sepolia (84532), Polygon, Arbitrum, etc.

No Secrets Included

This package contains zero private keys, API keys, or .env files. The hardhat.config.ts has been sanitized β€” all key references show REDACTED.