Skip to content

Commit 8687a68

Browse files
committed
program: use-5min-for-target-expiry-price
1 parent 7c34e42 commit 8687a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/drift/src/controller/repeg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ pub fn settle_expired_market(
429429
let target_expiry_price = if market.amm.oracle_source == OracleSource::Prelaunch {
430430
market.amm.historical_oracle_data.last_oracle_price
431431
} else {
432-
market.amm.historical_oracle_data.last_oracle_price_twap
432+
market.amm.historical_oracle_data.last_oracle_price_twap_5min
433433
};
434434

435435
crate::dlog!(target_expiry_price);

0 commit comments

Comments
 (0)