Swap tokens
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Managing.Domain.Accounts;
|
||||
using Managing.Domain.Users;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Application.Abstractions.Services;
|
||||
|
||||
@@ -14,4 +15,7 @@ public interface IAccountService
|
||||
Task<Account> GetAccountByKey(string key, bool hideSecrets, bool getBalance);
|
||||
IEnumerable<Account> GetAccountsBalancesByUser(User user, bool hideSecrets = true);
|
||||
Task<GmxClaimableSummary> GetGmxClaimableSummaryAsync(User user, string accountName);
|
||||
|
||||
Task<SwapInfos> SwapGmxTokensAsync(User user, string accountName, Ticker fromTicker, Ticker toTicker,
|
||||
double amount, string orderType = "market", double? triggerRatio = null, double allowedSlippage = 0.5);
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Managing.Domain.Accounts;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Application.Abstractions.Services
|
||||
{
|
||||
@@ -9,5 +10,8 @@ namespace Managing.Application.Abstractions.Services
|
||||
Task<T> CallGmxServiceAsync<T>(string endpoint, object payload);
|
||||
Task<T> GetGmxServiceAsync<T>(string endpoint, object payload = null);
|
||||
Task<GmxClaimableSummary> GetGmxClaimableSummaryAsync(string account);
|
||||
|
||||
Task<SwapInfos> SwapGmxTokensAsync(string account, Ticker fromTicker, Ticker toTicker, double amount,
|
||||
string orderType = "market", double? triggerRatio = null, double allowedSlippage = 0.5);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user