Organization Logo

Upgrade Fee Collector

Backend
Beginner
Ethereum

Organization

Idle DAO

Deadline

4 months ago

Status

DRAFT

3000 USDC
Paid in IDLE

INSTRUCTIONS

The current FeeCollector is a non-upgradable smart contract that uses Uniswap V2 to swap fee tokens into WETH. It also has a hard dependency on a smart treasury from balancer V1. In addition to this no logs are emitted for important transactions in this contract.

The new FeeCollector should support the following features:

  1. Upgradable - The FeeCollector should use a proxy contract to be able to support new features in the future

  2. Support multiple DEX's, liquidity from uniswap V2 will eventually shrink with V3 released, the new feeCollector should be able to support swapping with different DEX's. Similar to curve burn mechanism: https://curve.readthedocs.io/dao-fees.html#the-burn-process

  3. It would be useful also to have a method that the owner/a whitelisted party can call to start the cooldown of stkAAVE and unstake them if needed so they can then be swapped if needed.

  4. It should support unstaking of tranche tokens get as fees

ABOUT IDLE DAO

Idle bundles crypto-assets (ETH, WBTC, and stablecoins) into tokenized baskets that are programmed to automatically rebalance funds according to different management strategies.