Closed code423n4 closed 2 years ago
danb
https://github.com/code-423n4/2021-12-vader/blob/main/contracts/lbt/LiquidityBasedTWAP.sol#L93 chainlink price might be negative, it's not a malfunction: https://stackoverflow.com/questions/67094903/anybody-knows-why-chainlinks-pricefeed-return-price-value-with-int-type-while if one of the tokens has anegative price, the system will be in denial of service.
Chainlink price can not be negative
Dup #111
Handle
danb
Vulnerability details
https://github.com/code-423n4/2021-12-vader/blob/main/contracts/lbt/LiquidityBasedTWAP.sol#L93 chainlink price might be negative, it's not a malfunction: https://stackoverflow.com/questions/67094903/anybody-knows-why-chainlinks-pricefeed-return-price-value-with-int-type-while if one of the tokens has anegative price, the system will be in denial of service.