Skip to main content

Signature

Description

Sets spender’s allowance to amount. Not gated by any policy or by pause. Emits Approval.

Parameters

Returns

Always true on success.

Reverts

  • InvalidApprover when msg.sender == address(0).
  • InvalidSpender when spender == address(0).

Access control

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

Policy interaction

No direct policy interaction.

Example