Jars
A Jar is one address, on every chain Blocks supports, that collects a block's revenue. Anything that earns money can pay it: trading fees, subscriptions, merch, ticket sales, sponsorships, games, apps, memberships, onchain or off. The Jar gets the money to the vault.
A block never has to chase the hype. Wherever the action is, its Jar is already there. Hype moves from chain to chain: one month the action is on Robinhood, the next it is on Base, then Optimism. A creator token that lives on one chain misses out every time the action moves, and that is a big reason creator tokens failed before. A block is different. An app on any chain Blocks supports can pay its Jar there, and the Jar sends the block's share home to the vault. The block stays where its holders are, and its revenue can come from wherever the action is.
Jars are live on Robinhood and Base. Sending revenue home from another chain is coming soon. Read Bridging for how money will come home.
In short
- Anything can be sent to a Jar: BUX, ETH, WBTC, stock tokens like TSLA or NVDA, or any other token.
- The Jar sorts what arrives. BUX, and the dollar behind it, go to the vault, or to the block's Policy if it has one. Other tokens are sold for BUX, which follows the same route.
- The block's own token is burned when it reaches the home Jar.
- Jars charge nothing. The vault pays the work fee when it books the money.
- Anyone can create a block's Jar, and anyone can trigger its deliveries.
How a Jar sorts what arrives
On the block's home chain:
| What arrives | What the Jar does |
|---|---|
| The block's own token | Burns it in full, which hands its share of the backing to the remaining holders |
| ETH | Wraps it to WETH, then treats it as a token below |
| The dollar behind BUX | Wraps it to BUX 1 for 1, then treats it as BUX |
| BUX | Sends it to the vault, or holds it for the block's Policy if one is set |
| A token the vault keeps | Pushes it to the vault and books it, or holds it for the Policy |
| Anything else | Puts it up for sale in a falling-price auction. The BUX paid goes to the vault, or to the Policy |
On another chain, BUX is held until it is sent home over the bridge, and every other token is sold for that chain's BUX. Read more on Bridging.
Two ways to pay a Jar
- deposit: approve the Jar and deposit the asset, the amount and a source label. The source is for attribution only: it earns nothing and changes no split
- plain transfer: send tokens or ETH to the Jar's address. Anyone can then trigger the Jar to route whatever has arrived, with no source label
Both paths emit a public revenue event that indexers and the block's page use to show where money came from.
How other tokens are sold
Tokens the vault does not keep become stock for sale, called inventory. A contract called the Releaser sells it for BUX in a falling-price auction: the price starts very high and drops until someone buys. No outside price feed is used. Keepers and auctions compares this auction with a Policy's.
Anyone stages a lot
Staging snapshots the Jar's current inventory of one token as a lot. Each lot runs on its own clock.
The Blocks team runs a buyer bot that stages lots and buys at its own valuation. Anyone else can do the same: read how to run your own keeper. A buyer who values a lot above its lowest price has no reason to wait, because another buyer can take it first.
Worked example
This example assumes a live block with no custom Policy.
A game sells a 50 BUX sticker pack. It keeps 30 BUX, pays the creator 5 BUX directly, and deposits the block's 15 BUX into the Jar with the game as the source.
The Jar sends the 15 BUX to the vault. When the vault next books, it pays 0.15 BUX as the work fee and adds 14.85 BUX to backing.
Now a fan sends 1,000 PINK tokens to the Jar. The vault does not keep PINK, so the tokens become inventory. Anyone stages the lot. Sixteen hours later the price is about 550 BUX. A buyer takes the whole lot for 550 BUX. The Jar sends the 1,000 PINK to the buyer and the 550 BUX to the vault. The vault books 544.50 BUX of backing after the 5.50 BUX work fee.
Limits and rules
- a Jar has no rescue, sweep or recovery function. What it holds leaves only through delivery, a sale paid in BUX, or a bridge send
- inventory leaves a Jar only against BUX arriving in the same call
- each token is handled on its own
- the Safe can pause the sale of one token at a time. Receipts and deliveries of other tokens continue
- the Safe can replace the Releaser with a new deployment. The price band and lot lifetime are fixed in each deployment
For developers
- Contracts:
Jar(one deterministic clone per block per chain),JarFactory,Releaser,JarSweeper. - A block's Jar address is
JarFactory.predict(homeChainId, token).JarFactory.createdeploys it if missing. Anyone may call either. Jar.deposit(asset, amount, source)pulls ERC-20 tokens, or takes native currency whenassetis the zero address andmsg.valueequalsamount.Jar.sync(asset)routes any balance aboveaccounted(asset).Jar.inventory,policyClaimableandhomeBoundare the three balances per asset;accountedis their sum. Sale proceeds and BUX receipts go to the vault under the Standard Policy, topolicyClaimableunder a custom Policy, and tohomeBoundon a remote chain.Jar.claimPolicyAsset(asset)delivers a waiting row to the current Policy, or the vault if the Policy is zero.PolicySweeper.claimAll(token)does this for BUX and every retained asset in one call.Releaser.stage(jar, asset)andReleaser.takeWithLimits(jar, asset, maxAmount, minAmount, maxPayment, receiver, deadline)run the auction.Jar.releaseaccepts only the current Releaser and requires the BUX payment to arrive first.Jar.bridgeHome(amount)will send home-bound BUX from a remote Jar to the same address at home once multi-chain Jars are live. The caller pays the message fee in native currency.- The event
BlockRevenue(homeChainId, token, asset, gross, source)is emitted on every deposit and sync.
Next
- Policies for what can happen to revenue before it becomes backing
- Building on Blocks for the integration
- Bridging for Jars on other chains