Permissions

Resource locks can implement constraints that sit anywhere along the spectrum of permissions.

Permissions could be stateful or stateless. For example:

  • Scoped session keys: stateless permission for an app like a Telegram bot to take arbitrary actions on subsets of a user’s token balances

  • Circuit breaker: stateful permission to sell all open positions if there is no account activity or market volatility above a predefined threshold

  • Limit order: stateful permission to post an order if a pair reaches a certain price on a DEX

  • MFA: stateless permission to post a transaction if two valid authentication methods are provided

Last updated