An open source calculator for LBlock royalties.
This project is a starting point for a Flutter application that follows the simple app state management tutorial.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
The poocoin API is used to fetch LBlock current price.
The bscscan API is used to fetch lottery & royalties pool data.
Following algorithm is used:
user_token / (total_supply - lotterie_pool) * (0,1 *lotterie_pool)
user_token is filled by user on TextField, locally saved for better UX.
total_supply value is 100,000,000,000.
royalties_pool is fetched each time user open app or relead main view with bscscan API.
I used a free account on bscscan API, that is limited to 5 call each seconds.
No data are send to any server. Only local storage (shared_pref) are used to store user LBlock.