FeedProjects
Developers
Settings
๐ŸŽ‰ A new chapter begins: Boardroom has joined Agora
Learn more
protocol logo
Explore / Projects
Index

Proposals

Discussions

Members

Information

Create Proposal

Index

ProposalsDiscussionsMembersInformation
Proposal
Back to Proposals
closedEnded 5 years ago ยท Snapshot (Offchain)

IIP-50: Upgrade FLI to Support Multiple Exchanges

By 0xB0Ff...E28ceA

IIP: 50 title: Upgrade FLI to Support Multiple Exchanges status: Proposed author: Noah Citron (@ncitron), Richard Liang (@richard) created: 2021-6-23 discussion to: https://gov.indexcoop.com/t/iip-50-upgrade-fli-to-support-multiple-exchanges/1798

Simple Summary

Update both ETH2x-FLI and BTC2x-FLI to support levering and delevering using multiple exchanges.

Abstract

The Flexible Leverage Index uses a smart contract called FlexibleLeverageStrategyAdapter to execute rebalances. This contract currently only executes trades through a single exchange (Sushiswap). This upgrade allows us to pass in a list of enabled exchanges that our keeper bots may use. Initially, we will enable Sushiswap and Uniswap V3.

Motivation

As FLI products grow larger, we increasingly have to consider slippage on our trades. This is because as AUM grows our rebalancing trades must also scale. To combat this, we set a maximum trade size, and lever/delever the product slowly over multiple trades. While this solution has been sufficient under normal operation, it is a slow process since we must also set a minimum delay period between trades to allow the Sushiswap pool to be arbitraged back to the correct price. During rapid price changes, this bottleneck can prevent us from delevering fast enough, leading to liquidation risk. This constraint is part of the reason why FLI supply caps must be maintained.

Enabling FLI to use a list of whitelisted exchanges to rebalance has several advantages. First, minimum trade delays can be enforced on a per-exchange basis. This means that we can execute a rebalancing trade for each exchange simultaneously, increasing our rebalancing speed. Secondly, having access to multiple exchanges allows us to make use of Uniswap V3. Uniswap V3 almost always will allow us to execute large trades with low price impact, but occasionally produces suboptimal trades for brief periods when price moves outside of liquidity providersโ€™ preset range, and high gas prices are preventing them from redeploying their liquidity. By utilizing multiple exchanges, we can easily direct our keeper bots to use Uniswap V3 as the primary exchange, with Sushiswap as a backup. By utilizing Uniswap V3 in this way, we will be able to achieve a 3-6x increase in our existing trade size and delevering speed.

Overall, this change significantly improves FLIโ€™s safety and will allow us to have more confidence when increasing the FLI supply caps.

Specification

Overview

The FlexibleLeverageStrategyAdapter is responsible for controlling FLIโ€™s rebalancing operations. This change will require deploying two new versions of this contract (one for each FLI product).

Technical Specification

The proposed changes to the contract can be viewed on GitHub here: https://github.com/SetProtocol/index-coop-smart-contracts/pull/59

Additionally, we will have to execute five transactions per FLI product from the Index Coop multisig to enable these adapters. A table detailing them is provided below:

| To | Description | | -------- | -------- | -------- | | Old FLI strategy adapter | Withdraw ripcord incentive | | BaseManager | Add new adapter to BaseManager | | New FLI strategy Adapter | Whitelist the keeper bots | | New FLI strategy Adapter | Send ripcord incentive | | BaseManager | Remove old FLI strategy Adapter |

Continue Reading
Connect Wallet to Add Note
0
Votes 65
VoterCast PowerVote & Rationale
0x1b11...6A1CB7
23,266

FOR

0x7E85...6bEaf8
20,026

FOR

0xC427...A54091
19,764

FOR

0x042a...5D1272
18,717

FOR

0x6B10...BBBbcD
8,096

FOR

SHOW MORE
VOTE POWER
0
Connect Wallet
Proposal Status
  • Mon June 28 2021, 06:00 pmVoting Period Starts
  • Thu July 01 2021, 06:00 pmEnd Voting Period
Current Results

1-FOR

126,725.129

2-AGAINST

1.01

0%
DocumentationBrandingContact Us
Home
This Project is Currently Disabled

If you would like to enable it, please checkout below.

Boardroom Subscription

Sign up for an individual subscription (access all projects on the platform)

Subscribe
Enable Project

Enable the entire project for every user

Enable Project
Contact Us