This documentation describes the smart contracts and functions supported by the Morpho plugin.
Smart contracts covered by the plugin shall be described here:
Network |
Smart Contract |
Address |
Ethereum |
Public Allocator |
0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D |
Base |
Public Allocator |
0xA090dD1a701408Df1d4d0B85b716c87565f90467 |
Ethereum |
MorphoBlue |
0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb |
Base |
MorphoBlue |
0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb |
Ethereum |
MetaMorpho Factory* |
0xA9c3D3a366466Fa809d1Ae982Fb2c46E5fC41101 |
Base |
MetaMorpho Factory* |
0xA9c3D3a366466Fa809d1Ae982Fb2c46E5fC41101 |
*Plugin will support methods for the vaults created by the factory.
For the smart contracts implemented, the functions covered by the plugin shall be described here:
Function |
Selector |
Displayed Parameters |
reallocateTo |
0x833947fd |
|
repay |
0x20b76e81 |
uint256 assets | uint256 shares | address onBehalf | |
supplyCollateral |
0x238d6579 |
uint256 assets | address onBehalf | |
borrow |
0x50d8cd4b |
uint256 assets | uint256 shares | address onBehalf | |
withdraw |
0x5c2bea49 |
uint256 assets | uint256 shares | address onBehalf | |
setAuthorizationWithSig |
0x8069218f |
address authorizer | address authorized | bool isAuthorized | |
withdrawCollateral |
0x8720316d |
uint256 assets | address onBehalf | |
createMarket |
0x8c1358a2 |
address loan_token | address collateral_token | |
supply |
0xa99aad89 |
uint256 assets | uint256 shares | address onBehalf | |
flashLoan |
0xe0232b42 |
address token | uint256 assets | |
setAuthorization |
0xeecea000 |
address authorized | bool isAuthorized |
|
deposit |
0x6e553f65 |
uint256 assets | address receiver |
|
mint |
0x94bf804d |
uint256 shares | address receiver |
|
redeem |
0xba087652 |
uint256 shares | address receiver | address owner |
|
withdraw |
0xb460af94 |
uint256 assets | address receiver | address owner |
|
approve |
0x095ea7b3 |
uint256 shares | address spender |
|