diff --git a/src/staking-v3/logic/interfaces/DappStakingV3.ts b/src/staking-v3/logic/interfaces/DappStakingV3.ts index 92bc0fae8..3344b3474 100644 --- a/src/staking-v3/logic/interfaces/DappStakingV3.ts +++ b/src/staking-v3/logic/interfaces/DappStakingV3.ts @@ -86,6 +86,7 @@ export interface PalletDappStakingV3StakeAmount extends Struct { export interface PalletDappStakingV3SingularStakingInfo extends Struct { readonly staked: PalletDappStakingV3StakeAmount; readonly loyalStaker: bool; + readonly bonusStatus: u8; } export interface PalletDappStakingV3PeriodEndInfo extends Struct { diff --git a/src/staking-v3/logic/repositories/DappStakingRepository.ts b/src/staking-v3/logic/repositories/DappStakingRepository.ts index fd1247c00..5fdfe2320 100644 --- a/src/staking-v3/logic/repositories/DappStakingRepository.ts +++ b/src/staking-v3/logic/repositories/DappStakingRepository.ts @@ -655,7 +655,9 @@ export class DappStakingRepository implements IDappStakingRepository { (unwrappedValue.staked.period.toNumber() === currentPeriod || includePreviousPeriods) ) { result.set(address, { - loyalStaker: unwrappedValue.loyalStaker.isTrue, + loyalStaker: unwrappedValue.loyalStaker + ? unwrappedValue.loyalStaker.isTrue + : unwrappedValue.bonusStatus.toNumber() > 0, staked: this.mapStakeAmount(unwrappedValue.staked), }); }