Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu committed May 15, 2024
1 parent a419dbc commit cac4f7f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ internal class AdjustIsolatedMarginInputCalculator(val parser: ParserProtocol) {
options["needsSize"] = true
}
}

}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package exchange.dydx.abacus.output.input

import exchange.dydx.abacus.output.TradeStatesWithDoubleValues
import exchange.dydx.abacus.protocols.ParserProtocol
import exchange.dydx.abacus.utils.Logger
import kollections.JsExport
Expand Down Expand Up @@ -162,7 +161,7 @@ data class AdjustIsolatedMarginInput(
amountPercent,
childSubaccountNumber,
adjustIsolatedMarginInputOptions,
summary
summary,
)
} else {
existing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ class AdjustIsolatedMarginInputTests : V4BaseTests() {
}

private fun testMarginAmountPercent() {
test({
perp.adjustIsolatedMargin(IsolatedMarginAdjustmentType.Add.name, AdjustIsolatedMarginInputField.Type, 0)
},
test(
{
perp.adjustIsolatedMargin(IsolatedMarginAdjustmentType.Add.name, AdjustIsolatedMarginInputField.Type, 0)
},
"""
{
"input": {
Expand Down Expand Up @@ -241,13 +242,14 @@ class AdjustIsolatedMarginInputTests : V4BaseTests() {
""".trimIndent(),
)

test({
perp.adjustIsolatedMargin(
IsolatedMarginAdjustmentType.Remove.name,
AdjustIsolatedMarginInputField.Type,
0
)
},
test(
{
perp.adjustIsolatedMargin(
IsolatedMarginAdjustmentType.Remove.name,
AdjustIsolatedMarginInputField.Type,
0,
)
},
"""
{
"input": {
Expand All @@ -262,9 +264,10 @@ class AdjustIsolatedMarginInputTests : V4BaseTests() {
""".trimIndent(),
)

test({
perp.adjustIsolatedMargin("0.1", AdjustIsolatedMarginInputField.AmountPercent, 0)
},
test(
{
perp.adjustIsolatedMargin("0.1", AdjustIsolatedMarginInputField.AmountPercent, 0)
},
"""
{
"input": {
Expand Down

0 comments on commit cac4f7f

Please sign in to comment.