AavePM
- +Inherits: IAavePM, FunctionChecks, FlashLoan, Initializable, AccessControlEnumerableUpgradeable, UUPSUpgradeable
Author: @@ -471,7 +471,9 @@
_dele
delegateCallHelper
Delegate call helper function for the manager to call any function.
The public function is used to delegate calls to other contracts.
-Caller must have MANAGER_ROLE
.
+Caller must have MANAGER_ROLE
.
+As the manager can only use identifiers already set in the contract,
+it cannot call a contract that is not set (e.g. a malicious contract).
function delegateCallHelper(string memory _targetIdentifier, bytes memory _data)
public
onlyRole(MANAGER_ROLE)
diff --git a/src/FlashLoan.sol/contract.FlashLoan.html b/src/FlashLoan.sol/contract.FlashLoan.html
index 837ca4e..2a15e80 100644
--- a/src/FlashLoan.sol/contract.FlashLoan.html
+++ b/src/FlashLoan.sol/contract.FlashLoan.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
FlashLoan
-
+
Author:
EridianAlpha
This contract contains the functions for AavePM to execute a flash loan to repay debt and withdraw collateral.
diff --git a/src/FunctionChecks.sol/contract.FunctionChecks.html b/src/FunctionChecks.sol/contract.FunctionChecks.html
index fd9d7ea..501fac2 100644
--- a/src/FunctionChecks.sol/contract.FunctionChecks.html
+++ b/src/FunctionChecks.sol/contract.FunctionChecks.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
FunctionChecks
-
+
Author:
EridianAlpha
This contract contains the functions used inside AavePM modifiers.
diff --git a/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html b/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html
index b0ecbdb..efbfdfa 100644
--- a/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html
+++ b/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IAaveFunctionsModule
-
+
This interface defines the essential structures and functions for the AaveFunctionsModule contract.
Functions
VERSION
diff --git a/src/interfaces/IAavePM.sol/interface.IAavePM.html b/src/interfaces/IAavePM.sol/interface.IAavePM.html
index ac5dfb5..b9ed8ec 100644
--- a/src/interfaces/IAavePM.sol/interface.IAavePM.html
+++ b/src/interfaces/IAavePM.sol/interface.IAavePM.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IAavePM
-
+
This interface defines the essential structures and functions for the AavePM contract.
Functions
initialize
diff --git a/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html b/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html
index ccb2adb..a7dfce9 100644
--- a/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html
+++ b/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IBorrowAndWithdrawUSDCModule
-
+
This interface defines the essential structures and functions for the BorrowAndWithdrawUSDCModule contract.
Functions
VERSION
diff --git a/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html b/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html
index 8c873b0..a8ed334 100644
--- a/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html
+++ b/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IERC20Extended
-
+
Inherits:
IERC20
This interface extends the ERC20 interface with the decimals function.
diff --git a/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html b/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html
index 5aff774..6d5fd77 100644
--- a/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html
+++ b/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IRebalanceModule
-
+
This interface defines the essential structures and functions for the RebalanceModule contract.
Functions
VERSION
diff --git a/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html b/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html
index 60193c9..4e2451d 100644
--- a/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html
+++ b/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IReinvestModule
-
+
This interface defines the essential structures and functions for the ReinvestModule contract.
Functions
VERSION
diff --git a/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html b/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html
index 1f40286..bd84567 100644
--- a/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html
+++ b/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
ITokenSwapsModule
-
+
This interface defines the essential structures and functions for the TokenSwapsModule contract.
Functions
VERSION
diff --git a/src/interfaces/IWETH9.sol/interface.IWETH9.html b/src/interfaces/IWETH9.sol/interface.IWETH9.html
index 6aa6f96..0155e75 100644
--- a/src/interfaces/IWETH9.sol/interface.IWETH9.html
+++ b/src/interfaces/IWETH9.sol/interface.IWETH9.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IWETH9
-
+
This interface enables the wrapping and unwrapping of ETH to WETH.
Functions
deposit
diff --git a/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html b/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html
index 28bb7b8..cf4b72e 100644
--- a/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html
+++ b/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
AaveFunctionsModule
-
+
Inherits:
IAaveFunctionsModule
Author:
diff --git a/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html b/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html
index 6818d01..289fee0 100644
--- a/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html
+++ b/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
BorrowAndWithdrawUSDCModule
-
+
Inherits:
IBorrowAndWithdrawUSDCModule
Author:
diff --git a/src/modules/RebalanceModule.sol/contract.RebalanceModule.html b/src/modules/RebalanceModule.sol/contract.RebalanceModule.html
index 9861fbc..e919602 100644
--- a/src/modules/RebalanceModule.sol/contract.RebalanceModule.html
+++ b/src/modules/RebalanceModule.sol/contract.RebalanceModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
RebalanceModule
-
+
Inherits:
IRebalanceModule
Author:
diff --git a/src/modules/ReinvestModule.sol/contract.ReinvestModule.html b/src/modules/ReinvestModule.sol/contract.ReinvestModule.html
index ee60446..a59cc8a 100644
--- a/src/modules/ReinvestModule.sol/contract.ReinvestModule.html
+++ b/src/modules/ReinvestModule.sol/contract.ReinvestModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
ReinvestModule
-
+
Inherits:
IReinvestModule
Author:
diff --git a/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html b/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html
index cbe1374..cafd76a 100644
--- a/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html
+++ b/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
TokenSwapsModule
-
+
Inherits:
ITokenSwapsModule
Author:
MANAGER_ROLE
.function delegateCallHelper(string memory _targetIdentifier, bytes memory _data)
public
onlyRole(MANAGER_ROLE)
diff --git a/src/FlashLoan.sol/contract.FlashLoan.html b/src/FlashLoan.sol/contract.FlashLoan.html
index 837ca4e..2a15e80 100644
--- a/src/FlashLoan.sol/contract.FlashLoan.html
+++ b/src/FlashLoan.sol/contract.FlashLoan.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
FlashLoan
-
+
Author:
EridianAlpha
This contract contains the functions for AavePM to execute a flash loan to repay debt and withdraw collateral.
diff --git a/src/FunctionChecks.sol/contract.FunctionChecks.html b/src/FunctionChecks.sol/contract.FunctionChecks.html
index fd9d7ea..501fac2 100644
--- a/src/FunctionChecks.sol/contract.FunctionChecks.html
+++ b/src/FunctionChecks.sol/contract.FunctionChecks.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
FunctionChecks
-
+
Author:
EridianAlpha
This contract contains the functions used inside AavePM modifiers.
diff --git a/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html b/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html
index b0ecbdb..efbfdfa 100644
--- a/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html
+++ b/src/interfaces/IAaveFunctionsModule.sol/interface.IAaveFunctionsModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IAaveFunctionsModule
-
+
This interface defines the essential structures and functions for the AaveFunctionsModule contract.
Functions
VERSION
diff --git a/src/interfaces/IAavePM.sol/interface.IAavePM.html b/src/interfaces/IAavePM.sol/interface.IAavePM.html
index ac5dfb5..b9ed8ec 100644
--- a/src/interfaces/IAavePM.sol/interface.IAavePM.html
+++ b/src/interfaces/IAavePM.sol/interface.IAavePM.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IAavePM
-
+
This interface defines the essential structures and functions for the AavePM contract.
Functions
initialize
diff --git a/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html b/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html
index ccb2adb..a7dfce9 100644
--- a/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html
+++ b/src/interfaces/IBorrowAndWithdrawUSDCModule.sol/interface.IBorrowAndWithdrawUSDCModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IBorrowAndWithdrawUSDCModule
-
+
This interface defines the essential structures and functions for the BorrowAndWithdrawUSDCModule contract.
Functions
VERSION
diff --git a/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html b/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html
index 8c873b0..a8ed334 100644
--- a/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html
+++ b/src/interfaces/IERC20Extended.sol/interface.IERC20Extended.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IERC20Extended
-
+
Inherits:
IERC20
This interface extends the ERC20 interface with the decimals function.
diff --git a/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html b/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html
index 5aff774..6d5fd77 100644
--- a/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html
+++ b/src/interfaces/IRebalanceModule.sol/interface.IRebalanceModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IRebalanceModule
-
+
This interface defines the essential structures and functions for the RebalanceModule contract.
Functions
VERSION
diff --git a/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html b/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html
index 60193c9..4e2451d 100644
--- a/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html
+++ b/src/interfaces/IReinvestModule.sol/interface.IReinvestModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IReinvestModule
-
+
This interface defines the essential structures and functions for the ReinvestModule contract.
Functions
VERSION
diff --git a/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html b/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html
index 1f40286..bd84567 100644
--- a/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html
+++ b/src/interfaces/ITokenSwapsModule.sol/interface.ITokenSwapsModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
ITokenSwapsModule
-
+
This interface defines the essential structures and functions for the TokenSwapsModule contract.
Functions
VERSION
diff --git a/src/interfaces/IWETH9.sol/interface.IWETH9.html b/src/interfaces/IWETH9.sol/interface.IWETH9.html
index 6aa6f96..0155e75 100644
--- a/src/interfaces/IWETH9.sol/interface.IWETH9.html
+++ b/src/interfaces/IWETH9.sol/interface.IWETH9.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
IWETH9
-
+
This interface enables the wrapping and unwrapping of ETH to WETH.
Functions
deposit
diff --git a/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html b/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html
index 28bb7b8..cf4b72e 100644
--- a/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html
+++ b/src/modules/AaveFunctionsModule.sol/contract.AaveFunctionsModule.html
@@ -178,7 +178,7 @@ AavePM - Aave Position Manager
AaveFunctionsModule
-
+
Inherits:
IAaveFunctionsModule
Author:
diff --git a/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html b/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html
index 6818d01..289fee0 100644
--- a/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html
+++ b/src/modules/BorrowAndWithdrawUSDCModule.sol/contract.BorrowAndWithdrawUSDCModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
BorrowAndWithdrawUSDCModule
-
+
Inherits:
IBorrowAndWithdrawUSDCModule
Author:
diff --git a/src/modules/RebalanceModule.sol/contract.RebalanceModule.html b/src/modules/RebalanceModule.sol/contract.RebalanceModule.html
index 9861fbc..e919602 100644
--- a/src/modules/RebalanceModule.sol/contract.RebalanceModule.html
+++ b/src/modules/RebalanceModule.sol/contract.RebalanceModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
RebalanceModule
-
+
Inherits:
IRebalanceModule
Author:
diff --git a/src/modules/ReinvestModule.sol/contract.ReinvestModule.html b/src/modules/ReinvestModule.sol/contract.ReinvestModule.html
index ee60446..a59cc8a 100644
--- a/src/modules/ReinvestModule.sol/contract.ReinvestModule.html
+++ b/src/modules/ReinvestModule.sol/contract.ReinvestModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
ReinvestModule
-
+
Inherits:
IReinvestModule
Author:
diff --git a/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html b/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html
index cbe1374..cafd76a 100644
--- a/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html
+++ b/src/modules/TokenSwapsModule.sol/contract.TokenSwapsModule.html
@@ -178,7 +178,7 @@
AavePM - Aave Position Manager
TokenSwapsModule
-
+
Inherits:
ITokenSwapsModule
Author: