@ledgerhq/coin-tron
Version:
Ledger Tron Coin integration
18 lines • 665 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOperationsPageSize = getOperationsPageSize;
function getOperationsPageSize(accountId, syncConfig) {
const { paginationConfig } = syncConfig;
const { operationsPerAccountId, operations } = paginationConfig;
const numbers = [];
if (operationsPerAccountId && accountId && accountId in operationsPerAccountId) {
numbers.push(operationsPerAccountId[accountId]);
}
if (operations) {
numbers.push(operations);
}
if (numbers.length === 0)
return Infinity;
return Math.max(...numbers);
}
//# sourceMappingURL=pagination.js.map