- Remove permanently unreachable guard branches from evaluateRecenterOpportunity - Remove orphaned getWalletAddress() from BlockchainService - Simplify RecenterAccessStatus type: drop always-null recenterAccessAddress and slot fields, narrow hasAccess to boolean - Update /status endpoint to match simplified type - Remove test script (no test files remain) - Revert unrelated kraiken-lib/package-lock.json churn Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| .lintstagedrc.json | ||
| .prettierignore | ||
| .prettierrc | ||
| AGENTS.md | ||
| codegen.yml | ||
| eslint.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
Test
yarn test
Import
yarn add kraiken-lib
then
import { bytesToUint256LittleEndian, uint256ToBytesLittleEndian } from "kraiken-lib/subgraph";
uint256ToBytesLittleEndian(3n);
get Snatch List
import { getSnatchList } from "kraiken-lib/snatch";
const positionIds = getSnatchList(positions, neededShares, maxTaxRateDecimal, stakeTotalSupply);