Giter Site home page Giter Site logo

deezy-auto-earn's People

Contributors

andredevjs avatar dannydeezy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deezy-auto-earn's Issues

Variable payment size

Make the payment size variable. On success, try increases the size. On failure, try decreasing the size.

User can use the existing PAYMENT_AMOUNT_SATS for static payment sizes, or they can set MIN_PAYMENT_AMOUNT_SATS, MAX_PAYMENT_AMOUNT_SATS, and PAYMENT_MULTIPLIER

Channel never opens, stays pending forever

I am running this for a couple months now and recently in the past couple weeks I am getting channels that progress to pending "opening" status, but despite on chain confirmations (3+ on latest, over 1000 on last before force close), the channels never open.

I am wondering if anyone has had this issue before and if there is something I am missing.

Edit: my recent channel opened at 6 confirmations, so that makes 1 channel that went on indefinitely. I can't seem to find an answer on this anywhere and it may not be an issue with the code. I am marking as closed but leaving here in case it happens again. TBD.

[Feature Request] Better error message(s) when lnd host unreachable

I updated my config.json and changed (fat-fingered) the hostname to a wrong value. The hostname would basically fail to resolve.

The script will then return the below error when it tries to connect to the lnd host:

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Array]".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v19.4.0

If we could make this a little more human readable, that would be appreciated.

Explain OPEN_CHANNEL_WHEN_LOCAL_SATS_BELOW

What does this refer to? When I run the scripts it calculates a number of a few million sats but I don't understand where that number comes from because it doesn't match anything I see with other tools and a fraction from the actual balance returned with lncli channelbalance.

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

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.

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.