Currently, to remove/destroy StakerProxy owner should call StakerProxy::selfDestruct.
Instead, OSTComposer::removeStakerProxy can assume msg.sender is an owner, retrieve StakerProxy for that owner, call StakerProxy::selfDestruct on retrieved staker proxy (modifier for StakerProxy::selfDestruct should become onlyComposer).
Currently, to remove/destroy
StakerProxy
owner should callStakerProxy::selfDestruct
.Instead,
OSTComposer::removeStakerProxy
can assumemsg.sender
is an owner, retrieveStakerProxy
for that owner, callStakerProxy::selfDestruct
on retrieved staker proxy (modifier for StakerProxy::selfDestruct should become onlyComposer).