Function: _transfer(address _sender, address _recipient, uint256 _amount)
This is the internal function for transferring tokens.
Inputs
_senderControl: Controlled by calling function.
Constraints: Checked that
_senderis not the zero address and that it has enough balance.Impact: The account that will send the tokens.
_recipientControl: Controlled by calling function.
Constraints: Checked that
_recipientis not the zero address.Impact: The account that will receive the tokens.
_amountControl: Controlled by calling function.
Constraints: Checked that
_senderhas enough balance.Impact: The amount of tokens to be transferred.
Branches and code coverage (including function calls)
Intended branches
Checks that the
_senderhas enough balance.Checks that the
_senderis not the zero address.Checks that the
_recipientis not the zero address.Checks that the
_amountis greater than zero.Decreases the
balancesfor the_sender.Increases the
balancesfor the_recipient.Checks that
inPrivateTransferModeistrueand calls_validateHandler.
Negative behavior
Should not allow transferring more tokens than the
_senderhas.Should not allow transferring to the zero address.