Skip to content

Commit

Permalink
review: add morpho info
Browse files Browse the repository at this point in the history
  • Loading branch information
mkflow27 committed Dec 6, 2024
1 parent 4e3b751 commit 5a10378
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 8 deletions.
34 changes: 27 additions & 7 deletions rate-providers/MorphoERC4626RateProviders.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Rate Provider: `ERC4626RateProvider`

## Details
- Reviewed by:
- Reviewed by: @mkflow27
- Checked by:
- Deployed at:
- Steakhouse USDC [ethereum:0xc81D60E39e065146c6dE186fFC5B39e4CA2189Cf](https://etherscan.io/address/0xc81D60E39e065146c6dE186fFC5B39e4CA2189Cf#code)
Expand Down Expand Up @@ -30,10 +30,30 @@ If none of these is checked, then this might be a pretty great Rate Provider! If
### Administrative Privileges
- [ ] The Rate Provider is upgradeable (e.g., via a proxy architecture or an `onlyOwner` function that updates the price source address).

- [x] Some other portion of the price pipeline is upgradeable (e.g., the token itself, an oracle, or some piece of a larger system that tracks the price).



- [x] Some other portion of the price pipeline is upgradeable (e.g., the token itself, an oracle, or some piece of a larger system that tracks the price).
Part of the rate computation relies of `totalAssets` being calculated. This function iterates over a list of Ids. This list of Ids can be changed by the Allocator role. The potential impact has not been thoroughly investigated. There are however protections in place to protect against invalid changes such as
- `revert ErrorsLib.DuplicateMarket(id);`
- `revert ErrorsLib.InvalidMarketRemovalNonZeroCap(id);`
- `revert ErrorsLib.PendingCap(id);`
- `ErrorsLib.InvalidMarketRemovalNonZeroSupply(id);`
- `ErrorsLib.InvalidMarketRemovalTimelockNotElapsed(id);`

#### Steakhouse USDC
For [Steakhouse USDC](https://etherscan.io/address/0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB) some allocators are eoas.
- 0x0D61C8b6CA9669A36F351De3AE335e9689dd9C5b
- 0xcC771952fdE840E30C6802734e5ad20479c2959f
- 0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D
- 0xfeed46c11F57B7126a773EeC6ae9cA7aE1C03C9a
#### Steakhouse USDT
For [Steakhouse USDT](https://etherscan.io/address/0xbEef047a543E45807105E51A8BBEFCc5950fcfBa) some allocators are eoas.
- 0xfeed46c11F57B7126a773EeC6ae9cA7aE1C03C9a
- 0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D
- 0x29d4CDFee8F533af8529A9e1517b580E022874f7
#### Gauntlet Prime wETH
For [Gauntlet Prime wETH](https://etherscan.io/address/0x2371e134e3455e0593363cBF89d3b6cf53740618) some allocators are eoas.
- 0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D
- 0x959d73CB5a1C1ad7EbCE3eC93FAD3b2f9a25432E

### Oracles
- [ ] Price data is provided by an off-chain source (e.g., a Chainlink oracle, a multisig, or a network of nodes).

Expand All @@ -43,6 +63,6 @@ If none of these is checked, then this might be a pretty great Rate Provider! If
- [ ] The Rate Provider is susceptible to donation attacks.

## Conclusion
**Summary judgment: **
**Summary judgment: USABLE**

The Rate Providers should work well with Balancer pools. The underlying contracts have been audited and been in production for an extended period of time.
The Rate Providers should work well with Balancer pools. The underlying contracts have been audited and been in production for an extended period of time.
42 changes: 42 additions & 0 deletions rate-providers/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,48 @@
"warnings": [""],
"factory": "0x467665D4ae90e7A99c9C9AF785791058426d6eA0",
"upgradeableComponents": []
},
"0xc81D60E39e065146c6dE186fFC5B39e4CA2189Cf": {
"asset": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
"name": "ERC4626RateProvider",
"summary": "safe",
"review": "./MorphoERC4626RateProviders.md",
"warnings": ["eoaUpgradeable"],
"factory": "0xFC541f8d8c5e907E236C8931F0Df9F58e0C259Ec",
"upgradeableComponents": [
{
"entrypoint": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
"implementationReviewed": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB"
}
]
},
"0x50A72232c5370321aa78036BaDe8e9d5eB89cbAF": {
"asset": "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
"name": "ERC4626RateProvider",
"summary": "safe",
"review": "./MorphoERC4626RateProviders.md",
"warnings": ["eoaUpgradeable"],
"factory": "0xFC541f8d8c5e907E236C8931F0Df9F58e0C259Ec",
"upgradeableComponents": [
{
"entrypoint": "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
"implementationReviewed": "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa"
}
]
},
"0x0A25a2C62e3bA90F1e6F08666862df50cdAAB1F5": {
"asset": "0x2371e134e3455e0593363cBF89d3b6cf53740618",
"name": "ERC4626RateProvider",
"summary": "safe",
"review": "./MorphoERC4626RateProviders.md",
"warnings": ["eoaUpgradeable"],
"factory": "0xFC541f8d8c5e907E236C8931F0Df9F58e0C259Ec",
"upgradeableComponents": [
{
"entrypoint": "0x2371e134e3455e0593363cBF89d3b6cf53740618",
"implementationReviewed": "0x2371e134e3455e0593363cBF89d3b6cf53740618"
}
]
}
},
"fantom": {
Expand Down
2 changes: 1 addition & 1 deletion rate-providers/statATokenv2RateProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Details
- Reviewed by:
- Checked by:
- Checked by: @mkflow27
- Deployed at:
- wETH [ethereum:0xBe7bE04807762Bc433911dD927fD54a385Fa91d6](https://etherscan.io/address/0xBe7bE04807762Bc433911dD927fD54a385Fa91d6#code)
- USDC [ethereum:0x8f4E8439b970363648421C692dd897Fb9c0Bd1D9](https://etherscan.io/address/0x8f4E8439b970363648421C692dd897Fb9c0Bd1D9#code)
Expand Down

0 comments on commit 5a10378

Please sign in to comment.