File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ use drift_program::{
2222// Reuses existing type definitions while removing Solana-specific abstractions
2323use crate :: types:: MarketState ;
2424
25- #[ repr( C , align ( 16 ) ) ]
25+ #[ repr( C ) ]
2626#[ derive( Clone , Copy , Debug , Default ) ]
2727pub struct IsolatedMarginCalculation {
28- pub market_index : u16 ,
2928 pub margin_requirement : u128 ,
3029 pub total_collateral : i128 ,
3130 pub total_collateral_buffer : i128 ,
3231 pub margin_requirement_plus_buffer : u128 ,
32+ pub market_index : u16 ,
3333}
3434
3535impl IsolatedMarginCalculation {
@@ -58,7 +58,7 @@ impl IsolatedMarginCalculation {
5858}
5959
6060// Core margin calculation result
61- #[ repr( C , align ( 16 ) ) ]
61+ #[ repr( C ) ]
6262#[ derive( Debug , Clone ) ]
6363pub struct SimplifiedMarginCalculation {
6464 pub total_collateral : i128 ,
Original file line number Diff line number Diff line change @@ -104,11 +104,11 @@ pub struct MarginCalculation {
104104#[ repr( C ) ]
105105#[ derive( Copy , Clone , Debug , Default ) ]
106106pub struct IsolatedMarginCalculation {
107- pub market_index : u16 ,
108107 pub margin_requirement : compat:: u128 ,
109108 pub total_collateral : compat:: i128 ,
110109 pub total_collateral_buffer : compat:: i128 ,
111110 pub margin_requirement_plus_buffer : compat:: u128 ,
111+ pub market_index : u16 ,
112112}
113113
114114impl MarginCalculation {
You can’t perform that action at this time.
0 commit comments