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.
To run tests, run the following command
cd contracts && forge test --rpc-url <your node URL to forked mainnet>
Clone the project
git clone https://github.com/iamyxsh/safe-rebalancer.gitGo to the project directory
cd safe-rebalancerStart Forked Blockchain
yarn blockchainStart the server
yarn server-
Rebalncer Module
-
Session Key Generation
-
Whitelisting Session Key
-
On-Chain Validation
-
Server Cron Jobs
[ ] 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
