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

[ChainSecurity 5.9] Least invasive version of updated interest indices for balances #302

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

jflatow
Copy link
Contributor

@jflatow jflatow commented Apr 13, 2022

This moves the ERC-20 balance functions (totalSupply, balanceOf) so they can use updated interest indices, as well as borrowBalanceOf. We keep baseBalanceOf using the cached indices since that would require deeper changes to the presentValue function and all its call sites.

Currently breaking 2 accrue tests, and we should add a few to cover changes.

@jflatow jflatow added the chainsecurity PRs and issues related to ChainSecurity audit label Apr 13, 2022
contracts/Comet.sol Outdated Show resolved Hide resolved
@scott-silver
Copy link
Contributor

I think this is ready to merge now; I'm going to remove baseBalanceOf in a separate PR (it is going to involve changing a number of tests)

@jflatow
Copy link
Contributor Author

jflatow commented Apr 13, 2022

I can't approve since I created but 👍

@kevincheng96 kevincheng96 changed the title Least invasive version of updated interest indices for balances [ChainSecurity 5.9] Least invasive version of updated interest indices for balances Apr 13, 2022
Copy link
Contributor

@kevincheng96 kevincheng96 left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@jflatow
Copy link
Contributor Author

jflatow commented Apr 14, 2022

I think this is ready to merge now; I'm going to remove baseBalanceOf in a separate PR (it is going to involve changing a number of tests)

Sounds good, just making a note here that we should remember to link that one before merging this one so we don't forget

@scott-silver
Copy link
Contributor

@jflatow delete baseBalanceOf PR: #311

@scott-silver scott-silver merged commit e1d3777 into main Apr 20, 2022
@jflatow jflatow deleted the jflatow/accrue branch May 18, 2022 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chainsecurity PRs and issues related to ChainSecurity audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants