Function: _approve(address _owner, address _spender, uint256 _amount)
This is the internal function for approving allowances for transferring tokens.
Inputs
_ownerControl: Controlled by the calling function.
Constraints: Checked that
_owneris not the zero address.Impact: The account that will allow the
_spenderto transfer tokens.
_spenderControl: Controlled by the calling function.
Constraints: Checked that
_spenderis not the zero address.Impact: The account that will be allowed to transfer the owner's tokens.
_amountControl: Controlled by the calling function.
Constraints: None.
Impact: The amount of tokens to be allowed to be transferred.
Branches and code coverage (including function calls)
Intended branches
Sets the allowance of
_spenderto_amountfor the_owner.
Negative behavior
Should not allow approving tokens on behalf of others. This should be ensured in the calling function.