Skip to main content

Governance

Circuit protocol is goverend by CRT token holders. Token holders can use their CRT tokens to vote on changes to Statutes, which are global state parameters that define the protocol's behaviour. Statutes are stored in the Statutes singleton. Other than the Statutes, Circuit protocol is fully immutable.

The reason that Circuit requires goverance is to keep the 1:1 peg of Bytecash to the US Dollar. This cannot be fully automated, as the protocol needs to respond to changing market conditions. Governance's responsibilities consist of the following:

  • Selecting data providers for the Oracle
  • Monitoring the market price of Bytecash for deviations from the peg
  • Adjusting relevant Statutes to maintain the peg

Oracle Selection

It is crucial for the functioning of the protocol that it has access to accurate and timely XCH/USD prices, as liquidations hinge on this. Governance should only whitelist trusted data providers that have a track record of publishing XCH/USD prices in an Announcer coin on-chain. Data provider performance should be monitored on an ongoing basis, and in case of poor performance, governance should unwhitelist the data provider's Announcer. For further details on Oracle and Announcers, see the Oracle page.

Monitoring Bytecash market price

As a stablecoin pegged 1:1 to the US Dollar, Bytecash is meant to be valued at 1 USD in the market. If Bytecash trades at a premium or discount to 1 USD for an extended period of time, governance should intervene to push the market price of Bytecash back to its peg.

Since small oscillations of the price around the peg are to be expected, governance only needs to take action is there is a structural deviation from the peg that lasts for days or weeks. An upshot of this is that there is no need for the protocol to have a BYC/USD Oracle.

Updating Statutes

The two primary tools governance has at its disposal to maintain the peg are Stability Fee and Savings Rate. Raising the Stability Fee makes it more expensive for borrowers to take out Bytecash loans, incentivising repayments and disincentivising the creation of new Bytecash. Similarly, a higher Savings Rate incentivises users to acquire Bytecash to lock it up in savings vaults, reducing the amount of Bytecash in circulation. Both measures put upwards pressure on the BYC price. Vice versa, governance can put downwards pressure on the BYC price by lowering the Stability Fee and/or Savings Rate.

In addition to Stability Fee and Savings Rate, governance is able to update a few dozen additional Statutes. Those additional Statutes are not sensitive to market conditions, and are expected to rarely change, if ever. For example, M-of-N, the Statute that defines the minimum number of Announcer prices that must be included in an Oracle Price update, typically only needs to be updated when a data provider is whitelisted or unwhitelisted. Other Statutes, for example those that define auction formats may never need to be updated, although changes in the liquidity for assets being auctioned off, TVL of the protocol, as well as the number of bidders regularly participating in auctions could make occasional tweaks beneficial.

Governance process

Circuit protocol governance is conducted fully on-chain. Any CRT token holder can propose to change a Statute by locking up CRT tokens with the governance puzzle, specifying the Statute to be changed and the proposed new value and Constraints. For a proposal to be valid, the number of CRT locked up in this manner must exceed the Proposal Threshold.

Governance timeline

Once proposal has been made, a Veto Period starts during which other CRT holders have the opportunity to veto the proposal. A veto needs to be backed by more CRT than the original proposal to be successful. If the proposal does not get vetoed, the new Statute can be implemented ('enacted') after the Implementation Delay has passed. A Statute must be implemented within the Enactement Period or otherwise lapses.

Constraints

Given that Statutes differ in terms of criticality and required update frequency, each Statute comes with a set of Constraints that impose limitations on how it can be updated:

  • Proposal Threshold: minimum amount of CRT required to make a proposal
  • Veto Period: time period (in seconds) during which a proposal can be vetoed
  • Implemenation Delay: time (in seconds) that needs to pass before the new Statute value becomes effective after the end of the veto period
  • Maximum Delta: the maximum absolute amount by which the Statute value may change

Just like Statutes themselves, governance can update the Constrainsts, subject to the same limitations.

info

Constraints are an important safety measure, as they prevent sudden Statute changes.

The Proposal Threshold protects the protocol against spam proposals.

A proposal can be blocked if within the Veto Period the proposal is vetoed by an amount of CRT larger than is backing the proposal. Once the Veto Period has passed without a successful veto, the protocol waits until the Implementation Delay period has passed before implementing ('enacting') the new Statute value (including any changes to the corresponding Constraints).

The Implementation Delay gives users time to withdraw their assets from the protocol in an orderly manner if they are unhappy with the changes made by the proposal. In particular, it protects users from a malicious governance takeover in which an attacker secretly accumulates a CRT stake large enough to make a proposal that cannot be vetoed. As governance takeovers are in general impossible to detect in advance, users of the protocol should keep in mind that a Statute may change to a value unacceptable to them after the Implementation Delay has passed. For example, a borrower may want to ensure that they can repay their loan within the Implementation Delay period for relevant Statutes.

The Maximum Delta Constraint is designed to give users assurances about the size of changes to Statute values that need to have a relatively short Implementation Delay, for example to respond to changing market conditions. Statutes for which this is relevant are Stability Fee, Savings Rate, and Treasury Maximum. For other Statutes, Maximum Delta would typically be set to 0, allowing updates of any size.

User considerations

Before interacting with the protocol, users should consider how they intend to use the protocol and whether the Constraints are set to values that allow them to exit their positions in a timely manner should a proposal get voted through that would change one or more Statutes or Constraints to values unacceptable to the user.

danger

Protocol users should consider whether they are comfortable with the Statutes and Constraints, and whether changes to them may adversely affect them.

For example, consider a user who borrows BYC at an 8% Stability Fee to invest in a fund that offers monthly redemptions. Assume the user expects the fund to deliver a return of 10% per annum in any given month. If the Stability Fee has a Veto Period and Implementation Delay of one week each, the borrower could not be certain what the SF is going to be in the last two weeks before they have an opportunity to redeem from the fund and repay their loan. Unless they have other sources of capital to repay the BYC loan after two weeks if governance changes the SF to 12% or more, they cannot protect themselves against their investment making a loss. If on the other hand the fund offered weekly redemptions, the borrower could always exit the fund and repay their BYC debt on time before the new SF is effective.

Statutes

  • Enactment Timeout
    • Statute index: 34
    • Statute name: STATUTE_ENACTMENT_TIMEOUT_SECONDS
    • considerations: should be long enough to allow manual enactment in a low-fee period. should be short enough to avoid attacks in which successful proposals are kept lingering and forgotten about only to be enacted unexpectedly in a changed environment.