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
[x] I have run vyper and solidity linting
[x] I have run the tests on my machine
[x] I have followed commitlint guidelines
[x] I have rebased my changes to the latest version of the main branch
Description
Changed fee_manager by accountant.
Vault now handles
total_fees
for gain and loss scenario. Also handlestotal_refunds
by transferring assets to itself astotal_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