Liquidity Provider bot for CL pools.
Flood creates and manages Concentrated Liquidity (CL) pool positions ensuring that capital deployed is done according to a useful set of rules.
The primary objective is to try to maintain two positions of quote and base assets that allows the owner of the bot to define the price(s) at which the quote and base are to be sold.
The strategy looks at the current theoretical price of sqASSET and the market price of sqASSET and adjust two LP positions accordingly.
It follow a number of key steps:
- Calculate market and theoretical price delta
- See if delta is greater than a threshold
- If threshold is passed then adjust the positions, if not do nothing
Releases for Linux, Windows and Mac are available on the releases page.
An example config file with comments is provided at
./configs/config.example.toml
To run flood pass the path of the configuration to the -c
flag.
LOG_LEVEL=debug ./bin/flood -c configs/config.example.toml
Flood can be configured to use pass
as a keychain.
signer_account = "bot-1"
[key]
app_name = "osmosis"
backend = "pass"
root_dir = "/home/margined"
This will load a key from
/home/margined/.password-store/keyring-osmosis/bot-1.info.gpg
, equivalent to
running
pass show keyring-osmosis/bot-1.info
osmsosisd keys add [name-of-your-key] --keyring-backend pass
Tip
If you are using pass on a headless server set default-cache-ttl 31446952
and max-cache-ttl 31446952
in ~/.gnupg/gpg-agent.conf
.