Security Audit Report
AdapterFi Pendle Adapter Audit Report
Reviewed by: 0x52 (@IAm0x52)
Prepared For: AdapterFi
Review Date(s): 6/28/24
0x52 Background
As a professional smart contract auditor, I have conducted over 100 security reviews for public and private clients. With 30+ first-place finishes in public contests on platforms like Code4rena and Sherlock, I have been recognized as a top-performing security expert. By prioritizing rigorous analysis and providing actionable recommendations, I have contributed to securing over $1 billion in TVL across 100+ protocols. Throughout my career I have collaborated with many organizations including the prestigious Blackthorn as a founding security researcher and as a Lead Security researcher at SpearbitDAO.
Protocol Summary
AdapterFi Pendle Adapter is a specialized yield strategy component that incorporates modified pricing methodology for Pendle's principal tokens, enhancing accuracy by valuing assets against standardized yield tokens rather than underlying assets.
Scope
Repo: AdapterFi
Review Hash: 148e0df
Fix Review Hash: N/A
Only the very small subset of changes made in commit 148e0df were reviewed and any other changes were not considered.
In-Scope Contracts
contracts/adapters/PendleAdapter.vy
Deployment Chain(s)
- Ethereum Mainnet
- Arbitrum Mainnet
Summary of Changes
The underlying pricing for Pendle PT's was changed. Previously each PT was valued against the underlying asset of the derivative (i.e. ETH for stETH PT) rather than derivative itself. This was leading to incorrect price quotes and reverting transactions. With this new methodology the PT (principle tokens) are quoted against the SY (standardized yield) token. SY tokens can be directly converted to the underlying derivative token via previewWithdraw or previewDeposit allowing proper pricing.
Summary of Review
No vulnerabilities were found to have been introduced by these changes.