Submitted by leastwood
The FeePoolV0.sol contract accrues fees upon the liquidation of undercollaterised positions. These fees are split between treasury and vMochi contracts. However, when distributeMochi() is called to distribute mochi tokens to veCRV holders, both mochiShare and treasuryShare is flushed from the contract when there are still usdm tokens in the contract.
Consider the following scenario:
FeePoolV0.sol L94
Consider removing the line in FeePoolV0.sol (mentioned above), where treasuryShare is flushed.
ryuheimat (Mochi) confirmed
