Connect the Juicebox MCP
- URL
- https://juicebox.center/mcp
claude mcp add --transport http juicebox https://juicebox.center/mcpBuild
Launch a revnet, connect an app, or write a contract. Start with your task and open technical details as you need them.
Give your assistant the Juicebox V6 skills to help it explain anything Juicebox.
Relevant skills: jb-deploy-ui, revnet-economics, jb-revloans, jb-suckers, jb-bendystraw, jb-interact-ui.
Start here
Use a revnet for tokenized incentives backed by a balance sheet, on a schedule fixed at launch. Use a Juicebox project when a team needs payouts or the power to change the rules later.
A contract owns every revnet and enforces its schedule. The operator can change details: contributor addresses, payment routes, names, bridges, and the shop.
Project builders can launch with an AI assistant or the launch form, without code. App builders use the SDK, a TypeScript library, and Bendystraw, an index of onchain records. Contract builders write Solidity.
Revnets are built on Juicebox. The Juicebox build guide covers what every project shares; this guide covers stages, splits, loans, and the operator.
| You need to | Use |
|---|---|
| Pay contributors in tokens on a published schedule | Revnet |
| Let owners cash out or borrow against the balance sheet | Revnet |
| Commit to terms nobody can change after launch | Revnet |
| Pay a team a budget each month | Juicebox project |
| Change the rules after launch | Juicebox project |
How a revnet worksLaunch a revnetConnect an appBuild a contract integrationWords for builders
Back to contentsProject builders
Project builders
Model the whole schedule before launch. Compare outcomes under realistic revenue, owner concentration, and withdrawal scenarios; no single tax or cut is safe for every revnet.
revnet-economics skillrevnet-modeler skillRevnet simulatorFirst: the three prices
Back to contentsProject builders
Describe the revnet to an assistant and let it do the setup. You review what it prepared and sign.
Connect it to the Juicebox MCP with the command below. It reads revnets, models stages with you, pins the name and logo to IPFS once you approve the upload, and prepares the exact deployFor transaction for each chain. It holds no keys and signs nothing.
Or have it write a .jb draft, a JSON file of the launch form's fields in the units you see on screen (days, percentages from 0 to 100, whole token amounts). Import it at the top of the launch form, check every section, and launch from there. Every live revnet's Extras tab exports one rebuilt from the chain, the easiest way to compare what launched with what you meant.
claude mcp add --transport http juicebox https://juicebox.center/mcpJuicebox Center APIDraft formatLaunch interface skill
Back to contentsProject builders
The launch form has six sections. Save a draft, review the full schedule, then connect a wallet to launch. Check the launch cost on every selected network before signing.
Open the launch formStages in plain languageHow the form becomes a deployFor call
Back to contentsProject buildersApp builders
The launch form prepares a deployFor call for each selected chain with matching terms and salts. Each chain gets its own project ID and completes on its own, even when the token address matches.
Project builders
The operator has nine default permissions plus any granted at launch. The Operator tab shows the available actions; check grants per chain, since routing, recipients, and shop choices affect owners.
Collect auto issuance from Owners. Owners use the You card to cash out, borrow, or move between networks. Card and bank payments buy an accepted token first.
Liquidity lives under Owners → Market. Anyone can add liquidity to the pool through Uniswap V4's position manager, single-sided if they like. The site shows the pool's composition, depth by price band, and every position.
The operator cannot change issuance, cuts, cash out taxes, split percentages, or stage timing, and cannot withdraw the balance. There is no owner key: REVOwner holds the project NFT and never transfers it.
REVOwner.solWhere payments and cash outs goFees
Back to contentsApp buildersContract builders
The contract call and SDK builder behind each action. Some need a token approval, a chosen route, or several transactions.
Amounts stay bigint in the token's own decimals until display. A revnet is identified by chain ID plus project ID. A sucker group links its chains, but their addresses, balances, and stage IDs are never interchangeable.
App buildersContract builders
A revnet combines shared Juicebox contracts with its own token, shop, and bridges. Start from the deployment artifacts, then resolve the project's live addresses on each chain.
Address catalog, no key neededDeployed addressesRevnet contract sourceCore contract sourceEvery V6 repository
Back to contentsApp builders
Read a revnet like any Juicebox project, plus its stages, loans, and operator. Use the index to display; read the chain for anything a signature depends on, right before signing.
The contracts store each stage as a Juicebox ruleset. Backing counts open loans: while a loan can be repaid, its debt and the collateral repayment would restore both count. After 3,650 days anyone can liquidate it, which removes both.
Stage readsRead any Juicebox project
Back to contentsApp builders
Calculate loan limits from current funds, collateral, costs, the borrowed asset, and permissions. A saved cash out estimate is not enough.
Before borrowing, read borrowableAmountFrom for the selected asset. borrowableNow limits the debt to available funds; borrowableCapacity measures what the collateral supports and can be larger. minBorrowAmount protects the debt before costs, not the money received. Show both the debt and the amount the borrower receives, with each cost.
REVLoans burns the collateral, so the owner first grants it BURN_TOKENS (11) for the revnet. An owner borrowing for themselves needs no other permission. A contract or operator borrowing for an owner also needs OPEN_LOAN (37) from that owner, passed as holder. Collateral and source token are chain-local. Loan permissions can redirect funds or recovered collateral, so explain the exact authority before asking for a grant.
Before repaying, re-read loanOf and the source fee, compute a ceiling with margin, approve or permit the source token if needed, and simulate the exact collateral returned. Native repayment sends the ceiling as value; the excess is refunded.
const { borrowableNow } = await getBorrowableAmount(publicClient, {
chainId, revnetId, collateralCount,
decimals: 18n, currency: 61166n, // the borrowed token's decimals and currency (ETH shown)
});
if (borrowableNow <= 0n) throw new Error("No funds available to borrow for this collateral");
const tx = buildBorrowTx({
chainId, revnetId, token, collateralCount, beneficiary, holder,
prepaidFeePercent: 25n, // 25n to 500n, out of 1000
minBorrowAmount: slippageFloor(borrowableNow, 100n), // debt, 1% tolerance
});App builders
Expose only the actions the launch granted, resolved per chain. An operator is never an owner.
Build each write from freshly resolved contracts, operator address, permission IDs, and project state, and simulate each chain on its own. A Safe proposal is pending until it executes; do not show success at proposal time.
Shop tiers sit outside the stage schedule. Whether NFT transfers are paused is a per-stage flag fixed at launch (build721RulesetMetadata). Whether the operator can add tiers, update metadata, change discounts, or mint depends on the hook's flags and the permissions granted at launch.
const { request } = await publicClient.simulateContract({
account: operator,
address: hook,
abi: jb721TiersHookAbi,
functionName: "adjustTiers",
args: [tierConfigurations, tiersToRemove],
});
const hash = await walletClient.writeContract(request);Contract builders
Contract builders
REVOwner fixes a revnet's pay and cash out paths. You extend a revnet around those paths, not inside them.
REVOwner is hard-wired as the project's ruleset data hook. On a payment it asks the revnet's 721 hook for its one tier split, then asks the buyback hook whether the pool is the better route, and returns at most those two specifications. On a cash out it returns the buyback specification, if any, and its own fee specification. deployFor has no field for a third-party hook, and hasMintPermissionFor answers yes only to REVLoans, the buyback hook, and registered suckers.
| You can | You cannot |
|---|---|
| Route the split to a split hook contract (IJBSplitHook) | Install a custom data hook, pay hook, or cash out hook |
| Ship shop tiers with a custom IJB721TokenUriResolver | Mint revnet tokens from your own contract |
| Allow Croptop posting categories at launch (allowedPosts) | Add ruleset flags beyond the extraMetadata bits |
| Choose which sucker deployers link the chains | Change the schedule after launch |
| Build anything that pays into, reads, or wraps the revnet: project payers, routers, terminal wrappers, keepers | Take the project NFT back from REVOwner |
Contract builders
A stage's split recipients can be contracts. When the split is distributed, the controller hands your contract its tokens and calls processSplitWith. The LP split hook uses this to seed pool liquidity.
Split recipients live in group 1 (RESERVED_TOKENS). Set the split's hook field to your contract's address. The controller grants an allowance: pull the tokens during the callback, or the rest is revoked and burned. A reverting callback emits SplitHookReverted without blocking distribution; unpulled tokens are burned.
// ERC-20-only fragment. Define CONTROLLER, PROJECT_ID, and PROJECT_TOKEN
// in your contract; inherit ReentrancyGuard and implement IERC165.
using SafeERC20 for IERC20;
function processSplitWith(JBSplitHookContext calldata context) external payable nonReentrant {
if (msg.sender != address(CONTROLLER)) revert Unauthorized();
if (context.projectId != PROJECT_ID) revert BadProject();
if (context.groupId != 1 || address(context.split.hook) != address(this)) revert BadSplit();
if (context.token == address(0) || context.token != PROJECT_TOKEN) revert BadToken();
// ERC-20: pull it now; the allowance is revoked (and the remainder burned) after this call.
IERC20(context.token).safeTransferFrom(msg.sender, address(this), context.amount);
// ... do the thing: LP, vest, distribute, forward to another project.
}IJBSplitHook.solJBSplitHookContext.solLP split hook (worked example)jb-split-hook skill
Contract builders
The V6 repos ship as npm packages and import by package path. deployFor takes the whole revnet as structs; every field is listed here with its unit.
npm i the packages you need and import by path (import "@rev-net/core-v6/src/REVDeployer.sol"). remappings.txt in every repo only maps forge-std; node_modules resolves the rest, which is also how the deploy artifacts record source names.
// Resolve the deployed contracts and construct the structs before this fragment.
// For matching chains, use the same explicit first-stage start and configuration hash.
(uint256 revnetId, IJB721TiersHook hook) = REV_DEPLOYER.deployFor{value: PROJECTS.creationFee()}({
revnetId: 0,
configuration: config,
accountingContextsToAccept: contexts,
suckerDeploymentConfiguration: suckers,
tiered721HookConfiguration: shop,
allowedPosts: new REVCroptopAllowedPost[](0)
});Contract builders
Any contract with the right permission from an owner can call REVLoans. Liquidation is permissionless, which makes it a keeper job.
An owner acting for themselves grants REVLoans only BURN_TOKENS (11), which it uses to burn the collateral. A contract acting for an owner also needs JBPermissions.setPermissionsFor from that owner, scoped to the revnet (ROOT works but is far too broad). Every state-changing call runs under a loan-specific reentrancy guard. Collateral is burned when the loan opens and minted again when it closes.
A standard loan deducts a 2.5% Juicebox fee, a 1% REV fee when available, and a prepaid borrowing cost of 2.5–50% paid to the revnet. 2.5% prepays 182.5 days; 50% prepays all 3,650. After the prepaid period the cost rises until expiry.
Ship it safely
Test the builders you ship where a fixed schedule, route changes, permissions, and cross-chain timing meet.
Foundry tests can extend TestBaseWorkflow for logic and the revnet contracts' ForkTestBase against the deployed contracts. Then publish the addresses, source, transaction map, and a readable stage schedule so users can check your product against the contracts. The audit page has prompts for a whole-system review and for a single transaction.
Audit prompts and source indexRevnet contract testsTests every project needs
Back to contentsReference
The technical terms this guide uses. Learn's glossary covers the plain-language ones.
Start from the smallest operation your product needs and keep the fresh read, builder, simulation, review, and confirmation on one path. The complete working client is the Revnet Money repository.