Currently all services that increase/decrease balance/fee amount in the InstanceStore use an indirect call via ComponentService to methods like increaseBundleBalance or decreaseBundleBalance. This indirection increases gas costs and can also be confusing.
We should replace this indirection with direct calls to InstanceStore from the service. Therfore we need to duplicate the increaseBalance, decreaseBalance, increaseFees, decreaseFees for all component type as well as bundle/distributor. (duplication is required to handle authz).
Currently all services that increase/decrease balance/fee amount in the
InstanceStoreuse an indirect call viaComponentServiceto methods likeincreaseBundleBalanceordecreaseBundleBalance. This indirection increases gas costs and can also be confusing.We should replace this indirection with direct calls to
InstanceStorefrom the service. Therfore we need to duplicate theincreaseBalance,decreaseBalance,increaseFees,decreaseFeesfor all component type as well as bundle/distributor. (duplication is required to handle authz).