P

Plenty DeFi Notification bot

A discord bot which notifies about activities related to Plenty Defi ecosystem

The problem Plenty DeFi Notification bot solves

This bot provides notifications to various Defi activities related to the Plenty ecosystem. It provides an ease to keep track of all important plenty activities with minimum human effort

The activities supported are:

  • Buying Plenty in large amounts
  • Adding liquidity
  • Tracking supply of Plenty

It runs 24/7 using uptimerobot and polls every 5 seconds to fetch data from tzkt API

Challenges we ran into

Around getting data from blockchain explorer

  • We faced issues with finding the appropriate API calls for mainnet and testnet contracts.
  • To understand and make sense of the data being fetched to distinguish between various activities
  • Optimising fetch so that the activities can polled frequently

Around discord bot

  • Creating multithreaded tasks to poll multiple activities simultaneously
  • Asynchronously calling functions and relaying it to client

Discussion