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

9 lines 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.byNextBatchIndex = void 0; const byNextBatchIndex = (tail) => ({ items }) => { const nextIndex = items.at(-1)?.nextBatchIndex; return nextIndex && nextIndex < tail ? nextIndex : undefined; }; exports.byNextBatchIndex = byNextBatchIndex; //# sourceMappingURL=next-batch-index.js.map