The UpliftOnlyExample contract incorrectly casts the _vault variable to an IVaultExplorer, wrongly assuming Vault inherits from VaultExplorer, but thats not correct. The code functions correctly only because both contracts share the same getPoolData(pool) method signature
The line PoolData memory poolData = IVaultExplorer(address(_vault)).getPoolData(pool); assumes inheritance between Vault and VaultExplorer.
The casting is incorrect as Vault does not inherit from VaultExplorer.
The code works due to identical method signatures, not due to correct inheritance.
No security risks, but incorrect casting
Manual Code Review
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.