Work·Web3

ChainVault Protocol

A DeFi yield-optimization protocol with dynamic rebalancing across 8 chains. Designed the full tokenomics, smart contracts, and risk management layer.

SolidityDeFiChainlink2024
Blockchain visualization
Outcome

$4.8M TVL at launch · 0 exploits · Audited by Certik

ClientChainVault (crypto protocol)
IndustryDeFi / Web3
Duration18 weeks
Team3 Solidity engineers, 1 economist, 1 auditor
The challenge

The founding team had a clear product vision: a yield aggregator that automatically moved user capital across chains to capture the best risk-adjusted returns. The problem was execution complexity. Designing cross-chain tokenomics that didn't create perverse incentives, writing smart contracts that were composable without introducing exploitable attack surfaces, and getting through a rigorous audit — all on a timeline that made launch viable.

Our approach
01

Phase 1: Tokenomics and mechanism design

Before writing a line of Solidity, we modelled the protocol economics. We ran adversarial simulations to identify flash loan attack surfaces, modelled emission schedules against projected TVL growth to avoid inflation spirals, and designed a dual-token system that separated governance from utility. The economist on our team stress-tested the token design against historical DeFi market conditions, including the May 2022 Terra collapse scenario.

02

Phase 2: Smart contract architecture

We designed a modular contract architecture with clear separation of concerns: a vault layer handling deposits and withdrawals, a strategy layer managing yield optimisation logic, a bridge layer abstracting cross-chain movements, and a governance layer for parameter updates. Each module was upgradeable via a timelock-gated proxy pattern. We used Chainlink price feeds for all oracle inputs and added circuit breakers that paused the protocol if price deviation exceeded safe thresholds.

03

Phase 3: Testing and audit prep

We wrote a full Foundry test suite including fuzz tests across all critical functions, invariant tests that verified the protocol could never reach unsafe states, and integration tests against forked mainnet state. We documented every invariant explicitly before sending to Certik. The pre-audit preparation meant the audit was faster and the findings were limited to informational and low-severity issues — no criticals.

04

Phase 4: Launch and monitoring

We set up on-chain monitoring via Tenderly alerts for suspicious transaction patterns, governance proposal anomalies, and liquidity movements exceeding baseline. We built a protocol dashboard for the team showing TVL, yield rates per strategy, and cross-chain allocation in real time. The launch was phased: whitelist-only for the first two weeks with a deposit cap, then open to the public.

Results
$4.8MTVL at launch
8Chains supported
0Security exploits
0Audit findings (critical)
14.2%Average APY (year 1)
1,200+Unique depositors (month 1)
Tech stack
SolidityFoundryHardhatChainlinkOpenZeppelinEthers.jsThe GraphTenderly
The depth of thinking Hostwire brought to the tokenomics was something we couldn't have done in-house. They caught three potential attack vectors we hadn't considered, all before the audit. The audit ended up being remarkably clean.
CTOChainVault Protocol
HOSTWIRE
Ready to start?

Let's build
your next
system.

Share your goals and timeline. We'll map the fastest path to launch, automation, and measurable business outcomes.

Book a Strategy Call