From 31a0409bee8b876d38794c38f038668da43b6d27 Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Sat, 27 Jan 2024 14:16:18 -0500 Subject: [PATCH] program: AmmPaused doesnt block all fills --- CHANGELOG.md | 2 ++ programs/drift/src/controller/orders.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90e446b82..3f062a1d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixes +- program: AmmPaused doesnt block all fills + ### Breaking ## [2.57.0] - 2023-01-25 diff --git a/programs/drift/src/controller/orders.rs b/programs/drift/src/controller/orders.rs index c0d12deb6..b9f7502dc 100644 --- a/programs/drift/src/controller/orders.rs +++ b/programs/drift/src/controller/orders.rs @@ -913,6 +913,7 @@ pub fn fill_perp_order( matches!( market.status, MarketStatus::Active + | MarketStatus::AmmPaused | MarketStatus::FundingPaused | MarketStatus::ReduceOnly | MarketStatus::WithdrawPaused