diff --git a/pkg/seawater/src/lib.rs b/pkg/seawater/src/lib.rs index 3cbd822c..32fa9c0a 100644 --- a/pkg/seawater/src/lib.rs +++ b/pkg/seawater/src/lib.rs @@ -717,6 +717,7 @@ impl Pools { self.position_owners.get(id), Error::PositionOwnerOnly ); + assert_or!(pool.enabled.get(), Error::PoolDisabled); let (amount_0, amount_1) = diff --git a/pkg/seawater/src/pool.rs b/pkg/seawater/src/pool.rs index 83e0308e..5b974a4c 100644 --- a/pkg/seawater/src/pool.rs +++ b/pkg/seawater/src/pool.rs @@ -228,9 +228,6 @@ impl StoragePool { .to_i128() .ok_or(Error::LiquidityAmountTooWide)?; - // [update_position] should also ensure that we don't do this on a pool that's not currently - // running - self.update_position(id, delta) }