Skip to content
Logo
Staking blocks

bTokens

An open vault filled with unicorn-marked coins, connected by glowing green streams to a coin and a square token.

A bToken brings a token that already exists into Blocks. No new token, no sale, no migration: deposit the token you hold, receive bTokens, and that token has the whole Blocks ecosystem behind it straight away.

A staking block is a full block, with its own Jar. That gives any existing token:

  • revenue to holders. Anything that earns money can pay the Jar, in any token. The revenue is turned into the wrapped token and shared across every bToken holder
  • Coins. Coins can launch under it as their parent, just like under any other block, and part of every coin trade's fee can flow back to it
  • community. A bToken shows who has committed to a token, so apps can build holder communities and perks around it
  • instant utility. Deposit and redeem whenever you like, and exits never wait on an auction

In short

  • A staking block wraps one existing token. Deposit it, get bTokens. Redeem bTokens, get it back.
  • There is no fixed supply and no protocol market for the bToken.
  • Revenue reported to the block is locked and released to holders over a set period, 10 days by default.
  • The staking block's Policy is fixed at launch. It turns any BUX the block earns into the wrapped token and reports it as revenue.
  • The wrapper has no owner, no pause, no rescue and no upgrade.

How it works

A staking block is a tokenised vault for one token, fixed at launch.

  • deposits create bTokens at the current rate. Exits return only the wrapped token
  • the bToken is named after the wrapped token. A token called FAN becomes Blocks FAN, symbol bFAN
  • when revenue is reported, the vault pays the work fee (1% currently) in the wrapped token and locks the rest. It unlocks in a straight line over the block's unlock period, so the value of each bToken rises steadily rather than jumping
  • deposits made during an unlock share in the revenue still to be released
  • sending the wrapped token straight to the vault raises the value of every bToken at once and pays no work fee. Ordinary deposits and exits pay none either

The unlock period is fixed at launch: 10 days if the launcher does not choose one, otherwise 1 to 30 days.

Where the revenue comes from

A staking block has a Jar like any other block. Anything sent to it follows the block's fixed buyback Policy:

  • the wrapped token and BUX are held for the Policy
  • bTokens that reach the home Jar are burned and re-created as locked revenue, so their value goes to the remaining holders
  • every other token is sold for BUX

The Policy turns its BUX into the wrapped token and reports it as revenue. For most tokens it does this through its own falling-price auction. If the wrapped token is BUX itself, BUX is reported directly. If it is the dollar behind BUX, the Policy redeems BUX for it 1 for 1. Anyone can start an auction or report what the Policy already holds. There is no keeper role and no price feed. Holder exits never depend on an auction. Read Keepers and auctions for how the auction runs and who starts it.

Worked example

Say a creator launches a staking block for FAN with the default 10-day unlock.

  • you deposit 1,000 FAN and receive 1,000 bFAN. At the start one bFAN is worth one FAN
  • an app reports 100 FAN of revenue. The vault pays 1 FAN as the work fee and locks 99 FAN
  • over the next 10 days the 99 FAN unlocks. On day 5 each bFAN is worth about 1.047 FAN. On day 10 it is worth 1.099 FAN
  • you redeem your 1,000 bFAN on day 10 and receive 1,099 FAN

If you had deposited on day 5 instead, you would have received fewer bFAN for your FAN. You would share only in the revenue released after you joined.

Which tokens to avoid

bTokens do not support the tokens below. The protocol does not check for them at launch: it only checks that the address is a contract. Apps that launch bTokens should check first, and so should you before you deposit.

  • Fee-on-transfer or burn-on-transfer tokens. Deposits fail, because the vault rejects a transfer that delivers less than expected. Exits can pay out less than expected.
  • Rebasing tokens, whose balances change without a transfer. A positive rebase goes to whoever is in the vault. A negative one lowers the value of every bToken.
  • Tokens whose owner can burn, pause or blocklist. The owner can reduce the vault's balance or stop deposits and exits. The protocol cannot lose your tokens, but the token can lose or freeze them.
  • Non-standard tokens. Missing return values are handled. Tokens that report false balances or reject zero-amount transfers are not.
  • Tokens with more than 18 decimals, or none. These cannot launch, because the Policy's auction rejects them. BUX and the dollar behind it are the exception: they need no auction.
  • Tokens whose smallest unit is worth more than 1 BUX. The auction's lowest price is one unit per whole BUX, so BUX revenue may never convert. Deposits and exits still work.
  • Tokens with very few decimals, such as a 2-decimal stablecoin. The auction rounds each payment down, so buyers can pay close to half price on small purchases. This matters only where one unit is worth more than the gas to buy it.
  • Upgradeable tokens. They work today, but their owner can add any of the above later.

Limits

RuleValue
Wrapped tokenone ERC-20, fixed at launch
bToken decimalsthe wrapped token's decimals plus 6
Unlock period10 days by default, otherwise 1-30 days, fixed at launch
Work fee1% of reported revenue currently, in the wrapped token
Policyfixed buyback Policy, no change and no off-switch
Launch fee0.0005 ETH currently, set by the Safe
Admin powersmetadata, creator payout, handover. Nothing else

No protocol pause stops deposits, exits or revenue reporting, but the wrapped token's own controls can.

For developers

  • Contracts: StakingFactory, StakingVault (the bToken), StakingBlockConfig and BuybackPolicy, under contracts/src/staking.
  • StakingVault is ERC-4626 with permit over one underlying. deposit, mint, redeem(shares, receiver, owner) and withdraw(assets, receiver, owner) are standard. addRevenue(amount) pays the work fee and locks the net as profit. burn is callable only by the home Jar. The decimals offset is 6.
  • StakingFactory.launch deploys the vault, its Jar, a fixed routing config and a BuybackPolicy. It shares BlockFactory's pause gate for launches.
  • StakingFactory.vaultOf(token) returns the StakingBlockConfig, not the bToken and not a payment address. Pay the Jar. BlockLens.redemptionOf(token) returns the bToken itself for a staking block.
  • BuybackPolicy.kickAuction() pulls rows and starts a lot in the Policy's auction for its BUX. When the underlying is BUX or BUX's reserve asset there is no auction; reportUnderlying handles those. Auction settings are shared through BuybackConfig, whose factory pointer the Safe can switch.
  • The Policy's auction has a starting price of 1e36, 5-second steps and a minimum price of one atom of the underlying per whole BUX.
  • Check isStakingBlock before using the BlockVault reads; a staking block has no BlockVault.

Next

  • Blocks for the other kind of block
  • Jars for how revenue arrives
  • Policies for how the fixed Policy compares with one a block's admin can change