TVL $2.1M

Staking dApp

Non-custodial staking interface with upgradeable contracts on Ethereum and Base.

Type
Blockchain
Status
Live
Role
Smart Contract & Frontend Engineer
Duration
2024-01 → 2024-11

Overview

A staking dApp combines contract bay, chain link, wallet comms, indexer feeds, and a dApp shell — each subsystem must coordinate for secure, gas-efficient on-chain operations.

Key metrics

TVL

$2.1M

Wallets

12k

Gas saved

38%

Audit

Pass

Engineering highlight

MilestoneRef: Hatch 07

Upgradeable proxy migration without downtime

Executed UUPS upgrade across mainnet and Base with state migration script and 48h timelock.

Links

Timeline

Each bar marks a documented milestone or decision.

More notes

DecisionRef: ADR-012

Storage layout gas optimization

Packed storage slots and removed redundant SLOAD operations, reducing stake tx gas by 38%.

Featured module

Contract Bay

Upgradeable staking vault with UUPS proxy, reentrancy guards, and comprehensive Foundry test suite.

Summary

Non-custodial staking interface with upgradeable contracts on Ethereum and Base.

Architecture

  • Contract BayFeatured

    Upgradeable staking vault with UUPS proxy, reentrancy guards, and comprehensive Foundry test suite.

    SolidityOpenZeppelinFoundry
  • Chain Link

    Deployed on Ethereum mainnet with L2 expansion to Base for reduced gas costs.

    EthereumBaseHardhat
  • Wallet Comms

    WalletConnect and injected provider support with transaction simulation and gas estimation UX.

    wagmiviemWalletConnect
  • Indexer / Oracle

    The Graph subgraph for historical stake events and reward calculations.

    The GraphGraphQL
  • dApp Shell

    Next.js frontend with real-time APY display and stake/unstake flows.

    Next.jsTypeScriptTanStack Query

Tech stack

SolidityFoundryNext.jswagmiThe GraphBase