Skip to content

Optimize Storage Keys in Soroban Smart Contracts #620

Description

@Fatimasanusi

The current fractional token contracts use long String-based storage keys, which increases gas costs for read/write operations on the Stellar network. We should optimize these to use Enums or shorter Symbol types.

Acceptance Criteria:

  • Refactor contract storage keys from String to symbol_short! or enum DataKey where applicable.
  • Update the contract SDK and tests to reflect the new storage key structures.
  • Run gas profiling to measure the reduction in storage fees.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions