Manager
Manager.sol
is a module contract that provides management functionality for the Unlockd Protocol. It allows authorized users to set and update various protocol parameters. e
Key functions:
Sets the address of the SafeERC721 contract. Only callable by the admin role.
Parameters:
safeERC721
: The address of the SafeERC721 contract to be set.
Returns the address of the SafeERC721 contract.
Sets the address of the reserve oracle contract. Only callable by the admin role.
Parameters:
oracle
: The address of the reserve oracle contract to be set.
Returns the address of the reserve oracle contract.
Sets the address of the signer used for signature verification. Only callable by the admin role.
Parameters:
signer
: The address of the signer to be set.
Returns the address of the signer used for signature verification.
Sets the address of the wallet registry contract. Only callable by the admin role.
Parameters:
walletRegistry
: The address of the wallet registry contract to be set.
Returns the address of the wallet registry contract.
Sets the address of the allowed controller contract. Only callable by the admin role.
Parameters:
allowedControllers
: The address of the allowed controller contract to be set.
Returns the address of the allowed controller contract.
Allows a specific collection and reserve type combination. Only callable by the admin role.
Parameters:
collection
: The address of the collection to be allowed.
reserveType
: The reserve type to be associated with the collection.
Returns the reserve type associated with a given collection.
Parameters:
collection
: The address of the collection.
Sets the address of the UTokenVault contract. Only callable by the admin role.
Parameters:
uTokenVault
: The address of the UTokenVault contract to be set.
Returns the address of the UTokenVault contract.
Adds or removes a market adapter from the allowed list. Only callable by the governance role.
Parameters:
adapter
: The address of the market adapter to be added or removed.
active
: A boolean indicating whether the adapter should be active or not.
Returns the status of a market adapter (active or disabled).
Parameters:
adapter
: The address of the market adapter.
Emergency functions to freeze, activate, or block a loan. Only callable by the emergency admin role.
Parameters:
loanId
: The ID of the loan to be frozen, activated, or blocked.
Emergency function to update the end time of an auction. Only callable by the emergency admin role.
Parameters:
orderId
: The ID of the order associated with the auction.
newEndTime
: The new end time for the auction.
Last updated