Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-20 12:30:46 +04:00
parent 29f55aae33
commit 9678c49b37
17 changed files with 151 additions and 57 deletions

View file

@ -266,7 +266,13 @@ internal class GiveApprovalModel @Inject constructor(
private fun sendApproveSuccessAnalytics(feeContent: FeeSelectorUM.Content) {
val currency = params.cryptoCurrencyStatus.currency
val feeToken = feeContent.feeExtraInfo.feeCryptoCurrencyStatus.currency.symbol
val feeCurrency = feeContent.feeExtraInfo.feeCryptoCurrencyStatus.currency
val feeToken = feeCurrency.symbol
val feeAssetType = if (feeCurrency is CryptoCurrency.Coin) {
AnalyticsParam.FeeAssetType.Coin
} else {
AnalyticsParam.FeeAssetType.Token
}
val permissionType = when (uiState.value.approveType) {
ApproveType.LIMITED -> "Current transaction"
ApproveType.UNLIMITED -> "Unlimited"
@ -276,6 +282,7 @@ internal class GiveApprovalModel @Inject constructor(
token = currency.symbol,
feeType = feeContent.toAnalyticType(),
feeToken = feeToken,
feeAssetType = feeAssetType,
permissionType = permissionType,
)
analyticsEventHandler.send(