Git Product home page Git Product logo

auto_repay's People

Contributors

alpac-4 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto_repay's Issues

Columbus 5 update

Hi. I was wondering if you have a plan to update transaction code to support columbus 5? Currently the transaction code doesn't seem to work.

auto borrow trigger

in index.js

lines 563 to566

        }else if(nowPercent < **belowTrigger**){
            let ust_amount = parseInt((target_percent - percentNow) / percentNow * loanAmount)
            await repayHandler.borrow_ust(ust_amount)
        }

should this be target_percent, as belowTrigger is always -1 and is not the target value

        }else if(nowPercent < **target_percent**){
            let ust_amount = parseInt((target_percent - percentNow) / percentNow * loanAmount)
            await repayHandler.borrow_ust(ust_amount)
        }

Get Mnemonic from user input

I just spent more than an hour trying to make the script able to run from just npm start and if there isn't a mnemonic on the .env, it'll prompt the user.
Unfortunately, I just couldn't get it to work, possibly because I'm rather new to NodeJS.
I believe someone experienced can handle such an easy feature in just a few minutes.

The idea/reason is simple:

  • .env isn't very safe, as has already been started;
  • giving the seed phrase as a process argument isn't that much better since most users won't know they should put a (space) before npm start so that the phrase isn't recorded on the command line history...
  • by checking if the mnemonic is empty, it should prompt the user for it; this way it's not stored anywhere but the machine's memory (RAM), and we could potentially do process.stdout.write('\033c'); to clear the console (so it's also not visible by scrolling).

Question in pkg dependence

Awesome project !

Thank you so much for doing this.

I did start something in python using anchor and mirror CLI. I wish both had a python SDK for simplicity !!

Anyways, what is the need for "fs": "0.0.1-security" ? in pks dependence ? Is it really required ?

https://www.npmjs.com/package/fs

I'm not too familiar with nodejs.

Ty

Random crash?

image
Occasionally the program stops (I think) by itself.
It's weird, but looks like it's still printing empty lines or something, in the background, since as you can see from the bottom half, it's just empty... (no, it wasn't me pressing Enter or something).

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.