Updated on 2026-08-14
This commit is contained in:
parent
5dea3089f3
commit
1c3b25169d
2 changed files with 10 additions and 4 deletions
|
|
@ -60,6 +60,8 @@ sealed class SwapEvents(
|
|||
data class SwapInProgressScreen(
|
||||
val provider: SwapProvider,
|
||||
val commission: FeeType, // Market / Fast
|
||||
val sendBlockchain: String,
|
||||
val receiveBlockchain: String,
|
||||
val sendToken: String,
|
||||
val receiveToken: String,
|
||||
) : SwapEvents(
|
||||
|
|
@ -69,6 +71,8 @@ sealed class SwapEvents(
|
|||
"Commission" to if (commission == FeeType.NORMAL) "Market" else "Fast",
|
||||
"Send Token" to sendToken,
|
||||
"Receive Token" to receiveToken,
|
||||
"Send Blockchain" to sendBlockchain,
|
||||
"Receive Blockchain" to receiveBlockchain,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -576,15 +576,17 @@ internal class SwapViewModel @Inject constructor(
|
|||
private fun sendSuccessEvent() {
|
||||
val provider = dataState.selectedProvider ?: return
|
||||
val fee = dataState.selectedFee?.feeType ?: return
|
||||
val sendToken = dataState.fromCryptoCurrency?.currency?.symbol ?: return
|
||||
val toToken = dataState.toCryptoCurrency?.currency?.symbol ?: return
|
||||
val fromCurrency = dataState.fromCryptoCurrency?.currency ?: return
|
||||
val toCurrency = dataState.toCryptoCurrency?.currency ?: return
|
||||
|
||||
analyticsEventHandler.send(
|
||||
SwapEvents.SwapInProgressScreen(
|
||||
provider = provider,
|
||||
commission = fee,
|
||||
sendToken = sendToken,
|
||||
receiveToken = toToken,
|
||||
sendBlockchain = fromCurrency.network.name,
|
||||
receiveBlockchain = toCurrency.network.name,
|
||||
sendToken = fromCurrency.symbol,
|
||||
receiveToken = toCurrency.symbol,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue