Skip to content

Commit 0388cff

Browse files
authored
Merge pull request #76 from drift-labs/master
Mainnet beta ship
2 parents 5fecf13 + b000da9 commit 0388cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/swift_server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,8 +1089,8 @@ fn extract_collateral_ratio(logs: &[String]) -> Option<f64> {
10891089
.parse::<f64>()
10901090
.ok()?;
10911091

1092-
if margin_requirement != 0.0 {
1093-
return Some(total_collateral / margin_requirement);
1092+
if total_collateral != 0.0 {
1093+
return Some(margin_requirement / total_collateral);
10941094
}
10951095
}
10961096
}

0 commit comments

Comments
 (0)