UMA’s Long Short Pair Financial Primitive

Published on: 19.06.2021
UMA’s Long Short Pair Financial Primitive

UMA has built a new contract template called the Long Short Pair (LSP) contract.

The LSP is simple in its design (around 300 lines of code!) It allows for the creation of arbitrarily complex derivatives with fungible short and long positions and without the need for active position management.

Below is a walk through the LSP’s design and why we’re excited about it.

How the LSP Works

As stated previously, the LSP is simple. There are only three main actions a user can perform.

  • Mint new pairs of long and short tokenized risk.
  • Redeem pairs of long & short tokens before the contract has settled.
  • Settle positions of long or short tokens after the contract has settled. They would be redeemable for an amount of collateral determined by the contract’s settlement price.

At any time, a minter can deposit an amount of collateral, collateralPerPair, to mint one short and one long token. At this time, the minter will be fully collateralized and will have a risk-neutral position. Regardless of how much the long and short tokens respectively settle to be worth, the summed value of the two will still be worth the total amount of collateral used to mint, which means that at any time, the minter can also close out his/her position by redeeming a pair of long and short tokens for one share of minting collateral.

When someone mints the long and short pair of tokens, those two positions cancel each other out in terms of exposure. It is only by selling either the long or short tokens that they get directional exposure. Another user could also gain directional exposure simply by purchasing one of the tokenized sides.

Numeric Example

Let’s now walk through how an LSP would be used to create a covered call option.

  • A minter deposits 100 WETH as collateral and receives 100 ETHc3000–0721-Long and 100 ETHc3000–0721-Short tokens in return. The amount of collateral needed to mint 1 pair of long and short tokens is determined by the LSP’s collateralPerPair parameter. She deposits them into an AMM to be a liquidity provider.
  • Trader A buys 10 long tokens for 0.05 ETH per token. Trader A now has the right to buy ETH for 3000 USD if ETH/USD is greater than 3000 at expiry.
  • Trader B buys 10 short tokens for 0.95 ETH per token.
  • The minter decides to unwind the remainder of her position. She withdraws her liquidity then does so by calling redeem on the LSP and burning 90 long and 90 short tokens in exchange for 90 WETH. She can do this without an on-chain price because the total maximum payout of any long/short pair is capped at collateralPerPair.

Interplay with UMA’s Optimistic Oracle

UMA’s Optimistic Oracle is live and providing bespoke pricing for myriad live products. It can trustlessly return any deterministic information on anything while being manipulation resistant and acts as the settlement mechanism for LSP contracts.

The LSP contract helps to unlock the power of the OO. Developers can combine the LSP and OO to build traditional or long tail products.

For examples, today, the Optimistic Oracle can provide pricing information for:

What is UMA?

UMA is a decentralized financial contracts platform built to enable Universal Market Access.

📰 INFO:

https://medium.com/uma-project/introducing-umas-long-short-pair-lsp-financial-primitive-84596803864f

Market Stats:
BTC Dominance: 53.97%(-0.35%/24h)
ETH Dominance: 15.75%(-0.09%/24h)
Defi Market Cap: $86.42B(-17.73%/24h)
Total Market Cap: $2313.75B(-1.67%/24h)
Total Trading Volume 24h: $76.98B(-32.16%/24h)
ETH Market Cap: $364.28B
Defi to ETH Ratio: 23.72%
Defi Dominance: 3.56%
Altcoin Market Cap: $1064.94B
Altcoin Volume 24h: $44.41B
Total Cryptocurrencies: 29284
Active Cryptocurrencies: 9730
Active Market Pairs: 81819
Active Exchanges: 753
Total Exchanges: 8356
BTC: 63388.71$(-0.68%/1H)
ETH: 3037.23$(-0.56%/1H)
AVAX: 35.49$(-0.82%/1H)
BNB: 556.41$(-0.61%/1H)
MATIC: 0.68$(-0.45%/1H)
FTM: 0.7$(-1.45%/1H)
ADA: 0.49$(-1.07%/1H)
DOT: 6.77$(-0.62%/1H)
UNI: 7.51$(-0.66%/1H)
CAKE: 2.78$(-0.91%/1H)
SUSHI: 0.96$(-0.44%/1H)
ONE: 0.02$(-0.42%/1H)