Rename to init

This commit is contained in:
2025-09-14 00:46:08 +07:00
parent 8f68502d84
commit 0b1acbb8dc
5 changed files with 23 additions and 25 deletions

View File

@@ -333,21 +333,21 @@ public class AccountService : IAccountService
}
}
public async Task<List<ExchangeApprovalStatus>> GetExchangeApprovalStatusAsync(User user)
public async Task<List<ExchangeInitializedStatus>> GetExchangeInitializedStatusAsync(User user)
{
var accounts = await GetAccountsByUserAsync(user, hideSecrets: true, getBalance: false);
var exchangeStatuses = new List<ExchangeApprovalStatus>();
var exchangeStatuses = new List<ExchangeInitializedStatus>();
foreach (var account in accounts)
{
exchangeStatuses.Add(new ExchangeApprovalStatus
exchangeStatuses.Add(new ExchangeInitializedStatus
{
Exchange = TradingExchanges.GmxV2,
IsInitialized = account.IsGmxInitialized
});
}
// Future: Add other exchanges here when supported
// e.g.:
// var hasEvmInitialized = accounts.Any(account =>
@@ -357,7 +357,7 @@ public class AccountService : IAccountService
// Exchange = TradingExchanges.Evm,
// IsApproved = hasEvmInitialized
// });
return exchangeStatuses;
}