harb/kraiken-lib/README.md
2025-09-23 16:57:49 +02:00

30 lines
377 B
Markdown

## Test
```
yarn test
```
## Import
```
yarn add kraiken-lib
```
then
```
import { bytesToUint256LittleEndian, uint256ToBytesLittleEndian } from "kraiken-lib";
uint256ToBytesLittleEndian(3n);
```
## get Snatch List
```
import { getSnatchList } from "kraiken-lib";
const positionIds = getSnatchList(positions, neededShares, maxTaxRateDecimal, stakeTotalSupply);
```