Skip to content

Commit

Permalink
Add payable to aaveSupply function
Browse files Browse the repository at this point in the history
  • Loading branch information
EridianAlpha committed Jun 17, 2024
1 parent 51fe0c0 commit 0ea8097
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/AavePM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,12 @@ contract AavePM is
}

/// @notice // TODO: Add comment
function aaveSupplyFromContractBalance() public onlyRole(MANAGER_ROLE) returns (uint256 suppliedCollateral) {
function aaveSupplyFromContractBalance()
public
payable
onlyRole(MANAGER_ROLE)
returns (uint256 suppliedCollateral)
{
suppliedCollateral = abi.decode(
delegateCallHelper(
"aaveFunctionsModule",
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IAavePM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface IAavePM {
function rebalance() external returns (uint256 repaymentAmountUSDC);
function reinvest() external returns (uint256 reinvestedDebt);
function deleverage() external;
function aaveSupplyFromContractBalance() external returns (uint256 suppliedCollateral);
function aaveSupplyFromContractBalance() external payable returns (uint256 suppliedCollateral);
function aaveRepayUSDCFromContractBalance() external;

/// TODO: Move to different heading
Expand Down

0 comments on commit 0ea8097

Please sign in to comment.