Use delegation scopes
When creating a delegation, you can configure a scope to define the delegation's initial authority and help prevent delegation misuse. You can further refine this initial authority by adding caveats to a delegation.
The Delegation Toolkit currently supports three categories of scopes:
Scope type | Description |
---|---|
Spending limit scopes | Restricts the spending of native, ERC-20, and ERC-721 tokens based on defined conditions. |
Function call scope | Restricts the delegation to specific contract methods, contract addresses, or calldata. |
Ownership transfer scope | Restricts the delegation to only allow ownership transfers, specifically the transferOwnership function for a specified contract. |