Major changes
- Make vaults more gas efficient. Some variables will be set to immutable to avoid reading the storage at each interaction with a vault.
- Make the redistribution of rewards more secure and maintainable. After this upgrade, the DAO would no longer need to specify the amount and the recipient to transfer $MORPHO rewards from a vault to the vault rewards distributor 2. The recipient of the rewards will be set, at construction time, to the vault rewards distributor. All $MORPHO tokens held in a vault can be then transferred to the rewards distributor through a public function transferRewards to the recipient. The DAO’s multisig can still trigger the function, but any EOA can also trigger it to accelerate the process.
Deployments
- Compound
SupplyVault
implementation: 0x07b7319aaf04f8a28c74fd5ca3ec01aa4af66069 - Aave
SupplyVault
implementation: 0x86d61e37f68194b55d7590c230077e0f8607f563
What's Changed
- 🧑💻 (#160) Add virtual keyword by @MerlinEgalite in #190
- Move deployer interface by @MerlinEgalite in #188
- Remove safecast by @MerlinEgalite in #189
- Fix/test transfer tokens by @pakim249CAL in #192
- Optimize rewards index by @pakim249CAL in #184
- Remove useless comment by @pakim249CAL in #197
- Simplify rewards index computation by @pakim249CAL in #196
- Remove redundant zero address check by @pakim249CAL in #183
- Refactor/aave v3 loop opti by @pakim249CAL in #182
- Make rewards manager immutable in aave v3 vault by @pakim249CAL in #181
- Refactor init by @MerlinEgalite in #187
- Refactor interfaces by @MerlinEgalite in #199
- Rework reward accruing by @pakim249CAL in #191
- Test/on behalf by @pakim249CAL in #186
- Fix rewards aave v3 by @MerlinEgalite in #158
- Fix/style and comments 163 by @pakim249CAL in #198
- Fix foundry-storage-check interface bug by @Rubilmax in #208
- Added formerly breaking tests for deposit/mint/withdraw/redeem by @Rubilmax in #138
- Refactor transfer scope by @MerlinEgalite in #201
- Perf: Refactor/v3 ray by @MathisGD in #213
- Remove harvest vaults by @MerlinEgalite in #218
- 🔥 Remove unsiwap package by @MerlinEgalite in #219
- Refactor/v3 ray by @pakim249CAL in #212
- Make the CI fail when a test fails by @Rubilmax in #221
- Update storage layout snapshots by @Rubilmax in #222
- Fix aave-v3 supply vault tests by @Rubilmax in #223
- Bumped CI by @Rubilmax in #225
- Fix/aave v3 vault transfer accrue by @pakim249CAL in #210
- Fix/outdated indexes by @pakim249CAL in #224
- Update foundry-gas-diff by @Rubilmax in #229
- Remove claimRewards double call by @Rubilmax in #228
- Set valid SPDX license identifier by @Rubilmax in #235
- refactor: recipient as immutable by @MerlinEgalite in #233
- Make transfer rewards public by @MerlinEgalite in #232
- Update licenses by @MerlinEgalite in #238
- Resolve conflicts upgrade 0 by @MerlinEgalite in #237
- Refactor pessimistic audit by @MerlinEgalite in #240
- Docs: remove useless comment by @MathisGD in #242
- Fix live tests by @MerlinEgalite in #243
- docs: update readme with new implementation addresses by @julien-devatom in #244
- Upgrade 0 by @MerlinEgalite in #193
- Add pessimistic audit by @MerlinEgalite in #245
New Contributors
- @MathisGD made their first contribution in #213
- @julien-devatom made their first contribution in #244
Full Changelog: v1.3.4...v1.4.0