Skip to content

FLO-20: eliminate per-position capability controller bloat#247

Merged
holyfuchs merged 6 commits intomainfrom
holyfuchs/FLO-20-createPosition-storage-bloat
Mar 16, 2026
Merged

FLO-20: eliminate per-position capability controller bloat#247
holyfuchs merged 6 commits intomainfrom
holyfuchs/FLO-20-createPosition-storage-bloat

Conversation

@holyfuchs
Copy link
Member

Closes: #229

Replace per-position capabilities.storage.issue() calls with a contract-level _borrowPool() that directly borrows the Pool from storage. Position, PositionSink, and PositionSource no longer hold a Capability field — they call the contract function directly — so no new CapabilityController is created per position.

@holyfuchs holyfuchs requested a review from a team as a code owner March 9, 2026 11:33
@holyfuchs holyfuchs force-pushed the holyfuchs/FLO-20-createPosition-storage-bloat branch from 87ad2e1 to a56de6a Compare March 12, 2026 13:14
@holyfuchs
Copy link
Member Author

creation of FlowALPPositionResources.cdc on main required a rewrite

@holyfuchs holyfuchs requested a review from jordanschalm March 12, 2026 13:15
@holyfuchs holyfuchs requested a review from a team March 13, 2026 09:20
@holyfuchs holyfuchs merged commit f907aa1 into main Mar 16, 2026
1 check passed
@holyfuchs holyfuchs deleted the holyfuchs/FLO-20-createPosition-storage-bloat branch March 16, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FLO-20: createPosition() Causes Storage Bloat by Redundantly Issuing Pool Capabilities

2 participants