Skip to content
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

Closed
wants to merge 138 commits into from
Closed

Vaults v2 #91

wants to merge 138 commits into from

Conversation

RedVeil
Copy link
Contributor

@RedVeil RedVeil commented Aug 17, 2023

No description provided.

@RedVeil
Copy link
Contributor Author

RedVeil commented Oct 13, 2023

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!

_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
Copy link
Contributor Author

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?


contractName = keccak256(
abi.encodePacked("Popcorn", name(), block.timestamp, "Vault")
abi.encodePacked("VaultCraft", name(), block.timestamp, " Vault")
);

highWaterMark = 1e9;
Copy link
Contributor Author

@RedVeil RedVeil Nov 24, 2023

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

@RedVeil RedVeil closed this Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants