30 lines
377 B
Markdown
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);
|
|
```
|