This repository contains the implementation of a basic liquidity mover for TOREX, which is easily automatable with Gelato.
There is a draft TDD for this project here.
This repository is based on the Foundry Template by Paul Razvan Berg.
- Deploy the contract or find an already deployed one.
- Go to Gelato App.
- Connect your wallet.
- Start creating a new task by clicking on "+ Create Task".
- For "Trigger type", select "Time Interval" and set the desired time interval.
- For "What to trigger", select "Transaction".
- For "Target Smart Contract", select the network and enter the address of the deployed contract.
- For "Function to be automated", select
moveLiquidity(address: torex, address: rewardAddress, uint256: rewardAmountMinimum)
- Arguments:
torex
: The address of the TOREX you want to move liquidity for.rewardAddress
: The address for which the profit of the liquidity movement is sent.rewardAmountMinimum
: The minimum amount of reward to be made in the quote tokens. Do account for gas cost so the reward amount would cover it.
- For "Task Properties", give the task a name.
- Create the task by clicking on "Create Task" and signing the transaction.
- Check that the task shows up in your dashboard and you should be done.
Do note that for automation transactions to be executed by Gelato, you need to your fund Gelato account by going to "1Balance" in the app, once you've connected your wallet.
- Celo: https://celoscan.io/address/0x83bf283857c787923e7271a0bafdb44228688be0
- Optimism: https://optimistic.etherscan.io/address/0xb2c22f1a0dddb6222dae2f29269c703d3b76ac3b
- Base: https://basescan.org/address/0x1e77916e3fed4a24dc4e37968587e2b71d3a9c06
- https://basescan.org/address/0x06f38def746ad22417940f580858ab36b2e6614c
- https://optimistic.etherscan.io/address/0xb32d94537591a899b13f7923a0f2cd0200a1ca84
- https://celoscan.io/address/0x8B25D8a48d1FB17C9aF7765c797CA38B78614729
This project is licensed under MIT.