Commit Graph

27 Commits

Author SHA1 Message Date
ekzyis 7094438152 Use cost function
With this cost function, buying and selling is a lot easier since it uses the same function.

Also, shares are now always integers which is also easier to grasp.

Reference: http://blog.oddhead.com/2006/10/30/implementing-hansons-market-maker/
2023-09-09 22:52:50 +02:00
ekzyis 87ce57c862 Add binary market page 2023-09-09 22:52:50 +02:00
ekzyis fbab0b4975 Add PUBLIC_URL env var 2023-09-09 22:52:50 +02:00
ekzyis eb977576db Fix duplicate key error 2023-09-09 22:52:50 +02:00
ekzyis 2053d15290 Check database connection on startup 2023-09-09 22:52:50 +02:00
ekzyis dabb1be2f0 Fix missing error log 2023-09-09 22:52:50 +02:00
ekzyis 162f54b934 Fix alignment on error pages 2023-09-09 22:52:50 +02:00
ekzyis e6c20935bc Add users table 2023-09-09 22:52:50 +02:00
ekzyis d876997eeb Return 500 on error during session query 2023-09-09 22:52:50 +02:00
ekzyis 59ce2bbc8e Mount postgresql.conf 2023-09-09 22:52:50 +02:00
ekzyis 17988d9e5c Delete old deploy script 2023-09-09 22:52:50 +02:00
ekzyis 32f4c27899 Move nginx.conf into root 2023-09-09 22:52:50 +02:00
ekzyis 68ae16173f Fix missing NOT NULL 2023-09-09 22:52:50 +02:00
ekzyis 04f3feaf8c Remove wrong comment 2023-09-09 22:52:50 +02:00
ekzyis 0302c3fcba Move code into src/ 2023-09-09 22:52:50 +02:00
ekzyis 09c619ab63 Add lightning scheme to QR code 2023-09-09 22:52:50 +02:00
ekzyis 05e89ccbf2 Fix mobile layout for /login 2023-09-09 22:52:50 +02:00
ekzyis 0c7f7be359 Update nginx config 2023-09-09 22:52:50 +02:00
ekzyis 4fcd9770db Fix navigation on login page 2023-09-09 22:52:50 +02:00
ekzyis 5e275b106c Use PORT from environment 2023-09-09 22:52:50 +02:00
ekzyis 9440f58efe Add sessions using LNURL-auth 2023-09-09 22:52:50 +02:00
ekzyis 54574d2e7e Fix inconsistent layout 2023-09-09 22:52:50 +02:00
ekzyis 08d85ef477 Serve error pages 2023-09-09 22:52:50 +02:00
ekzyis 06043c791e Use minimalist Go web framework Echo 2023-09-09 22:52:50 +02:00
ekzyis f20fa51464 initial files 2023-09-09 22:52:50 +02:00
ekzyis 141c22b855 Add README.md 2023-09-09 22:52:50 +02:00
ekzyis 4725ad3ca2 initial commit 2023-09-09 22:52:50 +02:00