contracts
contracts copied to clipboard
something wrong at startAuction: msg.sender and Validator. signer maybe not the same
contracts\staking\stakeManager\StakeManagerExtension.sol
function startAuction(
uint256 validatorId,
uint256 amount,
bool _acceptDelegation,
bytes calldata _signerPubkey
) external
.................................................................
uint256 senderValidatorId = signerToValidator[msg.sender];
require(
NFTContract.balanceOf(msg.sender) == 0 && // existing validators can't bid
senderValidatorId != INCORRECT_VALIDATOR_ID,
"Already used address"
);
.................................................................
As msg.sender and Validator. signer maybe not the same, I think the variable 'senderValidatorId' should be:
uint256 senderValidatorId = signerToValidator[_getAndAssertSigner(_signerPubkey)];