Build on Harbor
Sequenced path for another protocol to integrate Harbor without a Harbor-hosted REST or WebSocket API. Prefer the thin @harbor/sdk for quotes and calldata, or call on-chain views + dry-runs directly with the published address/ABI package.
Live on Ethereum mainnet today: markets (ha / hs), minters (Minter_v2), stability pools, price aggregators, zaps where listed.
Not live for production integration: Harbor Yield Compounders and hyTOKENS — see hy / ERC-7575.

Read in this order
- Token taxonomy — ha / hs / hy / AC / pool shares
- Addresses and ABIs — published JSON + market pages
- SDK —
@harbor/sdkconsumer guide (quoteMint,getPrice,encodeTx, …) - Pricing — minter prices vs aggregator
latestAnswervs Chainlink examples - Mint and redeem — approve → dry-run → tx
- Zaps — ETH/stETH/USDC convenience wrap + genesis/minter
- Market state and fees — CR, incentive bands,
config() - Stability pools — ha-only deposits, claims, rebalance receipts
- Harbor Swap — DEX routing for Harbor Yield / keepers (not mint)
- Oracle adapters — Chainlink-shaped wrappers (spec; not deployed)
- hy / ERC-7575 — Compounder = ERC-4626; hy = ERC-7575 (design only until mainnet)
Architecture and rebalance narratives (product + process flows): Contract architecture, Rebalance, Technical overview.
SDK surface
Shipped as @harbor/sdk (baofinance/harbor-sdk 0.2.0):
| Method | On-chain source |
|---|---|
getAddresses(marketId) | mainnet-v1.json |
getPrice(market) | Minter peggedTokenPrice / leveragedTokenPrice; aggregator latestAnswer |
getMarketState(market) | collateralRatio, leverageRatio, config() |
quoteMint / quoteRedeem | *DryRun views on the minter |
encodeTx | mint* / redeem* + ERC-20 approve |
encodeZap | Genesis / minter zap calldata |
swap.getRoute | Lookup (from, to) on Swapper_v1 (pass swapper into the client) |
swap.encodeSwap | Encode a call to a supplied executor |
swap.encodeRouteSwap | getRoute then encode that executor (convenience) |
Still eng follow-on: Chainlink-shaped oracle adapters; npm registry publish of @harbor/sdk. There is no public REST/WebSocket API.
Product vs tech docs
| Surface | Use for |
|---|---|
| Documentation | User-facing protocol, yield, TIDE, risks |
| This section | Integrator path: addresses, quotes, txs, prices |
| Contracts / Markets | Function-level and per-market SoT |