@exromany/lido-csm-sdk
Version:
[](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [](h
11 lines • 495 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getValidatorFee = void 0;
const index_js_1 = require("../parameters-sdk/index.js");
const getValidatorFee = (keyIndex, curveId, rewardsConfigsMap) => {
const rewardsConfig = rewardsConfigsMap.get(curveId) ?? [];
const fee = (0, index_js_1.findKeyInterval)(keyIndex, rewardsConfig)?.value ?? 0n;
return fee;
};
exports.getValidatorFee = getValidatorFee;
//# sourceMappingURL=get-validator-fee.js.map