PerpEditMarket: Fix permission for oracle change (#420)
This commit is contained in:
parent
629eaafaf3
commit
eb079e1f4c
|
@ -65,6 +65,7 @@ pub fn perp_edit_market(
|
||||||
};
|
};
|
||||||
if let Some(oracle) = oracle_opt {
|
if let Some(oracle) = oracle_opt {
|
||||||
perp_market.oracle = oracle;
|
perp_market.oracle = oracle;
|
||||||
|
require_group_admin = true;
|
||||||
}
|
}
|
||||||
if reset_stable_price {
|
if reset_stable_price {
|
||||||
require_keys_eq!(perp_market.oracle, ctx.accounts.oracle.key());
|
require_keys_eq!(perp_market.oracle, ctx.accounts.oracle.key());
|
||||||
|
|
Loading…
Reference in New Issue