sherlock-audit / 2023-10-perennial-judging

11 stars 7 forks source link

kaancaglan - Use Of `transfer` or `send` Instead Of `call` To Send Native Assets #14

Closed sherlock-admin closed 1 year ago

sherlock-admin commented 1 year ago

kaancaglan

false

Use Of transfer or send Instead Of call To Send Native Assets

[L-04] Use Of transfer or send Instead Of call To Send Native Assets

Severity

The use of transfer() in the contracts may have unintended outcomes on the native asset being sent to the receiver. The transaction will fail when:

Number Of Instances Found

1

Code Location

Click to show findings ```solidity Path: ./perennial-v2/packages/perennial-extensions/contracts/MultiInvoker.sol 166: payable(msg.sender).transfer(address(this).balance); // @audit-issue ``` *GitHub*: [166](https://github.com/sherlock-audit/2023-10-perennial/blob/main/./perennial-v2/packages/perennial-extensions/contracts/MultiInvoker.sol#L166-L166)
sherlock-admin2 commented 1 year ago

2 comment(s) were left on this issue during the judging contest.

tsvetanovv commented:

Low. See Sherlock docs

chainNue commented:

watson need to read https://docs.sherlock.xyz/audits/judging/judging