Giter VIP home page Giter VIP logo

flood's Introduction

Flood

Liquidity Provider bot for CL pools.

Flood

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:

  1. Calculate market and theoretical price delta
  2. See if delta is greater than a threshold
  3. 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.

flood's People

Contributors

dependabot[bot] avatar faddat avatar maxrobot avatar shapeshed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.