RigoBlock / contracts

[DEPRECATED] directory of our contracts
Apache License 2.0
1 stars 0 forks source link

casper staking needs a special fund group (factory) #23

Open gabririgo opened 6 years ago

gabririgo commented 6 years ago

casper staking has been made complicated for pools on purpose by the EF as to prevent centralization. There will be a maximum of 1000 validators, hence pools will be a natural thing.

in order to perform POS mining the vaults will have to deposit at casper. but only 1 deposit and 1 withdrawal is allowed per validator. When someone is not a validator, has to queue and start mining at the first available slot.

Hence it would be good to create minipools inside a masterpool, but in this case the vaults themselves would become factories and we have to double check that they can fit in the size of a vault.

2 possible solutions: using the delegatecall and assembly would probably make the job, as using libraries will increase the size of the vault, or evaluate using an external contract controlled by the vault.

the resulting product is quite complex, hence we need to budget the time to work on it, and we need to decided whether it is an ASA we want to cover, as we already have the vaults and the dragos. Probably cannot be delivered in a short period of time, which is not alarming as the POS mining testing has just begun on a minor network (not yet to testnet)

further to that, this is an application that an external group could develop, we could leverage on the community for this.