Right now, ZepCore.sol's stake will take any address, but will fail when calling instance.developer() if no such method is found in instance, or behave erratically if this method does not do what is expected.
We should have a check in place that guarantees that the vouches are only in favor of KernelInstances.
One way to do this would be to force vouches to be for registered instances, and delegate to KernelRegistry the responsibility of checking the validity of the addresses at registration time.
Right now,
ZepCore.sol
'sstake
will take any address, but will fail when callinginstance.developer()
if no such method is found ininstance
, or behave erratically if this method does not do what is expected.We should have a check in place that guarantees that the vouches are only in favor of
KernelInstance
s.One way to do this would be to force vouches to be for registered instances, and delegate to
KernelRegistry
the responsibility of checking the validity of the addresses at registration time.