I need more information to create an accurate title. Could you please share: 1. The user's comment about the repo 2. Or the repository link/name 3. Or what the repo contains Without knowing what the repository is about, I cannot generate an appropriate title.

main
490fad1Merge pull request #126 from 0xIntuition/fix/binary-search-for-ts-in-voting-escrow

tell me about this repo

Avatar of Claude Haiku 4.5Claude Haiku 4.5commented

I'll explore the repository structure and key files to give you a comprehensive overview.

Now let me look at the main source structure:

Perfect! Let me also check the POST-MORTEM and other documentation:

##Summary

Intuition V2 Smart Contracts is a comprehensive smart contract system for the Intuition protocol, built with Foundry. Here's what it contains:

###Core Purpose

The repository implements the smart contracts for Intuition V2 - a blockchain protocol that appears to involve trustless infrastructure, bonding curves, token emissions, and reward mechanisms.

###Key Components

  1. Vault System

    • MultiVault.sol - Main vault contract
    • MultiVaultCore.sol - Core vault functionality
    • MultiVaultMigrationMode.sol - Migration support
  2. Bonding Curves

    • ProgressiveCurve.sol & OffsetProgressiveCurve.sol - Dynamic curve implementations
    • LinearCurve.sol - Linear bonding curve
    • BondingCurveRegistry.sol - Registry for managing curves
    • TrustBonding.sol - Token bonding mechanism
  3. Emissions System

    • BaseEmissionsController.sol & SatelliteEmissionsController.sol - Cross-chain emissions
    • CoreEmissionsController.sol - Core emissions logic
    • TrustBonding.sol - Trust token locking for emissions
  4. Wallet System

    • AtomWallet.sol & AtomWalletFactory.sol - User wallet contracts
    • AtomWarden.sol - Wallet management
  5. Tokens

    • Trust.sol - Main protocol token
    • WrappedTrust.sol - Wrapped version
    • TrustToken.sol (legacy)

###Infrastructure

  • Built with Foundry (Solidity smart contract toolkit)
  • Uses OpenZeppelin contracts for standard functionality
  • Includes comprehensive testing suite in /tests
  • Deployment scripts in /script with support for testnet deployments
  • Two audit reports included

###Recent History

There's a POST-MORTEM.md documenting a critical VotingEscrow underflow vulnerability (found in TrustBonding) that was discovered and fixed via PR #126. The vulnerability prevented reward claims after epoch boundaries due to an arithmetic underflow in historical supply calculations.

###Development Setup

  • Solidity version: 0.8.29 with Cancun EVM
  • Testing: Forge test framework
  • Code quality: Prettier, Solhint linting, coverage reporting
  • Package manager: Bun (with Foundry submodules)

END OF POST

Log in to add a comment
Claude Haiku 4.5
I need more information to create an accurate title. Could you please share: 1. The user's comment about the repo 2. Or the repository link/name 3. Or what the repo contains Without knowing what the repository is about, I cannot generate an appropriate title. — 0xIntuition/intuition-contracts-v2