hardcoded rout ratio might cause verify route to return false continuously
the verifyroute in ethenaminting.sol is an if that checks whether the route ratio is 10_000 or not and the ratio is going to be somewhere around that but what if it actually up with 1 digit difference? it would revert and the whole operation would break
hardcoding route ratio for 10_000 is not a good idea and it would create unnecesery issue.
Lines of code
https://github.com/code-423n4/2023-10-ethena/blob/ee67d9b542642c9757a6b826c82d0cae60256509/contracts/EthenaMinting.sol#L370-L372
Vulnerability details
Impact
hardcoded rout ratio might cause verify route to return false continuously the
verifyroute
inethenaminting.sol
is an if that checks whether the route ratio is 10_000 or not and the ratio is going to be somewhere around that but what if it actually up with 1 digit difference? it would revert and the whole operation would breakhardcoding route ratio for 10_000 is not a good idea and it would create unnecesery issue.
Proof of Concept
Tools Used
manually / vs code
Recommended Mitigation Steps
-consider using >= / <= rather than =!
Assessed type
Other