Skip to content

⚡ Memory-Optimization | Refactor Transient Calculation State to Temporary Storage #590

Description

@Sadeequ

Impact Severity: Medium

Module: stellarflow-contracts/storage/ephemeral.rs

Description

Non-critical state nonces and transient swap path buffers are currently stored in persistent memory, incurring unnecessary ledger rent.

Technical Requirements:

  • Migrate swap route computation buffers to env.storage().temporary()

  • Verify core token balances remain isolated in persistent()

  • Run resource cost profiling to confirm rent reduction per swap execution

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions