Skip to content

Commit

Permalink
rewardsParams
Browse files Browse the repository at this point in the history
  • Loading branch information
Brord van Wierst committed Oct 9, 2023
1 parent 39e6e24 commit f036440
Showing 1 changed file with 46 additions and 0 deletions.
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;

/**
* 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;

/**
* 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.
*/
decayBalancingConstant: number;

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

/**
Expand Down

0 comments on commit f036440

Please sign in to comment.