Skip to content

iamyxsh/safe-rebalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe Rebalancer

This is a POC of an app that can automatically change the balance of the tokens in a Gnosis Safe wallet if certain triggers are met.

Architecture

Architecture

Components

  1. Contracts
  2. Server
  3. Script

Running Tests

To run tests, run the following command

  cd contracts && forge test --rpc-url <your node URL to forked mainnet>

Run Locally

Clone the project

  git clone https://github.com/iamyxsh/safe-rebalancer.git

Go to the project directory

  cd safe-rebalancer

Start Forked Blockchain

  yarn blockchain

Start the server

  yarn server

Features

  • Rebalncer Module

  • Session Key Generation

  • Whitelisting Session Key

  • On-Chain Validation

  • Server Cron Jobs

To Do List

[ ] More Secure Session Key (Maybe AWS KMS)

[ ] An individual Session Key Manager Contract

[ ] Better Off-Chain Validation in the Cron Job

[ ] Gas Less Execution of Rebalancing (Maybe Smart Wallet of Session Keys)

[ ] Better management of every token pair

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors