CronCats / treasury

Autonomous treasury for enabling DAOs or any type of near account to manage multiple funds to accrue interest across different vehicles
MIT License
4 stars 2 forks source link

Treasury: Auto Staking #5

Closed TrevorJTClarke closed 2 years ago

TrevorJTClarke commented 2 years ago

Based on DAO usage of metapool, the following should be possible with Treasury:

  1. Configure preference for liquid & staked allocations. Example: [30,70] where 30 is the percent amount of liquid balance to retain.
  2. Configure preferences should allow balance types, to support FT or NFT for when those types of assets can be staked/harvested.
  3. Owner should be the only entity allowed to change these settings.
  4. Default should be [20, 80]

Here's a potential flow:

  1. A new treasury configures auto-staking to be off by default, with default ratio of [20, 80]
  2. Owner decides to turn auto-stake on, by changing a config boolean
  3. Owner calls "start staking", which creates a task within croncat to evaluate treasury balances X amount of time, and stake/unstake based on the configured ratio.
  4. Owner can pause or adjust the stake ratio at any time, each evaluation time will respond to these changes.
TrevorJTClarke commented 2 years ago

NOTE: Implemented auto-staking has a better defined threshold config