File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ pub extern "C" fn math_calculate_margin_requirement_and_total_collateral_and_lia
87
87
let mut oracle_map = OracleMap :: load (
88
88
& mut oracle_accounts. iter ( ) . peekable ( ) ,
89
89
accounts. latest_slot ,
90
- None ,
90
+ accounts . oracle_guard_rails ,
91
91
)
92
92
. unwrap ( ) ;
93
93
Original file line number Diff line number Diff line change 1
1
//! cross-boundary FFI types
2
2
use abi_stable:: std_types:: RResult ;
3
3
use drift_program:: {
4
- math:: margin:: MarginRequirementType , state:: margin_calculation:: MarginContext ,
4
+ math:: margin:: MarginRequirementType ,
5
+ state:: { margin_calculation:: MarginContext , state:: OracleGuardRails } ,
5
6
} ;
6
7
use solana_sdk:: {
7
8
account:: Account ,
@@ -44,11 +45,11 @@ impl<'a> IntoAccountInfo<'a> for &'a mut AccountWithKey {
44
45
45
46
/// FFI equivalent of an `AccountMap`
46
47
#[ repr( C ) ]
47
- #[ derive( Debug ) ]
48
48
pub struct AccountsList < ' a > {
49
49
pub perp_markets : & ' a mut [ AccountWithKey ] ,
50
50
pub spot_markets : & ' a mut [ AccountWithKey ] ,
51
51
pub oracles : & ' a mut [ AccountWithKey ] ,
52
+ pub oracle_guard_rails : Option < OracleGuardRails > ,
52
53
pub latest_slot : Slot ,
53
54
}
54
55
You can’t perform that action at this time.
0 commit comments