🌊
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

ERC4907 Controller

PreviousLens Profile ControllerNextAddresses

Last updated 2 years ago

Controller that handles tokens.

/// @title ERC4907ControllerObserver
/// @notice Rental auction controller for ERC4907 tokens
contract ERC4907ControllerObserver is ERC721ControllerObserver {
    /// @notice Handle renter changed by setting the user of the ERC4907 token
    /// @dev The expiration time is set to the maximum value of uint64
    /// @param newRenter The new renter to set as the user of the ERC4907 token
    function _onRenterChanged(address, address newRenter) internal override {
        IERC4907(address(tokenContract)).setUser(tokenId, newRenter, type(uint64).max);
    }
}
ERC4907