Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-16 17:49:10 +04:00
parent 3b2a867959
commit cf0659d207
23 changed files with 679 additions and 316 deletions

View file

@ -0,0 +1,17 @@
package com.tangem.features.yield.supply.api
import com.tangem.core.decompose.factory.ComponentFactory
import com.tangem.core.ui.decompose.ComposableContentComponent
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.wallet.UserWalletId
interface YieldSupplyEntryComponent : ComposableContentComponent {
data class Params(
val userWalletId: UserWalletId,
val cryptoCurrency: CryptoCurrency,
val apy: String,
)
interface Factory : ComponentFactory<Params, YieldSupplyEntryComponent>
}

View file

@ -0,0 +1,24 @@
package com.tangem.features.yield.supply.api.entry
import com.tangem.core.decompose.navigation.Route
import com.tangem.domain.models.currency.CryptoCurrency
/**
* Route for switching yield supply promo and active flows.
*/
sealed class YieldSupplyEntryRoute : Route {
/** Initial empty route with no UI */
data object Empty : YieldSupplyEntryRoute()
/** Route to yield supply promo screen */
data class Promo(
val cryptoCurrency: CryptoCurrency,
val apy: String,
) : YieldSupplyEntryRoute()
/** Route to yield supply active screen */
data class Active(
val cryptoCurrency: CryptoCurrency,
) : YieldSupplyEntryRoute()
}