A serverless API for validator staking/unstaking recommendations, built for deployment on Vercel.
GET /api/unstake-recommendation?amount=X- Calculate optimal withdrawal recommendationsGET /api/stake-recommendation- Get delegation analysis and staking recommendations
Add the validator id to ALLOWED_VALIDATORS in src/lib/constants.ts — that's all that is
needed for it to show up in stake/unstake recommendations, even before it has any delegation.
If the validator owner holds stS (for delegation boost), also add their wallets to the
VALIDATOR_MAPPING secret used by the GitHub action.
Run the github action to track validator portfolios to define delegation boost.
Set this in your .env file for the action:
VALIDATOR_MAPPING={"13":["0xwallet1"],"14":["0xwallet2"]}