CtrlK
BlogDocsLog inGet started
Tessl Logo

marginfi

MarginFi — Solana lending and borrowing

45

Quality

47%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Medium

Suggest reviewing before use

Fix and improve this skill with Tessl

tessl review fix ./src/skills/bundled/marginfi/SKILL.md
SKILL.md
Quality
Evals
Security

MarginFi

MarginFi is a lending and borrowing protocol on Solana. Deposit collateral, borrow assets, and monitor your health factor to avoid liquidation.

Commands

Lending

/marginfi deposit <amount> <token>     Deposit collateral
/marginfi withdraw <amount|all> <token> Withdraw collateral
/marginfi borrow <amount> <token>      Borrow assets
/marginfi repay <amount|all> <token>   Repay borrowed assets

Account

/marginfi account                      View positions (deposits & borrows)
/marginfi health                       Check health factor & liquidation risk

Markets

/marginfi banks                        List all lending pools with APY
/marginfi rates                        View supply/borrow interest rates table

Examples

/marginfi deposit 100 USDC
/marginfi borrow 1 SOL
/marginfi health
/marginfi repay all SOL
/marginfi withdraw all USDC
/marginfi banks
/marginfi rates

Configuration

export SOLANA_PRIVATE_KEY="your-base58-private-key"
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"  # Optional

See Also

  • /kamino — Kamino Finance lending + liquidity vaults
  • /solend — Solend lending protocol
  • /jup — Jupiter DEX aggregator
  • /bags — Portfolio overview
Repository
alsk1992/CloddsBot
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.