Skip to content

Commit

Permalink
fix: asset id and bump (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo authored Sep 24, 2024
1 parent a0a4321 commit d63fa57
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.11.15"
version = "1.11.16"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class VaultTests {
symbol = "USDC",
side = IndexerPositionSide.SHORT,
size = "40000.0",
assetId = "USDC",
assetId = "0",
subaccountNumber = NUM_PARENT_SUBACCOUNTS,
),
perpetualPosition = IndexerPerpetualPositionResponseObject(
Expand Down Expand Up @@ -175,7 +175,7 @@ class VaultTests {

val market = PerpetualMarket(
id = "BTC-USD",
assetId = "BTC",
assetId = "0",
market = "BTC-USD",
displayId = null,
oraclePrice = 55000.0,
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -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 = ''
Expand Down

0 comments on commit d63fa57

Please sign in to comment.