https://github.com/morpho-org/morpho-blue-bundlers
Morpho Blue Bundlers
https://github.com/morpho-org/morpho-blue-bundlers
defi lending morpho periphery protocol
Last synced: 8 months ago
JSON representation
Morpho Blue Bundlers
- Host: GitHub
- URL: https://github.com/morpho-org/morpho-blue-bundlers
- Owner: morpho-org
- License: other
- Created: 2023-05-22T13:26:44.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-26T10:05:08.000Z (over 1 year ago)
- Last Synced: 2025-03-23T20:37:28.414Z (about 1 year ago)
- Topics: defi, lending, morpho, periphery, protocol
- Language: Solidity
- Homepage: https://morpho.org
- Size: 7.32 MB
- Stars: 21
- Watchers: 5
- Forks: 13
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: audits/2023-11-14-morpho-blue-bundlers-cantina-managed-review.pdf
Awesome Lists containing this project
README
# Morpho Blue Bundlers
[Morpho Blue](https://github.com/morpho-org/morpho-blue) is a new lending primitive that offers better rates, high capital efficiency and extended flexibility to lenders & borrowers. `morpho-blue-bundlers` hosts the logic that builds alongside the core protocol like MetaMorpho and bundlers.
## Structure

Each Bundler is a domain-specific abstract layer of contract that implements some functions that can be bundled in a single call by EOAs to a single contract. They all inherit from [`BaseBundler`](./src/BaseBundler.sol) that enables bundling multiple function calls into a single `multicall(bytes[] calldata data)` call to the end bundler contract. Each chain-specific bundler is available under their chain-specific folder (e.g. [`ethereum`](./src/ethereum/)).
Some chain-specific domains are also scoped to the chain-specific folder, because they are not expected to be used on any other chain (e.g. DAI and its specific `permit` function is only available on Ethereum - see [`EthereumPermitBundler`](./src/ethereum/EthereumPermitBundler.sol)).
User-end bundlers are provided in each chain-specific folder, instantiating all the intermediary domain-specific bundlers and associated parameters (such as chain-specific protocol addresses, e.g. [`EthereumBundlerV2`](./src/ethereum/EthereumBundlerV2.sol)).
## Development
Install dependencies with `yarn`.
Run tests with `yarn test --chain ` (chainid can be 1 or 8453).
Note that the `EthereumBundlerV2` has been deployed with 80 000 optimizer runs.
To compile contracts with the same configuration, run `FOUNDRY_PROFILE=ethereumBundlerV2 forge b`.
## Audits
All audits are stored in the [audits](./audits/)' folder.
## License
Bundlers are licensed under `GPL-2.0-or-later`, see [`LICENSE`](./LICENSE).
## Links
- [Deployments](https://docs.morpho.org/bundlers/addresses/#bundlers)
- [SDK](https://github.com/morpho-org/sdks/tree/main/packages/bundler-sdk-ethers)