Derivatives have always been a hot product in DeFi. From futures and options to perpetual swaps and synthetics, the rails of blockchain have been particularly conducive for self-custodied and self-determined finance. The latest iteration of this family of financial products is Avantis, a decentralized platform for trading and market-making on crypto, forex and commodities. Theyâre combining aspects of degen with highbrow finance, all underpinned by the almighty stablecoin, USDC.
Ever since mainnet beta launched on Feb 2 (on BASE network), users can trade perps on more than 22 assets ranging from BTC to real-world gold and silver. If youâre already đ”âđ« with all this perp talk, hereâs a quick primer:
What are Perpetuals?
Perpetuals (aka perps) are a type of derivative that allow users to speculate on the price of an underlying asset for an unlimited period of time. Users can make bets that prices will go up (long position) or down (short position) and can magnify the size of their position through leverage (leverage = borrowed funds). For example, if you think the price of Ethereum will increase, you can open a long position with $10 of capital and 3x leverage (so the total position is $30). If the price increases, you can close the position and take home the profits (current price - price at time of opening position) minus any trading or platform fees. Conversely, if the price of Ethereum goes down, youâre at risk of liquidating your position if you donât add more collateral.
Why should I trade perpetuals?
Perps allow sophisticated traders to make bets on what direction they think the market will go. With the correct information and trading thesis, traders can make outsized profits (but as always, donât commit more capital than youâre willing to lose).
Enter Avantis
Avantis combines the powerful features of a perp DEX with an intuitive user interface that distills the complicated nature of derivatives. Itâs simple to open a position in crypto, forex (i.e. Euro / USD, USD / YEN), or commodities like gold and silver. To open a position, the user does the following:
Even though Avantis is a posterchild for slick DeFi, there are still remnants of legacy tradfi baked into the protocol because of the available assets. If users want to trade forex or commodities, they have to trade within âopenâ market hours (from Sunday 5 pm ET to Friday 5 pm ET - looks like we wonât be trading on Saturday!). Crypto markets are, of course, open 24/7.
Other Avantis Features
At any given time, a user can evaluate their gross p&l, or how much money they stand to earn/lose if they were to exit the position. Similar to other lending and borrowing protocols, Avantis also calculates a âhealth factorâ score on the posted collateral. If the âmaintenance collateralâ isnât sustained (i.e. falls below 15%), the position is liquidated by a bot.
â
â
â
â
â
â
â
â
â
â
One of our favorite features is the newsfeed that comes embedded into the UI, just to the right of the neon & tomato-red pricing line. Users can digest the latest news at a glance and use that to inform their trading decisions (or buy the new Solana phone, like we just did).
The Role of the LPs
Liquidity Providers (LPs) are actors who deposit USDC into Avantis to provide liquidity to traders and earn fees for putting up their capital. There are two different tranches that LPs can deposit USDC into:
- Junior tranche - riskier but higher yield (higher exposure to fees and trader p&l)
- Senior tranche - less risk but lower yield (lower exposure to fees and trader p&l)
Since the protocol is so new, the APYs are fantastical: the highest projected yield for the junior tranche is 89.58%! By depositing USDC, LPs are providing the leverage that traders need to amplify their positions. In exchange for their capital, LPs earn APY through trading fees and trader losses (when traders win, the profit is taken from the USDC pool).
Depositing USDC into the protocol is simple: head to earn â pick the junior or senior tranche â choose your deposit amount â approve. When the deposit is complete, LPs get a new token in return (jvUSDC or svUSDC, depending on what tranche was selected). From there, LPs can take it a step further and lock their jvUSDC or svUSDC for up to 6 months. This creates additional rewards (ârewards boostâ) for the LPs and an NFT that represents the locked position (similar to the veVELO locks we wrote about last year).
â
â
â
â
â
â
â
â
â
â
â
â
Overall, Avantis is a beginner-friendly platform for trading perpetuals. Besides the UI being approachable and clear, there are several safeguards for users including the stop losses and leverage limits. Itâs also apparent if your position is in the green or losing money, and these metrics are placed right next to the liquidation price. Avantis has also been audited by Zellic and Zokyo, two well-respected auditors in the crypto space.
Accounting & Tax Implications of Trading Perps
This wouldnât be a Hash Basis article without mentioning journal entries or tax implications! Perpetuals are definitely on the gnarlier side when it comes to the books - thereâs collateral, ever-changing p&l values (unrealized gain/loss) and the LP deposit/lock dynamic. For this section, weâll cover the token flows when a perpetual position is entered into and closed (we couldnât test out the LP section since the max vault capacity has already been reached).
Back to US GAAP Basics
A perpetual is a type of futures derivative contract that has no expiration date. GAAP has an illustrious section on how to account for these types of contracts, ASC 815, Derivatives and Hedging. In order to qualify for derivative accounting, the contract must have all of the following characteristics:
Flipping back to the perpetuals on Avantis, we can come to the following conclusions (note: the FASB has not issued any clear guidance on this, so this is our opinion):
Therefore, the perpetuals entered into on Avantis could qualify as derivatives and be subject to derivative accounting. This means the contract sits as an asset or liability on the balance sheet, with changes in fair value flowing through the income statement at each reporting period. For businesses following GAAP, the example journal entries are:
âOpening the position on Avantis by posting collateral (example)
Recognizing the change in fair value at period end
* assuming the fair value has increased by $2.40
Closing the position (example)
* assuming fair value has decreased to $7.28
Perp Taxes 101
Similar to the FASB tale, the IRS has not issued any formal code on how to account for derivatives like perpetuals. The IRS does have guidance on Section 1256 contracts, which gives preferential tax treatment to certain derivative contracts (i.e. 60% of the overall gain/loss is considered long-term while 40% is considered short-term). However, these contracts have to be regulated by a âqualified board of exchangeâ such as the Commodity Futures Trading Commission (CFTC), which the perps on Avantis unfortunately are not.
For most casual investors then, the tax treatment is less complex but more costly since there are no special 1256 provisions. When positions are entered into (i.e. collateral is posted), there is no taxable event. Collateral leaves your wallet to enter the Avantis smart contracts, but you can treat this similar to entering into a staking pool (i.e. itâs a balance sheet transfer with no related gain or loss).Â
When the position is closed/settled, the initial collateral is taken out of our makeshift âpoolâ and the difference between the initial collateral payment and settlement amount received is a capital gain or loss. If your position is liquidated, any lost collateral is treated as a disposition with an associated capital gain or loss. Itâs easiest to understand by looking at an example:â
       (1) A user posts 10 USDC as collateral into Avantis
       (2) User closes the trade and receives 12.536062 USDC back
In this case, the user would calculate the capital gain as 12.536062 - 10 = 2.536062 USDC. The gain would either be short-term or long-term (depending on how long the position was maintained) and reported on Schedule D / Form 8949. Itâs worth noting that these perp positions are rarely long-term since keeping them open for >12 is risky and at high risk for liquidation due to price changes. Also if the user qualifies as a trader under the IRS, the tax treatment would slightly differ and the 475(f) election may apply (section 475(f) applies to securities so applying it to crypto is a gray area). For more info on trader status, read this article by Cointracker.
And there you have it on perps! They are definitely on the frontier of crypto finance and can be a game-changing product for savvy users. Avantis lowers the risk by making positions transparent and limiting losses through their stop loss functionality (which saved us a few dollars when testing out the platform!).
More info on Avantis here:
â