Hardcoded gas limits can be problematic as the past has shown that gas economics in Ethereum have changed, and may change again potentially rendering the contract system unusable in the future.
Be conscious about this potential limitation and prepare for the case where gas prices might change in a way that negatively affects the contract system.
- ConsenSys Audit 1inch Finding 4.7
- Denial-of-Service
- Hardcoded Gas Assumptions
- Document & Validate