Web3 Script - Ethereum / Abracadabra

Job ID: 32448010

Budget: $30 – $250 USD

Introduction:
This project is to develop a script that automates the deposit and borrowing on Abracadabra.money on the Ethereum network.

Details:
This script should (in a loop on a configurable timer)-
1. Read the ETH and wUST balance of the Ethereum wallet (that we'll be using to transact with later)
2. Read the 'MIM Left To Borrow' value for the pool https://abracadabra.money/pool/26. This will create the upper limit for how much we can borrow in this pool.
3. If the the 'MIM Left To Borrow' value > 0, then deposit the maximum amount of wUST (if there is balance and ETH to pay for gas)

About depositing in this pool:
The leverage should be set so the liquidation price is between $0.89 and $0.91
The swap tolerance should be 1%

Effectively this script will automating what you can see in the attachment when $MIM comes available to borrow.

Langauge:
Tis script should be developed in NodeJs

Ethereum Node:
Connect to a free endpoint of https://www.quicknode.com/
Related categories: Node.js Blockchain Ethereum Web3.js