Closed
Description
While implementing the SchemeFactory within the client library, we ran into an issue: a SchemeFactory proposal cannot add a competition scheme to the DAO.
The process that's required to deploy a competition scheme is as follows:
- Deploy Competition.sol Instance
DAOFactory.createInstance("Competition")
1.a. Save the address of the competition instance - Add ContributionRewardExt.sol As A Scheme
SchemeFactory.propose("ContributionRewardExt", initParams)
2.a. NOTE:initParams
has competition's address in it as "rewarder" - After ContributionRewardExt is added as a scheme (and it's deployed), we need to call initialize on competition w/ the contributionrewardext's address.
FAILURE: step 3 is impossible, since the initialize function on competition can only be called during the initial creation process of the contract (if I'm not mistaken).
@orenyodfat am I understanding this correctly?
Metadata
Metadata
Assignees
Labels
No labels