Use stake_amount / 16 as input to the existing rewards prediction mechanism to get list of expected daily earnings for each validator.
Sort the list in descending order by earnings and extract the top 16 validator objects to an array.
This array data can now be directly used in the UI for suggested prompts
Using the array, iterate through each validator object to determine the cumulative_reward for all 16 validators (i.e. sum of rewards for all 16 validators).
Now this cumulative_reward can be used on the UI directly.
stake_amount
as inputstake_amount
by 16 equalstake_amount / 16
as input to the existing rewards prediction mechanism to get list of expected daily earnings for each validator.cumulative_reward
for all 16 validators (i.e. sum of rewards for all 16 validators).cumulative_reward
can be used on the UI directly.