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 last total assets #201

Merged
merged 4 commits into from
Oct 18, 2023
Merged

Conversation

MerlinEgalite
Copy link
Contributor

Fixes #198

@MerlinEgalite MerlinEgalite requested review from a team, Rubilmax and Jean-Grimal and removed request for a team October 13, 2023 10:30
@Rubilmax
Copy link
Contributor

I'm not convinced it's the best solution, there may be something to do with return values of Morpho.supply

@MerlinEgalite
Copy link
Contributor Author

I'm not convinced it's the best solution, there may be something to do with return values of Morpho.supply

I tried to think about it but Morpho.supply does return the value with the rounding unfortunately.

Another option is to query the balance after each deposit but then it requires to use our own _deposit function...

@MerlinEgalite MerlinEgalite linked an issue Oct 13, 2023 that may be closed by this pull request
src/MetaMorpho.sol Show resolved Hide resolved
@MerlinEgalite MerlinEgalite merged commit 6927a41 into test/conversion-rate Oct 18, 2023
6 checks passed
@MerlinEgalite MerlinEgalite deleted the fix/last-total-assets branch October 18, 2023 08:58
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.

To investigate: after a deposit lastTotalAssets != totalAssets
3 participants