Skip to content

Commit

Permalink
remove drift perp base markets.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Oct 5, 2024
1 parent 7355394 commit 98be561
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public void market(final MarketConfig marketConfig) {
case SpotMarketConfig _ -> spotMarkets;
case PerpMarketConfig perpMarketConfig -> {
market(driftAccounts.defaultQuoteMarket());
final var baseSpotMarket = driftAccounts.spotMarketConfig(DriftAsset.valueOf(perpMarketConfig.baseAssetSymbol()));
market(baseSpotMarket);
// final var baseSpotMarket = driftAccounts.spotMarketConfig(DriftAsset.valueOf(perpMarketConfig.baseAssetSymbol()));
// market(baseSpotMarket);
yield perpMarkets;
}
};
Expand All @@ -55,15 +55,15 @@ public void market(final MarketConfig marketConfig) {
@Override
public void market(final PerpMarketConfig perpMarketConfig, final SpotMarketConfig quoteMarket) {
market(quoteMarket);
final var baseSpotMarket = driftAccounts.spotMarketConfig(DriftAsset.valueOf(perpMarketConfig.baseAssetSymbol()));
market(baseSpotMarket);
// final var baseSpotMarket = driftAccounts.spotMarketConfig(DriftAsset.valueOf(perpMarketConfig.baseAssetSymbol()));
// market(baseSpotMarket);
mergeAccount(perpMarkets, perpMarketConfig);
}

@Override
public void market(final PerpMarketConfig perpMarketConfig) {
final var baseSpotMarket = driftAccounts.spotMarketConfig(DriftAsset.valueOf(perpMarketConfig.baseAssetSymbol()));
market(baseSpotMarket);
// final var baseSpotMarket = driftAccounts.spotMarketConfig(DriftAsset.valueOf(perpMarketConfig.baseAssetSymbol()));
// market(baseSpotMarket);
market(perpMarketConfig, driftAccounts.defaultQuoteMarket());
}

Expand Down

0 comments on commit 98be561

Please sign in to comment.