@telaro/kamino
v0.1.0
Published
Telaro adapter for Kamino. Wrap any kamino-finance SDK instance to auto-record LP/lend/withdraw actions.
Downloads
160
Maintainers
Readme
@telaro/kamino
Drop-in Telaro adapter for Kamino. Wrap any Kamino-Finance SDK client (Farms / Lend / Multiply) so every
deposit/withdraw/borrowauto-records as a bonded action.
npm install @telaro/kamino @telaro/sdk @kamino-finance/farms-sdkimport { Farms } from "@kamino-finance/farms-sdk";
import { withTelaro } from "@telaro/kamino";
import { Connection, Keypair, PublicKey } from "@solana/web3.js";
const conn = new Connection("https://api.mainnet-beta.solana.com");
const wallet = Keypair.fromSecretKey(/* ... */);
const kamino = new Farms(conn);
const bonded = withTelaro(kamino, {
bondAmount: 1_000_000_000n, // $1k — LP bots handle real $$
bondMint: new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"),
scorer: new PublicKey("ScorerPubkey..."),
wallet,
connection: conn,
});
// Use exactly like raw Kamino SDK — every call auto-bonds + auto-records.
await bonded.deposit({ tokenAmount: 1_000_000n, ... });
await bonded.withdraw({ shares: 500_000n, ... });Method → ActionKind mapping
| Kamino method | ActionKind |
|---|---|
| deposit, withdraw, harvest, compound, rebalance | Lp |
| stake, unstake | Stake |
| supply, borrow, repay | Lend |
| openMultiply, closeMultiply | Lp |
| swap | Swap |
| anything else | Custom |
Why use this
LP bots managing concentrated liquidity have HIGH value_atomic per action.
Without bonding, users avoid them. With the bond + score, your bot
becomes a credible LP venue and Kamino itself can require view_bond
on its program to gate which bots can manage user funds.
License
MIT
