yearn / yearn-vaults-v3

GNU Affero General Public License v3.0
97 stars 35 forks source link

feat: replace fee_manager with accountant #89

Closed bufander closed 2 years ago

bufander commented 2 years ago

Description

Changed fee_manager by accountant.

Vault now handles total_fees for gain and loss scenario. Also handles total_refunds by transferring assets to itself as total_idle

Change order of minting fees, gain computation and loss computation, so fees are not minted at a cheaper price. So fees are now minted after gain computation and before loss computation

Fixes #68

Checklist