Using hardcoded addresses is generally considered bad practice and should be avoided whenever possible.
Hardcoding address makes the contract less flexible. If the address needs to be changed for any reason you would have to redeploy the contract. It also unables deployment to multiple chains on which the desired address might differ.
Manual Analysis, VScode
Implement swapRouter
as immutable
state variable and initialize it's value in constructor
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.