MIP-4 Batch yield collection to reduce SAVE gas costs


Currently the yield produced from lending markets Compound/Aave is collected upon each deposit into SAVE. This is an expensive operation and is performed more frequently than is necessary. This proposal provides a more passive method of collecting the yield, reducing SAVE deposit gas costs by >= 50% while delivering a smoother result.

This upgrade is something that could be bundled nicely to mip-3


There are 2 primary sources of income from mAsset - SWAP fees, and Lending market income. This MIP will make 2 fundamental changes to the way system income is collected and distributed. The first of which is how the SWAP fees are tracked over time, and the second of which is the frequency of lending market interest is collected. The lending market interest will be collected intermittently and streamed second by second to SAVE.