project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

Rebalancor

Automated and decentralized portfolio rebalancing for retail investors based on predefined criteria. Set up a pool with assets, weight bands, and rebalancing cadence, and let Rebalancor handle the rest.

Rebalancor

Created At

ETHGlobal Sydney

Winner of

Chainlink - Connect the World with Chainlink

Project Description

Rebalancor is a decentralized, automated portfolio management solution on-chain. Investing in crypto comes with high volatility and complexity. Portfolio management is time-consuming for retail investors, who often lack expertise and are susceptible to emotional decision-making rather than sticking to a predefined investment strategy.

Rebalancor makes portfolio rebalancing easy and stress-free. Users simply create pools, determining assets, weights, sell thresholds, and rebalancing cadence. Rebalancor is permissionless and allows for self-custody of assets. Users can create multiple asset pools that are isolated from each other.

Once the pool is created, the factory deploys it and registers it in the Chainlink Automatic Registry. After the user deposits funds, keepers check the portfolio based on set parameters. If the portfolio is out of balance by more than the set % deviance, a stop loss / take gain is executed through AMM.

In the future, the product will offer additional rebalancing logics and strategies that users could choose (such as dynamic rebalancing or creating their own index), and expand into other markets (e.g., DAOs).

See the presentation here: https://www.canva.com/design/DAGELGI6z2k/Q6vM8DB_jbAItcIKaPmKlw/edit

How it's Made

Chainlink is a critical piece of infrastructure in our design for automating the self-custodian automated rebalancor pools. We leverage two of the main tech stacks:

automation chainlink feeds

The initial point of contact for the user its a Factory which allows the user to create an unlimited amount of isolated smart pools with their desired asset composition, deviation threshold and cadence. User proceeds to call createRebalancor in the Factory, where it will have two main tasks:

create a fresh isolated smart pool with the target configuration register programatically the automated task of the smart pool into the automation registry

Once, those two elements are atomically finalised, the user can proceed to approve their assets to be transferFrom them into the smart pool. At this point, the assets are idle in the smart pool and waiting for the automation to kick off based on the cadence. Once enough time elapsed the intelligence living in checkUpkeep will be encoding the logic to be executing in performUpkeep, which once there it will be successfully either taking profit, stop loss trigger or rebalancing to desired targets atomically using UniswapV2

Some interesting points during our work flow was to use mock oracle to be able to fake significant deviations and create fake uniswap v2 on the fly to properly test in testnet the whole flow!

Here is one example of a successful transaction hash triggered by chainlink keepers (see screenshots in media).

background image mobile

Join the mailing list

Get the latest news and updates