diff --git a/src/sql/orderbook/latest_block.sql b/src/sql/orderbook/latest_block.sql index acc3a5d4..6bb1a1b5 100644 --- a/src/sql/orderbook/latest_block.sql +++ b/src/sql/orderbook/latest_block.sql @@ -1,3 +1,2 @@ -select min(block_number) latest -from settlements -where tx_from is null; \ No newline at end of file +select max(block_number) latest +from settlement_observations;