How Mercato Works

A technical reference for bxBTC — the yield mechanics, the math behind share prices, fees, and how the autonomous agent system operates.

What is bxBTC

bxBTC is an ERC-4626 yield vault on Base mainnet. You deposit cbBTC (Coinbase-wrapped Bitcoin) and receive bxBTC shares in return. Those shares appreciate in value as the vault earns yield — no rebasing, no claim transactions, no lockup. When you redeem, you burn your shares and receive more cbBTC than you put in. The difference is your yield.

Mercato is permissionless software. There is no team making discretionary investment decisions. Strategies are defined in smart contracts and executed by AI agents operating within policy-enforced bounds. Every allocation is visible on Basescan. Anyone can verify everything at any time.

The share model

bxBTC follows the ERC-4626 tokenised vault standard. The share price — how much cbBTC one bxBTC buys — rises continuously as strategies earn interest.

share_price = totalAssets() ÷ totalSupply() totalAssets() = sum of live cbBTC balances across all active strategies (Morpho Blue + Aave V3 interest accrues every block) totalSupply() = bxBTC shares outstanding (constant between deposits/withdrawals)

When you deposit N cbBTC you receive N ÷ share_price bxBTC shares. When you redeem S bxBTC shares you receive S × share_price cbBTC. Your yield is the share price appreciation between those two points.

Yield sources

Phase 1 — live

Morpho BlueAave V3

The vault routes cbBTC to two lending markets on Base. Borrowers pay interest to these markets; depositors receive a share of that interest. Mercato is the routing layer — it does not create the yield, it allocates capital to where the yield is.

Morpho Blue — isolated lending markets. cbBTC depositors lend directly to borrowers. Rates are determined by supply and demand per market. No governance token dilution. Every market is isolated: one bad market cannot affect another.

Aave V3 — pooled lending with over $15B TVL since 2020. cbBTC earns the variable supply APY. Acts as the lower-volatility allocation within the vault.

Phase 2 — coming

Hyperliquid basisBabylon restakingPendle PT

Phase 2 adds a delta-neutral BTC basis trade via Hyperliquid (targets 6–9% blended APY), Babylon BTC restaking for PoS security rewards, and Pendle PT positions for yield stabilisation. Each new strategy must pass the PolicyValidator contract before any capital can be routed to it.

The math

Deposit

shares_received = deposit_amount ÷ share_price_at_deposit Example: deposit 1 cbBTC when share_price = 1.00 → receive 1.000000 bxBTC

Yield accrual

Interest accrues every block as Morpho and Aave update their accounting.totalAssets() rises with each block. totalSupply() stays constant. Therefore share_price rises continuously — no claim needed.

Redemption

cbBTC_received = shares_held × share_price_at_redemption Example: redeem 1 bxBTC when share_price = 1.054 (5.4% yield earned) → receive 1.054000 cbBTC → yield = 0.054 cbBTC

APY calculation

blended_APY = Σ ( strategy_APY[i] × allocation_bps[i] ÷ 10000 ) Example: Morpho at 4.2% APY, 60% allocation Aave at 2.8% APY, 40% allocation → blended_APY = (4.2 × 0.60) + (2.8 × 0.40) = 2.52 + 1.12 = 3.64%

Fees

Mercato charges a 10% performance fee on yield earned above the high-water mark. There are no management fees, no deposit fees, and no withdrawal fees.

How the fee is collected

When harvest() is called (by the Strategy agent after each rebalance, or manually):

new_yield = totalAssets() − last_harvest_total_assets fee_shares = (new_yield × 10%) ÷ share_price → fee_shares of bxBTC are minted to the treasury address → this dilutes existing holders by exactly 10% of the yield earned

The high-water mark prevents double-charging: if the vault value drops and then recovers, the fee is only collected on the net new yield above the previous high. Principal is never taxed — only returns above the watermark.

Fee recipient

Fees accrue to the treasury wallet at 0x062c0D920944e0. This is a hardware wallet controlled by the protocol operator and does not have admin keys over the vault.

Seniority

Seniority (SR) is Mercato's on-chain loyalty system. It tracks how early and how long a wallet has participated in the protocol. Seniority is not a token, has no monetary value, and cannot be transferred or purchased.

How it accrues

Points accrue proportionally to cbBTC deposited × time held. Each wallet has a daily_rate derived from its current vault balance. The longer and earlier you deposit, the higher your seniority — permanently. There is no catchup mechanism for late entrants.

What higher seniority means

Phase 1: leaderboard ranking visible at /seniority. Genesis depositors hold the highest rank permanently.

Phase 2 (coming): strategy voting weight proportional to seniority score; priority queue position for large redemptions during liquidity buffers.

Referrals

Referring another depositor increases your referrals_count and boosts your accrual rate. Referral tracking is on-chain via signed referral links stored in the vault contract.

AI agent operations

Mercato runs 11 AI agents across three teams. They operate on a coordinated daily cycle: a morning intelligence pass at 4–5AM UTC gathers fresh data, synthesises strategy, and writes a directional plan before the growth and ops agents wake up. Daily Brief compiles a backward-looking CEO summary at 9AM, incorporating the morning plan.

No human in the loop for routine operations. Strategy changes, outreach, competitor monitoring, and treasury alerting all run autonomously within defined policy bounds.

Morning cycle (4–9AM UTC)

4:00 Research → fetches live TVL/APY from DeFiLlama
4:30 Biz Planning → reads competitor data + KPIs → strategic assessment
5:00 Orchestrator → synthesises all data → writes team plan, posts TG summary
6:00+ Growth agents (Sales, Marketing, Investor, Ads) read morning plan
9:00 Daily Brief → compiles backward summary + forward plan → CEO Telegram brief

Agent roster

Strategy
Monitors live APYs every 12h. Proposes rebalances. Executes within policy bounds. Announces every change publicly.
Daily Brief
9AM UTC daily. Aggregates all agent outputs. Votes on open consensus rounds. Sends CEO brief to Telegram.
Marketing
Posts to Twitter and Telegram every 6h. Replies to relevant conversations. DMs new followers.
Orchestrator
5AM UTC daily. Reads all overnight data — competitor intel, KPIs, pipeline — and writes today's directional plan for the full agent team.
Biz Planning
4:30AM UTC daily. Strategic assessment: growth opportunities, risk flags, week priorities. Feeds Orchestrator.
Research
4AM UTC daily. Fetches live TVL and APY from DeFiLlama for 7 competitor protocols. Flags notable moves.
Sales
Every 2h. Reads Gmail inbox, classifies leads, drafts replies, books meetings. KOL and partnership outreach via Twitter DM. Telegram drafts for known contacts.
Investor
Every 4h. Manages VC and angel outreach — classifies investor threads, drafts replies, books intro calls.
Ads
Every 12h. Drafts Twitter/X ad copy variations using live KPIs and competitor data. Queues drafts for human approval.
Treasury
Every hour. Alerts if treasury ETH drops below gas threshold.
Protocol
Reviews strategy proposals. Escalates edge cases. Part of the consensus quorum.

Consensus protocol

Before any autonomous strategy execution, Strategy must get agreement from Daily Brief. Protocol reviews edge cases. If agents disagree, the proposal escalates to the human operator. GTM actions (campaigns, outreach strategies) require Marketing to open a round that Daily Brief reviews before execution. This prevents unilateral decisions by any single agent.

What agents cannot do

Every strategy change is validated by the PolicyValidator smart contract before execution. No agent can exceed the 60% single-strategy cap, bypass the 24-hour rebalance cooldown, or use unapproved adapter addresses. The contract enforces these limits regardless of what the agent proposes.

Security

Smart contracts

The bxBTC vault is built on the ERC-4626 standard. The PolicyValidator contract enforces all strategy bounds on-chain — they cannot be changed without redeployment. Contract addresses will be published on Basescan at launch.

Treasury address: 0x062c0D924D21d60E4eD05Fb5BBEA80aC1a0944e0

Audit

An independent security audit is scheduled for Phase 1 contracts. Results will be published here when complete. Until then, the contracts are open for review. Do not deposit more than you are comfortable with — smart contract risk is real.

No admin keys

The treasury wallet has no ability to withdraw user funds from the vault. Upgrade mechanisms, if any, will be governed by on-chain policy. There is no backdoor.

Questions

Reach us at hello@mercato.sh.