From 9e1d7adada3bf3af98e77f7e3e51ed79d53c724d Mon Sep 17 00:00:00 2001 From: Michael Buntarman Date: Tue, 10 Feb 2026 16:49:58 +0700 Subject: [PATCH] chore: prevent non-signed market settled --- .gitignore | 1 + internal/migrations/032-order-book-actions.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4cf105ef5..56ef01268 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ deployments/network .task CLAUDE.md +GEMINI.md # dev-only maintenance files maintenance \ No newline at end of file diff --git a/internal/migrations/032-order-book-actions.sql b/internal/migrations/032-order-book-actions.sql index b3d25a767..ee17ecf02 100644 --- a/internal/migrations/032-order-book-actions.sql +++ b/internal/migrations/032-order-book-actions.sql @@ -2461,7 +2461,7 @@ CREATE OR REPLACE ACTION settle_market( for $row in SELECT result_canonical, signature FROM attestations WHERE attestation_hash = $market_hash - ORDER BY signed_height DESC + ORDER BY signed_height DESC NULLS LAST LIMIT 1 { $result_canonical := $row.result_canonical; $signature := $row.signature;