Build

Build with revnets

Launch a revnet, connect an app, or write a contract. Start with your task and open technical details as you need them.

Build with an AI assistant

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.

Read or manually copy the prompt

Start here

When to use a revnet

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.

Pick the model
You need toUse
Pay contributors in tokens on a published scheduleRevnet
Let owners cash out or borrow against the balance sheetRevnet
Commit to terms nobody can change after launchRevnet
Pay a team a budget each monthJuicebox project
Change the rules after launchJuicebox project

How a revnet worksLaunch a revnetConnect an appBuild a contract integrationWords for builders

Back to contents

Project builders

Choosing the numbers

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.

  • Issuance and cuts: simulate low and high revenue as issuance falls. Show the tokens a payer receives after the split, and check every stage change. A shorter cadence makes timing matter more; keep cuts at least a day apart.
  • Cash out tax: compare exits at several shares of supply. A higher tax keeps more of each cash out for remaining owners. Loans use the same tax, so borrowing does not get around it.
  • Split: stepping down across stages (30% → 20% → 10%) pays early contributors more, with no vote needed later.
  • Stages: match starts to real product milestones and model payments that land around a stage change. The final stage runs forever, cuts included. Zero issuance stops minting from payments; auto issuance can still be claimed.
  • Concentration: test large owners exiting, auto issuance claims, heavy borrowing, and empty local balances. Open loans count in both supply and backing.

revnet-economics skillrevnet-modeler skillRevnet simulatorFirst: the three prices

Back to contents

Launch with an AI assistant

Project 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.

  • Limits: up to 32 stages, 16 chains, 64 store items, 2 MB. Media cannot travel inside JSON; item images arrive as already-pinned ipfs:// URIs.
  • Skills: jb-deploy-ui for launch interfaces; revnet-economics and revnet-modeler for exploring terms. Check a generated draft against the current schema.

Connect the Juicebox MCP

URL
https://juicebox.center/mcp

claude mcp add --transport http juicebox https://juicebox.center/mcp

Juicebox Center APIDraft formatLaunch interface skill

Back to contents

Launch without code

Project 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.

The six sections

1. Look
Name (up to 50 characters), token symbol (2–10), logo, description, and optional links. At launch these are pinned to IPFS as one file.
2. Money and chains
What the revnet holds: ETH, USDC, both, or another token checked on each network. The currency that prices new tokens: ETH or USD. Then the networks.
3. Terms
Issuance, issuance cuts, the split, the cash out tax, auto issuance, and stage starts. The schedule is fixed at launch; the operator can still change split recipients.
4. Store
Optional items to sell, a pricing currency, and which shop powers the operator keeps. A shop contract deploys even with no items.
5. Operator
Off by default: the role goes to an unusable dead address. On: one address for all chains, or one per chain. Confirm you control each address, especially a multisig on a new chain.
6. Deploy
Refresh the quote, review, then sign. On one network, send a transaction or propose it to a Safe. On several, pay once on one network for a bundle that launches on all of them.

Terms, field by field

Issuance
Tokens created per ETH or USD paid. Default 10,000. Later stages can inherit the rate.
Issuance cut
Lowers issuance on a schedule. Default 10% every 30 days. Cuts should be at least a day apart.
Split
A share of new tokens sent to contributors. Default none. Above 0% needs a recipient. The contract field is splitPercent.
Cash out tax
How much of a cash out stays behind, a value from 0 to 1. Default 0.2. The form offers 0 to 0.8 in steps of 0.05; contracts allow anything below 1.
Auto issuance
A fixed number of tokens for named recipients, claimable once the stage starts. Default none.
Stage start
Default for the first stage: ten minutes after you prepare the launch; you can pick a later time. Stage starts must increase.
If the launch executes after the first stage's start, cash outs and loans lock for seven days.

Open the launch formStages in plain languageHow the form becomes a deployFor call

Back to contents

What happens when you launch

Project 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.

  • Creation fee: read JBProjects.creationFee() on each chain right before preparing the launch, and show it apart from network and relay costs.
  • Token: an ERC-20 named after the revnet, with its ticker. Chains share a token address when the deployer, sender, configuration hash, and salts match; check the address on each chain.
  • Pool: a market opens empty for each accepted token, priced at the issuance price.
  • Chains: with two or more chains, pay for one bundle. Each chain completes on its own schedule, so track them separately. With one chain, send a wallet transaction or a Safe proposal.
  • Afterwards: each chain has its own project ID; the page lives at /<chain>:<id>. The Terms tab shows the schedule as the contracts hold it.
Safe owners: a proposal that executes after the first stage's start triggers the seven-day cash out and loan lock. Leave a buffer, or set a later start.
Back to contents

Running it: what the operator can do

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.

Operator tab

Edits
Name, description, logo, links; an ENS handle; the recipients of the current stage's split (never its size)
Chains
Extend the revnet to a new chain with the same terms, if the stage allows it (the launch form always allows it)
Buyback router
Point at a buyback hook, select the router gateway through the registry where deployed, set the TWAP window (5 minutes to 2 days), or initialize a pool by hand if someone front-ran the automatic one
Shop
Add items (media pinned to IPFS) and mint up to 50 free copies of an item. Removing items and editing discounts are contract powers this site does not expose yet
Account
Hand the role to another address, or to the zero address to end it
Permissions
A read-only view of what is granted, flagging grants that no longer authorize anything

REVOwner.solWhere payments and cash outs goFees

Back to contents

App builders

Shared with every Juicebox project

App buildersContract builders

Revnets run on Juicebox contracts, so most app work is the same as for any Juicebox project. The Juicebox build guide covers it; this guide covers what only revnets have.

Start with the SDK, reads, and the review flow there, then come back for stages, loans, and the operator. Two revnet differences apply throughout: a payment with skipSplits set gets pool-bought tokens without the split, and a registered bridge contract cashes out without the tax or the launch lock.

Back to contents

Every operation, in one table

App 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.

User action → contract call

Launch a revnet
REVDeployer.deployFor (buildDeployRevnetTx)
Pay / buy tokens
JBMultiTerminal.pay (prepareUserPay, then buildPayTx)
Buy a shop item
JBMultiTerminal.pay with 721 metadata (prepareUserPay with tiers)
Add funds, no tokens
JBMultiTerminal.addToBalanceOf
Cash out
JBMultiTerminal.cashOutTokensOf (prepareHookAwareCashOut)
Collect auto issuance
REVOwner.autoIssueFor (buildAutoIssueTx)
Borrow
REVLoans.borrowFrom (buildBorrowTx)
Repay
REVLoans.repayLoan (buildRepayLoanTx)
Move a loan's collateral
REVLoans.reallocateCollateralFromLoan (buildReallocateCollateralTx)
Move tokens to another chain
sucker.prepare → toRemote → claim
Add pool liquidity
Uniswap V4 PositionManager.modifyLiquidities
Operator: rename, redirect splits
JBController.setUriOf / setSplitGroupsOf
Operator: manage shop
JB721TiersHook.adjustTiers / mintFor
Operator: set up the pool
JBBuybackHookRegistry.initializePoolFor / setHookFor
Operator: add a chain
REVDeployer.deploySuckersFor
Operator: hand over
REVOwner.setOperatorOf
Back to contents

The contracts, and where their addresses live

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.

  • Addresses: Juicebox publishes one artifact per contract per chain: its address, ABI, and source name. The SDK's jbContractAddress map and the skills library's chain-config.json come from it.
  • Pool: launch opens a Uniswap V4 pool per accepted token with a 1% fee tier and 200 tick spacing. The buyback hook turns the deployer's 172800-second placeholder into a 30-minute TWAP window; twapWindowOf returns the live value.
  • Chains: Ethereum, Base, Arbitrum, Optimism, plus Sepolia and the three L2 Sepolias. The SDK's SUPPORTED_CHAINS and JB_CHAINS carry the list.
  • Source: the V6 source is current; earlier Juicebox versions are not interchangeable with it.

Who does what

REVDeployer
Writes the stage schedule and the bridges at launch; adds chains later
REVOwner
Owns the project, enforces its rules, and holds the operator's permissions
REVLoans
Lends against revnet tokens; each loan is an NFT
JBMultiTerminal
Takes payments, holds the balance, runs cash outs
JBController
Issues tokens, distributes the split, holds the stage data
JBBuybackHookRegistry + JBBuybackHook
Buys from the Uniswap V4 pool when it gives more tokens than issuance
JB721TiersHook
The shop: tiers, prices, media
JBSucker + JBSuckerRegistry
Moves tokens and balance between chains
JBRouterTerminalRegistry
Accepts tokens the revnet does not hold directly and swaps them in

Address catalog, no key neededDeployed addressesRevnet contract sourceCore contract sourceEvery V6 repository

Back to contents

Read the revnet

App 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.

Revnet reads

Current and next stage
JBController.currentRulesetOf / upcomingRulesetOf
Full schedule
JBController.allRulesetsOf(projectId, startingId, size)
Supply with loans
JBController.totalTokenSupplyWithReservedTokensOf; REVLoans.totalCollateralOf / totalBorrowedFrom
Loan capacity
REVLoans.borrowableAmountFrom / loanOf
Chains
JBSuckerRegistry.suckerPairsOf
Operator
A JBPermissions grant scoped to (REVOwner, revnetId): JBPermissions.hasPermissions, or the SDK's isRevnetOperator
Treat state you could not read as unknown, never as zero, empty, or permitted.

Stage readsRead any Juicebox project

Back to contents

Loans

App 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.

REVLoans.borrowFrom

Quote
getBorrowableAmount / borrowableAmountFrom
Builder
buildBorrowTx
Permission
OPEN_LOAN = 37 (REPAY_LOAN = 39, REALLOCATE_LOAN = 38 for the other calls)
Bound
minBorrowAmount protects the debt; calculate the amount received separately

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
});

Protected loan buildersBorrow operation

REVLoans.repayLoan

Builder
buildRepayLoanTx
Bound
maxRepayBorrowAmount; excess is refunded
Partial repay
collateralCountToReturn; mints a replacement loan NFT
ERC-20
prior approval, or a Permit2 allowance passed in the call

Repayment implementation

Back to contents

Operator actions

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.

Operator write map

Metadata
JBController.setUriOf
Split recipients
JBController.setSplitGroupsOf
Transfer role
REVOwner.setOperatorOf
Add shop tiers
JB721TiersHook.adjustTiers
Operator mint
JB721TiersHook.mintFor
Buyback hook
JBBuybackHookRegistry.setHookFor
Router gateway / terminal
JBRouterTerminalRegistry.setTerminalFor
TWAP window
JBBuybackHook.setTwapWindowOf
Initialize pool
JBBuybackHookRegistry.initializePoolFor
Add chains
REVDeployer.deploySuckersFor

Simulate with the operator, then write

const { request } = await publicClient.simulateContract({
  account: operator,
  address: hook,
  abi: jb721TiersHookAbi,
  functionName: "adjustTiers",
  args: [tierConfigurations, tiersToRemove],
});

const hash = await walletClient.writeContract(request);
To give up the role, pass address(0); that is permanent. The launch form's off setting uses a dead address instead, which nobody controls but is not the zero address. Show the actual value and read permissions rather than trusting a label.
Back to contents

Contract builders

What you can plug in, and what you cannot

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.

Extension points
You canYou 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 IJB721TokenUriResolverMint 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 chainsChange the schedule after launch
Build anything that pays into, reads, or wraps the revnet: project payers, routers, terminal wrappers, keepersTake the project NFT back from REVOwner

REVOwner.solREVDeployer.sol

Back to contents

Split hooks: the main extension point

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.

IJBSplitHook

Function
processSplitWith(JBSplitHookContext calldata) external payable
Context
token, amount, decimals (18), projectId, groupId, split (percent, projectId, beneficiary, preferAddToBalance, lockedUntil, hook)
Caller
JBController; this path does not check ERC-165, but implement it anyway

// 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

sendReservedTokensToSplitsOf has no reentrancy guard, so add nonReentrant. A hook that pulls less than its amount loses the rest for good: the controller burns it.
Back to contents

Install the code and deploy from Solidity

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.

Packages (Solidity 0.8.28)

@rev-net/core-v6
REVDeployer, REVOwner, REVLoans
@bananapus/core-v6
Terminals, controller, tokens, splits, permissions, the hook interfaces
@bananapus/721-hook-v6
Shop tiers
@bananapus/buyback-hook-v6
Pool routing
@bananapus/suckers-v6
Cross-chain
@bananapus/router-terminal-v6
Token routing
@croptop/core-v6, @bananapus/permission-ids-v6
Posting, permission constants

REVDeployer.deployFor, field by field

Signature
deployFor(uint256 revnetId, REVConfig, JBAccountingContext[], REVSuckerDeploymentConfig, REVDeploy721TiersHookConfig, REVCroptopAllowedPost[]) payable → (revnetId, IJB721TiersHook)
Short form
the 4-argument overload deploys an empty shop with the base currency and 18 decimals
revnetId
0 creates a project; msg.value must equal JBProjects.creationFee(). A non-zero id must be owned by the caller, sends no value, and hands the NFT to REVOwner for good
REVConfig
description { name, ticker, uri, salt }, baseCurrency (uint32), operator, scopeCashOutsToLocalBalances, stageConfigurations[]
REVStageConfig
startsAtOrAfter (uint48, strictly increasing; 0 = now for the first; multichain: never 0, use one explicit timestamp on every chain), autoIssuances[] { chainId, count (uint104), beneficiary }, splitPercent (uint16, of 10,000), splits[] (JBSplit), initialIssuance (uint112, 18-dec tokens per base unit; 1 = inherit), issuanceCutFrequency (uint32 seconds), issuanceCutPercent (uint32, of 1e9), cashOutTaxRate (uint16, of 10,000, below 10,000), extraMetadata (uint16; bit 2 allows adding chains)
JBAccountingContext
token, decimals (uint8), currency (uint32; by convention uint32(uint160(token)))
REVSuckerDeploymentConfig
deployerConfigurations[], salt (0 skips sucker deployment)
REVDeploy721TiersHookConfig
baseline721HookConfiguration { name, symbol, baseUri, tokenUriResolver, contractUri, tiersConfig, flags }, salt, preventOperatorAdjustingTiers / UpdatingMetadata / Minting / IncreasingDiscountPercent
REVCroptopAllowedPost
category (uint24), minimumPrice (uint104), minimumTotalSupply, maximumTotalSupply, maximumSplitPercent (uint32), allowedAddresses[]

// 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)
});

REVDeployer.solREVStageConfig.solLaunch interface skill

The configuration hash covers the name, ticker, and salt; base currency; balance scope; and each stage's effective start, split percent, issuance, cuts, tax, extraMetadata, and auto issuances. It excludes split recipients. A first-stage start of 0 becomes the execution time, so sending 0 separately on several chains can produce different hashes. When adding a chain, reuse the original effective configuration, sender, salts, and deployment addresses, then check every resulting token and bridge pair.
Back to contents

Loans from a contract

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.

REVLoans surface

borrowFrom(revnetId, token, minBorrowAmount, collateralCount, beneficiary, prepaidFeePercent, holder)
OPEN_LOAN (37) from holder; returns (loanId, REVLoan)
repayLoan(loanId, maxRepayBorrowAmount, collateralCountToReturn, beneficiary, allowance) payable
REPAY_LOAN (39) from the loan NFT owner; excess value refunded
reallocateCollateralFromLoan(loanId, collateralCountToTransfer, token, minBorrowAmount, collateralCountToAdd, beneficiary, prepaidFeePercent)
REALLOCATE_LOAN (38), plus OPEN_LOAN when adding collateral
liquidateExpiredLoansFrom(revnetId, startingLoanId, count)
Anyone, after the 3,650-day expiry
borrowableAmountFrom, loanOf, loanSourceTokensOf, determineSourceFeeAmount
Views for quoting

REVLoans.soljb-revloans skill

Back to contents

Revnet sharp edges

Contract buildersApp builders

Revnet details that change the meaning of an otherwise valid call. The Juicebox build guide lists the ones every project shares.

  • The 7-day lock: a first stage whose start has passed when the launch executes locks cash outs and loans for seven days on that chain. Watch for it with Safe proposals and scripted multichain launches.
  • Splits on the pool route: a terminal payment the buyback hook fills from the pool pays the split unless the third buyback metadata word, skipSplits, is set. With it, the bought tokens go to the payer whole. prepareUserPay sets it and the minimum the terminal enforces.
  • Bridge cash outs: a registered sucker cashes out on the source chain with no tax and no launch lock, against local backing only, so bridge accounting works. An owner who receives the tokens on the destination gets neither exemption.
  • Fees at a tax of 0: a cash out tax of 0 removes the Revnet fee, but a Juicebox fee can still apply to balance that arrived through payouts that had not paid one.
  • The configuration hash: it decides whether chains share a token address. Recipients are excluded, but a first-stage start of 0 is replaced by each chain's execution time.

Behavior every project sharesjb-suckers skill

Back to contents

Ship it safely

Test what can surprise you

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.

  • Launch: the configuration round-trips through every ABI overload; a past first-stage start produces the seven-day lock; matching configuration, sender, salts, and deployment addresses produce the intended token address on every chain.
  • Payments: the chosen route's executable minimum is no worse than the alternatives shown; an empty pool falls back to issuance; a router route is probed, not assumed.
  • Cash outs: the terminal or hook enforces the same minimum the confirmation shows, including at a tax of 0.
  • Loans: only the loan permissions (37, 38, 39) are granted, scoped to the revnet; repayment ceilings cannot underpay the live debt; partial repay mints the replacement NFT.
  • Operator: no exposed call can change issuance, cuts, taxes, or split percentages; a Safe proposal is not success.
  • Multichain: one chain's project, token, decimals, operator, or proof is never reused on another; delayed claims stay claimable.

Audit prompts and source indexRevnet contract testsTests every project needs

Back to contents

Reference

Words for builders

The technical terms this guide uses. Learn's glossary covers the plain-language ones.

  • Stage: a revnet ruleset: one period of the schedule, fixed at launch.
  • Split / reserved tokens: the share of new tokens sent to contributors. Revnets call it the split (splitPercent); Juicebox calls it reserved tokens (reservedPercent). Same mechanism.
  • Terminal: the contract that accepts payments, holds the balance, and runs cash outs.
  • Hook: a contract called during a payment, cash out, or split to change its result. The buyback hook buys from the pool when that beats issuance.
  • Sucker: a bridge contract pair that moves tokens and balance between chains.
  • TWAP: time-weighted average price. The buyback hook uses it as a floor and issues tokens when a swap cannot meet it.
  • Router gateway: the payment entry the router registry selects on upgraded chains. It holds funds before routing; failed fee payments stay held for retry.
  • SDK: @bananapus/nana-sdk-core, the TypeScript library for reads and builders.
  • ABI: a contract's callable functions and data types.
  • RPC: the connection an app uses to read a chain and send transactions.
  • Bendystraw: the indexer: onchain events organized into searchable GraphQL data.
  • IPFS: file storage addressed by content; holds names, logos, and media.
  • Bundle: a set of signed calls for several chains, paid once on one chain and executed on each.

Plain-language glossary

Back to contents

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.