Authorization

Overview

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.

Use case

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.

Methods

StepContractMethod

User set authorization for another address to manage its positions

setAuthorization

Query authorization

isOperatorAuthorized

Last updated