@champz-llc/legends-mcp-server 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -158,19 +158,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
158
158
|
|
|
159
159
|
const stats = data.stats;
|
|
160
160
|
|
|
161
|
-
// CHAMPZ values are
|
|
162
|
-
//
|
|
163
|
-
const
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
// Format in millions for readability
|
|
168
|
-
const earnedMillions = (champzEarned / 1000000).toFixed(2);
|
|
169
|
-
const spentMillions = (champzSpent / 1000000).toFixed(2);
|
|
170
|
-
const burnedMillions = (champzBurned / 1000000).toFixed(2);
|
|
161
|
+
// CHAMPZ values are integers in token units (already divided by 10^8)
|
|
162
|
+
// Just divide by 1,000,000 to display as millions
|
|
163
|
+
const earnedMillions = (stats.champz_earned / 1000000).toFixed(2);
|
|
164
|
+
const spentMillions = (stats.champz_spent / 1000000).toFixed(2);
|
|
165
|
+
const burnedMillions = (stats.champz_burned / 1000000).toFixed(2);
|
|
171
166
|
|
|
172
167
|
// Calculate percentage of 1 billion supply
|
|
173
|
-
const burnedPercent = ((
|
|
168
|
+
const burnedPercent = ((stats.champz_burned / 1000000000) * 100).toFixed(2);
|
|
174
169
|
|
|
175
170
|
const formattedStats = `Legends of Champz - Global Statistics
|
|
176
171
|
|
|
@@ -183,7 +178,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
183
178
|
⚔️ Total Battles: ${stats.battles_total.toLocaleString()}
|
|
184
179
|
🎯 Battles Today: ${stats.battles_today.toLocaleString()}
|
|
185
180
|
|
|
186
|
-
Token Economics: CHAMPZ has 1 billion total supply. ${burnedMillions}
|
|
181
|
+
Token Economics: CHAMPZ has 1 billion total supply. ${burnedMillions}M tokens (${burnedPercent}%) permanently removed from circulation through burns.
|
|
187
182
|
|
|
188
183
|
Last updated: ${new Date(stats.cached_at * 1000).toLocaleString()}`;
|
|
189
184
|
|
package/package.json
CHANGED