Closed sherlock-admin2 closed 2 months ago
Mammoth Laurel Nightingale
Low/Info
VaultLibrary._liquidatedLp(State,uint256,IUniswapV2Router02,IDsFlashSwapCore) (contracts/libraries/VaultLib.sol#349-393) uses timestamp for comparisons Dangerous comparisons:
Expiry.isExpired() (contracts/core/assets/Asset.sol#51-57) uses timestamp for comparisons Dangerous comparisons:
VaultLibrary._redeemCtDsAndSellExcessCt(State,uint256,IUniswapV2Router02,IDsFlashSwapCore,uint256) (contracts/libraries/VaultLib.sol#318-347) uses timestamp for comparisons Dangerous comparisons:
VaultLibrary.__provideLiquidity(State,uint256,uint256,IDsFlashSwapCore,address,IUniswapV2Router02,uint256) (contracts/libraries/VaultLib.sol#153-172) uses timestamp for comparisons Dangerous comparisons:
Manual Review
most of comparisons mentioned in this issue are based on amount but issue saying it is based on timestamp. So marking this as invalid issue and will not fix it
Mammoth Laurel Nightingale
Low/Info
[ L - 12 ] timestamp
Summary
VaultLibrary._liquidatedLp(State,uint256,IUniswapV2Router02,IDsFlashSwapCore) (contracts/libraries/VaultLib.sol#349-393) uses timestamp for comparisons Dangerous comparisons:
Expiry.isExpired() (contracts/core/assets/Asset.sol#51-57) uses timestamp for comparisons Dangerous comparisons:
VaultLibrary._redeemCtDsAndSellExcessCt(State,uint256,IUniswapV2Router02,IDsFlashSwapCore,uint256) (contracts/libraries/VaultLib.sol#318-347) uses timestamp for comparisons Dangerous comparisons:
VaultLibrary.__provideLiquidity(State,uint256,uint256,IDsFlashSwapCore,address,IUniswapV2Router02,uint256) (contracts/libraries/VaultLib.sol#153-172) uses timestamp for comparisons Dangerous comparisons:
Vulnerability Detail
Impact
Code Snippet
Tool used
Manual Review
Recommendation