vader can be initialized twice #139
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
LiquidityBasedTWAP
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
danb
Vulnerability details
https://github.com/code-423n4/2021-12-vader/blob/main/contracts/lbt/LiquidityBasedTWAP.sol#L221
vader can be initialized twice if in the first call to
setupVader
,vaderPrice == 0
.Recommended Mitigation Steps
add:
in
setupVader
.The text was updated successfully, but these errors were encountered: