File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
1414### Breaking
1515
16+ - program: have TRY_SETTLE pnl mode fail ([ #1809 ] ( https://github.com/drift-labs/protocol-v2/pull/1809 ) )
17+
1618## [ 2.132.0] - 2025-08-06
1719
1820### Features
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl SettlePnlMode {
2727 ) ;
2828 match self {
2929 SettlePnlMode :: MustSettle => Err ( error_code) ,
30- SettlePnlMode :: TrySettle => Ok ( ( ) ) ,
30+ SettlePnlMode :: TrySettle => Err ( error_code ) ,
3131 }
3232 }
3333}
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ mod test {
99 assert_eq ! ( result, Err ( ErrorCode :: DefaultError ) ) ;
1010 }
1111
12- #[ test]
13- fn test_try_settle_returns_ok ( ) {
14- let mode = SettlePnlMode :: TrySettle ;
15- let result = mode. result ( ErrorCode :: DefaultError , 0 , "Try settle error" ) ;
16- assert_eq ! ( result, Ok ( ( ) ) ) ;
17- }
12+ // #[test]
13+ // fn test_try_settle_returns_ok() {
14+ // let mode = SettlePnlMode::TrySettle;
15+ // let result = mode.result(ErrorCode::DefaultError, 0, "Try settle error");
16+ // assert_eq!(result, Ok(()));
17+ // }
1818}
You can’t perform that action at this time.
0 commit comments