diff --git a/packages/api-derive/src/staking/ownExposure.ts b/packages/api-derive/src/staking/ownExposure.ts index 9022605b5b..c6d9ee5a35 100644 --- a/packages/api-derive/src/staking/ownExposure.ts +++ b/packages/api-derive/src/staking/ownExposure.ts @@ -15,7 +15,7 @@ const CACHE_KEY = 'ownExposure'; export function _ownExposure (api: ApiInterfaceRx): (accountId: Uint8Array | string, era: EraIndex, withActive: boolean) => Observable { return memo((accountId: Uint8Array | string, era: EraIndex, withActive: boolean): Observable => { - const cacheKey = `${CACHE_KEY}-${era.toString()}`; + const cacheKey = `${CACHE_KEY}-${era.toString()}-${accountId.toString()}`; const cached = withActive ? undefined : deriveCache.get(cacheKey); diff --git a/packages/api-derive/src/staking/ownSlashes.ts b/packages/api-derive/src/staking/ownSlashes.ts index 7da1a98b90..ef636c55c2 100644 --- a/packages/api-derive/src/staking/ownSlashes.ts +++ b/packages/api-derive/src/staking/ownSlashes.ts @@ -17,7 +17,7 @@ const CACHE_KEY = 'ownSlash'; export function _ownSlash (api: ApiInterfaceRx): (accountId: Uint8Array | string, era: EraIndex, withActive: boolean) => Observable { return memo((accountId: Uint8Array | string, era: EraIndex, withActive: boolean): Observable => { - const cacheKey = `${CACHE_KEY}-${era.toString()}`; + const cacheKey = `${CACHE_KEY}-${era.toString()}-${accountId.toString()}`; const cached = withActive ? undefined : deriveCache.get(cacheKey);