gas

[L-03] Continues with the standard use for Collateral variable

Reward

Total

24.49 USDC

Selected
24.49 USDC
Selected Submission

[L-03] Continues with the standard use for Collateral variable

Severity

Low Risk

Relevant GitHub Links

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L229

Summary

Throughout the contract when you want to refer to the collateral token address variable, it is referred to as tokenCollateralAddress and only in the liquidate function is it referred to as collateral.

Impact

Low

Tools Used

Manual code review

Recommendations

It is recommended to replace this value with the tokenCollateralAddress to avoid confusion or doubt if the same value is being referenced.