1️⃣ Initial Review
Scoping
├── interfaces
│ ├── IFlashLoanReceiver.sol
│ ├── IPoolFactory.sol
│ ├── ITSwapPool.sol
│ #── IThunderLoan.sol
├── protocol
│ ├── AssetToken.sol
│ ├── OracleUpgradeable.sol
│ #── ThunderLoan.sol
#── upgradedProtocol
#── ThunderLoanUpgraded.solInstall Solidity Metrics in VsCode
Search for solidity metrics
Install itReconnaissance
Code Review
Tools to Run
Reviewing the flashloan() function
1. Reentrancy Vulnerability:
2. Lack of Checks After External Call:
3. Slippage and Fee Manipulation:
4. Denial of Service (DoS) via Flash Loan Execution:
5. Event Emission Before State Changes:
6. Failure to Handle Edge Cases:
7. Potential for Reentrancy in updateExchangeRate(fee):
updateExchangeRate(fee):PoC
Steps to Execute
Last updated