File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/tgbot/handlers/treasury Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
from src .tgbot .handlers .treasury .constants import PAYOUTS , TrxType
8
8
from src .tgbot .handlers .treasury .service import (
9
9
get_leaderboard ,
10
+ get_token_supply ,
10
11
get_user_balance ,
11
12
get_user_place_in_leaderboard ,
12
- get_token_supply ,
13
13
)
14
14
from src .tgbot .senders .utils import get_random_emoji
15
15
@@ -75,6 +75,9 @@ async def handle_show_leaderbaord(
75
75
nick = user ["nickname" ] or get_random_emoji () * 3
76
76
LEADERBOARD_TEXT += f"{ icon } - { nick } - { user ['balance' ]} 🍔\n "
77
77
78
+ tokens = await get_token_supply ()
79
+ LEADERBOARD_TEXT += f"\n Total supply: { tokens } 🍔"
80
+
78
81
user_lb_data = await get_user_place_in_leaderboard (update .effective_user .id )
79
82
if user_lb_data :
80
83
place , nickname , balance = (
@@ -95,9 +98,6 @@ async def handle_show_leaderbaord(
95
98
"To see your place in the leaderboard, set your /nickname ⬅️\n \n "
96
99
)
97
100
98
- tokens = await get_token_supply ()
99
- LEADERBOARD_TEXT += f"\n Total supply: { tokens } 🍔"
100
-
101
101
return await update .message .reply_text (LEADERBOARD_TEXT , parse_mode = ParseMode .HTML )
102
102
103
103
You can’t perform that action at this time.
0 commit comments