Projects
Main concepts
Restrictions

Restrictions Overview: Enforcing Conditions

Main architecture

Property Restrictions in ODCs

The Nexera Protocol supports the application of Restrictions to Properties. Currently, there are four types of Restrictions that can be applied and read by Property Managers to enforce conditions that restrict specific actions on the Properties or the ODC tokens themselves.

ERC20LockRestriction

  • As the name suggests, this Restriction type is related to ERC20 tokens.
  • Inputs required are the token address, amount of tokens, and release date.
  • Property Managers can enforce this Restriction type to lock a specific amount of ERC20 tokens for a certain period.

ERC721LockRestriction

  • This Restriction type is related to ERC721 tokens (NFTs).
  • Inputs required are the token address and token ID.
  • Property Managers can enforce this Restriction type to lock a specific ERC721 token (NFT) for a certain period.

ERC1155LockRestriction

  • This Restriction type is related to ERC1155 tokens (Multi-Token Standard).
  • Inputs required are the token address, token ID, and amount.
  • Property Managers can enforce this Restriction type to lock a specific amount of ERC1155 tokens for a certain period.

TransferRestriction

  • This is a special type of Restriction applied directly to the ODC token.
  • It prevents the whole ODC from being transferred.
  • Property Managers can enforce this Restriction type to ensure that the ODC remains with its current owner for a certain period or under specific conditions.

Property Managers can read the Restrictions applied to a Property using _odc.getRestrictions(ouId, PROPERTY). They can decode the data and prevent transfers or other actions based on the restrictions in place.

These Restrictions offer an additional layer of control and customization for ODC Properties, enabling Property Managers to enforce specific conditions and limitations on the use and transfer of Properties within the ODC ecosystem.

Restrictions Limits

To mitigate excessive transaction fees and prevent issues during transfer, merge, or split operations, a limit has been implemented on the number of Restrictions that can be applied to ODCs' Properties. An extensive number of Restrictions would pose a bottleneck for Property Managers since they need to check for Restrictions before operating on Properties.