hive-react-kit 0.11.10 → 1.0.12
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/dist/build.css +35 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/user/KERatioBadge.d.ts +17 -0
- package/dist/index.cjs.js +201 -202
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +25228 -25380
- package/dist/services/userService.d.ts +24 -0
- package/package.json +1 -1
|
@@ -197,5 +197,29 @@ export interface GrowthAnalyticsResult {
|
|
|
197
197
|
benefactorUsd: number;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
+
export interface KERatioResult {
|
|
201
|
+
username: string;
|
|
202
|
+
/** Own staked HP (vesting_shares only — excludes received and delegated). */
|
|
203
|
+
currentHP: number;
|
|
204
|
+
/** Posting rewards in HP. */
|
|
205
|
+
postingRewards: number;
|
|
206
|
+
/** Curation rewards in HP. */
|
|
207
|
+
curationRewards: number;
|
|
208
|
+
/** Total lifetime rewards in HP. */
|
|
209
|
+
totalRewards: number;
|
|
210
|
+
/** ke = (postingRewardsHP + curationRewardsHP) / ownHP */
|
|
211
|
+
ke: number;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* KE ratio for a Hive account — lifetime rewards divided by own staked HP.
|
|
215
|
+
* Matches the value shown on peakd.com and mirrors the server-side calculator
|
|
216
|
+
* at curation-marketing/Server/utils/ke-ratio-of-account.js.
|
|
217
|
+
*
|
|
218
|
+
* ke = (posting_rewards + curation_rewards in HP) / own_HP
|
|
219
|
+
*
|
|
220
|
+
* Own HP only — received delegations and delegations-out are excluded so the
|
|
221
|
+
* ratio reflects whether the account keeps its earnings staked.
|
|
222
|
+
*/
|
|
223
|
+
export declare function calculateKERatio(username: string, signal?: AbortSignal): Promise<KERatioResult>;
|
|
200
224
|
export declare const userService: UserService;
|
|
201
225
|
export {};
|