code-423n4 / 2022-10-thegraph-findings

0 stars 0 forks source link

Dont check return type #238

Closed code423n4 closed 1 year ago

code423n4 commented 1 year ago

Lines of code

https://github.com/code-423n4/2022-10-thegraph/blob/main/contracts/l2/token/GraphTokenUpgradeable.sol#L98

Vulnerability details

Impact

Dont check return type

Proof of Concept

https://github.com/code-423n4/2022-10-thegraph/blob/main/contracts/l2/token/GraphTokenUpgradeable.sol#L98

Tools Used

Static analytics

Recommended Mitigation Steps

Add suitable checks