Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 670 Bytes

045.md

File metadata and controls

37 lines (19 loc) · 670 Bytes

Micro Blue Cod

High

Double check tokenIn address and no check of tokenOut

Summary

There is a check of tokenIn for two times and it is not aligned with the comment which should check tokenOut.

Root Cause

https://github.com/sherlock-audit/2024-11-oku/blob/main/oku-custom-order-types/contracts/automatedTrigger/Bracket.sol#L456-L459

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

If the tokenOut doesn't exist the order will be created and it will never be dealed. The funds will be locked.

PoC

No response

Mitigation

Change the second tokenIn to tokenOut.