Skip to content

Admin Fee Withdrawal #17

@Kaylahray

Description

@Kaylahray

User Story

As an Admin,
I want to withdraw collected fees to the treasury.

Description

Pull fees from the contract.


Files to Create/Edit

contracts/geev-core/src/
└── admin.rs

Functional Requirements

  • Input: Token address.
  • Action: Transfer CollectedFees of that token to Admin.

Suggested Implementation

// IN FUNCTION: withdraw_fees(env, token)

// 1. Admin auth.
// 2. Read 'CollectedFees(token)' amount.
// 3. Transfer that amount to Admin.
// 4. Set 'CollectedFees(token)' to 0.

Acceptance Criteria

  • Resets fee counter.
  • Treasury receives funds.

Submission Guidelines

  • Branch: feat/withdraw-fees

Metadata

Metadata

Assignees

No one assigned

    Labels

    @geevapp/app/wave2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions