The following assert from OSTComposer::requestStake
require(
stakeRequestHashes[msg.sender][address(_gateway)] == bytes32(0),
"Request for this staker at this gateway is already in process."
);
should be replaced by checking an active stake request existence for the current staker from _gateway input of OSTComposer::requestStake.
A proposal is to introduce a new external function within gateway that returns boolean wrt existence of an active stake request for the passed staker address.
The following
assert
fromOSTComposer::requestStake
should be replaced by checking an active stake request existence for the current staker from
_gateway
input ofOSTComposer::requestStake
.A proposal is to introduce a new external function within gateway that returns boolean wrt existence of an active stake request for the passed staker address.