DelegateCall
Lightweight library used to bubble up error messages of a delegatecall from the callee contract to the caller contract. It is mainly based on the OpenZeppelin’s library.
This library contains a unique function wrapping the Solidity native delegatecall, bubbling up revert messages, reading them from memory with assembly code.
https://github.com/morpho-labs/morpho-contracts/blob/main/contracts/compound/libraries/DelegateCall.sol
github.com
DelegateCall source code
Copy link