Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: accept command line argument to launch keeper in different modes #2

Open
zarboq opened this issue Sep 23, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@zarboq
Copy link
Collaborator

zarboq commented Sep 23, 2023

Feature Request

Describe the Feature Request

We will most likely have two different types of keepers.

Two different type of keepers are needed. Liquidation Keepers and Order Keepers. Both keepers should first check if transactions will fail before sending them to save gas. Gas for keepers should be provided by user when he create his Order.

Order Keeper:

Those keeper will listen to event for Order, Withdraw and Deposit creation. When they get a new event they will check the viability of the action to execute and execute it if possible.

Liquidation Keeper:

Their role is to loop on open positions to check if they are liquidable and liquidate them if it’s the case.

That's why we need to accept different argument when launching our keeper through the command line.

Describe Preferred Solution

Add a keeper-mode argument to the CLI. For now the two values it should accept are order and liquidation.

@zarboq zarboq added the enhancement New feature or request label Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant