Flood
Liquidity Provider bot for CL pools.
![Flood](https://github.com/margined-protocol/flood/raw/v0.1.0/assets/flood.webp)
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.
Strategy Description
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
Installation
Releases for Linux, Windows and Mac are available on the releases page.
Config
An example config file with comments is provided at
./configs/config.example.toml
Usage
To run flood pass the path of the configuration to the -c
flag.
LOG_LEVEL=debug ./bin/flood -c configs/config.example.toml
Managing keys
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
Adding a Key to Pass
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
.