Skip to main content

carbon-marginfi-v2

星标2
分支0
更新时间2026年6月2日 18:27

Carbon decoder reference for Marginfi v2 (lending) on Solana — program `MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA`, crate `carbon-marginfi-v2-decoder` (24 instructions, 3 account types, 14 CPI events). Use when decoding, indexing, or analyzing this program with Carbon: looking up instruction args/discriminators/accounts, account struct fields, or CPI event schemas. Run the bundled `scripts/carbon.py` to extract details from the local cargo cache. Triggers on "Marginfi V2", "marginfi-v2", "carbon-marginfi-v2-decoder", "MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA", "MarginfiV2Decoder", "Marginfi v2 (lending)", "LendingAccountBorrow", "LendingAccountCloseBalance", "LendingAccountDeposit", "LendingAccountEndFlashloan", "LendingAccountLiquidate", "LendingAccountRepay", "LendingAccountBorrowEvent", "LendingAccountDepositEvent", "LendingAccountLiquidateEvent", "LendingAccountRepayEvent", "Bank", "MarginfiAccount", "MarginfiGroup".

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly