-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust live ec calc for plot filter hf
- Loading branch information
1 parent
e890743
commit 6b52ae0
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export function getPlotFilterShareMultiplier(height?: number): number { | ||
if (height === undefined) { | ||
return 1 // Adjust after plot filter halving | ||
} | ||
|
||
if (height < 5_496_000) { | ||
return 1 | ||
} | ||
|
||
if (height < 10_542_000) { | ||
return 2 | ||
} | ||
|
||
if (height < 15_592_000) { | ||
return 4 | ||
} | ||
|
||
if (height < 20_643_000) { | ||
return 8 | ||
} | ||
|
||
return 16 | ||
} |