generated from defi-wonderland/solidity-foundry-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.26; | ||
|
||
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; | ||
import {AaveV3ERC4626, ERC20, IPool, IRewardsController} from "yield-daddy/aave-v3/AaveV3ERC4626.sol"; | ||
|
||
contract AaveV3Vault is AaveV3ERC4626, Ownable { | ||
constructor( | ||
ERC20 asset_, | ||
ERC20 aToken_, | ||
IPool lendingPool_, | ||
address rewardRecipient_, | ||
IRewardsController rewardsController_, | ||
address newOwner | ||
) AaveV3ERC4626(asset_, aToken_, lendingPool_, rewardRecipient_, rewardsController_) Ownable(newOwner) {} | ||
|
||
function deposit(uint256 assets, address receiver) public override onlyOwner returns (uint256 shares) { | ||
return super.deposit(assets, receiver); | ||
} | ||
|
||
function mint(uint256 shares, address receiver) public override onlyOwner returns (uint256 assets) { | ||
return super.mint(shares, receiver); | ||
} | ||
|
||
function withdraw( | ||
uint256 assets, | ||
address receiver, | ||
address owner_ | ||
) public override onlyOwner returns (uint256 shares) { | ||
return super.withdraw(assets, receiver, owner_); | ||
} | ||
|
||
function redeem(uint256 shares, address receiver, address owner_) public override onlyOwner returns (uint256 assets) { | ||
return super.redeem(shares, receiver, owner_); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters