From 2a28efba39141dfe3a3010bedeb7e622ddee6717 Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Fri, 22 Nov 2024 10:00:27 -0500 Subject: [PATCH] rm some code --- programs/drift/src/state/perp_market.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/programs/drift/src/state/perp_market.rs b/programs/drift/src/state/perp_market.rs index ed6803758..2e083f509 100644 --- a/programs/drift/src/state/perp_market.rs +++ b/programs/drift/src/state/perp_market.rs @@ -301,7 +301,7 @@ impl MarketIndexOffset for PerpMarket { impl PerpMarket { pub fn get_oracle_id(&self) -> OracleIdentifier { - self.amm.get_oracle_id() + (self.amm.oracle, self.amm.oracle_source) } pub fn is_in_settlement(&self, now: i64) -> bool { @@ -1108,10 +1108,6 @@ impl Default for AMM { } impl AMM { - pub fn get_oracle_id(&self) -> OracleIdentifier { - (self.oracle, self.oracle_source) - } - pub fn get_fallback_price( self, direction: &PositionDirection,