Use named returns in DSCEngine.getUsdValue
function to save some gas.
Instead of using a return statement, add a named return to the getUsdValue
function and assign the result to this named return.
Save gas for the user every time getUsdValue function is being used.
VSCode
Change the following function:
https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/d1c5501aa79320ca0aeaa73f47f0dbc88c7b77e2/src/DSCEngine.sol#L361-L367
To:
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.