Skip to content

Commit

Permalink
Update src/pages/earn/index.svelte
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Fugere <[email protected]>
  • Loading branch information
aaroncox and dafuga authored Oct 2, 2024
1 parent 2b717e5 commit fdd9654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/earn/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
const annualReward = 31250000
const totalStaked = Number($stateREX.total_lendable.value)
apy = ((annualReward / totalStaked) * 100).toFixed(2)
if ($currentAccount && $currentAccount.rex_info) {
if ($currentAccount && $systemToken && $currentAccount.rex_info) {
total = convertRexToEos($currentAccount.rex_info.rex_balance.value)
if ($rexEOSBalance.value > 0) {
total = Asset.fromUnits(
Expand Down

0 comments on commit fdd9654

Please sign in to comment.