https://github.com/adshao/snx_trial_loan
https://github.com/adshao/snx_trial_loan
flashbots mev snx synthetix
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adshao/snx_trial_loan
- Owner: adshao
- Created: 2021-06-24T03:00:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-24T06:09:54.000Z (almost 5 years ago)
- Last Synced: 2025-06-12T23:40:39.594Z (about 1 year ago)
- Topics: flashbots, mev, snx, synthetix
- Language: TypeScript
- Homepage:
- Size: 181 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Synthetix Trial Loan
This tool gets the open loans info from synthetix trial loan of sUSD and sETH.
## How to use
1. Init repo:
```shell
yarn
```
2. Run local hardhat network with mainnet forking:
```shell
npx hardhat node --fork https://eth-mainnet.alchemyapi.io/v2/
```
3. Run get-openloans.ts script to save open loans:
```shell
# 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
```
4. Check susd_loan.json and seth_loan.json for open loan details.
5. Use flashbots to liquidate these open loans, please refer to [flashbots mev job](https://github.com/flashbots/mev-job-board/blob/main/specs/snx-trial-loans.md).
Good luck.