Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
bweick edited this page Jul 15, 2019 · 19 revisions

Introduction

Welcome to the set-protocol-strategies wiki!

The Strategies repo contains information about Set Protocol’s Smart Contract Managed Rebalancing Sets and any supporting smart contracts (i.e. oracles). Smart Contract Managed Rebalancing Sets are tokenized portfolio management strategies, built as an extension to Set Protocol. Rebalancing Sets enable strategies to be programmed into ERC20 compliant tokens. For the end user, no action is required to have underlying allocations periodically updated based on the predefined strategy. Anyone with an Ethereum public/private key pair can create, issue, redeem, purchase, and rebalance a Rebalancing Set. To learn more about Managed Sets, see the whitepaper here.

General Architecture

Each Smart Contract Managed Rebalancing Set system is made of three distinct parts: 1) Manager Contract that generates rebalancing proposals based off on-chain data, 2) Oracles that are used to provide data to the Manager Contract and, 3) the Rebalancing Set Token that stores state (balances, allocations, etc.) regarding the strategy.

Implementation

The implementation of this system follows the same general pattern for all Smart Contract Managed Rebalancing Sets with some differences based on strategies (see specific strategy implementations below):

  1. Manager checks that enough time has passed since last rebalance and that there isn’t a new proposal currently under way.
  2. Manager queries its respective Oracles and determines whether price triggers have been met for a new rebalance
  3. Manager selects new allocations for the strategy (represented by Set Tokens) by either creating a new Set Token or selecting between previously created Set Tokens.
  4. Manager calculates auction parameters based off the difference in value between the old collateral and new collateral.
  5. Manager sends proposal to Rebalancing Set Token which puts Rebalancing Set Token into Proposal state and starts the countdown to the beginning of the auction.

See other pages for information on Oracles and Managers.