🌊
FluBid
  • Overview
  • Auction Types
    • Rental Auctions Overview
    • Continuous Rental Auction
    • English Rental Auction
  • Controllers
    • Controllers Overview
    • delegate.cash Controller
    • Lens Profile Controller
    • ERC4907 Controller
  • Contracts
    • Addresses
    • Contracts Documentation
  • GitHub
Powered by GitBook
On this page
  1. Controllers

Lens Profile Controller

Controller that allows the renter of a Lens Profile to post things.

/// @title LensProfileControllerObserver
/// @notice Rental auction controller for Lens Profile tokens
contract LensProfileControllerObserver is ERC721ControllerObserver {  
    /// @notice Do nothing on renter changed  
    function _onRenterChanged(address, address) internal pure override {}

    /// @notice Post to the Lens Hub
    /// @dev Only callable by the current renter reported by the rental auction contract
    /// @param postData The data to post
    function post(ILensHub.PostData calldata postData) external {
        if (msg.sender != rentalAuction.currentRenter()) revert Unauthorized();
        ILensHub(address(tokenContract)).post(postData);
    }
}
Previousdelegate.cash ControllerNextERC4907 Controller

Last updated 2 years ago