The SmartVaultV3::swap()
function lacks an expiration deadline, potentially exposing the contract to financial losses during token swaps.
The swap()
function utilizes the deadline
parameter, which is set to block.timestamp
. This implies that the function allows token swaps without enforcing an expiration deadline, leaving it susceptible to exploitation.
The absence of an expiration deadline in the SmartVaultV3
contract's swap()
function creates a vulnerability where a malicious miner/validator could manipulate transactions for personal gain. This could lead to significant financial losses for the contract due to slippage.
Manual Review.
It is recommended to enhance the security of the SmartVaultV3
contract by setting a proper expiration deadline for the deadline
parameter within the swap()
function. This measure will mitigate the risk of potential financial losses associated with malicious activities.
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.