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[] = $list[] =
[ [
'name' => $user['key'], 'name' => $user['key'],
'address' => $client->getAccountAddress(
$user['key']
),
'total' => $total, 'total' => $total,
'rooms' => $rooms, 'rooms' => $rooms,
]; ];

View File

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