Queries the node gas wallet, Swaps LINK for MATIC.
- Checks node wallet MATIC balance.
- Withdraws LINK from contract.
- Swaps ERC721 LINK for ERC20 LINK on pegswap.
- Swaps LINK for MATIC on quickswap.
- Sends Telegram message with TX id's. (OPTIONAL)
Before you start:
- Edit configuration variables in app.py
- Approve spending of 0xb0897686c545045aFc77CF20eC7A532E3120E0F1 (ERC721 LINK) from 0xAA1DC356dc4B18f30C347798FD5379F3D77ABC5b (Pegswap).
- Approve spending of 0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39 (ERC20 LINK) from 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff (Quickswap).
Running:
docker build -t maticbalancer .
docker run --restart always -d --name maticbalancer maticbalancer:latest
To enable telegram notifications, set Enabled to True, To get telegram ID use @myidbot.