Unlock
This is our "factory" contract (Unlock.sol) and has several roles.
Deploying Locks: Locks are deployed through the Unlock smart contract. This is important because the Locks will actually invoke the Unlock smart contract when keys are sold and the Unlock smart contract will check that the invoking lock has been deployed through it.
Distribute Governance Tokens. Unlock DAO Tokens are ERC20 tokens that let users of the protocol govern it. The Governance Tokens are granted when membership tokens (NFTs) are purchased, renewed or extended.
Contract Ownership
As of summer 2024, on the most active networks, the Unlock contract is owned by the Unlock Protocol DAO.
The Unlock.sol
contract is upgradable using OpenZeppelin's upgradability framework. Each implementation is versioned. The method unlockVersion()
will yield the current version.
Changelog
Version 14
Released: Jan 2025
The main changes in version 14 of Unlock focus on governance token distribution and deployment capabilities:
Key Features
- Updated reward computation: Governance token rewards are now based on a fraction of the protocol fee. More precisely, the amount of governance tokens distributed is equal to half the protocol fee.
- Adding ability to execute more transactions as part of a deployment: Some actions can now be added directly to the transaction where a lock is created (for instance, setting another lock manager, etc.).
- Replace
udt
bygovernanceToken
: The contract now usesgovernanceToken
instead ofudt
(thoughudt
has been kept for backwards compatibility reasons).
Version 13
Released: Feb 2024
The main novelty in version 13 of Unlock is a "swap and burn" feature that allows fees collected by the protocol to directly decrease the supply of UDT in circulation.