<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Stefan Duprey on Medium]]></title>
        <description><![CDATA[Stories by Stefan Duprey on Medium]]></description>
        <link>https://medium.com/@stefanduprey?source=rss-9f107cf94cdf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7ovEY2CgehjrK-AlsfSrpQ.png</url>
            <title>Stories by Stefan Duprey on Medium</title>
            <link>https://medium.com/@stefanduprey?source=rss-9f107cf94cdf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 00:03:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stefanduprey/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BANCOR V3]]></title>
            <link>https://medium.com/@stefanduprey/bancor-v3-c6e70577b52e?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6e70577b52e</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Wed, 11 May 2022 08:17:30 GMT</pubDate>
            <atom:updated>2022-05-11T08:17:30.697Z</atom:updated>
            <content:encoded><![CDATA[<p>Bancor Single-Side Staking changes completely AMM and enables liquidity providers to provide only the token they want to hold,<br>Maintain full price exposure to that token only,<br>Be protected against Impermanent Loss<br>and collect yield from trading fees and liquidity mining rewards as usualImpermanent loss protection:<br>Bancor V3 offers all liquidity providers 100% Impermanent Loss Protection (ILP).<br>This ensures that liquidity providers get back at least the same value of their deposited tokens as if the tokens were simply held in their wallet.<br>How it works:<br>Say a user deposits $100,000 of a token in a liquidity pool.<br>The protocol matches the user’s deposit by providing $100,000 worth of BNT (Bancor Network Token) tokens to the pool.<br>In return, both the user and the Bancor protocol receive fee-accruing LP tokens (pool tokens).<br>When the user withdraws from the liquidity pool, both the user’s and the protocol’s LP tokens are burned.<br>If the user has suffered Impermanent Loss, fees earned by the protocol’s LP tokens are used to compensate for the Impermanent Loss.<br>The result is users can stake with confidence knowing they’ll get back 100% of the tokens they originally deposited, while passively collecting more of the tokens they’ve staked through earned trading fees.<br>=&gt; RISK analysis to doPartial compensation in BNT: The protocol earns fees, via protocol-owned pool tokens, in both BNT and non-BNT tokens. If the protocol has not accrued enough non-BNT token fees to fully compensate the liquidity provider for their Impermanent Loss in the token they’ve staked, it will give the user as many non-BNT tokens as possible, and pay the rest of the compensation in an equivalent value of BNT tokens.<br>ILP Vesting: Currently in Bancor V2.1, liquidity providers accrue Impermanent Loss Protection over time and the protection increases by 1% each day and reaches 100% (full protection) only after 100 days. In Bancor V3, liquidity providers receive 100% Impermanent Loss Protection as soon as the LP stakes their tokens into the pool. There will be a 0.25% withdrawal fee to prevent abuse as well as a 7-day cool-down period when withdrawing.<br>External IL compensation : token team who wants liquidity for their token are ready to compensate IL token loss with liquidity mining incentives.Omnipool &amp; infinity pool:no dual pool X/BNT as previously, but one omnipool where staked BNT is traded against any asset.<br>no more friction in the protocol co investment decision through the infinity pool (co investment BNT minted as the dual of a single side staking whatever size and token) ::: risk to assess again<br>no more bottle neck to liquidity providing due to the need to possess BNT tokes<br>auto compounding rewards now at the heart of the protocol</p><p>====&gt; can HODL a portfolio specific composition and still provide liquidity (without having to split 50/50 pools and modify compo)<br>====&gt; best and most secure way to bring liquidity (IL responsible for more than 50% of loss for LP providers…)<br>===&gt; with v3 and infinity pool : no need of BNT to provide liquidity (edited)</p><p>There is now a 7-day “cooldown” to withdraw from a position. During that withdrawal period you are still protected from impermanent loss, but you don’t earn fees &amp; rewards. If you end up deciding not to withdraw after those 7 days, however, you still get the fees &amp; rewards you would have earned.</p><ol><li>There is now a withdrawal fee of 0.25%. I’m sure no one is going to be a big fan of this, but do note that this wasn’t added to enrich the platform, it’s an essential piece of the puzzle to make the math behind the instant impermanent loss work</li></ol><p><a href="https://blog.bancor.network/bancor-v3-phase-1-governance-proposal-summary-b5b31bbc687d">https://blog.bancor.network/bancor-v3-phase-1-governance-proposal-summary-b5b31bbc687d</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6e70577b52e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leverage fixed rate (28% on]]></title>
            <link>https://medium.com/@stefanduprey/leverage-fixed-rate-28-on-a98865ef6fad?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a98865ef6fad</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Wed, 11 May 2022 08:14:39 GMT</pubDate>
            <atom:updated>2022-05-11T08:14:39.732Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leverage fixed rate (28% on notional)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1aHfGcPOoKfmH8jcQf3zA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a98865ef6fad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IPOR (inter protocol offered rate)]]></title>
            <link>https://medium.com/@stefanduprey/ipor-inter-protocol-offered-rate-3e9afb0887dc?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e9afb0887dc</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Wed, 11 May 2022 08:10:47 GMT</pubDate>
            <atom:updated>2022-05-11T08:10:47.324Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.ipor.io/"><strong>https://www.ipor.io/</strong></a><br>attempts to mimic LIBOR on the blockchain and give a proper definition and protocol to establish the risk free rate for a blockchain and an underlying.<br>Currently only on Ethereum mainnet and trying to rationnalize rates between Aave, Compound, MakerDAO..<br>Definition of a risk free rate and rates at different maturity is at the heart of traditional finance. It is used in every valuation (stocks, derivatives) by actualizing future cash flow.<br>It is also the prerequisite for the construction of derivatives on interest rates (interest rates swap famous from the subprime and greek crisis for instance, but also options, …)<br>It serves as a public good upon which derivatives, financial instruments, and deals can be structured.</p><ul><li><strong>the IPOR index</strong></li></ul><p>for USDT, USDC, DAI and ETH : it will be a benchmark reference interest rate sourced from the main DeFi credit protocols and published on-chain based on the heartbeat methodology.<br>It will define the risk free rate (as LIBOR is an average between banks).<br>The index rates are published on-chain via an oracle construction, and different data providers and services report the IPOR rates so the general public can have a transparent view of the benchmark interest rates in DeFi.<br>The on-chain components are meant for other protocols to build upon.</p><ul><li>Liquidity pool AMM for IRS swaps, derivative Contract and Swap pricing</li></ul><p>The derivative contracts are based on the IPOR rate and the AMM pricing to open a derivative contract between a market participant and the pool. The contract manages the agreement between the market participant and the LP, and once closed allocates the parties the corresponding contract payoff.<br>Pricing of IRS, definition of benchmark totally similar to traditional finance with floating and fixed legs:<br><a href="https://ipor-labs.gitbook.io/ipor-labs/interest-rate-derivatives/ibt">https://ipor-labs.gitbook.io/ipor-labs/interest-rate-derivatives/ibt</a><br><a href="https://ipor-labs.gitbook.io/ipor-labs/interest-rate-derivatives/index-calculation">https://ipor-labs.gitbook.io/ipor-labs/interest-rate-derivatives/index-calculation</a><br><a href="https://ipor-labs.gitbook.io/ipor-labs/automated-market-maker/the-automated-market-maker">https://ipor-labs.gitbook.io/ipor-labs/automated-market-maker/the-automated-market-maker</a>The Liquidity Pools and AMM work together to form a collective community counterpart for trades<br>Decentralized depositors can earn yield on deposits by providing a trade counterpart for market participants.</p><ul><li><strong>Use cases :</strong></li><li>Hedging floating by fixing them (supply and borrow)</li></ul><p>For either a liquidity supplier or a borrower on Aave, Compound, … the IRS contract will allow them to fix the supply or borrow yield by entering an IRS contract (the supplier would pay the floating and receive the fixed rate : Payer in the IRS, the borrower would receive the floating and pay the fixed : the Receiver in the IRS)<br>The hedge will be perfect if the lending/borrowing is done on the same weighted credit market than used to establish the risk free rate</p><ul><li>Arbitrage between stable coin yields</li></ul><p>The most important aspect of IPOR is that it should allow stable coins yield to converge to a common value.<br>At a parity of one to one, a trader could borrow stablecoin A for a fixed rate, swap for B and lends it for a fixed rate ==&gt; risk free rate arbitrage</p><ul><li>Speculation</li></ul><p>At the heart of wanting to fix rate, one can find speculation. Bearish market see lower farming yields for instance. If one expects a bearish, one could want to fix its supply rates which he expects to drop (edited)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e9afb0887dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LINK staking/farming]]></title>
            <link>https://medium.com/@stefanduprey/link-staking-farming-eadb9aa1970c?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/eadb9aa1970c</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Mon, 24 Jan 2022 08:26:06 GMT</pubDate>
            <atom:updated>2022-01-24T08:26:06.023Z</atom:updated>
            <content:encoded><![CDATA[<p>1) Chainlink staking</p><p>safest !</p><p>super linear staking, because oracle networks are a new type of consensus, so it’s not as simple as just copying somebody else’s staking and launching it. The real challenge is coming up with a staking system for a completely new type of consensus.</p><p>2) Yield farming (smart contract risks)</p><p>2.1)Yearn.finance on Ethereum mainnet</p><p>Two vaults described here under</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oFMacjcY0NWt6Ahn1GVeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nUq1G4H7vbcD497188Q5A.png" /></figure><p>2.1.2) Yearn on Fantom</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_De3MkBnJVKVxhpwwfz4nw.png" /></figure><p>2.3) Autofarm</p><p>2.3.1) Autofarm on Avalanche</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbBgP1EV_V7lCFl_r2Ypdw.png" /></figure><p>2.3.2)Autofarm on Fantom</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVrnAl6O3xkLDaypL80x0Q.png" /></figure><p>2.4)Bancor on Ethereum</p><p>Yields less good than those on yearn.finance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XmZZmdvK-9v_hKEs_3hsGg.png" /></figure><p>2.5) Curve (Link/sLink) on Ethereum/Matic (no impermanent loss)</p><p>Yields less good than those on yearn.finance</p><p>3) Simple lending</p><p>3.1) Benqui on Avalanche</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFH38N0e5YAA5gId0-vi_A.png" /></figure><p>3.2) Aave on Ethereum (0% lending APY ! )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nest2_y8-LfQhqt5sRzxfg.png" /></figure><p>3) Liquidity providing (impermanent loss risk)</p><p>3.1)on avalanche</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlTiGqNRZBdIG_GG0sPwjQ.png" /></figure><p>3.2) on polygon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gw1Rpn802TJLV3MLEcONKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEwjSueZSAcvcsmO22MJlw.png" /></figure><p>3.3) on Fantom</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_ee430bhJhqp6xoTTfGVg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eadb9aa1970c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Perpetual protocol]]></title>
            <link>https://medium.com/@stefanduprey/perpetual-protocol-7687c90dd0f8?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/7687c90dd0f8</guid>
            <category><![CDATA[perpetual-protocol]]></category>
            <category><![CDATA[optimism]]></category>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Wed, 12 Jan 2022 19:29:09 GMT</pubDate>
            <atom:updated>2022-01-13T08:25:33.142Z</atom:updated>
            <content:encoded><![CDATA[<p>Perpetual protocol is a fully on-chain decentralized protocol which emulates the financial derivative product known as “perpetual future” or “perpetual swap” pioneered by Bitmex in 2016. The protocol version 2 “Curie” has been deployed on Optimism at the end of 2021 for faster and cheaper transactions, and uses Uniswap V3 as liquidity provider behind.</p><p>This is a pure Defi protocol using only Defi AMM and oracle below to emulate one of the most complex financial derivative.</p><h4><strong>1) Perpetual futures</strong></h4><p>A<strong> perpetual futures contract</strong>, or <strong>perpetual swap,</strong> is an agreement to non-optionally buy or sell an asset at an unspecified point in the future. Perpetual futures are cash-settled, and differ from regular futures in that they lack a pre-specified delivery date, and can thus be held indefinitely without the need to roll over contracts as they approach expiration. Payments are periodically exchanged between holders of the two sides of the contracts, long and short, with the direction and magnitude of the settlement based on the difference between the contract price and that of the underlying asset asset, as well as, if applicable, the difference in leverage between the two sides.</p><p>Cryptocurrency perpetuals are characterized by the availability of <strong>high leverage</strong>, sometimes over 100 times the margin, and by <strong>the use of auto-deleveraging</strong>, which compels high-leverage, profitable traders to forfeit a portion of their profits to cover the losses of the other side during periods of high market volatility, as well as insurance funds, pools of assets intended to prevent the need for auto-deleveraging.</p><p>To make sure the price of perpetual contracts price doesn’t diverge too much from the price of their underlying assets, perpetuals use a funding rate.</p><p><strong>The Funding mechanism is used to tether contracts to their underlying spot price.</strong></p><p>The funding rate is paid periodically and provides incentives to one side of the market — either market participants with open longs positions or open shorts positions.</p><p>In general, when <strong>the price of the perpetual contract is trading above the price of its underlying assets</strong>, the funding rate becomes positive and l<strong>ongs pay shorts.</strong></p><p>The opposite holds when <strong>the price of the perpetual contract is below the spot price. In this case, shorts pay longs</strong>.</p><p>This allows the price of the perpetual contract for a specific asset to converge with the price of its underlying. On top of the funding rate, price speculators and arbitrageurs also help with making sure the prices between different derivatives or spot exchanges don’t diverge too much.</p><p>More theoretically, as envisioned by Shiller, Perpetual futures for the value of a cash flow require the payment of a daily settlement, intended to mirror the value of the flow, from one side of the contract to the other. At any day <em>t</em>, the dividend s at t+1, paid from shorts to longs, is defined as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*7IlwdVkzxlRTIUc5h4mc-Q.png" /></figure><p>where ft is the price of the perpetual at day <em>t</em>, dt is the dividend paid to owners of the underlying asset on day <em>t</em>, and rt is the return on an alternative asset (expected to be a short-term, low-risk rate) between time <em>t</em> and <em>t+1</em>.</p><h4>2) Why perpetual futures</h4><p>Perpetual futures also provide<strong> an easy way for shorting</strong> a particular asset where market participants can benefit from the price of that asset decreasing over time.</p><p>They also facilitat<strong>e easy access to leverage </strong>which allows for controlling a bigger position than it would have been otherwise possible using the same amount of capital.</p><p><strong>3)</strong> <strong>Liquidation is always looming</strong></p><p>This can be useful in certain conditions, but it can be dangerous as undercollaterized positions can be liquidated when the market moves against the trader position.</p><p><strong>3) Price discovery</strong></p><p>In general, derivatives markets help with the price discovery of different assets as they provide a place where all market participants can meet and easily trade, usually in big sizes. For certain financial instruments, derivatives markets can even become their primary markets for price discovery, as they can feature both short and long views easily.</p><p><strong>4) Perpetual Protocol</strong></p><p><strong>Perpetual protocol allows for trading different perpetual contracts of the most popular cryptocurrencies </strong>like Bitcoin or Ethereum with multiple other coins that will be added to the protocol in the future.</p><p>In contrast to centralized exchanges offering similar products, <strong>Perpetual Protocol doesn’t hold custody over users’ funds, so users are always in full control of their assets</strong>.</p><p>On top of this <strong>it allows its users to trade in a permissionless and fully transparent manner.</strong></p><p>At the moment, <strong>Perpetual makes use of the USDC stablecoin as its primary collateral </strong>(meaning that all trades are settled in USDC) and will expand into other types of collateral in the futures.</p><p><strong>Perpetual Protocol V2 introduced a new model for managing positions and executing trades that makes use of Uniswap V3 and its concentrated liquidity.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKvp0sK6knpbK_LqA2RxEA.png" /></figure><p><strong>5) Clearing house, virtual tokens and virtual AMM</strong></p><p>At the centre of the Perpetual Protocol design lies the clearing house smart contract.</p><p><strong>The clearing house is responsible for minting and burning virtual tokens called v-tokens (v stands for virtual) that are held by the contract on behalf of the user</strong>.</p><p>When a user deposits USDC to the exchange, the clearing house contract mints v-tokens using the max available leverage.</p><p><strong>6) Entering a position with virtual tokens</strong></p><p>This doesn’t mean the user has to use the maximum leverage when open a position and it only gives the users the opportunity to do so by issuing the maximum of tokens that the user may or may not use.</p><p><strong>To create a particular position, the user can select the product they want to trade and use v-tokens to enter the position.</strong></p><p>For example, if the user wants to go long on BTC, they can instruct the clearing house to trade their vUSD tokens for vBTC, using the uniswap V3 vUSD/vBTC liquidity pool.</p><p>As mentioned earlier, depending on the leverage ration that the user selects, they can be using either some or all of their vUSDC tokens.</p><p><strong>7) Closing a position</strong></p><p>Whenever the user decides to close their BTC position, they can trade their vBTC tokens back to vUSD, securing their profit or loss depending on what happened to the Bitcoin price since they opened the position.</p><p><strong>8)Makers bring the liquidity to the AMM (Uniswap V3)</strong></p><p>On top of being used by the traders, <strong>the clearing house contract is also used by the makers.</strong></p><p><strong>Makers are market participants that provide liquidity to the perpetual futures exchange. By doing so, makers make money by accruing trading fees whenever someone trades against the pool where they provide liquidity.</strong></p><p><strong>Makers can also use leverage when providing liquidity.</strong></p><p><strong>9) Liquidity provisioning</strong></p><p>Due to Uniswap V3 design, providing liquidity is a bit more tricky than other Automated Market Makers. In particular, makers have to decide in which price range they want to provide liquidity. They also only get fees from trades that go through the range where their liquidity is present.</p><p>Makers, similarly to traders, can use USDC to interact with the perpetual futures exchange.</p><p>When makers decide to provide liquidity in certain assets, they deposit USDC to the clearing house, that in turn mints vToken and automatically adds liquidity to the selected Uniswap V3 pool.</p><p>As an example, if a maker decides to provide liquidity in the BTC-USDC market, their USDC is used to mint a correct ratio of vUSD and vBTC that are in turn added to the vUSD-vBTC Uniswap V3 pool.</p><p><strong>10) Makers must have an active liquidity provisioning strategy</strong></p><p>As makers are exposed to the price of the underlying tokens in a liquidity pool, they can be impacted by impermanent loss, hence they have to be careful with the ranges they provide liquidity in and in general they should have sustainable strategies for providing liquidity.</p><p>We invite the reader to the following story depicting a liquidity provisioning strategy on Uniswap V3</p><p><a href="https://medium.com/@stefanduprey/active-strategy-for-passive-liquidity-mining-on-uniswap-v3-aa3833bdb885">https://medium.com/@stefanduprey/active-strategy-for-passive-liquidity-mining-on-uniswap-v3-aa3833bdb885</a></p><p><strong>11) Margin model</strong></p><p>When it comes to the margin model, <strong>Perpetual Protocol uses cross margin</strong>, <strong>which means that the user’s fund are kept in one pool and all of their positions use this pool as collateral.</strong></p><p><strong>This makes managing collateral easier since the user doesn’t need to add or remove margin for each position, but has to be used with caution as in this mode, one position can affect other positions.</strong></p><p>If the user has several highly leveraged positions , one position that goes against the user can cause others to be at risk and face possible liquidations. The users also have a way of using isolated margin mode by creating separate wallets for each of their position.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7687c90dd0f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convex finance]]></title>
            <link>https://medium.com/@stefanduprey/convex-finance-6a68cdedccd2?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a68cdedccd2</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Wed, 05 Jan 2022 10:29:12 GMT</pubDate>
            <atom:updated>2022-01-05T15:45:32.815Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>1 ) Convex : a protocol dual to Curve</strong></h3><p>Convex must be seen as a dual protocol which operates over Curve protocol, a “sort of” lego brick which adds up on Curve protocol and allow Curve users to boost their pool yield.</p><p>The protocol Convex is for the moment only available on the Ethereum, but will soon propagate to layers 2 chains.</p><h3><strong>2) Curve protocol : boost your farming rewards by locking your Curve governance token</strong></h3><p>When you bring liquidity to a Curve pool, you end up with LP tokens from your Curve pool, which you can then farm and get CRV rewards from.</p><p>The farming reward APY is decomposed into two parts : a standard base APY and an additional reward APY, which will depend on the number of CRV tokens you locked.</p><p>The liquidity farming reward APY you will earn will depend on the number of CRV you locked on the Curve platform.</p><p>Locked CRV token veCRV will boost your liquidity farming reward up to 2.5X on specific pools.</p><h3>3) The idea between Convex : bring together liquidity provider on Curve and Curve governance token holders in a symbiotic win-win protocol</h3><p>Here comes the brilliant idea behind Convex : mix together people who owns Curve token CRV (bullish long term Curve believer for example) but do not actually have provided liquidity in Curve pools and those who indeed have provided liquidity on Curve pools but do not possess Curve governance token CRV to lock in in order to boost their liquidity farming reward.</p><p>A bit of vocabulary there:</p><ul><li>CRV : governance token of Curve</li><li>veCRV : locked governance token of Curve (the locking period can vary between weeks and months)</li><li>CVXCRV : representation of a locked CRV in Convex protocol</li><li>CVX : governance token of Convex</li></ul><p>Here under is depicted the standard Curve reward mechanism :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Dfn-iO1BfgCVVqAnCTKmA.png" /></figure><p>And here comes the Convex enhanced Curve protocol :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENYX_VvbvCOA20l9RvK9sQ.png" /></figure><h3><strong>4) How-to step by steps</strong></h3><p>Let’s detail the case of a Curve liquidity provider of stable coins on Curve who hasn’t got any CRV token to boost its reward APY.</p><p>He will deposit liquidity on Curve and get LP tokens. He will get his liquidity provisions rewards as usual (volume fees in DAI/USDT/USDC).</p><p>He will then put his LP tokens to farm in Convex, not Curve.</p><p>Convex will be able to boost his reward APY thanks to the mutualized veCRV tokens Convex protocol has available.</p><p>The boosted APY reward will be split between the CVXCRV token holders and the liquidity farmer.</p><p>Both Convex curve holders and liquidity providers will get CVX farming reward (protocol still distributing its governance token)!</p><h3><strong>5) Rewards splitting proportions</strong></h3><p>Performance fee on the farming rewards distribution : 10% of the generated CRV tokens go to CVXCRV token holders and 5% distributed go to CVX holders, the rest goes to the liquidity farmes.</p><p>The 5% are distributed as CVXCRV tokens : the Convex protocol keeps increasing its stack of veCRV raising the farming boosting factors bringing back more CRV farming rewards to the users and the protocol in a virtuous cycle : flywheel effect.</p><p>A little drawback of the convex protocol is that you have to manually withdraw the farming rewards.</p><h3><strong>6) Token economics for CVX</strong></h3><p>Max supply bounded and CVX is minted pro-rata for each CRV token claimed by Curve LPs on Convex.</p><p>CVX will allow token holders to collect platform protocol fees.</p><p>But it will also allow CVX token holders to control CRV farming rewards allocation on Curve finance. Governing decisions on Curve are taken by locked CRV tokens veCRV holders, for which Convex is the biggest mutualized holder.</p><p>CVX being more liquid than veCRV, it will end up as the ‘de facto’ representative with voting power for the CRV allocation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a68cdedccd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOL Farming]]></title>
            <link>https://medium.com/@stefanduprey/sol-farming-c55f2853dcb1?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/c55f2853dcb1</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Tue, 04 Jan 2022 16:42:58 GMT</pubDate>
            <atom:updated>2022-01-05T17:07:52.095Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>1) Solana liquid staking</strong></h3><p>Solana consensus mechanism is based on a Proof of Stake mechanism. You can delegate your SOLs to a validator and get staking rewards. Those staking rewards range between 6–7% but the minimum period to unstake delegated SOLs is between 2–5 days, making hard to adjust in case of market downturn.</p><p>Staked SOLs are also unavailable to invest in and get benefits from the Solana Defi ecosystem.</p><p>Here comes Marinade and its liquid staking protocol : it will wrap your SOL into a mSOL and allow you to participate in the Defi world with your mSOLs and make your mSOL immediately swappable for a stable coin in case of a market down turn.</p><p>mSOL value will be pegged to SOL to which have been added the staking rewards (- 2% of the staking rewards which go to the protocol fees).</p><p>mSOL price in SOL will decrease over time as the staking rewards pile up and you will be able to swap your mSOL for a greater quantity of SOL as time goes by.</p><h3><strong>2) Leveraging Sol without any liquidation risk</strong></h3><p>We hereby give a simple and easy way to add return over the already present staking return of mSOL with almost no risk.</p><ol><li>Lend your mSol on the Solend (Solana aave !) platform and get the supply APY</li></ol><p>2. Add liquidity to SOL/mSOL (impermanent loss risk inexistent because of the inherent peg SOL/mSOL, as it takes two days to unstack your mSOL into SOL) and farm your liquidity</p><p>3. Devise a lend/borrow loop on Solend to increase your mSOL exposure. The liquidation risk will only depend on an unpegging event between SOL and mSOL, which is very unlikely as it takes two days to unstack your mSOL into SOL and farm your liquidity as previously said.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ER3v09hzBpwwsMY0_o5jw.png" /></figure><p>Let’s say we repeat the lend/borrow loop an infinite number of times with an initial amount of A SOLs.</p><p>Overall we have supplied :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*0czZ1XkofVt5cYc0UHI4ow.png" /></figure><p>Overall we have borrowed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*4IgLA46Nv4pwWotCCtmC3Q.png" /></figure><p>X/(1-X) is the leverage obtained on the borrowed amount. For a <strong>X of 75%</strong>, <strong>you get a factor 3 leverage.</strong></p><p>As Solend benefits from a liquidity providing incentive program.</p><p>Supply and borrow APY rates decompose into two parts : the standard APY deducted from bid/offer loans in the lend/borrow pair SOL/mSOL, but with an additional component due to the liquidity incentive program (Solend even pays you to borrow SOL).</p><p>The supply APY is defined by :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*4SyloFvpkL0S_ZJSqs_Ccw.png" /></figure><p>The borrow APY is defined by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*fR390LHd42XXtCCd3_64rA.png" /></figure><p>And the total APY of the leveraged position can be computed accordingly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*30m2zYHvq9nHv_GMb1savw.png" /></figure><p>When the incentive borrow APY is greater than the standard borrow APY, the bAPY is negative : Solend actually pays you to borrow SOL !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c55f2853dcb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abracadabra (FTM farming)]]></title>
            <link>https://medium.com/@stefanduprey/abracadabra-ftm-farming-f082989d7e1b?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f082989d7e1b</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Tue, 04 Jan 2022 11:54:08 GMT</pubDate>
            <atom:updated>2022-01-05T09:40:35.566Z</atom:updated>
            <content:encoded><![CDATA[<p>Abracadabra is a stable coin protocol that will allow users to mint a stable coin MIM (magic internet money) by providing collateral.</p><p>The protocol has a lot of similarities with Maker DAO/DAI and QI DAO/MAI.</p><p>Liquidation ratio, Loan-to-value are the important parameters. You have a slight borrow rate compared to QI DAO.</p><p>Borrowing fee, and borrowing rate which are given back to people owning the governing token SPELL.</p><p>The platform is multi-chain : Ethereum, Avalanche, Fantom, Arbitrum</p><p>Smart contracts have been audited on Ethereum and are backed by big defi players.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spUL8aT4hMJi1Der6f4Nxg.png" /></figure><p>The collateral can be productive !</p><p>Fantom deposited on yearn (yvWFTM) for example : the collateral is productive, meaning that when you redeem your yvWFTM after having reimbursed your debt on Abracadabra.money, you will end up with more FTM.</p><p>Other productive collaterals are available on Ethereum : (alchemix, cvx3pool , yvUSDC).</p><p>Not as much collateral diversity on the other blockchains for the moment (Avalanche, Arbitrum).</p><p>Beware you will incur a liquidation risk whenever minting MIM stable coins by bringing collateral. Calibrate your borrowed amount to sustain price drop up to 80% or slighter less but monitored to add up collateral in case of a market drop.</p><p>The more volatile the collateral the riskier the liquidation might occur.</p><p>If you deposit stable coins as collateral and borrow stable coins, the liquidation risk is null !</p><p>Why would we mint stable coins MIM?</p><ol><li>add leverage to your favorite crypto by making a lend/borrow loop : borrow, swap to your crypto to leverage, redeposit, reborrow , etc.. Rinse and repeat !</li><li>farm your MIM : on FTM (lending your MIM on tarot.to or in a liquidity MIM-FTM pool on spiritswap.finance (carefull with the impermanent loss)) , or on Ethereum within a Curve pool and Convex platform, or on Arbitrum, Curve Finance.</li></ol><p>A flash loan mechanism is directly available on the Abracadabra platform to farm with a leverage effect, up to 10* loops in one transaction.</p><p>The main risks behind abracadabra platform are :</p><ol><li>smart contracts risk</li><li>small unpegging risk for the MIM</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f082989d7e1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Le protocole Prism]]></title>
            <link>https://medium.com/@stefanduprey/le-protocole-prism-439ae89c7ff?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/439ae89c7ff</guid>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Thu, 16 Dec 2021 09:53:01 GMT</pubDate>
            <atom:updated>2021-12-16T09:53:01.264Z</atom:updated>
            <content:encoded><![CDATA[<p>Le protocole Prism arrive et va drastiquement transformer l’écosystème des blockchains PoS (l’avenir vert des blockchains, donc l’avenir tout court).</p><p>Le protocole Prism est l’aboutissement d’une coopération entre l’élite bancaire des produits dérivés sur taux et l’élite cryptographique blockchain des laboratoires Terraform de Luna.</p><p>Ce protocole Prism de création de produits financiers dérivés va permettre de séparer les actifs digitaux avec rendement (typiquement toutes les blockchains PoS : Ether2.0, Luna, Tezos, Polkadot, …) en deux composants : un composant de rendement et un composant principal.</p><ol><li>Mieux gérer les risques associés aux prix volatiles vs rendements volatiles</li><li>Permettre aux utilisateurs de garantir des rendements à des horizons fixés (via des swaps entre taux variable et fixe)</li><li>Eviter les liquidations en cascade et permettre l’emprunt face aux rendements futurs seulement (sans la volatilité du prix)</li></ol><p>La plupart des gens placent leur coins en collateral pour emprunter en face de la liquidité avec un gros risque de liquidation de leurs prêts en cas de forte baisse du marché Prism va permettre aux gens d’emprunter des liquidités avec en contrepartie collatérale le composant de rendement, éliminant de facto le risque de liquidation : ils vont emprunter contre des rendements futurs.</p><p>Un exemple ci-dessous avec le luna scindé en un principal pLuna et un rendement yLuna.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AuGswPlsWyG068jnTgeC9A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=439ae89c7ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Active strategy for passive liquidity mining on Uniswap V3]]></title>
            <link>https://medium.com/@stefanduprey/active-strategy-for-passive-liquidity-mining-on-uniswap-v3-aa3833bdb885?source=rss-9f107cf94cdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa3833bdb885</guid>
            <category><![CDATA[yield-farming]]></category>
            <category><![CDATA[passive-liquidity]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[uniswap-v3]]></category>
            <dc:creator><![CDATA[Stefan Duprey]]></dc:creator>
            <pubDate>Wed, 15 Dec 2021 10:56:52 GMT</pubDate>
            <atom:updated>2021-12-15T13:44:25.819Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*fqX-CIIJEfac871hMPoBlw.png" /></figure><h4><strong>abstract</strong></h4><blockquote><strong>Uniswap is the largest decentralized exchange (DEX) and one of cornerstones of Decentralized Finance (DeFi). Uniswap uses liquidity pools to provide Automated Market Making (AMM) functionality. Uniswap v3 is pioneering the new concept of concentrated liquidity feature, which allows the liquidity providers to concentrate their liquidity in a specific price range, leading to an increased capital efficiency.<br>However, the mathematical relationship between the liquidity of a position, the amount of assets in that position, and its price range becomes somewhat complex.<br>In a volatile market, finding the right bounds for an optimal trading liquidity concentration can be challenging though.<br>The ability to concentrate liquidity on uniswap V3 has been designed for people to gain efficiency on the capital they bring.<br>But the key issue there is to detect the perfect bounds.<br>Bullish/bearish market must be avoided at all costs : the market will traverse your bounds and leave you with your liquidity either in full stable coins in a bullish market or in full risky asset in a bearish market.<br>One has to understand that the provision of liquidity in hyperbolic dexes will loose as soon as the price diverges (upwards or downwards) from where the initial price was when the liquidity was brought.<br>So liquidity provisioning has to be actively monitored. The chosen bounds must be actively managed to encompass the price moves and not get traversed.<br>Passive liquidity investing must be seen as a kind of mean reverting strategy where the money is made from price fluctuation inside a specified range.<br>Liquidity provider hopes the price will stay within definite maximal bounds so that the risk they take from price deviation is not too big.<br>An algorithmic detection is therefore a must : one should discriminate markets as rangy, bullish or bearish and apply only passive liquidity provisioning in rangy markets.<br>We here detail an optimization problem to detect liquidity bounds in rangy market.</strong></blockquote><blockquote><strong>1)Maximize price inside your bounds to earn volume fees<br>2)Tightest bound for capital efficiency<br>3)Bounds re-balancing low frequency</strong></blockquote><blockquote><strong>We here show that your optimal parameters triggering the state definition of a rangy market must be recalibrated with a definite frequency.<br>A whole framework to backtest the calibration period and the prediction period must be implemented.<br>A proper analysis of the rebalancing cost must also be done.<br>When our algorithm sees a trend in the market and does not define the market as “rangy”, one should not bring liquidity as it mainly is a mean reverting strategy which won’t perform in bullish/bearish market:<br>-In a bullish market, one should only possess full long the risky asset and not provide liquidity against a stable coin in Uniswap V3. If the asset consensus comes from a proof of stake, one should stake it. Otherwise, one should borrow on lending protocol to generate yield while still being long on the asset.<br>-In a bearish market, the task is a bit harder. In the best case, you short the risky asset in dydx or perp.<br><br>We also propose an optimal liquidity profile allocation inside the optimal bounds.</strong></blockquote><p>Please find here below the full paper</p><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//sduprey.github.io/Uniswap_v3_concentrated_liquidity.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/821d08ba7dbf393e92219b507db57528/href">https://medium.com/media/821d08ba7dbf393e92219b507db57528/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa3833bdb885" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>