Skip to content

Smart Contract: Implement Emergency Withdrawal Function #390

Description

@Abdulazeem-code

Description: Allow the contract Admin to withdraw stranded tokens from the contract balance in case of routing failures or a bug.

Acceptance Criteria:

  • New function emergency_withdraw(env, token, amount).
  • Restricted strictly to the Admin address (admin.require_auth()).

Branching Instructions: Create branch feat/contract-emergency-withdraw from main.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programsecuritysmart-contractIssues related to the Soroban smart contract

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions