Updated on 2026-08-14
This commit is contained in:
parent
d376a7118d
commit
c7e4ff0598
27 changed files with 245 additions and 57 deletions
|
|
@ -16,4 +16,5 @@ data class SwapQuoteModel(
|
|||
val toTokenAmount: BigDecimal,
|
||||
val fromTokenAmount: BigDecimal?,
|
||||
val allowanceContract: String?,
|
||||
val quoteId: String? = null,
|
||||
)
|
||||
|
|
@ -91,6 +91,7 @@ interface SwapRepositoryV2 {
|
|||
expressProvider: ExpressProvider,
|
||||
rateType: ExpressRateType,
|
||||
expressOperationType: ExpressOperationType,
|
||||
quoteId: String?,
|
||||
): SwapDataModel
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ class GetSwapDataUseCase(
|
|||
expressProvider: ExpressProvider,
|
||||
rateType: ExpressRateType,
|
||||
expressOperationType: ExpressOperationType,
|
||||
quoteId: String? = null,
|
||||
): Either<ExpressError, SwapDataModel> = Either.catch {
|
||||
swapRepositoryV2.getSwapData(
|
||||
userWallet = userWallet,
|
||||
|
|
@ -42,6 +43,7 @@ class GetSwapDataUseCase(
|
|||
expressProvider = expressProvider,
|
||||
rateType = rateType,
|
||||
expressOperationType = expressOperationType,
|
||||
quoteId = quoteId,
|
||||
)
|
||||
}.mapLeft { throwable ->
|
||||
swapErrorResolver.resolve(throwable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue