Skip to content

#39 Issue 39: [Optimization] Dynamic Storage TTL Bumping #65

@JerryIdoko

Description

@JerryIdoko

Description:
Constantly bumping the storage Time-To-Live (TTL) on every read wastes gas. Optimize the contract to only bump storage if it is within 30 days of expiration.
Acceptance Criteria:

[ ] Check env.storage().instance().max_ttl().

[ ] Implement a helper function bump_if_needed().
Labels: optimization, gas

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