December 2nd, 2021

In May of this year, Vitalik created a post on the Uniswap governance forum called, “UNI should become an oracle token.” He argues that there is a need for oracles to provide off-chain data, and that UNI is in a good position to provide an alternative to Chainlink for high-value, latency-tolerant use cases.

While it’s an interesting idea, as I reflected on that post recently, I was thinking about how Uniswap already is an oracle protocol. It already provides a price feed from the largest DEX on Ethereum. UNI already is an oracle token, the UNI DAO just hasn’t done much with that fact, as of yet at least.

A history of Uniswap as an oracle

Ever since v1, Uniswap has been an oracle protocol, albeit a very crude one at the time. Uniswap v1 was a series of ETH-ERC20 pools with a simple x * y = k pricing mechanism. You could query for the values of the ETH and the respective ERC20 token in any pool, and viola, you have a spot price oracle.

November 30th, 2021

A technical guide to on-chain governance

Disclaimer: this post and accompanying code is meant for educational purposes only. None of this is audited, and you should seek out audits before using contracts in production.

There has been much ado about DAOs lately--they are being used to govern financial protocols, form modern day guilds, and crowdfund the sale of historical documents.

But how do they work on-chain? This post will walk through an example of setting up governance using a variant of the popular governance contracts created by Compound Finance. The task? Deploying the U.S. federal government as smart contracts on Ethereum.

November 16th, 2021

Querying events from unverified contracts

So you want to write a Dune query for some quick and dirty analysis, but the contract isn’t verified on Dune! *starts sobbing uncontrollably 😭😭*

But degens aren’t deterred! With a little understanding of Ethereum events and a little effort, you can be on your way to querying.

In this post we’ll walk through analyzing some data from a contract that is yet to be verified on Dune--Juicebox’s Terminal V1 contract that is being used by Constitution DAO.

November 15th, 2021

Liquidity mining is the practice of distributing governance tokens to users that provide capital to a protocol. Announcing it in May 2020, the first protocol to put this into practice was Compound. Regarding the aim of liquidity mining, the post states:

“The distribution of COMP will become a core mechanic of the Compound protocol. All users and all applications built on top of Compound will continuously, and automatically receive governance rights, for free—in order to shape the future of the protocol.”

In other words, the initial goal of liquidity mining was to distribute governance tokens to users who would then become active participants in protocol governance.

Since that time, liquidity mining has been used by a number of DeFi protocols to distribute governance tokens from their treasuries, including Uniswap, Aave, Curve, and others.