@swaptoshi/governance-module
Version:
Klayr governance on-chain module
7 lines • 367 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBoostMultiplier = getBoostMultiplier;
function getBoostMultiplier(currentHeight, targetHeight, maxBoostDuration, boostFactor) {
return 1 + Math.max(0, (targetHeight - currentHeight) / maxBoostDuration) * Math.max(0, boostFactor / 100 - 1);
}
//# sourceMappingURL=boost.js.map