Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@iqprotocol/energy
Advanced tools
This package is part of [IQ Protocol JS SDK.](https://github.com/iqlabsorg/iq-sdk-js)
This package is part of IQ Protocol JS SDK.
:exclamation: The package is in development and breaking changes should be expected. Use at your own risk! |
---|
The package provided various utility functions for energy calculation.
yarn add @iqprotocol/energy
import { calculateEnergyCap } from '@iqprotocol/energy';
const params = {
power: 100n,
initialValue: 50n, // power at t0
gapHalvingPeriod: 86400,
t0: 1629906900,
t1: 1629906900 + 86400
};
const energyCap = calculateEnergyCap(params); // 75n
In IQ protocol Power is the reinterpreted pTokens balance that is responsible for Energy generation. Simply 1 pToken = 1 Unit of Power
.
Whereas the Energy is a spendable asset that is generated over time by the Power.
Linear Energy the actual energy value at the specific time. As the name implies, it changes linearly over time.
Energy Cap is the potential maximum possible energy value at specific time. It corresponds to the IQ protocol Proof Of Hold.
Effective Energy is the current available energy. It is the lowest value between the current linear energy value and energy cap.
FAQs
This package is part of [IQ Protocol JS SDK.](https://github.com/iqlabsorg/iq-sdk-js)
The npm package @iqprotocol/energy receives a total of 1 weekly downloads. As such, @iqprotocol/energy popularity was classified as not popular.
We found that @iqprotocol/energy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.