Skip to content

feat: calculate and store base reserve during initialization (#27)#64

Open
Ummi-001 wants to merge 1 commit into
bridgelet-org:mainfrom
Ummi-001:feat/calculate-base-reserve
Open

feat: calculate and store base reserve during initialization (#27)#64
Ummi-001 wants to merge 1 commit into
bridgelet-org:mainfrom
Ummi-001:feat/calculate-base-reserve

Conversation

@Ummi-001
Copy link
Copy Markdown
Contributor

Closes #27

Overview

This PR addresses issue #27 by updating the contract initialization workflow to dynamically calculate and store the required base reserve using proper Stellar ledger requirements, rather than utilizing static fallback placeholders.

Changes Made

  • Updated the initialize function inside contracts/ephemeral_account/src/lib.rs.
  • Defined STELLAR_BASE_RESERVE_STROOPS constant valued at 5,000,000 stroops (0.5 XLM).
  • Implemented dynamic base reserve multiplication representing core entry tracking requirements to fulfill ledger constraints.
  • Persisted the calculated total safely in stroops via the storage::init_reserve_tracking interface.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@Ummi-001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Calculate and Store Base Reserve During Initialization

1 participant