Skip to content
Logo

Policies

A vault beneath a control panel, surrounded by streams of glowing green cubes on a dark reflective surface.

A Policy is an optional contract that decides what a block does with its share of new revenue. Without one, all of it goes to the vault as backing.

In short

  • The default, called the Standard Policy, is no contract at all. The block's share goes straight to the vault.
  • A block can launch with a Policy. Changing it later takes 7 days' notice.
  • The admin or the protocol Safe can switch a Policy off at any time. Revenue then flows to the vault again.
  • A Policy only receives new revenue. It cannot withdraw booked backing from the vault.
  • A staking block's Policy is fixed at launch and has no off-switch.

What a Policy might do

A Policy is any address the admin chooses. Usually it is a contract that follows a published rule: it could use revenue to buy the block's token and lock it, or hold a reserve in another asset. It could also be an ordinary wallet, which would send new revenue to whoever controls it. The protocol does not vet Policies. The 7 days' notice gives holders time to see a change coming and decide whether to stay. Explorers label them so holders can see what they are dealing with:

  • reviewed, immutable code
  • upgradeable by a named party
  • unreviewed

The protocol ships a reference template, the Reserve Policy. A Reserve Policy sells the BUX it receives for one chosen asset through its own falling-price auction. It then sends that asset to the vault to be booked as backing. The vault must keep that asset. A reference Policy is created from a factory, during launch or before a proposal. That lets an explorer match its code and confirm which vault it is bound to.

Do not choose the dollar behind BUX as the reserve. One BUX is always worth one of those dollars, so an auction selling BUX for them can only sell at that price or below it. To hold dollars, keep the Standard Policy.

What a Policy receives

The block's share of revenue comes from two places. The block's own market credits 70% of every swap fee to the block currently. The block's Jar receives everything apps send. Both deliver to the current Policy.

With the Standard Policy, delivery is direct. The market sends the block's share to the vault at the next trade. The Jar sends BUX and kept tokens to the vault as they arrive.

With a custom Policy, the block's share waits at the market or the Jar until someone collects it for the Policy. Anyone can collect it. It goes to whichever Policy is current at that moment. Collecting for a custom Policy pays no work fee. If the Policy later sends money to the vault, the vault pays the work fee when it books it.

Launch proceeds and money sent straight to the vault never pass through a Policy.

Changing a Policy

A block can launch with a Policy, with no notice. After launch, every change to a non-default Policy follows these steps. A staking block's Policy is fixed at launch and never changes.

The admin proposes

The admin proposes a new Policy address. This is only possible once the block's market is live. Holders can redeem throughout the notice period, and sell while markets are not paused.

7 days' notice runs

The vault records the proposed address and an activation time 7 days later. The block's page shows the pending change. A new proposal restarts the clock.

Anyone applies

From the activation time, anyone can apply the change.

The admin or the Safe can disable a Policy with no notice. Disabling sets the Policy back to the default and clears any pending proposal. Money a Policy has already received stays with it. Shares still waiting at the market or Jar go to the vault.

Returning to a Policy that was used before also needs the 7 days' notice. To cancel a pending change without switching, the admin re-proposes the current Policy.

Worked example

Maya's block is on the Standard Policy. On 1 June her admin proposes a Reserve Policy that will buy ETH with revenue.

  • the earliest the change can be applied is 8 June
  • a swap on 5 June credits 7 BUX to the block's share. It is delivered to the vault at the next swap, because the Standard Policy is still current
  • the change is applied on 9 June. A swap on 10 June credits 7 BUX to the block's share. It now waits to be collected for the Reserve Policy
  • the Reserve Policy sells its BUX for ETH and sends the ETH to the vault. The vault books it, less the work fee
  • the 100,000 BUX already in the vault on 1 June is untouched throughout. Only redemptions can move it

What a Policy cannot do

  • withdraw or redirect booked backing
  • receive launch proceeds or money sent straight to the vault
  • change after launch without 7 days' notice, whoever wrote it
  • resist being disabled by the admin or the Safe

The protocol guarantees the change rules and keeps booked backing out of a Policy's reach. It does not guarantee that a Policy's code is honest. Read the label before you hold a block with a custom Policy.

For developers

  • The Policy is BlockVault.policy(). The zero address is the Standard Policy.
  • proposePolicy(next) is admin-only and requires BlockFactory.isBlock(token). applyPolicy() may be called by anyone within POLICY_NOTICE (7 days) of the activation time. disablePolicy() may be called by the admin or the Safe.
  • pendingPolicy() returns the proposed address and its activation time.
  • Rows: BlockHook.claimPolicy(token) delivers the market row. Jar.claimPolicyAsset(asset) delivers a Jar row. PolicySweeper.claimAll(token) syncs the Jar's BUX and pulls every row in one call, with a separate 500,000-gas budget for each retained asset. A row's destination is read at pull.
  • A launch can name policyFactory and policyFactoryData. The factory calls IPolicyFactory.create(vault, data) before the vault is initialised, so a Policy must read vault.token() when it runs, never at creation.
  • StandardPolicy is an example contract for Policy authors, not the default. ReservePolicy and ReservePolicyFactory are the reference template. policyFactoryData for Reserve is abi.encode(reserve).
  • Staking blocks use a fixed BuybackPolicy created by StakingFactory.launch. It has no setter and no off-switch.

Next