Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/Node: RewardsParameters to protocol #1409

Merged
merged 8 commits into from
Oct 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions bindings/nodejs/lib/types/models/info/node-info-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,52 @@ export interface ProtocolParameters {
* The parameters used by signaling protocol parameters upgrade.
*/
versionSignaling: VersionSignalingParameters;
/**
* Rewards Parameters defines the parameters that are used to calculate Mana rewards.
*/
rewardsParameters: RewardsParameters;
}

/**
* Rewards Parameters defines the parameters that are used to calculate Mana rewards.
*/
export interface RewardsParameters {
/**
* The number of validation blocks that should be issued by a selected validator
* per slot during its epoch duties.
*/
validationBlocksPerSlot: number;
thibault-martinez marked this conversation as resolved.
Show resolved Hide resolved

Thoralf-M marked this conversation as resolved.
Show resolved Hide resolved
/**
* Profit Margin Exponent is used for shift operation for calculation of profit margin.
*/
profitMarginExponent: number;

/**
* The length in epochs of the bootstrapping phase.
*/
bootstrappingDuration: number;
Thoralf-M marked this conversation as resolved.
Show resolved Hide resolved

/**
* Mana Share Coefficient is the coefficient used for calculation of initial rewards.
*/
manaShareCoefficient: number;

/**
* Decay Balancing Constant Exponent is the exponent used for calculation of the initial reward.
*/
decayBalancingConstantExponent: number;

/**
* Decay Balancing Constant is an integer approximation calculated based on chosen DecayBalancingConstantExponent.
kwek20 marked this conversation as resolved.
Show resolved Hide resolved
*/
decayBalancingConstant: number;
Thoralf-M marked this conversation as resolved.
Show resolved Hide resolved

/**
* Pool Coefficient Exponent is the exponent used for shifting operation
* in the pool rewards calculations.
*/
poolCoefficientExponent: number;
}

/**
Expand Down
Loading