Updated on 2026-08-14
This commit is contained in:
parent
df39e1703c
commit
343cf1ed20
10 changed files with 38 additions and 7 deletions
|
|
@ -6,6 +6,7 @@ import com.tangem.core.analytics.models.AnalyticsParam.Key.BLOCKCHAIN
|
|||
import com.tangem.core.analytics.models.AnalyticsParam.Key.ERROR_DESCRIPTION
|
||||
import com.tangem.core.analytics.models.AnalyticsParam.Key.TOKEN_PARAM
|
||||
import com.tangem.core.analytics.models.AppsFlyerIncludedEvent
|
||||
import com.tangem.core.analytics.models.getReferralParams
|
||||
|
||||
sealed class YieldSupplyAnalytics(
|
||||
event: String,
|
||||
|
|
@ -103,22 +104,26 @@ sealed class YieldSupplyAnalytics(
|
|||
data class FundsEarned(
|
||||
val token: String,
|
||||
val blockchain: String,
|
||||
val referralId: String?,
|
||||
) : YieldSupplyAnalytics(
|
||||
event = "Funds Earned",
|
||||
params = mapOf(
|
||||
TOKEN_PARAM to token,
|
||||
BLOCKCHAIN to blockchain,
|
||||
*getReferralParams(referralId).toTypedArray(),
|
||||
),
|
||||
), AppsFlyerIncludedEvent
|
||||
|
||||
data class FundsWithdrawn(
|
||||
val token: String,
|
||||
val blockchain: String,
|
||||
val referralId: String?,
|
||||
) : YieldSupplyAnalytics(
|
||||
event = "Funds Withdrawn",
|
||||
params = mapOf(
|
||||
TOKEN_PARAM to token,
|
||||
BLOCKCHAIN to blockchain,
|
||||
*getReferralParams(referralId).toTypedArray(),
|
||||
),
|
||||
), AppsFlyerIncludedEvent
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue