Skip to content

What this page showsOne instruction (an action a wallet lists) of marginfi v2 (mrgnLend): whether the code that runs it is the code an audit reviewed, why, and the recorded transactions that called it.

Verdict

Partial

Some evidence exists, but one required link is missing, for example the live source is only claimed by a provider or the report names no files.

Checked against the snapshot at slot 471,652,469

The proof chain
  1. Instruction decoded

    Established

    The instruction bytes match one entry in a pinned IDL or schema, with no collision.

  2. Live code rebuilt by POA

    Established

    POA rebuilt a source commit and its hash equals the on-chain executable.

  3. Report names the handler file

    Not established

    A published audit report's scope covers the file that implements this instruction.

  4. Reviewed commit printed

    Not established

    That report prints the scope and the exact commit it reviewed.

  5. Reviewed code is the live code

    Not established

    The reviewed commit and the rebuilt live commit hold the same program code.

Every link must hold before POA says Matched. A missing link is not a failure, and never an approval.

Reasons

  1. Program snapshot at slot 471652469: executable, RPC agree, hash 9a497328283c….
  2. Decoded by anchor-idl-discriminator ee90aac715489b24.
  3. Handler programs/marginfi/src/instructions/solend/withdraw.rs#L71 (solend_withdraw).
  4. Handler path is excluded by marginfi-ackee-2026.
  5. Only partly reviewed per marginfi-hashlock-2026-07 (programs/marginfi; Scope is PRs #567 and #585; at the fix review commit 1f1f7a6 Hashlock only verified finding status and did not conduct a comprehensive review (p.7)), marginfi-adevar-2026-09 (programs/marginfi; Scope is programs/**/*.rs as modified by PRs 603, 615 and 631; other changes in the fix PRs and any other PR merged into 0.1.11-main or 0.1.12-main were not audited (p.8)); these reports give neither MATCHED nor CHANGED for this instruction.
  6. Live source f8246e6f established by POA's independent build.
  7. No report with directly extracted scope names a path covering the handler file.

What would be needed for a stronger verdict

  1. A report whose printed scope paths cover the handler file.

Checks

Decoded
Yes
Handler located
Yes
Handler in report-named files
No
Review scope established
No
Reviewed commit known
Yes
Live source rebuilt by POA
Yes
Live source equals reviewed
No
Handler changed since review
Not established
Program crate changed since review
Not established
Program immutable
No
Evidence fresh
Yes

Discriminator and decoding

Discriminator
ee90aac715489b24
Method
Anchor IDL discriminator
IDL SHA-256
68f04cb773fa8712e1f5def567af1bdeeef728863e1e76e120c07a8379d369f6
Collisions
None

Arguments

NameType
amountu64
withdraw_alloption<bool>

Accounts

Signer and writable flags from the interface definition.

AccountFlagsFixed addressNotes
groupRead-only
marginfi_accountWritable
authoritySigner
bankWritable
destination_token_accountWritableToken account that will receive the withdrawn tokens. Mint/owner are validated by the SPL transfer; the caller controls the destination.
liquidity_vault_authorityWritable
liquidity_vaultWritable
integration_acc_2WritableThe Solend obligation account
lending_marketWritable
lending_market_authorityRead-onlyDerived from the lending market
integration_acc_1WritableThe Solend reserve that holds liquidity
mintRead-onlyBank's liquidity token mint (e.g., USDC)
reserve_liquidity_supplyWritableReserve's liquidity supply SPL Token account
reserve_collateral_mintWritableThe reserve's mint for cTokens
reserve_collateral_supplyWritableThe reserve's collateral supply account (where cTokens are stored)
user_collateralWritableThe user's destination for cTokens (collateral). This is a temporary account owned by liquidity_vault_authority that holds cTokens.
solend_programRead-onlySo1end…tMCpAo So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo (opens Solana Explorer in a new tab)
token_programRead-only

Handler source

Handler source at the pinned commitprograms/marginfi/src/instructions/solend/withdraw.rs#L71-L326Source on GitHub · f8246e6 ↗ (opens in a new tab)
Function
solend_withdraw
File
programs/marginfi/src/instructions/solend/withdraw.rs · lines 71–326
At commit
f8246e6f62600a9c91e4e88ab42143f717046fcb
Mapping
Anchor program module

Related files

No related files traced.

Audit relations

How each report relates to this instruction's handler file.

AuditorRelationReviewed commitScope confidence
OtterSecmarginfi v2 audit (opens in a new tab)Program covered, no paths named0f710a4Printed in the report
Sec3Security Assessment Report: Marginfi v2 (opens in a new tab)Program covered, no paths named5166374Printed in the report
Sec3Security Assessment Report: Marginfi v2 PR238 (opens in a new tab)Program covered, no paths named883c97fPrinted in the report
Sec3Security Assessment Report: Marginfi V2 PR248 (opens in a new tab)Program covered, no paths named60e02aePrinted in the report
AccretionSecurity Assessment: Marginfi EMode (A25MRG1) (opens in a new tab)Program covered, no paths named1208ee1Printed in the report
AccretionSecurity Assessment: Marginfi Kamino Integration (opens in a new tab)Program covered, no paths named7bbdf9bPrinted in the report
Sec3Security Assessment Report: Marginfi v2 PR109 Kamino (opens in a new tab)Program covered, no paths named61dd5fbPrinted in the report
Sec3Security Assessment Report: Marginfi v2 Emode (opens in a new tab)Program covered, no paths named8214666Printed in the report
Sec3Security Assessment Report: Marginfi V2 PRs 411, 424 and 427 (DRAFT) (opens in a new tab)Program covered, no paths named117fc5fPrinted in the report
Sec3Security Assessment Report: Marginfi V2 PRs 437, 441 and 450 (opens in a new tab)Program covered, no paths named8978771Printed in the report
Ackee Blockchain SecurityProject0 DeFi-Native Prime Broker audit report (opens in a new tab)Handler file is excluded9e8a881Printed in the report
HashlockProject 0 smart contract audit: price circuit breaker and same-asset e-mode (PRs 567 and 585) (opens in a new tab)Program covered, no paths named1f1f7a6Printed in the report
Sec3Security Assessment Report: Marginfi v2 Program PRs 567 and 585 (opens in a new tab)Program covered, no paths namedaad4276Printed in the report
Sec3Security Assessment Report: Marginfi v2 Program PR 661 (opens in a new tab)Program covered, no paths namedbbba606Printed in the report
Adevar LabsMarginFi Audit Report (after fix review): auto-rebalance, variable borrow premium, oracle integrations (opens in a new tab)Program covered, no paths named63b4192Printed in the report

Changed files since review

Files changed between the reviewed commit and the live source, as recorded.

No changed file is recorded for this instruction.

Call trees

The static tree comes from the handler source. The observed tree comes from a finalized transaction. They are separate evidence and are not merged.

Instruction
The instruction itself, with its own verdict.
Static
A source file read at the handler map's pinned commit.
Observed
A call seen in a finalized mainnet transaction.
Inferred
A call read from the handler source, not observed on chain.

Static, from source at f8246e6

  • Signer
    • InstructionPartial
      • StaticPartial
      • InferredUnknown
      • InferredUnknown
      • InferredUnknown

No curated transaction calls this instruction.

Transactions

Each curated transaction that calls this instruction, with what is known about the code that ran.

No curated transaction calls this instruction.