{"id":19393,"date":"2024-12-10T17:00:00","date_gmt":"2024-12-10T15:00:00","guid":{"rendered":"https:\/\/forklog.com\/en\/a-customised-future-collateralised-indices-as-a-foundational-model-for-web3-derivatives\/"},"modified":"2024-12-10T17:00:00","modified_gmt":"2024-12-10T15:00:00","slug":"a-customised-future-collateralised-indices-as-a-foundational-model-for-web3-derivatives","status":"publish","type":"post","link":"https:\/\/u1f987.com\/en\/a-customised-future-collateralised-indices-as-a-foundational-model-for-web3-derivatives\/","title":{"rendered":"A customised future: collateralised indices as a foundational model for Web3 derivatives"},"content":{"rendered":"<p>Many still think of indices as nothing, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%98%D0%BD%D0%B4%D0%B5%D0%BA%D1%81\" target=\"_blank\" rel=\"noopener\" title=\"\">but<\/a> \u201cmarket\u2011movement gauges\u201d, often confusing them with indicators. In fact, Web 3.0 and Web3 enable remarkably intricate and interesting models.<\/p>\n<p>Web3 entrepreneur Vladimir Menaskop explains them for ForkLog readers.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Why indices\u2014and collateralised ones at that?<\/strong><\/h2>\n<p>The answer becomes clear if you study crises, especially that of 2008. One cause of the Great Recession was a multibillion\u2011dollar bubble in derivatives such as <span data-descr=\"Collateralised debt obligations \u2014 collateralised debt obligations\" class=\"old_tooltip\">CDO<\/span> and <span data-descr=\"Credit default swap \u2014 credit default swap\" class=\"old_tooltip\">CDS<\/span>. The collateral behind such assets was at best partial and at times outright \u201cjunk\u201d.<\/p>\n<p>Derivatives are a fine consequence of humanity\u2019s ability not only to look ahead, but to shape it. Small wonder that one of this class\u2019s basic instruments is the <span data-descr=\"From English 'future' \u2014 'the future'\" class=\"old_tooltip\">futures<\/span> contract.<\/p>\n<p>Collateralised derivatives help hedge a host of risks, including in DeFi. Yet in Web3 this vital instrument still lacks mass attention.<\/p>\n<h2 class=\"wp-block-heading\"><strong>LP tokens and NFT positions<\/strong><\/h2>\n<p>A liquidity\u2011pool token (LP) is often technically an ERC\u201120. In truth it is a complex derivative.<\/p>\n<p>On the one hand, it embeds the split between the pair inside it\u2014for example DAI\u2011ETH\u2014or even several assets, as in asynchronous pools on Balancer or Curve. On the other, it also embeds rewards, which can be claimed externally or auto\u2011compounded, turning an annual percentage rate (<span data-descr=\"Annual percentage rate\" class=\"old_tooltip\">APR<\/span>) into an annual percentage yield (<span data-descr=\"Annual percentage yield\" class=\"old_tooltip\">APY<\/span>).<\/p>\n<p>Moreover, LPs themselves can be treated as an <a href=\"https:\/\/teletype.in\/@ortomich\/option_from_lp\" target=\"_blank\" rel=\"noopener\" title=\"\">option<\/a> (for a full, mathematically grounded example see <a href=\"https:\/\/www.youtube.com\/watch?v=xBoGIX7LckE\" target=\"_blank\" rel=\"noopener\" title=\"\">here<\/a>).<\/p>\n<p>Once you factor in impermanent loss inside a pool, it becomes clear that any LP is also about working a price range\u2014whether within concentrated liquidity or across the full range, as in Uniswap v2.<\/p>\n<p>With concentrated liquidity in Uniswap v3 and its analogues, <a href=\"https:\/\/hackernoon.com\/nft-20-the-era-of-programmable-assets\" target=\"_blank\" rel=\"noopener\" title=\"\">NFT 2.0<\/a> becomes relevant: a second\u2011order derivative distinct from the invested assets. We lock fungible tokens and receive a single non\u2011fungible one. The smart contract records the initial assets and their ratio.<\/p>\n<p>Such derivatives can be developed further. LP tokens and NFT positions are collateralised by underlying assets yet can trade as independent <a href=\"https:\/\/app.envelop.is\/dashboard\">entities<\/a>.<\/p>\n<p>Both LPs and NFTs are genuine indices composed of two or more assets, reflecting their ratios not only on\u2011chain but in real time.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Playing with rewards<\/strong><\/h2>\n<p>Consider two projects:<\/p>\n<ul class=\"wp-block-list\">\n<li>the well\u2011known Alchemix;<\/li>\n<li>the less popular but equally interesting <a href=\"https:\/\/teletype.in\/@menaskop\/flashstake-tempography-2023\">Flashstake<\/a>.<\/li>\n<\/ul>\n<p>Alchemix lets you do the following. Post, say, ETH in AAVE, receive the derivative wrapper aETH, then post it again to mint alETH, which can be used elsewhere in DeFi. Why? You earn rewards on the AAVE deposit while retaining usable liquidity\u2014akin to liquid restaking tokens. In effect you monetise both the base asset and its rewards.<\/p>\n<p>Flashstake, for its part, literally \u201callows you to lock up cryptocurrency and receive instant profit from the future\u201d. The flow resembles Alchemix\u2019s, but the result is a derivative of the fc\u2011sGLP variety.<\/p>\n<p>PieDAO once proposed its own reward\u2011distribution model; my last experiment, however, showed thin liquidity, making it more a theoretical curiosity than a practical case\u2014albeit notable for its visualised money\u2011flow scheme.<\/p>\n<p>Another approach, built on a probabilistic payout model, was offered by Asymetrix. That model has since migrated to Velodrome and its peers, but there it is also backed by voting via locking the base token, whereas Asymetrix attempted pseudo\u2011random reward distribution. The output was a token representing a forecastable payout model and a time window for claiming.<\/p>\n<p>All of these are fairly primitive indices. Let\u2019s take a step into more elaborate constructs.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Maverick, Pendle and trading trends<\/strong><\/h2>\n<p>We have already discussed Uniswap\u2011style positions, but for <a href=\"https:\/\/teletype.in\/@menaskop\/uniswap-market-makers-03\" target=\"_blank\" rel=\"noopener\" title=\"\">obvious reasons<\/a> concentrated liquidity requires repositioning. Do it <a href=\"https:\/\/teletype.in\/@menaskop\/uniswap-v.3-and-profit\" target=\"_blank\" rel=\"noopener\" title=\"\">too often<\/a> and DeFi strategies become unprofitable; too rarely and your range drifts out of bounds, yielding nothing.<\/p>\n<p>Previously, with LPs and NFTs, we had a second\u2011order derivative on liquidity and rewards. Here, we try to separate rewards from the principal and monetise them independently. The separation is not yet complete, but the direction matters: a reward\u2011only index hedges impermanent loss and other risks.<\/p>\n<p>What to do?<\/p>\n<p>One approach is to automate repositioning, as Maverick set out to do: it enables a derivative not only on price, but on direction.<\/p>\n<p>Why does this still count as an index? First, because it is collateralised by a base position. Second, because it provides a toolset for building index models with varying levels of nesting.<\/p>\n<p>On the other pan sits <a href=\"https:\/\/pendle.gitbook.io\/pendle-academy\/ecosystem-and-resources\/points-trading\/lrt-support-page#usde-cap\" target=\"_blank\" rel=\"noopener\" title=\"\">Pendle<\/a>, which, despite a temporary <a href=\"https:\/\/u1f987.com\/en\/news\/pendle-protocols-tvl-plummets-40-following-lrt-airdrops\">slump<\/a> in <span data-descr=\"Total value locked\" class=\"old_tooltip\">TVL<\/span>, still holds its ground, and is built on fully separating rewards from the \u201cbody\u201d of the underlying assets.<\/p>\n<p>Together, these two architectures allow an index model composed solely of rewards accrued upon confirmation of a given trend. If asset A rises and we receive rewards of X, the system auto\u2011distributes them. The index itself may take the form of an NFT, a wNFT or any other asset embodying the right to those rewards and tied to the <a href=\"https:\/\/hub.forklog.com\/itak-vy-hotite-ispolzovat-tsenovoj-orakul\/\" target=\"_blank\" rel=\"noopener\" title=\"\">operation<\/a> of a price oracle, since what we need is price\u2011trend confirmation.<\/p>\n<p>And that is far from the end of the evolution.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Collateralised wNFT indices<\/strong><\/h2>\n<p>Imagine you hold a set of popular stablecoins: DAI, USDT, USDC. You could simply keep them, or deposit them in AAVE or into Uniswap pools. In the latter case you get these pairs:<\/p>\n<ul class=\"wp-block-list\">\n<li>DAI \u2014 USDT;<\/li>\n<li>DAI \u2014 USDC;<\/li>\n<li>USDT \u2014 USDC.<\/li>\n<\/ul>\n<p>From three ERC\u201120s you thus create three simple indices in the form of LPs (ERC\u201120) or NFT positions (ERC\u2011721).<\/p>\n<p>Wrap all this in an NFT and you get a wNFT. Look at this <a href=\"https:\/\/app.envelop.is\/token\/42161\/0xf81356b101a52cf62bbe1e34353a139934de4c17\/26\">exa<\/a><a href=\"https:\/\/app.envelop.is\/token\/42161\/0xf81356b101a52cf62bbe1e34353a139934de4c17\/26\" target=\"_blank\" rel=\"noopener\" title=\"\">m<\/a><a href=\"https:\/\/app.envelop.is\/token\/42161\/0xf81356b101a52cf62bbe1e34353a139934de4c17\/26\">ple<\/a> (as well as the <a href=\"https:\/\/arbiscan.io\/tx\/0xe577c7b172cafd76ba9e812bdaebead7efdb1c1eed08e416f3476827bd7a3b1e\">trans<\/a><a href=\"https:\/\/arbiscan.io\/tx\/0xe577c7b172cafd76ba9e812bdaebead7efdb1c1eed08e416f3476827bd7a3b1e\" target=\"_blank\" rel=\"noopener\" title=\"\">ac<\/a><a href=\"https:\/\/arbiscan.io\/tx\/0xe577c7b172cafd76ba9e812bdaebead7efdb1c1eed08e416f3476827bd7a3b1e\">tion<\/a>). The result is a single <a href=\"https:\/\/hub.forklog.com\/detsentralizovannaya-likvidnost-primer-wnft-amp-uniswap\/\" target=\"_blank\" rel=\"noopener\" title=\"\">wNFT<\/a> that:<\/p>\n<ul class=\"wp-block-list\">\n<li>combines three NFT positions;<\/li>\n<li>which in turn combine three pools in varying proportions;<\/li>\n<li>drawn from three base tokens: DAI, USDT, USDC;<\/li>\n<li>as well as the pools\u2019 rewards.<\/li>\n<\/ul>\n<p>Why build such a \u201c<a href=\"https:\/\/teletype.in\/@menaskop\/meta-index-2024-01\" target=\"_blank\" rel=\"noopener\" title=\"\">metastablecoin<\/a>\u201d? Many reasons; two will do. First, blacklisting: there are enough examples from Tether, Centre and other issuers. Second, you collect rewards from the base pools and can swap the metastablecoin directly; crucially, it <a href=\"https:\/\/hackernoon.com\/your-airdrop-dust-can-finally-be-usefulthanks-to-this-ingenious-protocol\" target=\"_blank\" rel=\"noopener\" title=\"\">does not sit on a single smart contract<\/a> but can be created on any proxy.<\/p>\n<p>Beyond that, we can construct:<\/p>\n<ul class=\"wp-block-list\">\n<li>a BED index: bitcoin, Ethereum and DeFi assets across any network\u2014from layer\u2011two <span data-descr=\"Ethereum Virtual Machine\" class=\"old_tooltip\">EVM<\/span> chains to Solana;<\/li>\n<li>indices from fractionalised NFTs of any kind, be they wrapped CryptoPunks or the exotic <a href=\"https:\/\/u1f987.com\/en\/news\/how-viable-is-pandoras-erc-404-standard\">Pandora<\/a>;<\/li>\n<li>and even ZKP strategies on this base, assembled with ease.<\/li>\n<\/ul>\n<p>A brief word on the last.<\/p>\n<h2 class=\"wp-block-heading\"><strong>ZKP indices: the future, but not for everyone<\/strong><\/h2>\n<p>I have lived and worked inside the <a href=\"https:\/\/hub.forklog.com\/ot-tsifrovogo-offshora-do-i-obratno-ili-rol-web-3-0-v-blizhajshem-budushhem\/\" target=\"_blank\" rel=\"noopener\" title=\"\">crypto\u2011offshore<\/a> for years, but recent trends\u2014the rise of CBDCs, the advent of MiCA, and cases against <a href=\"https:\/\/hub.forklog.com\/bzx-vs-cftc-eto-ne-konets-no-nachalo-ili-kriptofshor-v-dejstvii\/\" target=\"_blank\" rel=\"noopener\" title=\"\">bZx<\/a>, <a href=\"https:\/\/teletype.in\/@menaskop\/lido-dao-2024-court\" target=\"_blank\" rel=\"noopener\" title=\"\">Lido<\/a>, other DAOs and Tornado Cash\u2014suggest it, too, must evolve.<\/p>\n<p>ZKP strategies are one way forward. We have seen how to build a wNFT index collateralised by anything. Next, encrypt its elements:<\/p>\n<ul class=\"wp-block-list\">\n<li>first create a key (key\u2011NFT, kNFT) to the wNFT index (wNFTi), where the kNFT is a simple NFT granting access to liquidity X on a network. The key holds nothing but a link to the wNFTi;<\/li>\n<li>encrypt the index collateral inside the wNFTi: with ZKPs we know its value and even the set of assets, but not the precise composition;<\/li>\n<li>encrypt the <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%AD%D1%81%D0%BA%D1%80%D0%BE%D1%83-%D1%81%D1%87%D1%91%D1%82\" target=\"_blank\" rel=\"noopener\" title=\"\">escrow<\/a> linking the kNFT to the wNFTi, decentralising it to the desired degree;<\/li>\n<li>encrypt the exact conditions under which kNFT ownership unlocks liquidity. A simple example: require, in addition to ownership, a code stored not in plaintext but as a hash;<\/li>\n<li>turn the whole thing into an off\u2011chain pin that grants access to the key; \u201cburning\u201d the key opens the path to liquidity.<\/li>\n<\/ul>\n<p>These ZKP indices can underpin a range of mechanics. Three examples:<\/p>\n<ol class=\"wp-block-list\">\n<li>A professional DeFi participant creates a strategy with verified returns and raises stablecoin liquidity against it. Providers receive rewards from the strategy without knowing it; the initiator acquires extra liquidity. Thus, income grows in absolute terms, not percentage terms. Say the yield is 10%: absent external funds the seller would earn $100; with pooled liquidity, $10,000.<\/li>\n<li>Swaps can be executed without relying on omni\u2011 or cross\u2011chain solutions\u2014no <a href=\"https:\/\/u1f987.com\/en\/news\/should-we-burn-the-bridges\">bridges<\/a> or heavier frameworks like LayerZero. This will always be a one\u2011off that can be extended or used once, for example to close a complex loop in a CBDC world where cash simply will not exist.<\/li>\n<li>Finally, one can build a lending protocol without asset approvals by a DAO or anyone else. This nudges AAVE\u2019s model closer to Uniswap\u2019s and opens a spectrum of opportunities for participants.<\/li>\n<\/ol>\n<h2 class=\"wp-block-heading\"><strong>Conclusions<\/strong><\/h2>\n<p>If you are just entering the <a href=\"https:\/\/www.youtube.com\/watch?v=8JgX6AvaIv8\" target=\"_blank\" rel=\"noopener\" title=\"\">market<\/a> for DeFi derivatives\u2014or are curious about certain <a href=\"https:\/\/en.wikipedia.org\/wiki\/Perpetual_futures\" target=\"_blank\" rel=\"noopener\" title=\"\">vectors<\/a> within it\u2014pay close attention to collateralised derivatives, particularly indices built along the lines sketched above.<\/p>\n<p>First, this market is (for now) free of the hype surrounding programmable assets, on which it rests, or DAOs\u2014giving you time to prepare.<\/p>\n<p>Second, mastering these instruments will let you live inside the crypto\u2011offshore for another five to seven years\u2014no small span by today\u2019s standards.<\/p>\n<p>Third, it is simply interesting. Netstalking 2.0\u2014be it hunting for <a href=\"https:\/\/hub.forklog.com\/kriptoklady-chast-ii-sluchajnosti-ne-sluchajny\/\" target=\"_blank\" rel=\"noopener\" title=\"\">crypto treasures<\/a> or working with super\u2011complex constructs\u2014lets you peer into the future and try to tune it, customise it, to your needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many still think of indices as nothing, but \u201cmarket\u2011movement gauges\u201d, often confusing them with indicators. In fact, Web 3.0 and Web3 enable remarkably intricate and interesting models. Web3 entrepreneur Vladimir Menaskop explains them for ForkLog readers. Why indices\u2014and collateralised ones at that? The answer becomes clear if you study crises, especially that of 2008. One [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"select":"","news_style_id":"","cryptorium_level":"","_short_excerpt_text":"","creation_source":"","_metatest_mainpost_news_update":false,"footnotes":""},"categories":[1144],"tags":[1168,1093,1110],"class_list":["post-19393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-longreads","tag-crypto-derivatives","tag-defi","tag-web-3-0"],"aioseo_notices":[],"amp_enabled":true,"views":"25","promo_type":"","layout_type":"","short_excerpt":"","is_update":"","_links":{"self":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/posts\/19393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/comments?post=19393"}],"version-history":[{"count":0,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/posts\/19393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/media\/19392"}],"wp:attachment":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/media?parent=19393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/categories?post=19393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/tags?post=19393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}