Changing DApp Allowances

If a user wishes to change an Allowance for a DApp, they may call the changeResolverAllowances function on the Snowflake smart contract with an array of Resolver addresses for whom the allowance is being changed, and an array of uints denoting the corresponding new allowances.

ARGUMENTS

Parameter

Type

Description

resolvers

address[]

Array of addresses of Resolversfor which the allowance is being changed.

withdrawAllowances

uint[]

An array of uints of the new allowance for each corresponding Resolver address.

Note that unlike allowances in the ERC token structure and most allowance patterns for Ethereum smart contracts, in Snowflake it is acceptable for nonzero allowances to be changed, as Resolvers must be vetted onSignup, after which the scope of malicious behavior is already pre-defined.