cache user address request

This commit is contained in:
ghost 2024-02-18 17:39:42 +02:00
parent 9c2464d7fb
commit 7f649110a5
2 changed files with 4 additions and 1 deletions

View File

@ -131,6 +131,9 @@ class UserController extends AbstractController
$list[] =
[
'name' => $user['key'],
'address' => $client->getAccountAddress(
$user['key']
),
'total' => $total,
'rooms' => $rooms,
];

View File

@ -13,7 +13,7 @@
{{ 'balance' | trans }}: {{ user.name | account_balance | format_kva }}
</span>
<p>
{{ 'boost' | trans }}: {{ user.name | account_address }}
{{ 'boost' | trans }}: {{ user.address }}
</p>
{% if user.rooms | length %}
<p>