Skip to content

Build allowance approval flow for delegating key transfers to staking contract #955

Description

@Chucks1093

Summary

Implement the allowance approval UI that prompts users to approve the staking contract to transfer their keys before staking, using the on-chain approve mechanism.

Scope

  • Check existing allowance before staking flow begins
  • Approval step inserted in staking flow when allowance is insufficient
  • Approval transaction submitted and confirmed before stake proceeds
  • Approved state cached to avoid re-approval on subsequent stakes
  • Clear explanation of what the approval grants shown to user

Acceptance Criteria

  • Allowance checked before staking flow proceeds
  • Approval step shown only when allowance is insufficient
  • Approval transaction confirmed before stake submission
  • Cached approval bypasses approval step on subsequent stakes for same session
  • Explanation text clearly describes what the approval grants

ETA

12 hours

Activity

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

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