How Does Gas Limit Affect the Complexity of a Flash Loan Attack?
A flash loan attack involves multiple complex steps: borrowing, trading, interacting with the vulnerable contract, and repaying. Each step consumes gas.
The entire sequence must fit within the block's maximum gas limit. This constraint limits the number of operations and the complexity of the exploit an attacker can execute, forcing them to be highly efficient and strategic in their code execution.