mento-protocol / reserve-site

Mento Reserve Website
https://reserve.mento.org
1 stars 3 forks source link

Alerting when reserve on celo runs low #48

Closed olenovyk closed 3 weeks ago

olenovyk commented 8 months ago

Description We have Reserve smart contract on Celo that is being manually refilled whenever it runs low on axlUSDC/axlEURO Atm we rely one someone from the team checking either on the dashboard, or through celoscan how much of axlUSDC and axlEUROC we have in the reserve and wether we should refill it. It happened couple of times, that we noticed that we low on funds when there already was 0 of axlEUROC/axlUSDC in partial reserve. This issue is about creating an alert system that will notify relevant team members that partial reserve needs to be refilled.

How implementation should look like: whenever the balance of axlUSDC or axlEUROC in the Reserve smart contract is low than the threshold set in the config, the bot should send a message to #protocol-operations channel on Mento Discord server, tagging @everyone with message like: "The balance of axlEUROC in the Reserve is XXX. Make sure to refill it on time".

We should be able to configure several alerts. E.g when balance is at 200k, 50k, 5k.

Acceptance criteria We recieve notifications in #protocol-operations Discord channel whenever the reserve needs to be refilled with axlUSDC or axlEUROC

bayological commented 8 months ago

Story Points: 3 See the discussion in Sprint Poker #​​25

Powered by Parabol

bayological commented 5 months ago

@olenovyk Do we still want to do this for the main reserve instead?

olenovyk commented 5 months ago

@olenovyk Do we still want to do this for the main reserve instead?

Yes please. I will update an issue.