Simple script to fetching all user addresses in red-bank map collaterals with the details of their collaterals and debts in red-bank.
Example Output:
Starting block monitoring...
New block detected! Height: 14139967
User: osmo1hwtfu2lsycvh3w9ttg95kn9rlc6ju8xyqv0d62
Total Debt: 0.52321624433008
Total Collateral: 1.60327373719954
Collateralization Ratio: 3.06426597907401186426
=====================================
Install all packages
yarn
Run script
yarn start