Skip to main content
Version: 1.0.0

ProtocolFeeRecipient

LooksRare protocol team (👀,💎)

ProtocolFeeRecipient

This contract is used to receive protocol fees and transfer them to the fee sharing setter. Fee sharing setter cannot receive ETH directly, so we need to use this contract as a middleman to convert ETH into WETH before sending it.

Methods​

FEE_SHARING_SETTER​

function FEE_SHARING_SETTER() external view returns (address)

Returns​

NameTypeDescription
_0addressundefined

WETH​

function WETH() external view returns (contract IWETH)

Returns​

NameTypeDescription
_0contract IWETHundefined

transferERC20​

function transferERC20(address currency) external nonpayable

Parameters​

NameTypeDescription
currencyaddressERC20 currency address

transferETH​

function transferETH() external nonpayable

Errors​

ERC20TransferFail​

error ERC20TransferFail()

It is emitted if the ERC20 transfer fails.

NotAContract​

error NotAContract()

It is emitted if the call recipient is not a contract.

NothingToTransfer​

error NothingToTransfer()