Code Monkey home page Code Monkey logo

agoric-vault-collateralization-notifier's People

Contributors

0xpatrickdev avatar anilhelvaci avatar

Watchers

 avatar

Forkers

anilhelvaci

agoric-vault-collateralization-notifier's Issues

Potential Improvments

Potential Improvements

Client

  • show gov params and current collateralization in addNotifier modal (see #4)
  • logout button to disconnect email auth session
  • disconnect button to disconnect wallet
  • add network dropdown
  • manual wallet address input

Server

  • send email notification when a new Notifier is created or deleted
  • handle multiple networks/environments (currently, a server needs to be deployed for each environment)
  • rate limiting, perhaps with something like @fastify/rate-limit

Both

  • incorporate decimals from displayInfo. Current app assumes 6 for all denoms (see #2)
  • GitHub Workflow for CI/CD (see #3)
  • use basis points (as in integer) instead of percents to store collateralizationRatios. Users can specify '250.55%' instead of just '250%'.
  • ability to edit existing notifiers (versus deleting and recreating)

Received multiple notifications for one notifier

Problem

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.

image

Here's the screenshot of the dashboard:

image

Notifiers

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.

Logs

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.

To Reproduce

So far I'm not able to reproduce this behavior but I'm curious about your thoughts @0xpatrickdev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.