Image for post
Image for post
Prometheus Carrying Fire — Jan Cossiers (1600–1671) — Prado Museum

tl:dr: Smart tokens are ERC-20 tokens with extra features.

The ERC-20 standard is powerful for a few reasons, but one of them is how easy it is to build liquidity around. These tokens are plugged into liquidity models with ease, and what we get is a more liquid market that is better for all parties. Liquidity models will continue to grow and iterate towards zero impermanent loss, but what about the tokens?

System Tokens

Image for post
Image for post
Maker Dao’s Dai Stablecoin System —

Smart Tokens

The Primitive Protocol is designing smart tokens that can be used as pieces to more complex systems. In addition, we design extension contracts which make interactions with the smart tokens easier. These pieces will be an additional set in our arsenal of DeFi legos.

We’ve designed our first smart token with the options market of DeFi in mind. This is because options on tokens will be one of the fundamental steps in the growth of DeFi. An option is the right to swap a strike token for an underlying token; its a limit order frozen in time but only available over a fixed time period.

The Prime Smart Token

Image for post
Image for post
The Prime Smart Token —Vanilla Option Specification

The functionality of a vanilla option from legacy finance is: the right to buy or sell the underlying asset for the strike price. To match this specification, the Prime has a ‘swap’ function which does this action. It will swap the tokens at a fixed ratio, which is specified when the Prime is deployed to the EVM (created). Since Primes could be options on any token, and the denomination could be any token, the ratio between those two quantities is called the strike ratio.

Legacy options are denominated in local currencies like the US Dollar and this is called the strike price. Primes are denominated in any strike token, so we have a strike ratio rather than a strike price.

Extension Contracts

Liquidity Pool

Its capable of doing this because it has logic to do three tasks: (1) Accept deposits of underlying tokens from liquidity providers, (2) Mint Primes using the underlying tokens, (3) Sell those Primes for a premium to buyers.

The first task is like any other pool depositing method. When an LP deposits funds they get a proportional share of liquidity tokens which can be redeemed for a portion of the pool.

The second task is where the flexibility of the Prime comes in. The Prime contract knows how to output Primes based on the amount of input underlying tokens. The pool sends underlying tokens, calls the mint function, and then receives Prime tokens, which can then be sold.

The third task is more complex. The premium, the value of a vanilla option, is derived from its intrinsic and extrinsic values. The intrinsic value is the difference between the strike ratio and the market ratio between the underlying and strike tokens. To calculate this value, an oracle is needed. The second difficulty is estimating the extrinsic value, which is based on the time until expiry and the implied volatility of the option.

An Oracle

To calculate the intrinsic value, the pool will use an oracle to get the current market ratio between the underlying and strike token. It then compares this amount to the strike ratio, the ratio defined in the Prime contract. The difference is the intrinsic value. At this stage, we are using Compound’s oracle, but the final decision on what oracle to use will come down to the security it can provide.

To calculate the extrinsic value we use the following formula:

Image for post
Image for post

Implied Volatility is a difficult value to get and we have not found it. What we can do is use a proxy for it, and we do that by using the utilization of the pool; a proxy for demand.

Image for post
Image for post

When we combine the intrinsic and extrinsic value, we get the premium. This premium is fed to the pool, and the pool will sell the Primes to buyers for this value.


Pools, or even other tokens, can design around the specification of the Prime to create new products, and we expect teams to do this.

That is why we are here to help. If you have a suggestion, request, or question you can join the protocol’s developers and users in the Discord.

Next Steps

Currently, the Prime smart token is on mainnet with a Trader contract that makes it easy to interact with the Prime. Keep in mind, these contracts have not been secured yet. Any funds that are held in these contracts are effectively 100% at risk.

Our priority is security and we are taking the steps to secure the contracts for the V1 release.



Written by

Permissionless options protocol. Built on Ethereum.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store