Skip to content

Explore options to improve future upgradeability/maintainability #166

@jordanschalm

Description

@jordanschalm

Context

Cadence has limited support for contract upgrades. We will need to upgrade FlowALP in the future. The goal of this issue is to identify changes we can make to the current contract to improve our ability to upgrade and maintain the contract in the future.

Merged

In Review

Ideas

  • Replace the map of position locks with a resource representing mutation rights that can be retrieved from an InternalPosition reference. The reference would only give away one such resource at a time. Need to work out the details, but I'd like to replace the "provides safety if all callsites use the lock map properly" property with a guarantee provided by the InternalPosition type that is easier to reason about.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions