Deposit with any token
Deposit with any token
You can start from any liquid token on Base, not only a supported one. Berry uses the KyberSwap Aggregator to swap it into a deposit token in a single swap. After that, you deposit in the usual way.
1. Get a quote
GET https://api.berryfi.net/api/entry/quote?tokenIn={address}&amountIn={rawAmount}Add tokenOut if you want to pick which deposit token you end up with. The reply tells you how much you should receive and includes a routeSummary for the next step.
2. Build the swap
POST https://api.berryfi.net/api/entry/build
{ "sender": "0xYou", "routeSummary": { ...from quote... }, "slippageBps": 100 }
-> { "to": router, "data": calldata, "value": "0" }Sign and send the transaction you get back, then approve and call createVault as normal. Berry's server only prepares the transaction data. It never touches your funds.
A plain LP instead
Some people want an ordinary Uniswap V4 position in the same pool rather than a Press vault. The API forwards those requests to KyberSwap's Zap as a Service, using the quote and build calls under /api/zap. You own the resulting LP like any other Uniswap position. That position earns no inference credit.