Skip to content

Fix decimals - #4

Open
pmckelvy1 wants to merge 2 commits into
mainfrom
fix-decimals
Open

Fix decimals#4
pmckelvy1 wants to merge 2 commits into
mainfrom
fix-decimals

Conversation

@pmckelvy1

Copy link
Copy Markdown

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.

Comment thread README.md

## WARNING

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

Copy link
Copy Markdown
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