@render-foundation/utils 0.0.253 → 0.0.254

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.
@@ -1,52 +0,0 @@
1
- import { Job, CurrentUserGrantSpend } from '../index';
2
- import { RenderLogger } from '../logger';
3
- export interface IncrBuyAndBurnParams {
4
- minTotalRndrThreshold: number;
5
- maxTotalRndrThreshold: number;
6
- minBurnRndrThreshold: number;
7
- consumeJobsLimit: number;
8
- maxBurnRndrThreshold: number;
9
- slippageTolThresholds: Record<string, number>;
10
- }
11
- export declare const batchFinishedAtMedian: (jobs: {
12
- finishedAt: string;
13
- jobId: number;
14
- rndrUsed: number;
15
- }[]) => Date;
16
- export interface BurnCalculationInput {
17
- jobs: Job[];
18
- userGrantSpends: Record<string, {
19
- userGrantSpend: CurrentUserGrantSpend;
20
- currAllot: bigint;
21
- }>;
22
- burnAdjustments: Array<{
23
- id: number;
24
- downAdjToBurn: number;
25
- adjusted: number;
26
- }>;
27
- params: IncrBuyAndBurnParams;
28
- decimals: number;
29
- priceAtDate: number;
30
- eurToUSDC: number;
31
- }
32
- export interface BurnCalculationResult {
33
- totalRenderUsed: number;
34
- totalRenderBuyAndBurn: number;
35
- totalRender: number;
36
- renderToBuyAndBurn: number;
37
- renderToBurnFromEmissions: number;
38
- totalToBurn: number;
39
- toBurn: number;
40
- origRenderToBuyAndBurn: number;
41
- burnAdjustmentId?: number;
42
- pricedAt: Date;
43
- processedJobs: Job[];
44
- }
45
- /**
46
- * Pure function that calculates burn amounts without side effects
47
- * This is the core logic extracted from consumeIncrBuyAndBurnRenderPG
48
- */
49
- export declare const calculateBurnAmounts: (input: BurnCalculationInput, opts?: {
50
- perpetual: boolean;
51
- }, log?: RenderLogger) => BurnCalculationResult;
52
- //# sourceMappingURL=burnCalculations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"burnCalculations.d.ts","sourceRoot":"","sources":["../../../../src/burn/burnCalculations.ts"],"names":[],"mappings":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