Skip to content

Implement setWithdrawalQueue #39

@MickdeGraaf

Description

@MickdeGraaf

User Story

  • As an <audience/user>: PieAdmin
  • I want to <action/task>: Set the withdrawal queue
  • so that <outcome/goal/benefit>: So the least profitable or less expensive ones to exit are withdrawn from first when a user withdraws.

Type

  • Enhancement
  • Maintenance
  • Refactor

Description

When a user does a large withdraw, the PieVault will often have to withdraw from strategies. The order in which this happens is determined by the withdrawal queue. Each underlying asset has its own withdrawalQueue.

Definition of Done

  • Implement setWithdrawalQueue
  • Unit test setWithdrawalQueue

Part of #30
See LibStrategyBasketStorage.sol on yearn-strategy-support for the storage structure
See the Yearn implementation as reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions