Authorization
Last updated
Last updated
V2 protocol has an authorization system enabling users to grant any address the permission to manager their position. This can be done by calling setAuthorization
.
This authorization mechnism unlocks the following use cases (not exhaustive):
Batching: By setting authorization for a contract to manage their positions, EOAs can batch transactions.
Granular management: Users can grant specific addresses the permission to manage their position. This can be used to implement granular management systems, such as a DAO managing a user's positions.
Automated leverage/deleverage: Users can grant specific contracts with specific logic the permission to leverage or deleverage their position depending on market conditions.
User set authorization for another address to manage its positions
setAuthorization
Query authorization
isOperatorAuthorized