https://github.com/marczeller/dai2chai
Js script automating SAI/DAI to Chai conversion.
https://github.com/marczeller/dai2chai
Last synced: 3 months ago
JSON representation
Js script automating SAI/DAI to Chai conversion.
- Host: GitHub
- URL: https://github.com/marczeller/dai2chai
- Owner: marczeller
- License: mit
- Created: 2019-12-11T14:11:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:55:54.000Z (over 2 years ago)
- Last Synced: 2025-01-04T02:58:00.813Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.17 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DAI2Chai
Js script automating DAI to Chai conversion.The script collect some DAI or SAI in a address and automaticaly convert it to CHAI, an interest-bearing token linked to MakerDAO Dai Saving Rate.
then Chai is sent to the address defined for storage.
*I recommend that address to be a Hardware Wallet such as a Ledger*
# Setup
```bash
git clone https://github.com/marczeller/DAI2Chai.gitcd DAI2Chai
npm install
```then edit the `config.js` file with your credentials.
`node DAI2Chai.js`
you can visit the offical Chai token website on [chai.money](chai.money)
# Security
this bot have access to your funds, I **Highly** recommend to setup the script on a dedicated reception address , fill it with a small amount of ETH to pay gas and fill another address as your `GoToAddress` in `config.js`
Also, avoid running this script in a public VPS, use some self hosted device!
Another vector of attack is trolls sending you very small amount of DAI to make you waste your ETH for transaction fees. make sure the `Threshold` in the `config.js` is not set too low.