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

Fix decimals #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix decimals #4

wants to merge 2 commits into from

Conversation

pmckelvy1
Copy link

initially tried to add a 2e18 mint in the constructor of GenericStakedAppreciatingVault.
this caused a rather large headache in fixing the tests.
opted instead to just leave out the constructor mint, and add a comment to the README.
lmk if anyone sees a serious technical issue with this.


## WARNING

** When deploying GenericStakedAppreciatingVault, make sure to mint some initial dust (at least 1e4), to avoid an inflation attack. **
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify that this is only required for large assets where manipulation is profitable with a 0 decimal offset. The vault internally already uses virtual assets and shares making it not profitable for most assets even with a 0 decimal offset.

(Also, nit, remove the excess bolding and capitalization and use code markers for contract names and symbols)

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.

2 participants