Skip to content

Implement Slack alert for outdated onchain oracle prices#725

Merged
ebma merged 2 commits into
stagingfrom
717-setup-slack-alert-if-the-oracle-quote-is-outdated
Jun 16, 2025
Merged

Implement Slack alert for outdated onchain oracle prices#725
ebma merged 2 commits into
stagingfrom
717-setup-slack-alert-if-the-oracle-quote-is-outdated

Conversation

@ebma
Copy link
Copy Markdown
Member

@ebma ebma commented Jun 13, 2025

This pull request enhances the PriceFeedService in apps/api/src/api/services/priceFeed.service.ts by introducing a mechanism to monitor onchain oracle prices and notify via Slack if prices are outdated. It also includes improvements for periodic checks and logging.

New functionality for monitoring and notifications:

  • Slack integration added: Imported SlackNotifier to enable sending alerts to Slack when onchain oracle prices are outdated.
  • Onchain oracle price check implemented: Added a new method checkOnchainOraclePricesUpToDate to verify if onchain oracle prices are updated within the last hour. Sends warnings to Slack for outdated prices and logs the status.

Periodic monitoring setup:

  • Cron job for daily checks: Added a cron job in the PriceFeedService constructor to automatically check onchain oracle prices every 24 hours, ensuring regular monitoring.

Closes #717.

@ebma ebma linked an issue Jun 13, 2025 that may be closed by this pull request
@ebma ebma requested a review from a team June 13, 2025 15:28
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 13, 2025

Deploy Preview for pendulum-pay ready!

Name Link
🔨 Latest commit 55e6cee
🔍 Latest deploy log https://app.netlify.com/projects/pendulum-pay/deploys/684c4399bc0a370008d1b1e3
😎 Deploy Preview https://deploy-preview-725--pendulum-pay.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 13, 2025

Deploy Preview for pendulum-pay ready!

Name Link
🔨 Latest commit 14b51bb
🔍 Latest deploy log https://app.netlify.com/projects/pendulum-pay/deploys/684c439d8cf9a5000832e925
😎 Deploy Preview https://deploy-preview-725--pendulum-pay.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@gianfra-t gianfra-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ebma ebma merged commit 9c348f4 into staging Jun 16, 2025
4 of 5 checks passed
@ebma ebma deleted the 717-setup-slack-alert-if-the-oracle-quote-is-outdated branch June 16, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup slack alert if the oracle quote is outdated

2 participants