From ed9d6f30c43fc0d837a23b664bc0ea6ac91125f6 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 9 Sep 2024 00:35:01 +0200 Subject: [PATCH] Add TODOs --- server/router/pages/about.templ | 11 +++++++++++ server/router/pages/components/invoice.templ | 1 + server/router/pages/user.templ | 2 ++ 3 files changed, 14 insertions(+) diff --git a/server/router/pages/about.templ b/server/router/pages/about.templ index 1a0b180..df99f85 100644 --- a/server/router/pages/about.templ +++ b/server/router/pages/about.templ @@ -2,6 +2,17 @@ package pages import "git.ekzyis.com/ekzyis/delphi.market/server/router/pages/components" +/** + * TODO: explain how delphi.market works: + * - how to create a market + * - why you need to pay for a market + * - how the outcome of a market is determined (oracle model) + * - how (avg) price is calculated (LMSR) + * - what shares are and how much they are worth + * - risks: censorship, custodial model etc. + * - future plans + */ + templ About() { @components.Head() diff --git a/server/router/pages/components/invoice.templ b/server/router/pages/components/invoice.templ index f8f592b..b972832 100644 --- a/server/router/pages/components/invoice.templ +++ b/server/router/pages/components/invoice.templ @@ -25,6 +25,7 @@ templ Invoice(hash string, bolt11 string, msats int, expiresIn int, paid bool, r templ InvoiceStatus(hash string, expiresIn int, paid bool, redirectUrl templ.SafeURL) { if paid {
PAID
+
joined
{ user.CreatedAt.Format(time.DateOnly) }
sats
+
{ strconv.Itoa(int(user.Msats) / 1000) }
+