diff --git a/build.gradle.kts b/build.gradle.kts index 7522663e9..3853f483b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.11.15" +version = "1.11.16" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/Vault.kt b/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/Vault.kt index 2176b2ecb..c8f48b236 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/Vault.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/Vault.kt @@ -157,7 +157,7 @@ object VaultCalculator { val perpetualPosition = perpetualPositionProcessor.process(null, position.perpetualPosition) val assetPosition = assetPositionProcessor.process(position.assetPosition) - val assetPositionsMap = assetPosition?.let { mapOf((it.assetId ?: "") to it) } + val assetPositionsMap = assetPosition?.let { mapOf((it.symbol ?: "") to it) } val subaccount = subaccountCalculator.calculate( subaccount = InternalSubaccountState( equity = parser.asDouble(position.equity) ?: 0.0, diff --git a/src/commonTest/kotlin/exchange.dydx.abacus/functional/vault/VaultTests.kt b/src/commonTest/kotlin/exchange.dydx.abacus/functional/vault/VaultTests.kt index 495e8a6d1..791db74e5 100644 --- a/src/commonTest/kotlin/exchange.dydx.abacus/functional/vault/VaultTests.kt +++ b/src/commonTest/kotlin/exchange.dydx.abacus/functional/vault/VaultTests.kt @@ -129,7 +129,7 @@ class VaultTests { symbol = "USDC", side = IndexerPositionSide.SHORT, size = "40000.0", - assetId = "USDC", + assetId = "0", subaccountNumber = NUM_PARENT_SUBACCOUNTS, ), perpetualPosition = IndexerPerpetualPositionResponseObject( @@ -175,7 +175,7 @@ class VaultTests { val market = PerpetualMarket( id = "BTC-USD", - assetId = "BTC", + assetId = "0", market = "BTC-USD", displayId = null, oraclePrice = 55000.0, diff --git a/v4_abacus.podspec b/v4_abacus.podspec index b3c417f5a..7ce4450df 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'v4_abacus' - spec.version = '1.11.15' + spec.version = '1.11.16' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''