https://github.com/saantiaguilera/basic-lp-liquidation-notifier
Basic Leveraged Farming Telegram monitor for when I'm close to being liquidated in a position
https://github.com/saantiaguilera/basic-lp-liquidation-notifier
Last synced: 3 months ago
JSON representation
Basic Leveraged Farming Telegram monitor for when I'm close to being liquidated in a position
- Host: GitHub
- URL: https://github.com/saantiaguilera/basic-lp-liquidation-notifier
- Owner: saantiaguilera
- Created: 2021-09-24T18:03:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-20T04:40:45.000Z (almost 4 years ago)
- Last Synced: 2025-03-22T13:35:00.356Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 36.6 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Basic BSC LP Liquidation monitor
This script simply checks an LP initial price vs a simple token pair (pair of 2 tokens in 50/50 weight). If the threshold between the LP prices is surpassed we get notified through telegram immediately to close the position on our own / deleverage / do something fast.
The script can be further enhanced to allow more robust token pairs or other chains (super easy to do but not a necessary requirement for me as of now) or other stuff I simply don't need now.. You are free to fork and make pull requests if you want to enhance it
### Usage
Copy the `testlocal.json` as `local.json` and customize as you wish.
- `threshold` of a token is a percentage (0.1 -> 10%)
- `pairName` is for logging purposes only
- `addrA`/`addrB` are the tokens forming the LPFor usage simply create a crontab (`crontab -e`, set the time interval you would like to be called and make it execute the cron.sh script), that's it.