DeFi on the Tezos blockchain
Decentralized Finance (DeFi) is a ο¬nancial innovation brought by blockchain technology. By relying on smart contract technologyβalgorithms deployed on blockchains to ensure the execution of certain predeο¬ned tasksβDeFi aims to create a new ο¬nancial system that is open to everyone and reduces the need for trusted third parties.
This document gives an overview of state-of-the-art DeFi applications available on the Tezos blockchain at the time of writing.
Automated Market Makers: Decentralized Exchanges
AMMs (automated market makers) are applications that allow users to exchange tokens without the use of traditional market makers and order-book models.
No central entity is required to gather buyers and sellers or to ensure successful transactions. AMMs rely on a set of smart contracts whose main components are liquidity pools ΒΉ. Liquidity pools allow users to seamlessly swap tokens
on-chainβthat is, exchange one asset for another on the blockchainβthanks to decentralized and non-custodial smart contract codes. In such pools, liquidity providers Β² earn rewards corresponding to trading fees charged for each transaction. This amount is proportional to their contribution to the pool.
The most successful decentralized exchanges use the constant product market maker (CPMM) formula to ensure tokensβ parity within the pool over time:
where is the amount of a given token A, and the amount of a given token B. is a constant, which always remains the same and ensures the stability of the pool. When users interact with a liquidity pool, the product of remains the same. However, if a price discrepancy appears between a centralized exchange (external from the blockchain) and the pool of tokens, arbitrageurs3 can exploit such an opportunity to rebalance the pool with the market prices. Arbitrageurs may then take a proο¬t.
Using liquidity pools involves certain risks. Apart from omitting the risk of smart contracts being hacked, which can be achieved with careful audits, a well-known risk of liquidity pools is impermanent loss. This is the diο¬erence in earnings between introducing liquidity into a given pool and simply holding the assets.
When a price discrepancy occurs, for example, one of the tokens within the pool increases in price, and arbitrageurs exploit such an opportunity and rebalance the pool. However, if the liquidity providers simply held the same assets, they could entirely beneο¬t from the price increase.
Therefore, the more assets are correlated in terms of price to one another, the less impermanent loss is likely to occur as price movements are almost the same.
[1]: A liquidity pool is a pool of tokens locked in a smart contract that allows external users to swap assets within the pool.
[2]: People who bring liquidity to the pools to enable exchanges.
[3]: An arbitrageur is a type of investor who attempts to proο¬t from market ineο¬ciencies (e.g., price discrepancies).
Dexter
Dexter is the ο¬rst Tezos AMM decentralized exchange (DEX) launched in Q4 2020. The main features of Dexter are:
Exchange tokenβtez and tokenβtoken.
Provide liquidity in token/tez pools and earn exchange fees.
Earn tez rewards, which are distributed by bakers of the diο¬erent pools.
Plenty DeFi
Plenty introduced a $PLENTY token to reward users for providing liquidity on speciο¬c pools βΈ. $PLENTY tokens will also play a key role in Plentyβs future applications as a governance token. Liquidity providers are rewarded in $PLENTY tokens in their yield-farming application.
Plenty team recently deployed its AMM and is gradually adding new pairs to allow users to stake assets, provide liquidity, and exchange various token pairs.
In the future, Plenty aims to provide additional tools to enable interactions and create synergy within the existing ecosystem by providing:
A lottery.
A governance process and tokenomics.
A prediction market.
IFO (initial farm oο¬ering), a new way of ο¬nancing projects by raising funds using the PLENTY-XTZ liquidity pool.
[8]: PLENTY, ETHtz, hDAO, USDtz, wLINK, and wMATIC (as of August 2021).
Figure: Plentyβs AMM.
Figure: Some of the Plenty liquidity pools.
Figure: Plentyβs farm pools.
QuipuSwap
Users can add new token pairs.
Users can vote for delegates of a liquidity pool or ban a βbadβ delegate who doesnβt do the job.
Provide liquidity in token/tez pools and earn exchange fees.
Earn tez rewards distributed by bakers to the liquidity pools.
QuipuSwap recently launched its governance token β΄ $QUIPU. Early users of the platform received $QUIPU airdrops to reward them for their participation. $QUIPU will be used in platform governance and in a liquidity-mining program.
In the future, QuipuSwap aims at providing further tools:
Token-to-token pools.
A smart βrouterβ service to help pick the optimal swap path.
A new front-end for a better user experience.
Public token listings as an alternative to the current white-listing procedure.
New enhanced smart contracts version.
[4]: Governance tokens are associated with voting power on a blockchain project. With governance tokens, one can create and vote on governance proposals over a set of smart contracts that control an organization called a Decentralized Autonomous Organization or DAO.
Liquidity Baking
The motivation behind such a contractβbrought for the ο¬rst time by an amendment instead of an independent set of smart contracts built separately from the protocolβis to increase the overall tez liquidity along with tzBTC, a wrapped β΅ version of Bitcoin (BTC) on Tezos. How this DEX works is quite innovative:
A subsidy of 2.5 tez is minted and brought to the tez/tzBTC pool at each block. It increases tez volume in the Liquidity Baking contract over time.
Liquidity providers receive fees plus freshly minted tez proportionally to their share of the liquidity pool.
Bakers can vote to stop the Liquidity Baking contract from a protocol point of view.
An emergency escape hatch is provided if something goes wrong.
The smart contract used for Liquidity Baking is not speciο¬c to tzBTC and can be used for any arbitrary tezβtoken Tezos pool.
[5]: A wrapped token is a token pegged to the value of another cryptocurrency. The original asset is put in a wrapper (represented by a digital escrow contract) that allows the issuance of the wrapped representation. It allows users to beneο¬t from other blockchain features (scalability, security, etc.).
Decentralized Fundraising
Decentralized fundraising is a new ο¬nancing method allowing project creators to raise funds in a decentralized manner. In the same way that start-ups receive capital before launching, projects using the decentralized fundraising process can receive funds both from institutional and individual investors. Unlike an initial public oο¬ering (IPO), investors never own any equity in the project. A major diο¬erence compared to classic fundraising is much lighter legal requirements, which makes the whole process easier.
By participating in decentralized fundraising, investors receive tokens proportionally to their investment. These tokens play a key role in the new applications and protocols built.
1. Initial DEX offerings
An initial DEX oο¬ering (IDO) is a fundraising process whose purpose is to ο¬nance DeFi projects using decentralized exchanges as an alternative to centralized exchanges that involve heavy and permissioned fundraising processes.
IDOs oο¬er new projects the opportunity to create and list their token to ο¬nance their future business.
Rocket launchpad
Rocket uses a system based on $RCKT (Rocket token) holding to allow users to participate in presales of new Tezos-based projects and stake their tokens.
All projects are vetted through a submission process to ensure the best projects launch.
To ensure the most decentralized approach possible, smart contracts are used so Rocket never handles any funds.
Figure: Rocketβs launchpad interface.
This project is currently being reviewed and audited.
Instaraise
The platform allows token-based projects to raise funds by setting up a swap pool based on a ο¬xed purchase rate. These so-called βFixed Swap Poolsβ have many advantages for token sale investors over traditional fundraising models like initial coin oο¬erings (ICOs), IEOs, and IDOs (Initial DEX Oο¬erings). Fixed Swap Pools will maintain the token price throughout the sale until the initial supply is bought.
With Instaraise, Tezos projects will be able to raise and exchange capital cheaply and quickly, and users will be able to participate in a secure and compliant environment. Instant liquidity provisioning (in QuipuSwap) is facilitated securely thanks to smart contracts.
Anyone can use the presale infrastructure and the owner console to start their presale. Instaraise deployed the $INSTA token to allow presale facilitation and create beneο¬ts for users such as liquidity mining (a program that rewards users of a given service), staking rewards, discounted sales with white-listed addresses, and airdrops.
Figure: Instaraiseβs interface.
This project has not been audited as of August 2021.
Hybrid Cross-Chain Exchange
A cross-chain exchange is a type of decentralized exchange where people can trade assets from diο¬erent chains using a technology called an atomic swap.
An atomic swap is an exchange of assets occurring in a decentralized manner, without any central authority needed to ensure the exchangeβs success. It is called βatomicβ because either the entire exchange occurs or nothing happens and both parties involved get their assets back. It is useful to:
Swap two diο¬erent tokens from a single blockchain.
Swap two assets from two diο¬erent blockchains.
Atomex
Cross-chain swaps between Tezos (tez), BTC, Ethereum (ETH), Tether (USDT), WBTC, TBTC.
On-chain swaps between Tezos, KUSD (kUSD), TZBTC (tzBTC).
Cryptocurrency purchases by card.
Portfolio monitoring.
Figure: Atomex walletβcross-chain exchange interface.
Tokens
Blockchains allow digital assets representation through tokens, deο¬ned by smart contract standards. These assets can be exchanged in the same way that native tokens βΆ are. Token standards facilitate the tokenization of applications in a blockchain.
On the Tezos blockchain, token standards are written in the Tezos Interoperability Proposal (TZIP) format. To understand the current state of token standards in Tezos, letβs look at the three main standard proposals:
[6]: A native token is the unit of account of a given blockchain, such as BTC for Bitcoin, tez for Tezos, etc.
Stablecoins
A stablecoin is an asset class that attempts to oο¬er price stability. It represents an asset, and its price is supposed to replicate its underlying value. Stablecoins have gained traction as they oο¬er almost instant processing, security, privacy of payments, and a volatility-free valuation of ο¬at currencies.
Of all the kinds of stablecoins, three are the most widespread:
Crypto-backed stablecoins: In most cases, to issue such a stablecoin, a cryptocurrency is put in an escrow smart contract as collateral. The use of such collateral relies on a game theory design and the exploitation of arbitrage opportunities to incentivize participants to keep the price stable.
Algorithmic stablecoins: These rely on algorithms and smart contracts to manage the supply of the stablecoin and thus maintain the peg to the underlying asset (e.g., USD, euro, etc.) by creating incentives to either buy or sell the stable token.
Kolibri: kUSD
Figure: Kolibriβs stablecoin web interface.
A dedicated liquidity pool has been created recently to prevent under-collateralization. Users pool kUSD and get 1% rewards on each liquidation performed.
Figure: kUSD liquidation pool.
Figure: Example of swap between wrapped UNI and kUSD on QuipuSwap.
USDtez
Figure: USDtez logo.
Figure: Buy USDtez on QuipuSwap.
USDS
Figure: Stablyβs logo.
Figure: Buy USDS on QuipuSwap.
Some other assets
Wrapped BTC: tzBTC
Developers on Tezos can use tzBTC to enable novel ο¬nancial applications on the Tezos blockchain. It replicates the value of the BTC on the Tezos blockchain. For each BTC sent to a speciο¬c smart contract, the equivalent in tzBTC is issued on the Tezos blockchain.
Figure: tzBTC logo.
Figure: Buy tzBTC on QuipuSwap.
Wrapped ETH: ETHtz
ETHtz replicates the value of the ETH on the Tezos blockchain. For each ETH sent to a speciο¬c escrow smart contract, the equivalent in ETHtz is issued on the Tezos blockchain.
Figure: ETHtz logo.
Figure: Buy ETHtz on QuipuSwap.
Wrapped Tezos: wXTZ
The idea is to combine XTZ staking with the possibility of trading the representation of the underlying asset. To mint wXTZ, users need to send XTZ to a vault. In return, they will receive a proportional amount of wXTZ. If they want to get their XTZ back, they need to send the wXTZ to the originated contract, which will burn the wrapped tokens and release the XTZ escrowed.
Figure: wXTZ logo.
Figure: Buy wXTZ on QuipuSwap.
Oracles
A blockchain oracle is a tool that connects blockchains with oο¬-chain data (i.e., unavailable on the blockchain).
Blockchains, by their decentralized nature, allow the sharing of data across a network. But what about dealing with oο¬-chain data?
Letβs imagine an application where people can bet on sports results. In that case, poor data can lead to a poor ο¬ow of funds.
The challenge is to feed actual and authentic external data representing the ο¬nal sports results into the blockchain such that it becomes possible to execute particular actions using on-chain smart contracts.
Thatβs where blockchain oracles come into place: They aggregate data from diο¬erent external sources (oο¬-chain) to ensure that the most accurate information is brought on-chain.
Harbinger
Harbingerβs inner functioning requires separate entities to provide signed and post-price updates on-chain. The more entities participate in the price feed, the more decentralized the solution is. Harbinger gathers a set of smart contracts dedicated to receive price updates from a speciο¬c exchange of cryptocurrencies. The price feeds are normalized and then posted on-chain.
Harbinger stores information of price about assets under βcandlesβ representation. Each asset in Harbinger price oracle contains:
start time
end time
open price
highest price
lowest price
close price
volume.
Figure: Harbinger infrastructure.
This project has not been audited as of August 2021.
Kaiko
Kaiko writes historical and live tez/USD and tez/Swiss franc exchange rates to each new Tezos block. The price from Kaiko price oracle is derived from Kaikoβs exchange rates data, which aggregates tez price data from dozens of exchanges.
Kaiko is also running its own Tezos node.
This project has not been audited as of August 2021.
Ubinetic
Ubineticβs oracle application fetches prices from liquid markets, checks whether the source data is accurate, timely, and complete, and signs the data to ensure that manipulation can be detected.
To guarantee that the application runs independently, so-called data transmitters run the mobile devices that are responsible for collecting the data from various exchanges.
Figure: Ubinetic oracle architecture (Youves is a DeFi protocol; more here).
The process of collecting and posting data is as follows:
An application on several mobile phones run by several independent data transmitters fetches data from liquid markets (e.g., Coinbase, Binance, etc.).
The application periodically posts the data to the Ubinetic Aggregator, which veriο¬es and stores the attestations, collects signed data for an interval, and publishes the data to the Tezos smart contract. The data normalization smart contract calculates the volume-weighted averages of the data from the diο¬erent exchanges.
This project has not been audited as of August 2021.
Decentralized Autonomous Organization
A DAO is an organization that uses open-source smart contract codes to automate and facilitate decision-making.
Using a DAO may help prevent human error or manipulation since the decision power is no longer in the hands of a few trusted people. Rather, it is automated distributively and written as an immutable code deployed on the blockchain.
StakerDAO
StakerDAOβs ecosystem comprises Staker Politicians (individuals involved with governanceβa requirement is to hold 1% of $STKR, StakerDAOβs tokenβand qualiο¬ed to submit proposals), STKR token holders, and the Staker development team.
Approved proposals are built and deployed by community members.
Figure: An overview of StakerDAOβs governance platform.
Cross-Blockchain Bridges
A cross-blockchain bridge is a connection that allows the transfer of tokens from one chain to another. The particularity is that both chains usually have diο¬erent protocols, and the bridge provides a way for them to interoperate.
To create a bridge between two blockchains in practice, we need to create a set of smart contracts that will allow users to escrow funds on one side and mint the equivalent token amount on the other side. It is possible to operate on one or the other chain, depending on usersβ needs.
A cross-chain bridge is indistinguishable from the concept of wrapped tokens. Indeed, as users need back-and-forth interaction, tokens must be wrapped on one side in an escrow smart contract to guarantee that the newly minted tokens represent existing assets. When a particular user decides to go back on the original chain, they can burn the wrapped tokens and thus unwrap their initial stake.
Bender Labs bridge
Binance USD (BUSD) into wBUSD.
Bitο¬nex LEO token (LEO) into wLEO.
Celsius Network (CEL) into wCEL.
ChainLink token (LINK) into wLINK.
Compound (COMP) into wCOMP.
Crypto.Com coin (CRO) into wCRO.
Dai Stablecoin (DAI) into wDAI.
FTX token (FTT) into wFTT.
HUSD (HUSD) into wHUSD.
Huobi token (HT) into wHT.
Maker (MKR) into wMKR.
Matic token (MATIC) into wMATIC.
OKB (OKB) into wOKB.
Paxos Standard (PAX) into wPAX.
Suchi token (SUSHI) into wSUSHI.
Tether USD (USDT) into wUSDT.
USDC into wUSDC.
Uniswap (UNI) into wUNI.
Wrap governance token (WRAP) into WRAP.
Wrapped BTC (WBTC) into wWBTC.
Wrapped Ether (WETH) into wWETH.
When users wrap tokens on Ethereum using Wrap Protocol, the equivalent wTokens are minted on Tezos 1 hour after the wrap initiation as a security measure against chain reorganization β·.
Initially, users who wrap tokens will be rewarded with extra $WRAP governance tokens for their participation. Once tokens are wrapped, they can be traded easily on DEXes (like QuipuSwap) or unwrapped using the reverse process.
Note that the wrapping/unwrapping process requires connecting both Ethereum and Tezos wallets to sign operations.
Figure: Wrapping process AAVE token on EthereumβwAAVE token on Tezos.
Figure: Unwrapping process wAAVE on TezosβAAVE token on Ethereum.
[7]: A chain reorganization takes place when a node receives blocks that are part of a new valid chain. The node will deactivate blocks in its old valid chain in favor of the blocks that build the new valid chain. This process allows individual nodes across the network to agree on the same version of the blockchain.
StakerBridge
StakerBridge allows to exchange tokens between the Ethereum network and the Tezos network, and the Ethereum network and the Algorand network.
StakerBridge is governed by the StakerDAO organization. STKR token holders can submit a proposal to bring new tokens into the bridge protocol.
Currently, StakerBridge allows Ethereum and Tezos to interoperate with:
BLEND token (BLND): A token that tracks a managed basket of vetted Proof-of-Stake assets.
Staker token (STKR): Governance token of StakerDAO.
Wrapped XTZ (wXTZ).
Using this bridge requires connecting both Ethereum and Tezos wallets to sign and approve transactions on both chains.
Figure: An example of bridging wXTZ from Ethereum to Tezos.
This project has not been audited as of August 2021.
TezEx Bridge
TezEx Bridge (Beta) is now live and allows users to trade USDC for USDtz as well as ETH for ETHtz, and back.
Soon, TezEx (Beta decentralized exchange) will be launched and embed TezEx Bridge. TezEx will include more cross-chain swaps (including Tether) as well as swaps between Tezos tokens and Tez. Additional features will be added over time.
Figure: TezEx Bridgeβcross-chain exchange web interface.
Yield Farming
Yield farming is a DeFi-speciο¬c feature that refers to the various ways users generate rewards with cryptocurrencies by providing liquidity to liquidity pools and participating in DeFi protocols.
Whereas staking is about securing the network while earning rewards for doing so, yield farming focuses on earning a competitive yield using smart contracts, decentralized exchanges, token minting, liquidity-mining programs, etc.
Bender Labs
Each time users wrap and unwrap ERC20/ERC721 tokens, fees are collected by the protocol in wTokens. For example, if a user wraps BUSD tokens (to wBUSD), they will pay fees in wBUSD. $WRAP token holders who use the wBUSD farming pool will get a portion of the wBUSD fees generated during the wrapping process.
Figure: Some of the Wrap farming poolsβWrap protocol.
Youves
The stable tokens can be sold or transferred to other parties. Minters have the opportunity to leverage their cryptocurrency exposure as they can sell their stable tokens against cryptocurrencies, which increases their exposure to the relevant cryptocurrency price. Holders of stable tokens can diversify their volatile cryptocurrency asset exposure without having to access the ο¬at currency world.
The self-governing aspect will be managed by a governance token, the $YOU. Youves currently oο¬ers three services:
Minting: Users can mint new synthetic assets and be rewarded in YOU tokens and new freshly baked tez. As of August 2021, only uUSD is available at the mintery and the trade marketplace.
Saving: uUSD can be bought in a marketplace and locked in a savings contract to earn interest in uUSD.
Staking: When staking YOU tokens, users are rewarded in uUSD. YOU tokens oο¬er the possibility to participate in the YOU platform governance.
Figure: Youvesβ protocol web interface.
NFT Marketplaces
An NFT βΉ (Non-Fungible Token, under the βFA2β standard on Tezos) is a digital asset that represents an asset whose main feature is to be unique. It can represent a fully digital asset or the certiο¬cation of a real-world one, such as a piece of art.
At the time of writing, the NFT market is expanding rapidly and we are witnessing increasing interest for this new blockchain use case. NFTs on Tezos are unique in that they are cheap and environmentally sustainable thanks to the Liquid Proof-of-Stake-based consensus algorithm of the Tezos blockchain.
Hic et Nunc
At the time of writing, more than 233,000 art pieces have been minted on Hic et Nunc since its creation in early 2021.
Figure: Hic et Nunc marketplace.
During Hic et Nuncβs ο¬rst 45 days, NFT traders won $hDAO tokens for interacting on the marketplace.
Hic et Nuncβs platform charges a 2.5% fee on each $hDAO transaction to maintain the platform and support its developers. In the near future, $hDAO tokens will be used to increase artwork visibility and perform artwork trades without using tez.
Figure: Minting an artwork on Hic et Nunc (limit 40MB).
Minting an art piece on Hic et Nunc costs 0.08 XTZ ($0.30 on June 11, 2021). Royalties are chosen by artwork issuers. Hic et Nunc ensures sustainable earnings by charging fees each time an artistβs work is exchanged on the secondary market.
This project has not been reviewed and audited as of August 2021.
Kalamint
It has the same core principles as Hic et Nunc but requires a sign-up process to access the service. Artists and collectors can trigger and participate in auctions.
Figure: Kalamintβs platform.
Figure: Kalamintβs minting process (limit: 50MB).
Minting artworks on Kalamint costs approximately 0.2 tez.
Figure: A Kalamint artwork sheet.
Creators choose whether to list their artwork. Once an artwork is listed for sale, the creator can delist it at any time (a feature also available on Hic et Nunc).
This project has not been audited as of August 2021.
Objkt
The platform currently oο¬ers two kinds of auctions:
English auctions.
Dutch auctions.
Figure: Objktβs web interface.
In the future, Objkt.com plans to create an independent marketplace with its own infrastructure.
This project has not been audited as of August 2021.
Games
1. Interpop
The team behind Interpop builds games and entertainment brands using true digital ownership to redeο¬ne fandom through digital collectibles and experiences.
Figure: Interpop applications.
To date, Interpop has built four projects, three of which are available at the time of writing:
Play with BRIO
Players connect themselves with their social accounts, link their tz addresses, or purchase tez directly on the platform using Ramp bridge and then play the game.
Figure: Brioβs dashboard.
Figure: XTZ purchase with Ramp interface.
This project has not been audited as of August 2021.
Interpop Comics
It is also possible to enjoy comics for free in the e-reader, then buy the whole issue as an NFT. With this ownership comes the ability to engage with the content and have a hand in directing the storyβs outcome.
Readers will have power over decisions that range from the cosmetic to the cosmic through voting. Which costume do you like best? Does the hero stop to read this message? Who should join the team? Who was most responsible for a characterβs death? These choices will have real consequences and a lasting impact on the outcome.
Figure: Interpop Comicsβ interface.
This project has not been audited as of August 2021.
MinterPop
Interpop believes that buying and owning NFTs should be easy. Creating an account is as simple as registering email or social media accounts and logging in. MinterPop also creates a web wallet for users when they register.
Figure: MinterPopβs interface.
This project has not been audited as of August 2021.
Last updated
Was this helpful?