Updated on 2026-08-14
This commit is contained in:
parent
29f55aae33
commit
9678c49b37
17 changed files with 151 additions and 57 deletions
|
|
@ -30,6 +30,7 @@ internal sealed class SendAnalyticEvents(
|
|||
val isNonceNotEmpty: Boolean,
|
||||
private val ensStatus: AnalyticsParam.EmptyFull,
|
||||
private val feeToken: String,
|
||||
private val feeAssetType: AnalyticsParam.FeeAssetType,
|
||||
private val fromDerivationIndex: Int?,
|
||||
private val toDerivationIndex: Int?,
|
||||
) : SendAnalyticEvents(
|
||||
|
|
@ -47,6 +48,7 @@ internal sealed class SendAnalyticEvents(
|
|||
}
|
||||
put(ENS_ADDRESS, ensAddress)
|
||||
put(FEE_TOKEN, feeToken)
|
||||
put(AnalyticsParam.Key.FEE_ASSET_TYPE, feeAssetType.value)
|
||||
},
|
||||
), AppsFlyerIncludedEvent
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,11 @@ internal class SendAnalyticHelper @Inject constructor(
|
|||
val feeSelectorUM = sendUM.feeSelectorUM as? FeeSelectorUM.Content ?: return
|
||||
val feeType = feeSelectorUM.toAnalyticType()
|
||||
val feeTokenSymbol = feeToken.symbol
|
||||
val feeAssetType = if (feeToken is CryptoCurrency.Coin) {
|
||||
AnalyticsParam.FeeAssetType.Coin
|
||||
} else {
|
||||
AnalyticsParam.FeeAssetType.Token
|
||||
}
|
||||
val fromDerivationIndex = account?.derivationIndex?.value
|
||||
val destination = destinationUM?.addressTextField?.actualAddress ?: return
|
||||
val destinationAccount = getAccountCurrencyByAddressUseCase(destination)
|
||||
|
|
@ -46,6 +51,7 @@ internal class SendAnalyticHelper @Inject constructor(
|
|||
fromDerivationIndex = fromDerivationIndex,
|
||||
toDerivationIndex = toDerivationIndex,
|
||||
feeToken = feeTokenSymbol,
|
||||
feeAssetType = feeAssetType,
|
||||
),
|
||||
)
|
||||
analyticsEventHandler.send(
|
||||
|
|
@ -55,6 +61,7 @@ internal class SendAnalyticHelper @Inject constructor(
|
|||
token = cryptoCurrency.symbol,
|
||||
feeType = feeType,
|
||||
feeToken = feeTokenSymbol,
|
||||
feeAssetType = feeAssetType,
|
||||
),
|
||||
memoType = getSendTransactionMemoType(destinationUM.memoTextField),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ internal class NFTSendAnalyticHelper @Inject constructor(
|
|||
token = NFT_SEND_CATEGORY, // should send "NFT" in token param
|
||||
feeType = feeType,
|
||||
feeToken = cryptoCurrency.symbol,
|
||||
feeAssetType = AnalyticsParam.FeeAssetType.Coin,
|
||||
),
|
||||
memoType = getSendTransactionMemoType(destinationUM?.memoTextField),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue