From b4d0bb20726c8b5b63c676ba5d927be5a0c0b65e Mon Sep 17 00:00:00 2001 From: jaredvu Date: Fri, 14 Jun 2024 16:19:14 -0700 Subject: [PATCH] update test val, check for summary.isolatedMarginTransferAmount --- .../exchange.dydx.abacus/payload/IsolatedMarginModeTests.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commonTest/kotlin/exchange.dydx.abacus/payload/IsolatedMarginModeTests.kt b/src/commonTest/kotlin/exchange.dydx.abacus/payload/IsolatedMarginModeTests.kt index b5fbccf6d..53c819c3d 100644 --- a/src/commonTest/kotlin/exchange.dydx.abacus/payload/IsolatedMarginModeTests.kt +++ b/src/commonTest/kotlin/exchange.dydx.abacus/payload/IsolatedMarginModeTests.kt @@ -327,6 +327,9 @@ class IsolatedMarginModeTests : V4BaseTests(true) { "targetLeverage": 2.0, "options": { "needsMarginMode": true + }, + "summary": { + "isolatedMarginTransferAmount": 13.697401030000002 } } } @@ -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