Assessment reports>WOOFi Swap>Threat Model>receive

Function: receive()

Receive handler for calls with no calldata (transfers of native ETH).

Branches and code coverage

Intended branches

  • Allows WETH address to send ETH to the contract.

  • Allows whitelisted address to send ETH to the contract.

Negative behavior

  • Reverts if an unknown sender sends ETH to the contract.

Zellic © 2024Back to top ↑