Skip to content

Commit

Permalink
update test val, check for summary.isolatedMarginTransferAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu committed Jun 14, 2024
1 parent fbc04c2 commit b4d0bb2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ class IsolatedMarginModeTests : V4BaseTests(true) {
"targetLeverage": 2.0,
"options": {
"needsMarginMode": true
},
"summary": {
"isolatedMarginTransferAmount": 13.697401030000002
}
}
}
Expand All @@ -335,7 +338,7 @@ class IsolatedMarginModeTests : V4BaseTests(true) {
)

val postOrderEquity = parser.asDouble(parser.value(perp.data, "wallet.account.groupedSubaccounts.0.openPositions.APE-USD.equity.postOrder")) ?: 0.0
assertEquals(postOrderEquity, 10.0)
assertEquals(postOrderEquity, 13.697401030000002)
}

@Test
Expand Down

0 comments on commit b4d0bb2

Please sign in to comment.