Refactor SpotBot and ExchangeService for balance retrieval
- Updated SpotBot to fetch token balance directly using the new GetBalance method in IExchangeService. - Modified IExchangeService to include a method for retrieving balance by ticker. - Enhanced ExchangeService to implement the new balance retrieval logic for both EVM and non-EVM exchanges. - Updated TokenService to streamline contract address and decimal retrieval for various tokens. - Adjusted TradesModal to reflect changes in position status handling.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Managing.Application.Abstractions.Repositories;
|
||||
using Managing.Application.Abstractions.Repositories;
|
||||
using Managing.Application.Abstractions.Services;
|
||||
using Managing.Domain.Candles;
|
||||
using Managing.Domain.Trades;
|
||||
@@ -35,8 +35,11 @@ namespace Managing.Infrastructure.Tests
|
||||
evmProcessor
|
||||
};
|
||||
|
||||
_exchangeService = new ExchangeService(doesntDoMuch.CreateLogger<ExchangeService>(), candleRepository,
|
||||
exchangeProcessors);
|
||||
_exchangeService = new ExchangeService(
|
||||
doesntDoMuch.CreateLogger<ExchangeService>(),
|
||||
candleRepository,
|
||||
exchangeProcessors,
|
||||
evmManager);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
||||
Reference in New Issue
Block a user