Skip to content

adshao/snx_trial_loan

Repository files navigation

Synthetix Trial Loan

This tool gets the open loans info from synthetix trial loan of sUSD and sETH.

How to use

  1. Init repo:
yarn
  1. Run local hardhat network with mainnet forking:
npx hardhat node --fork https://eth-mainnet.alchemyapi.io/v2/<your_key>
  1. Run get-openloans.ts script to save open loans:
# npx hardhat run --network localhost scripts/get-openloans.ts

got 319 created logs
got 301 closed logs
Total open loan amount: 262617.264012545475282129 sUSD
😀😀😀😀😀 Save 18 loans
got 121 created logs
got 111 closed logs
Total open loan amount: 59.2 sETH
😀😀😀😀😀 Save 10 loans
  1. Check susd_loan.json and seth_loan.json for open loan details.

  2. Use flashbots to liquidate these open loans, please refer to flashbots mev job.

Good luck.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published