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: getExpectedAmount gas savings (C4 #62) #45

Merged

Conversation

deluca-mike
Copy link
Contributor

@deluca-mike deluca-mike commented Dec 12, 2021

Description

Addresses code-423n4/2021-12-maple-findings#62

Integrations Checklist

  • Have any function signatures changed? If yes, outline below.
  • Have any features changed or been added? If yes, outline below.
  • Have any events changed or been added? If yes, outline below.
  • Has all documentation been updated?

Changelog

Function Signature Changes

Features

Events

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #4304: [c4] Issue #62 - colalteralAssetDecimals gas optimization.

@deluca-mike deluca-mike force-pushed the sc-4307-c4-issue-66-handleclaimofrepossessed-gas branch from a711ab3 to 4a4c954 Compare December 12, 2021 10:28
@deluca-mike deluca-mike force-pushed the sc-4304-c4-issue-62-colalteralassetdecimals-gas-optimization branch from 78e34d4 to 0f8bfc7 Compare December 12, 2021 10:29
Base automatically changed from sc-4307-c4-issue-66-handleclaimofrepossessed-gas to main December 12, 2021 23:32
@lucas-manuel lucas-manuel changed the title fix: getExpectedAmount gas savings (c4 #62) fix: getExpectedAmount gas savings (C4 #62) Dec 12, 2021
@lucas-manuel lucas-manuel merged commit d666579 into main Dec 12, 2021
@lucas-manuel lucas-manuel deleted the sc-4304-c4-issue-62-colalteralassetdecimals-gas-optimization branch December 12, 2021 23:36
lucas-manuel added a commit that referenced this pull request Dec 12, 2021
* fix: Input validation for `setAllowedSlippage` (c4 #45)

* fix: use underscore syntax for 10k

Co-authored-by: Lucas Manuel <lucas@maple.finance>
lucas-manuel pushed a commit that referenced this pull request Dec 13, 2021
* chore: Remove TODO on pullFunds (c4 #10)

* chore: strict 0.8.7 (c4 #23)

* fix: Add named returns where missing (c4 #25)

* fix: `handleClaimOfRepossessed` gas optimization (c4 #66)

* fix: `getExpectedAmount` gas savings (c4 #62)

* fix: Use `!= 0` instead of `> 0` (c4 #24)

* fix: Input validation for `setAllowedSlippage` (c4 #45)

* refactor: POst-C4 Audit Cleanup

- natspec, spacing, and alignment
- factory `mapleGlobals_` check now handled by mpf
- `success_` -> `success` for non-param variable
- reordered `DebtLockerStorage`
- take latest dependencies
- `acceptNewTerms` gas savings
- `claim`, `_handleClaimOfRepossessed`, and `_handleClaim` gas savings
- `_isLiquidationActive` gas savings
- `triggerDefault` gas savings

Co-authored-by: Joao Gabriel Carvalho <jg@jgcarv.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants