Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-22 17:05:04 +03:00
commit 21ae19f625
938 changed files with 40685 additions and 7487 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

@ -3,4 +3,5 @@ package com.tangem.features.yield.supply.api
interface YieldSupplyFeatureToggles {
val isYieldSupplyFeatureEnabled: Boolean
val isYieldSupplyPendingTransactionsEnabled: Boolean
}

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()
}