Skip to content

Commit

Permalink
num markets on perp markets interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Oct 12, 2024
1 parent 414053e commit f21e50c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ static PerpMarkets createRecord(final PerpMarketConfig[] marketConfigs) {
PerpMarketConfig marketConfig(final int index);

PerpMarketConfig forProduct(final DriftProduct product);

int numMarkets();
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ public PerpMarketConfig marketConfig(final int index) {
public PerpMarketConfig forProduct(final DriftProduct product) {
return byProduct.get(product);
}

@Override
public int numMarkets() {
return marketConfigs.length;
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencyResolutionManagement {
}
versionCatalogs {
libs {
from("software.sava:solana-version-catalog:0.2.35")
from("software.sava:solana-version-catalog:0.2.40")
}
}
}

0 comments on commit f21e50c

Please sign in to comment.