NOTE: the new ACL features are live on testnets only as of May 6, 2022
authorizeFlowOperatorWithFullControl
function and pass in the flowOperator
and superToken
you're granting the authorization on. However, in this example we will show you how to grant specific permission levels using the updateFlowOperatorPermissions
function.updateFlowOperatorPermissions
function:operator
- the address of the operator you're giving the allowance topermissions
- 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 providedrevokeFlowOperatorWithFullControl
function. To revoke permissions from the flow operator, you'll need to pass in the:flowOperator
- the operator with the flowAllowancesuperToken
- the token on which the permissions were grantedNOTE: 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.