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

Cantina #8: gas improvements #10

Merged
merged 4 commits into from
Sep 25, 2024
Merged

Cantina #8: gas improvements #10

merged 4 commits into from
Sep 25, 2024

Conversation

gretzke
Copy link
Collaborator

@gretzke gretzke commented Sep 24, 2024

No description provided.

@gretzke gretzke changed the base branch from main to audit/cantina September 24, 2024 02:07
@gretzke gretzke merged commit f28d67d into audit/cantina Sep 25, 2024
gretzke added a commit that referenced this pull request Sep 29, 2024
* remove unused variable

* Safe transfer funds out of pocket (#8)

* Fix decimal issues (#9)

* pre-compute roles and divisor and remove public functions

* remove old todos

* Cantina #13: Nits (#11)

* remove unused imports

* use relative imports

* remove dead code

* remove redundant line of code

* add a zero check to functions

* add check whether pocket exists

* Cantina #8: gas improvements (#10)

* use calldata instead of memory

* mark assembly block as memory safe

* approve once in initializer

* more nits (#12)

* use calldata instead of memory

* mark assembly block as memory safe

* approve once in initializer

* Add external takeFee function

* Make functions external

* remove deployer dependency

* update interest rate calculation after liquidation

* implement share decimals to mitigate inflation attacks

* add token checklist

* Cantina: Aave fixes (#13)

* add div 0 check to balance of

* use supply instead of deprecated deposit function

* determine overlying token automatically

* consistent balanceOf and totalBalance implementation between base and Aave pocket

* assert that the actual amount withdrawn is the amount requested to withdraw

* check for staleness while minting
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.

1 participant