good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
contracts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
interest protocol
contracts
Commits
381fe6a1
Commit
381fe6a1
authored
Jan 24, 2024
by
Jake Barber
Browse files
Options
Downloads
Patches
Plain Diff
updated comments
parent
50db7306
No related branches found
No related tags found
No related merge requests found
Pipeline
#53912
failed
Jan 24, 2024
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contracts/lending/vault/VaultBPT.sol
+2
-15
2 additions, 15 deletions
contracts/lending/vault/VaultBPT.sol
with
2 additions
and
15 deletions
contracts/lending/vault/VaultBPT.sol
+
2
−
15
View file @
381fe6a1
...
@@ -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()));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment