sherlock-audit / 2024-08-cork-protocol-judging

2 stars 2 forks source link

Mammoth Laurel Nightingale - [ L - 12 ] timestamp #297

Closed sherlock-admin2 closed 2 months ago

sherlock-admin2 commented 2 months ago

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

siddhpurakaran commented 1 month ago

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