0xpatrickdev / agoric-vault-collateralization-notifier Goto Github PK
View Code? Open in Web Editor NEWServer and web app application that monitors a blockchain protocol (Inter) and sends alerts when user-specified criteria are met.
Server and web app application that monitors a blockchain protocol (Inter) and sends alerts when user-specified criteria are met.
decimals
from displayInfo
. Current app assumes 6
for all denoms (see #2)see Agoric/ui-kit#55
precedent:
Sea Shanty's bot provides real time updates on user mint collateral debt positions. Available on Telegram, it provides an easy way to view USK mint position amount and risk ratio at any time on mobile or desktop.
-- https://docs.kujira.app/dapps-and-infrastructure/usk-stablecoin/how-to-mint-usk
I've been trying out the application. I put the computer to sleep and when I woke up in the morning this is what I saw. I had received over 100 emails from notifiers that I had already received one email for the first place. The timing is displayed in Europe/Istanbul
setting.
Here's the screenshot of the dashboard:
I'm not able screenshot the notifiers page because my verification link is expired and the email I used is a temporary one which I cannot access now.
I'm not able to export the logs from mailgun but here's a sample log content:
This eamil is sent at 10/17/23 03:46AM Istanbul
{
"recipient-domain": "czilou.com",
"log-level": "info",
"timestamp": 1697503608.7974238,
"envelope": {
"sender": "[email protected]",
"targets": "[email protected]",
"transport": "smtp",
"sending-ip": "198.61.254.59"
},
"delivery-status": {
"enhanced-code": "",
"mx-host": "mail.czilou.com",
"session-seconds": 1.518,
"message": "OK",
"code": 250,
"utf8": true,
"attempt-no": 1,
"description": ""
},
"recipient": "[email protected]",
"id": "UD2-2xUcR3qJz3gN09hknQ",
"user-variables": {},
"storage": {
"region": "us-west1",
"env": "production",
"key": "BAABAQV4OE15f7OeRE5PG4OeoM6960SIZA",
"url": "https://storage-us-west1.api.mailgun.net/v3/domains/sandbox326822b7859d4b1192b346ae3386227f.mailgun.org/messages/BAABAQV4OE15f7OeRE5PG4OeoM6960SIZA"
},
"event": "delivered",
"tags": [],
"message": {
"size": 424,
"attachments": [],
"headers": {
"to": "[email protected]",
"subject": "Inter Vault Alert: Collateralization Level Breached",
"message-id": "20231017004647.013f22aaeca69177@sandbox326822b7859d4b1192b346ae3386227f.mailgun.org",
"from": "[email protected]"
}
},
"flags": {
"is-authenticated": true,
"is-routed": false,
"is-system-test": false,
"is-test-mode": false
},
"campaigns": []
}
And here's the MIME:
Mime-Version: 1.0
Subject: Inter Vault Alert: Collateralization Level Breached
From: [email protected]
To: [email protected]
Message-Id: <20231017004647.013f22aaeca69177@sandbox326822b7859d4b1192b346ae3386227f.mailgun.org>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=ascii
Your ATOM vault #0, has crossed below the 365% collateralization level.
So far I'm not able to reproduce this behavior but I'm curious about your thoughts @0xpatrickdev
I found that installSesLockdown.js is using SES version 0.18.7
and endojs/endo#1767 says that it's fixed in 0.18.8
Update SES from 0.18.7
to 0.18.8
First this is pretty amazing!
Twilo offers some great tools for receiving txt messages and phone calls. Here's a link to the API docs https://www.twilio.com/docs/usage/api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.