Skip to main content
Related concept

Signature

Description

Sets spender’s allowance to amount. Not gated by any policy or by pause. Emits Approval. Dev: Reverts with InvalidApprover when msg.sender == address(0). Dev: Reverts with InvalidSpender when spender == address(0). Param: spender Account being granted the allowance. Param: amount Allowance amount. Return: Always true on success.

Access control

Read-only or ERC-20-standard access rules unless the NatSpec states otherwise.

Policy interaction

No direct policy interaction.

Example