-
Notifications
You must be signed in to change notification settings - Fork 0
Admin Fee Withdrawal #17
Copy link
Copy link
Open
Labels
@geevapp/app/wave2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2
Description
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
CollectedFeesof 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@geevapp/app/wave2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2