DeliveryPlace.settleAskMaker(address,uint256).makerRefundAmount (src/core/DeliveryPlace.sol#275) is a local variable never initialized
Problem: The local variable makerRefundAmount is used in various operations but is only conditionally initialized. If _settledPoints is not equal to offerInfo.usedPoints, the variable remains uninitialized.
Potential Vulnerability: Using an uninitialized variable can lead to unpredictable behavior or unintended consequences. In Solidity, uninitialized variables might contain default values (e.g., 0 for uint256), which can cause logic errors or unintended behavior in the contract.
If the makerRefundAmount variable is used without being properly initialized, it may result in incorrect refund amounts being calculated or processed. This can affect the financial accuracy of the settlement process.
slither, Manual
Initialize Variables: Ensure that makerRefundAmount is initialized with a default value before any conditional logic. For example:
This guarantees that the variable has a defined value even if none of the conditional blocks execute.
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.