auto_repay's People
Forkers
kjessec silvermind jellicoe oozman unl1k3ly tekkinnovations chinoman10 sjoerdmaessen damiensgit vitorhartmanncom lunahodler kingfavourjudah kkumarcodesauto_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
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?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.