diff --git a/app/src/main/java/org/p2p/wallet/home/HomeModule.kt b/app/src/main/java/org/p2p/wallet/home/HomeModule.kt index 1777f5543a..a030f6d34e 100644 --- a/app/src/main/java/org/p2p/wallet/home/HomeModule.kt +++ b/app/src/main/java/org/p2p/wallet/home/HomeModule.kt @@ -24,6 +24,7 @@ import org.p2p.wallet.home.ui.main.bottomsheet.HomeActionsContract import org.p2p.wallet.home.ui.main.bottomsheet.HomeActionsPresenter import org.p2p.wallet.home.ui.select.SelectTokenContract import org.p2p.wallet.home.ui.select.SelectTokenPresenter +import org.p2p.wallet.kyc.model.StrigaKycUiBannerMapper import org.p2p.wallet.newsend.interactor.SearchInteractor import org.p2p.wallet.newsend.interactor.SendInteractor import org.p2p.wallet.newsend.model.NetworkType @@ -77,17 +78,18 @@ object HomeModule : InjectionModule { factory { (tokens: List) -> SelectTokenPresenter(tokens) } + // Cached data exists, therefore creating singleton singleOf(::UserTokensPolling) - /* Cached data exists, therefore creating singleton */ - // todo: do something with this dependenices! - // todo: to eliminate all this hell, we could just migrate to hilt factoryOf(::HomeInteractor) factoryOf(::HomePresenterMapper) + factoryOf(::StrigaKycUiBannerMapper) factory { val subscribers = listOf( new(::SplTokenProgramSubscriber), new(::SolanaAccountUpdateSubscriber) ) + // todo: do something with this dependenices! + // todo: to eliminate all this hell, we could just migrate to hilt HomePresenter( homeInteractor = get(), analytics = get(),