From a08408fec19b7768c84a37ceee1493be2cc8f6e0 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:56:56 +0200 Subject: [PATCH] Blocks & USD Price cd www ember install ember-truth-helpers https://www.npmjs.com/package/ember-truth-helpers --- www/app/templates/account/rewards.hbs | 64 ++++++++++++++++++--------- 1 file changed, 43 insertions(+), 21 deletions(-) diff --git a/www/app/templates/account/rewards.hbs b/www/app/templates/account/rewards.hbs index 5e33de4..f78dfc7 100644 --- a/www/app/templates/account/rewards.hbs +++ b/www/app/templates/account/rewards.hbs @@ -2,14 +2,35 @@ {{#if model.rewards}}

Your Latest Rewards

- {{#each model.sumrewards as |sumreward|}} - - - - - {{/each}} -
{{sumreward.name}}{{format-balance sumreward.reward}}
- Immature Matured + + + Time + Blocks + Amount + USD + + + + + {{#each model.sumrewards as |sumreward|}} + + {{sumreward.name}} + {{sumreward.blocks}} + {{format-balance sumreward.reward}} + + + {{#if (eq config.Currency 'USD') }} + {{format-ethusd sumreward.reward model.exchangedata.current_price}} + {{else}} + {{format-ethinr sumreward.reward model.exchangedata.price_inr}} + {{/if}} + + + + {{/each}} + + + Immature Matured @@ -17,26 +38,27 @@ + {{#each model.rewards as |tx|}} - - - - - - + + + + + + {{/each}}
Time Found Reward Round Share
{{format-number tx.blockheight}}{{format-date-locale tx.timestamp}} - {{#if tx.immature}} - {{format-balance tx.reward}} - {{else}} - {{format-balance tx.reward}} - {{/if}} - {{format-number tx.percent style='percent' maximumFractionDigits='2'}}
{{format-number tx.blockheight}}{{format-date-locale tx.timestamp}} + {{#if tx.immature}} + {{format-balance tx.reward}} + {{else}} + {{format-balance tx.reward}} + {{/if}} + {{format-number tx.percent style='percent' maximumFractionDigits='2'}}
{{else}}

No rewards yet

{{/if}} - + \ No newline at end of file