mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 07:57:59 +00:00
fix: resolve staking reward calculation for parachain (Asset Hub)
- Use remote RPC instead of local storage for era/exposure queries - Resolve relay chain via parentId for exposure, totalIssuance, and parachains - Remove StorageCache dependency, detect paged exposures via runtime metadata - Add StakingRepository to NominationPoolRewardCalculatorFactory for direct queries - Use storageOrNull for null-safety on chains without Paras pallet
This commit is contained in:
@@ -184,8 +184,8 @@ class RuntimeModule {
|
||||
@Provides
|
||||
@ApplicationScope
|
||||
fun provideTotalIssuanceRepository(
|
||||
@Named(LOCAL_STORAGE_SOURCE) localStorageSource: StorageDataSource,
|
||||
): TotalIssuanceRepository = RealTotalIssuanceRepository(localStorageSource)
|
||||
@Named(REMOTE_STORAGE_SOURCE) remoteStorageSource: StorageDataSource,
|
||||
): TotalIssuanceRepository = RealTotalIssuanceRepository(remoteStorageSource)
|
||||
|
||||
@Provides
|
||||
@ApplicationScope
|
||||
|
||||
Reference in New Issue
Block a user