721labs / partial-common-ownership

This project aims to establish a standard, open source implementation of Partial Common Ownership for non-fungible tokens.
https://721.dev
MIT License
17 stars 5 forks source link

Modularization #55

Closed will-holley closed 2 years ago

will-holley commented 2 years ago

Summary

In working on https://github.com/721labs/partial-common-ownership/pull/32, I realized how the complexity of PartialCommonOwnership721.sol's business logic makes developing on top of it difficult. This PR breaks the core logic into composable, domain-specific modules.

This provides the added benefit of making the library more extensible. Partial Common Ownership is highly theoretical and these changes make it easier to compose a PCO-compliant contract with alternative business logic, for example swapping out the current Harberger tax system for a depreciating license.