Skip to content

Remove indirection via ComponentService when increasing/decreasing balance/fees in InstanceStore #486

Description

@doerfli

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).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions