A Discord bot that can generate APY in Points issued by The Accountant bot.
For more on this bot and all the rest of the Eco Community bots, check out this post.
- users who want to stake need to write to the bot
- they will be asked if they want to begin staking and present with some choices
- if they opt-in staking they will be asked to HODL point and to not move them
- if they HODL points for the whole staking epoch they will earn % of APY
- if they started staking in between epochs their stake will be counted towards the next epoch
- bot will watch staking balance and if a user moves part of their points that part won't be counted
- staking is split into Epochs
- if users started staking in between epochs their stake will be counted in the next epoch
- in other words, a user needs to stake throughout the whole epoch to be eligible for rewards
- at the end of the epoch admins will be DMed with a list of users and rewards
- Install Docker
- Copy and update settings in
.env.example
- Execute
docker-compose up -d
- Install requirements from
requirements.txt
for>= Python 3.8
- Copy and update settings in
config.example.py
- Init database tables via
aerich upgrade
- Start bot via
python bot.py
or via supervisord or systemd - Add a bot to the server with at least
68608
scope - Bot will read changes to user balance from
POINTS_LOG_CHANNEL_ID
channel, you will probably need to change how bot parses that channel insync_discord.SyncDiscordCog