authorizeFlowOperatorWithFullControlfunction and pass in the
superTokenyou're granting the authorization on. However, in this example we will show you how to grant specific permission levels using the
operator- the address of the operator you're giving the allowance to
permissions- the permission type you're granting the operator. Note, you will pass in a number from 1-7 to represent the permission type. You can find more information on this here. This table will help you determine the permission type:
flowRateAllowance- the total allowance you're providing the operator.
superToken- the token on which the allowance is being provided
revokeFlowOperatorWithFullControlfunction. To revoke permissions from the flow operator, you'll need to pass in the:
flowOperator- the operator with the flowAllowance
superToken- the token on which the permissions were granted
NOTE: updating a flow with an increased flow rate or creating flows will decrement the operator's flow rate allowance, but updating a flow with a decreased flow rate or deleting a flow will not. You can find more information on how flow rate allowances work here.