-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vaults v2 #91
Conversation
I think we should write an example looping/leverage strategy to test if V2 can handle it. And one that kicks back rewards to a vault which distributes to the users. Other than that it looks pretty good! |
…folder Move v2 files into src folder
refactor(adapter/aave): use constants and remove unused stuff
refactor: adapter & strats
fix(CurveCompounder): only swap if balance > 0
test(strats/aavev3): add delta for deposit & withdrawal
src/base/BaseVault.sol
Outdated
_decimals = IERC20Metadata(address(asset_)).decimals() + decimalOffset; // Asset decimals + decimal offset to combat inflation attacks | ||
_decimals = | ||
IERC20Metadata(address(vaultConfig.asset_)).decimals() + | ||
decimalOffset; // Asset decimals + decimal offset to combat inflation attacks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the new OZ 4626 implementation we can get rid of the offset no?
src/base/BaseVault.sol
Outdated
|
||
contractName = keccak256( | ||
abi.encodePacked("Popcorn", name(), block.timestamp, "Vault") | ||
abi.encodePacked("VaultCraft", name(), block.timestamp, " Vault") | ||
); | ||
|
||
highWaterMark = 1e9; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be adjusted
No description provided.