From cb0dd17839a30b638be09b25d250f704f1945987 Mon Sep 17 00:00:00 2001 From: Edd Date: Fri, 19 Jan 2024 16:07:27 +0000 Subject: [PATCH] chore(explorer): more fields for rewards --- .../transfer/blocks/transfer-rewards.tsx | 96 +++++++++++++------ 1 file changed, 69 insertions(+), 27 deletions(-) diff --git a/apps/explorer/src/app/components/txs/details/transfer/blocks/transfer-rewards.tsx b/apps/explorer/src/app/components/txs/details/transfer/blocks/transfer-rewards.tsx index 39116a94c..56eaafa12 100644 --- a/apps/explorer/src/app/components/txs/details/transfer/blocks/transfer-rewards.tsx +++ b/apps/explorer/src/app/components/txs/details/transfer/blocks/transfer-rewards.tsx @@ -41,46 +41,57 @@ export function TransferRewards({ recurring }: TransferRewardsProps) { return null; } + // Destructure to make things a bit more readable + const { + assetForMetric, + entityScope, + individualScope, + teamScope, + distributionStrategy, + lockPeriod, + markets, + stakingRequirement, + windowLength, + notionalTimeWeightedAveragePositionRequirement, + rankTable, + nTopPerformers, + } = recurring.dispatchStrategy; + return (
-

{t('Reward metrics')}

+

{getRewardTitle(entityScope)}