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

Feature Request: Allow the user more flexibility when opening a channel to deezy #12

Open
jtymoszczuk opened this issue Jan 26, 2023 · 2 comments

Comments

@jtymoszczuk
Copy link

jtymoszczuk commented Jan 26, 2023

Deezy tools helps manage the users' liquidity. Deezy-auto-earn is a way for users to monetize excess liquidity or profit from arbitrage on the network. This solution will align deezy to cater to both users. I am looking to add some flexibility for the users when opening a channel. Currently, the config.json has limitations that restrict the user's options:

  1. The current config.json requires the user to have exactly the amount specified in DEEZY_CHANNEL_SIZE_SATS to open a channel, which doesn't allow for flexibility.

  2. The current config.json can be optimized to better accommodate users who wish to maximize profits by opening the largest possible channel, taking into account onchain fees, as bigger channels can be more profitable.

  3. The current config.json doesn't give the user the flexibility to manage their funds as they see fit, as they might want to sell excess liquidity while keeping a certain amount of funds onchain. They might want to avoid unwanted channel openings when they have funds below the ”OPEN_CHANNEL_WHEN_LOCAL_SATS_BELOW" and above "DEEZY_CHANNEL_SIZE_SATS”.

Solution:
Make the following edits to the config.json to allow some flexibility
Add: "MAX_CHANNEL_SIZE_SATS":
Add: "MIN_CHANNEL_SIZE_SATS":
Add: "RESERVE_ON_CHAIN_SATS":
remove: "OPEN_CHANNEL_WHEN_LOCAL_SATS_BELOW"
remove: "DEEZY_CHANNEL_SIZE_SATS"

By adding the above to the config.json, a user of Deezy-auto-earn can utilize the "MIN" and "MAX" channel size settings it allow more flexibility around opening a channel and utilizing the upper bound. If "MAX" is left blank it should open the largest possible (Keeping in mind the reserves and if the "MIN" is not met no channel will open). It is similar to Deezy's auto-channel-opener where you can open a channel that maximizes oncain funds, however you are adding a range component that allows for a little more control of the channel's size. Other users can also keep more on-chain funds as reserves, and use what's left over to open to Deezy, thus draining any excess liquidity.

@dannydeezy
Copy link
Owner

seems reasonable, thanks for the feedback

@jtymoszczuk
Copy link
Author

This has been implemented on my fork here https://github.com/jtymoszczuk/deezy-auto-earn. Issue/feature request can be closed. I can submit a pull request if you like. Either way, I was happy to get this done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants