UNPKG

@exromany/lido-csm-sdk

Version:

[![GitHub license](https://img.shields.io/github/license/lidofinance/lido-csm-sdk?color=limegreen)](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [![Version npm](https://img.shields.io/npm/v/@lidofinance/lido-csm-sdk?label=version)](h

11 lines 495 B
"use strict"; 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