Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move token ownership to proxy #52

Open
wants to merge 1 commit into
base: fix
Choose a base branch
from
Open

chore: move token ownership to proxy #52

wants to merge 1 commit into from

Conversation

DavidMinarsch
Copy link
Contributor

No description provided.

@@ -176,7 +176,7 @@ contract ContributeManager is ERC721TokenReceiver {
instances[0] = msg.sender;

// Create a service owned by this contract
serviceId = IService(serviceManager).create(address(this), token, configHash, agentIds,
serviceId = IService(serviceManager).create(contributorsProxy, token, configHash, agentIds,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO asset should ever be held in the periphery, that's the whole point of the design paradigm. You need to proxy everything via the core (which has a proxy design and can therefore be updated in case of need)

Copy link
Contributor Author

@DavidMinarsch DavidMinarsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial implementation only

@@ -448,7 +452,7 @@ contract ContributeManager is ERC721TokenReceiver {
IStaking(curStakingInstance).unstake(serviceId);

// Approve service NFT for the staking instance
INFToken(serviceRegistry).approve(curStakingInstance, serviceId);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of doing something this ugly, why not just merge CM into the Contributors? Being a stand-alone ownerless contract was the sole purpose of it. If not - why even bother with periphery?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants