Morpho Midnight Adapter
Total reward
$400,000
Entry fee
$30
One-time, charged with your first submission. Waived for researchers with $1,000+ in lifetime rewards.
Status
Live
Findings submitted
0
Start date
23 Nov 2026
End date
3 Dec 2026
KYC
Required to join
The Midnight Adapter lets a Morpho Vault V2 allocate assets into Midnight fixed-rate, fixed-maturity markets. It buys, sells and holds credit on behalf of the vault, and withdraws repaid assets back to the vault. The adapter uses the roles of its parent vault (curator, allocators and sentinels), and all contracts are immutable.
Prize Distribution and Scoring
- Total Prize Pool: Up to $400,000
The total pot size depends on the highest severity of valid findings:
- If one or more valid Medium severity findings are found, the total pot size is $150,000.
- If one or more valid High severity findings are found, the total pot size is $400,000.
$40,000 of the total prize pool is reserved for Low Severity & Informational findings. These reports are judged on quality, with researchers ranked 1st-10th for prize allocation.
- Scoring is described on the competition scoring page.
Entry Fee
- A one-time entry fee of $30 USDC is charged with your first finding submission in this competition. Additional submissions do not incur another fee.
- The fee is waived for researchers who have earned more than $1,000 in lifetime rewards on Cantina.
- The fee is refundable at Cantina's discretion.
Submission Quality
Review and verify every finding before submitting. Spam or unverified (including unchecked AI-generated) submissions are considered abuse and will result in a ban from the Cantina platform and forfeiture of all rewards in this competition.
Severity Definition
This competition uses Cantina's standard severity definitions. See the competition finding severity criteria.
Documentation
- Midnight Adapter README
- NatSpec and in-code documentation / comments
The Midnight Adapter directly interacts with the Midnight and Vault V2 smart contracts. The code and documentation for these contracts can be found below.
Vault V2:
Midnight:
Scope
- Repository: morpho-org/vault-v2
- Commit:
bbeda7b27ae80abcf070e0158cb8a31e87bb2286 - Files / directories in scope:
src/adapters/midnightMidnightAdapter.solMidnightAdapterFactory.solgates/IKRCompatibleEnterGate.solgates/IKRCompatibleEnterGateFactory.solgates/WhitelistEnterSubGate.solgates/WhitelistEnterSubGateFactory.sollibraries/PackedDurationsLib.solratifiers/MidnightAdapterPriceRatifierV1.solratifiers/MidnightAdapterRateRatifierV1.sol- Interfaces under
interfaces/,gates/interfaces/andratifiers/interfaces/
Build Instructions
See the repository README for build, setup, and testing instructions.
Mandatory POC Rule
- The mandatory POC rule applies to this competition. All High and Medium findings require a valid coded POC before the end of the competition.
Out of Scope
- Previous security reports / audits
- Expected behaviors such as trusted / untrusted roles
- Accepted risks
Contact Us
For any issues or concerns regarding this competition, please reach out to the Cantina core team through the Cantina Discord.