This console application can show your staked and pending balances you have in a staking pool like PancakeSwap (Binance Smart Chain).
I made it to query Manual Cake pool, where staked and reward token are the same which allows you to do compound interest.
Create a res.py file to place your wallets address.
You can query other pools by modifying pid, contract and contract_abi in pools.py.
Now you can add mainnet in pools.py to get data from any Ethereum based blockchain like Polygon and BSC.
Tested on:
To do:
- Test with other Ethereum based blockchains like Polygon.
- Add support for pools which different rewards token.
This CLI looks nice thanks to Rich.