diff --git a/src/helpers/getValue/getAccountDelegationDetails.ts b/src/helpers/getValue/getAccountDelegationDetails.ts index 9ca9a9b2..335efbe4 100644 --- a/src/helpers/getValue/getAccountDelegationDetails.ts +++ b/src/helpers/getValue/getAccountDelegationDetails.ts @@ -23,20 +23,15 @@ export const getAccountDelegationDetails = ( (a, b) => new BigNumber(a).plus(b), new BigNumber(ZERO) ); - const bNunbondable = delegation - .map(({ userUnBondable }) => userUnBondable) - .reduce((a, b) => new BigNumber(a).plus(b), new BigNumber(ZERO)); const activePlusUnStaked = bNactive.plus(bNunstaked); - const bNlocked = activePlusUnStaked - .plus(bNclaimableRewards) - .plus(bNunbondable); + const bNlocked = activePlusUnStaked.plus(bNclaimableRewards); const show = bNlocked.isGreaterThan(0); return { active: bNactive, - unstaked: bNunstaked.plus(bNunbondable), + unstaked: bNunstaked, claimable: bNclaimableRewards, locked: bNlocked, show diff --git a/src/pages/AccountDetails/AccountStaking/components/DonutChart/helpers/prepareChartData.ts b/src/pages/AccountDetails/AccountStaking/components/DonutChart/helpers/prepareChartData.ts index 911b3500..525c3646 100644 --- a/src/pages/AccountDetails/AccountStaking/components/DonutChart/helpers/prepareChartData.ts +++ b/src/pages/AccountDetails/AccountStaking/components/DonutChart/helpers/prepareChartData.ts @@ -42,12 +42,8 @@ export const prepareChartData = ({ ({ provider }) => delegation.contract === provider ); if (provider) { - const { - userActiveStake, - claimableRewards, - userUnBondable, - userUndelegatedList - } = delegation; + const { userActiveStake, claimableRewards, userUndelegatedList } = + delegation; const undelegatedAmounts = userUndelegatedList && userUndelegatedList.length > 0 @@ -60,7 +56,6 @@ export const prepareChartData = ({ const bNLocked = new BigNumber(userActiveStake) .plus(claimableRewards) - .plus(userUnBondable) .plus(bNtotalUserUnStakedValue); const amount = formatAmount({