Skip to main content

2 posts tagged with "Protocol"

Mechanism design and protocol behavior.

View All Tags

When the Market Knows the Controller

· 19 min read
RAI Dollar

A furnace has no opinion about the temperature its thermostat is set to. It does not know the rule the thermostat uses to decide when to switch it on, and it could not act differently even if it did. It only knows what the thermostat is telling it right now, not what the thermostat will tell it later as the room warms up. The classical stability toolkit, gain and phase margins, Bode and Nyquist plots, assumes exactly this: the thing being controlled, the "plant," is unaware of the controller.

Onchain DeFi controllers, such as RAI Dollar's peg controller, operate in a different environment. They are public bytecode: every parameter is visible, every response is predictable given its inputs, and anyone can execute them in advance. The "plant" being controlled is a market full of profit-seeking actors who can use this to trade against the controller's future. The moment they do, the plant's dynamics change, and the plant can no longer be modeled on its own: the controller is now part of it.

Classical loop: the plant only hears commandsThermostatcontrollerFurnaceplantRoom temperatureoutputon / offheatmeasuredtemperatureInformation flows one way into the plant.Onchain loop: the plant also reads the rulePeg controllercontroller, public bytecodeThe marketplant: people with capitalRD market priceoutputrate, partradesoraclepricereads the rule, acts aheadThe plant can run the controller forward.
The same loop, with one extra arrow. A furnace receives commands and returns heat; it never reads the thermostat's rule. The market receives rate and par and returns a price, but it can also read the controller's bytecode, run it forward, and trade on what it will do next. Everything in this post follows from that dashed arrow.

RAI Dollar: the immutable $1 stablecoin of DeFi

· 14 min read
RAI Dollar

Most stablecoins have administrators: a team, a governance token, a multisig that can pause the contracts, swap an oracle, or change a collateral parameter. A certain lineage of stablecoins has rejected that design, instead choosing to deploy code that can't be changed and stablecoins that can't be frozen or censored. RAI Dollar (RD) is the newest of these immutable stablecoins, and it fixes specific gaps the earlier ones left open. To understand the gaps, let's start with the previous ungoverned CDP stablecoins.