good morning!!!!

Skip to content
Snippets Groups Projects
Commit 381fe6a1 authored by Jake Barber's avatar Jake Barber
Browse files

updated comments

parent 50db7306
No related branches found
No related tags found
No related merge requests found
Pipeline #53912 failed
...@@ -89,18 +89,6 @@ contract VaultBPT is Context { ...@@ -89,18 +89,6 @@ contract VaultBPT is Context {
/// all assets stake all or nothing /// all assets stake all or nothing
mapping(address => bool) public isStaked; mapping(address => bool) public isStaked;
//mapping(address => stakeType) public typeOfStake;
//mapping(address => address) public lp_rewardtoken;
/**
enum stakeType {
AURABAL,
AURA_LP,
BAL_LP
}
*/
/// @notice checks if _msgSender is the controller of the voting vault /// @notice checks if _msgSender is the controller of the voting vault
modifier onlyVotingVaultController() { modifier onlyVotingVaultController() {
require(_msgSender() == address(_votingController), "sender not VotingVaultController"); require(_msgSender() == address(_votingController), "sender not VotingVaultController");
...@@ -144,8 +132,8 @@ contract VaultBPT is Context { ...@@ -144,8 +132,8 @@ contract VaultBPT is Context {
} }
/** auraBal && aura LP token staking */ /** auraBal && aura LP token staking */
///@param lp underlying lp ///@param lp underlying BPT
///@param lp is NOT the gauge token, but the actual LP ///@param lp is NOT the gauge token, but the actual BPT
///@notice unfortunately, there is no simple way to stake directly from the gauge token to the Aura rewards token ///@notice unfortunately, there is no simple way to stake directly from the gauge token to the Aura rewards token
function stakeAuraLP(IERC20 lp) external returns (bool) { function stakeAuraLP(IERC20 lp) external returns (bool) {
require(isStaked[address(lp)] == false, "already staked"); require(isStaked[address(lp)] == false, "already staked");
...@@ -226,7 +214,6 @@ contract VaultBPT is Context { ...@@ -226,7 +214,6 @@ contract VaultBPT is Context {
} }
/// @notice manual unstake /// @notice manual unstake
/// todo needed?
function unstakeAuraLP(address lp) external onlyMinter { function unstakeAuraLP(address lp) external onlyMinter {
_unstakeAuraLP(lp, (lp == _votingController._auraBal())); _unstakeAuraLP(lp, (lp == _votingController._auraBal()));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment