Skip to content

Commit

Permalink
Merge pull request #314 from Instadapp/morpho-v3-update
Browse files Browse the repository at this point in the history
Update morpho v3
  • Loading branch information
shriyatyagii authored Sep 20, 2023
2 parents 232d92c + d87279c commit 9dc60af
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 196 deletions.
29 changes: 2 additions & 27 deletions contracts/mainnet/connectors/morpho-aave-v3/events.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ contract Events {
uint256 setId
);

event LogDepositOnBehalf(
address tokenAddress,
uint256 amount,
address onBehalf,
uint256 getId,
uint256 setId
);

event LogDepositOnBehalfWithMaxIterations(
address tokenAddress,
uint256 amount,
Expand Down Expand Up @@ -57,19 +49,9 @@ contract Events {
uint256 setId
);

event LogBorrowOnBehalf(
address tokenAddress,
uint256 amount,
address onBehalf,
address receiver,
uint256 getId,
uint256 setId
);

event LogBorrowWithMaxIterations(
address tokenAddress,
uint256 amount,
address receiver,
uint256 maxIteration,
uint256 getId,
uint256 setId
Expand All @@ -92,11 +74,10 @@ contract Events {
uint256 setId
);

event LogWithdrawOnBehalf(
event LogWithdrawWithMaxIterations(
address tokenAddress,
uint256 amount,
address onBehalf,
address receiver,
uint256 maxIteration,
uint256 getId,
uint256 setId
);
Expand All @@ -114,7 +95,6 @@ contract Events {
event LogWithdrawCollateral(
address tokenAddress,
uint256 amount,
address receiver,
uint256 getId,
uint256 setId
);
Expand Down Expand Up @@ -144,9 +124,4 @@ contract Events {
);

event LogApproveManger(address manger, bool isAllowed);

event LogUpdateMaxIterations(
uint256 oldIterations,
uint256 newIterations
);
}
2 changes: 1 addition & 1 deletion contracts/mainnet/connectors/morpho-aave-v3/helpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract contract Helpers is Stores, Basic {
IMorphoCore public constant MORPHO_AAVE_V3 =
IMorphoCore(0x33333aea097c193e66081E930c33020272b33333);

uint256 public max_iteration = 4;
uint256 public constant MAX_ITERATIONS = 4;

function _performEthToWethConversion(
address _tokenAddress,
Expand Down
Loading

0 comments on commit 9dc60af

Please sign in to comment.