solend_withdraw
marginfi v2 (mrgnLend)
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
Instruction decoded
Established
The instruction bytes match one entry in a pinned IDL or schema, with no collision.
Live code rebuilt by POA
Established
POA rebuilt a source commit and its hash equals the on-chain executable.
Report names the handler file
Not established
A published audit report's scope covers the file that implements this instruction.
Reviewed commit printed
Not established
That report prints the scope and the exact commit it reviewed.
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
- Program snapshot at slot 471652469: executable, RPC agree, hash 9a497328283c….
- Decoded by anchor-idl-discriminator ee90aac715489b24.
- Handler programs/marginfi/src/instructions/solend/withdraw.rs#L71 (solend_withdraw).
- Handler path is excluded by marginfi-ackee-2026.
- 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.
- Live source f8246e6f established by POA's independent build.
- No report with directly extracted scope names a path covering the handler file.
What would be needed for a stronger verdict
- 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
| Name | Type |
|---|---|
| amount | u64 |
| withdraw_all | option<bool> |
Accounts
Signer and writable flags from the interface definition.
| Account | Flags | Fixed address | Notes |
|---|---|---|---|
| group | Read-only | ||
| marginfi_account | Writable | ||
| authority | Signer | ||
| bank | Writable | ||
| destination_token_account | Writable | Token account that will receive the withdrawn tokens. Mint/owner are validated by the SPL transfer; the caller controls the destination. | |
| liquidity_vault_authority | Writable | ||
| liquidity_vault | Writable | ||
| integration_acc_2 | Writable | The Solend obligation account | |
| lending_market | Writable | ||
| lending_market_authority | Read-only | Derived from the lending market | |
| integration_acc_1 | Writable | The Solend reserve that holds liquidity | |
| mint | Read-only | Bank's liquidity token mint (e.g., USDC) | |
| reserve_liquidity_supply | Writable | Reserve's liquidity supply SPL Token account | |
| reserve_collateral_mint | Writable | The reserve's mint for cTokens | |
| reserve_collateral_supply | Writable | The reserve's collateral supply account (where cTokens are stored) | |
| user_collateral | Writable | The user's destination for cTokens (collateral). This is a temporary account owned by liquidity_vault_authority that holds cTokens. | |
| solend_program | Read-only | So1end…tMCpAo So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo (opens Solana Explorer in a new tab) | |
| token_program | Read-only |
Handler source
- 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.
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.