pwAccountability record
Menu
Trending
Latest ›
Today’s edition ›
The Claim Ledger ›

FeedSearchLedgerSignalsMore
Infrastructure

The Vault

A multi-chain capital management system that accepts ETH deposits on Base L2, earns yield on idle reserves through Morpho, bridges capital to Arbitrum, and deploys it to an autonomous HyperLiquid perpetual futures strategy. Share price updates daily via onchain NAV reporting.

How It Works

Capital flows through a pipeline of smart contracts across two chains. Each step is managed by a specific contract with its own access controls and accounting. The diagram below shows the full lifecycle from deposit to strategy deployment and back.

User Deposits ETH
Base L2
▼
Morpho Reserve
Idle yield (ERC-4626)
Reserve sleeve
BaseCapitalVault
ERC-20 shares · WETH denominated
LiquidReserveBridgeStrategy
NAV Reporter
Daily share price oracle
Reconciliation
▼
BridgeRouter
Base → Arbitrum
▶
Asset Converter
WETH ↔ Bridge asset
▶
Bridge Adapter
Cross-chain transfer
▼
ArbTransitEscrow
Arbitrum · Holds assets in transit
▼
HLStrategyManager
Releases to hot wallet
▶
HyperLiquid
Perps trading · 40x leverage
↑ Returns flow back: HL → Escrow → Bridge → Vault → NAV settlement → Share price update
Methodology
ERC-4626 Style Shares

Depositors receive fungible ERC-20 shares representing their claim on vault assets. Virtual offset (1e3) prevents first-depositor inflation attacks.

Daily NAV Settlement

A designated reporter pushes offchain strategy equity onchain daily. Delta-bounded by maxNavDeltaBps (10%) to limit single-report manipulation.

Performance Fee

Fee charged only on realized positive strategy PnL when capital is returned. Capped at 20% (MAX_PERFORMANCE_FEE_BPS = 2000).

Capital Allocation Sleeves

The vault divides its total managed assets into four sleeves, each serving a distinct purpose. The allocator role manages the balance between sleeves based on market conditions and strategy needs.

Liquid

Immediately available for withdrawals. WETH held in vault contract.

Reserve

Earning yield in Morpho ERC-4626 vault. Redeemable for withdrawals.

Bridge

In transit between Base and Arbitrum. Tracked by BridgeRouter state machine.

Strategy

Deployed to HyperLiquid via hot wallet. Illiquid until strategy returns.

Smart Contracts

ContractChainSleeveRole
BaseCapitalVaultBaseAllCore vault — accepts deposits, issues ERC-20 shares, manages capital sleeves
MorphoReserveAllocatorBaseReserveDeposits idle WETH into Morpho ERC-4626 vault for yield on reserves
BridgeRouterBaseBridgeCoordinates outbound/inbound cross-chain routes with state machine lifecycle
ExecutorAssetConverterBaseBridgeConverts WETH to bridge-compatible asset (and back) at admin-set rates
ExecutorBridgeAdapterBaseBridgeWraps the actual cross-chain bridge transfer via executor EOA
ArbTransitEscrowArbitrumBridge/StrategyHolds assets in transit on Arbitrum between bridge arrival and strategy deployment
HLStrategyManagerArbitrumStrategyReleases assets from escrow to hot wallet for HyperLiquid perps trading
NavReporterBaseAccountingPushes daily NAV updates to vault — reconciles strategy equity with share price
WithdrawalQueueBaseWithdrawalsManages queued withdrawal requests when liquid assets are insufficient
MoralityAgentVaultBaseLegacySimpler ETH-native vault (legacy) — direct balance-based accounting

Trust Model & Privileged Roles

The vault system relies on a hierarchy of privileged roles. Each role has specific powers bounded by onchain constraints. The contracts are custodial infrastructure — actual fund safety depends on the integrity of these key holders.

Owner
Full admin

Can change all role addresses, set parameters, pause/unpause. Should be behind a timelock + multisig.

Allocator
High

Can move capital between vault sleeves (liquid, reserve, bridge, strategy). Pure bookkeeping — no direct token transfers.

NAV Reporter
High

Updates share price via daily NAV settlement. Bounded by maxNavDeltaBps (10% default) per report.

Bridge Executor
High

Controls all bridge route state transitions. No cross-chain proof verification — fully trusted oracle.

Operator
Medium

Initiates bridge routes and strategy deployments. Cannot directly move funds without executor.

Strategy Hot Wallet
Critical

EOA that holds funds on HyperLiquid. No smart contract enforcement for return. Must maintain ERC-20 approval.

Solana Programs

A dual-chain architecture mirrors core reputation and tipping functionality on Solana via Anchor. The Solana program underwent the same security audit process as the EVM contracts.

morality (Anchor)Solana · Devnet

Single program with 6 instruction modules — entity registration, reputation scoring, AI oracle integration, SOL tipping with per-entity vault PDAs, and onchain governance.

RegistryRatingsLeaderboardCommentsTippingVoting

Security Audit & Hardening

All EVM contracts and Solana programs underwent automated security analysis (22 March 2026; not a professional audit). 52 findings were identified across both chains. All critical and high severity issues have been patched. Read the full report.

4/4
Critical fixed
12/12
High fixed
18/18
Medium fixed
10/14
Low fixed
0/4
Info fixed
Critical Fixes Applied
  • ✓Cancelled withdrawals now have a cancel mechanism — shares are no longer permanently locked
  • ✓NAV reporter delta checks applied to all four accounting buckets, including first report
  • ✓All role setters now reject address(0) to prevent permanent disabling of functionality
  • ✓Tipping vault pattern redesigned — SOL now held in per-entity PDA with correct bookkeeping
High Severity Fixes
  • ✓Reentrancy guards added to all vault contracts and tipping/prediction market
  • ✓rescueETH functions now track escrowed amounts, only rescue excess
  • ✓Pause checks added to all state-mutating instructions (ratings, comments, votes, AI scores)
  • ✓AI oracle cooldown (5 min) prevents score manipulation spam
  • ✓12 Anchor events added for full indexer parity with Solidity contracts
Remaining Architectural Risks (Pre-Mainnet)
  • ●Single-operator custody model — timelocks + multisig recommended before mainnet
  • ●Cross-chain state is entirely off-chain — bridge executor is trusted oracle
  • ●Strategy hot wallet has no forced-return mechanism — requires operational trust

This was an automated static analysis, not a formal audit by a professional security firm. All critical and high findings have been patched. Before deploying contracts that manage real user funds, engage a reputable auditor (Trail of Bits, OpenZeppelin, Spearbit, etc.) for a manual review.

EVM contracts are upgradeable (UUPS proxy pattern) and pausable. Deployed on Base Sepolia and Arbitrum Sepolia (testnet). Solana programs built with Anchor. Source code available under contracts/src/ and solana-programs/.