Skip to content

Commit

Permalink
rm some code
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Nov 22, 2024
1 parent d187e51 commit 2a28efb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions programs/drift/src/state/perp_market.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2a28efb

Please sign in to comment.