-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: fix
Are you sure you want to change the base?
Conversation
@@ -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, |
There was a problem hiding this comment.
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)
There was a problem hiding this 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); |
There was a problem hiding this comment.
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?
No description provided.