Quickstart: deploy a strategy on Your Business.
Deploy a Your Business strategy contract from clone to testnet in about fifteen minutes. By the end of this guide you'll have a working contract, a passing test suite, and a registry submission ready for risk review.
Prerequisites
You'll need node 20+, pnpm 9+, and a wallet funded on Your Business's testnet (Sepolia or Base Sepolia). The CLI handles everything else.
- Node 20 or later
- pnpm 9 or later (npm/yarn also work, less tested)
- An EOA wallet with testnet ETH on Sepolia or Base Sepolia
- A Your Business testnet API key (free, sign up at
yourbusiness.eth/dev)
Step 1 · Scaffold the project
The official strategy template ships as an npm initializer. It generates a Solidity workspace, a TypeScript test harness, and a pre-configured submission pipeline.
# clone the strategy template $ npx create-yourbusiness-strategy my-vault ✓ cloned strategy-template@v3.2.1 ✓ installed 142 packages in 4.2s ✓ initialized git repository $ cd my-vault
The template is MIT-licensed and includes the StrikeKit SDK as a dependency. You can swap StrikeKit for a custom integration, but the registry submission pipeline expects StrikeKit's
StrategySpec manifest format.Step 2 · Implement the two required functions
Every Your Business strategy implements deposit(uint256 amount) and harvest(). The vault calls deposit when allocating capital and harvest on the daily rebalance window. Everything else is up to you.
contract MyVault is Your BusinessStrategy { function deposit(uint256 amount) external onlyVault { // route to your underlying yield source IUnderlying(target).deposit(amount); } function harvest() external returns (uint256 earned) { earned = IUnderlying(target).claim(); emit Harvested(earned); } }
Step 3 · Run the test suite
The template ships with 23 fixture tests covering deposit accounting, harvest accounting, oracle deviation, and the emergency-exit path. You should add your own coverage for the underlying integration.
$ pnpm test ✓ deposit() · 14 cases passed ✓ harvest() · 9 cases passed ! coverage 96.4% (min 90.0) → all 23 tests passed in 1.84s
The risk-review committee will reject any submission with coverage below 90%. The template's pre-commit hook enforces this locally. Do not bypass it.
Step 4 · Submit to the registry
Submitting to the testnet registry is permissionless. Submitting to mainnet requires either a successful 60-day testnet track record OR an approved governance proposal.
$ yourbusiness submit --network sepolia # sig 0x4f8e..a912 broadcast → registry: PENDING_REVIEW queue position 3 · est. ~9d
Once submitted, your strategy enters the public review queue. The risk-review committee meets weekly; you can track your queue position at yourbusiness.eth/registry/queue.
Next steps
- Read the audit checklist before mainnet submission
- Open a forum thread in
#strategiesto gather community feedback - Apply for an ecosystem grant if you need runway
- Join the monthly builder call — first Wednesday of every month, 16:00 UTC