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

Code4rena deploy #139

Merged
merged 114 commits into from
Jul 16, 2024
Merged

Code4rena deploy #139

merged 114 commits into from
Jul 16, 2024

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    5f9b435 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2fbe578 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    554ed8f View commit details
    Browse the repository at this point in the history
  4. c4-tests (#121)

    aviggiano authored Jul 3, 2024
    Configuration menu
    Copy the full SHA
    2575e9f View commit details
    Browse the repository at this point in the history
  5. Add Spearbit audit

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    e590625 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    04c865c View commit details
    Browse the repository at this point in the history
  7. Remove old code

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    bf49b8b View commit details
    Browse the repository at this point in the history
  8. Add updated scripts

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    ea65c6d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    831233e View commit details
    Browse the repository at this point in the history
  10. c4-006 DoS in market orders due to incorrect params.amount comparison…

    … with dust limit when amount represents cash
    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    dbb4410 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5d91267 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    978f258 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    148e726 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    807880b View commit details
    Browse the repository at this point in the history
  15. Add missing import

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    0666e7e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    b78cbc0 View commit details
    Browse the repository at this point in the history
  17. forge fmt

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    928bea4 View commit details
    Browse the repository at this point in the history
  18. c4-012 getCreditPositionProRataAssignedCollateral can be simplified t…

    …o totalCollateral * credit / totalDebt
    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    3fb7236 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    675bb69 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    65636ba View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    86184b6 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    a870159 View commit details
    Browse the repository at this point in the history
  23. Remove unused error

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    dc1fad6 View commit details
    Browse the repository at this point in the history
  24. c4-016 Documentation fixes

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    5cadd4f View commit details
    Browse the repository at this point in the history
  25. Remove old code

    aviggiano committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    fa055b4 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    c215a6a View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    f90fae4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b3426a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3ba0e3c View commit details
    Browse the repository at this point in the history
  4. Improve docs for swap fee

    aviggiano committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    b9c6973 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8f0a021 View commit details
    Browse the repository at this point in the history
  6. Add base sequencer uptime

    aviggiano committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    ab8f158 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Configuration menu
    Copy the full SHA
    d21f018 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae55c36 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    75d8e52 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5db5078 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fef1eb4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1077044 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    78ba5f2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9868803 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    388f0aa View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3f70f1d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0a085fc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c6f67c4 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f7b945f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f1f692c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    6de9a28 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    34ce900 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    223294c View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    8d928c5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    92ba77b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    ac05f7a View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5bb8df5 View commit details
    Browse the repository at this point in the history
  22. Deploy to sepolia

    aviggiano committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    043b734 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    0597b2a View commit details
    Browse the repository at this point in the history
  24. Minor fix ExpectedErrors

    aviggiano committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    fcf2c76 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    4440e81 View commit details
    Browse the repository at this point in the history
  26. Grant roles

    aviggiano committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    f789da9 View commit details
    Browse the repository at this point in the history
  27. Add Deploy tests back

    aviggiano committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    8c4728c View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    c641488 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    4c921fd View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Add onchain properties

    aviggiano committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    c4111b1 View commit details
    Browse the repository at this point in the history
  2. Fix property_UNDERWATER

    aviggiano committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    24862bb View commit details
    Browse the repository at this point in the history
  3. Update test

    aviggiano committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    dc923a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e62cb1a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    052e712 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    58e64cd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    40d24b2 View commit details
    Browse the repository at this point in the history
  8. Fix property

    aviggiano committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    bf64565 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    0efa457 View commit details
    Browse the repository at this point in the history
  2. Add one more test

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1f61c78 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f08695f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3524e53 View commit details
    Browse the repository at this point in the history
  5. Fix typo

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    01f0697 View commit details
    Browse the repository at this point in the history
  6. Update tests

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e62e820 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e749e70 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    20d87fc View commit details
    Browse the repository at this point in the history
  9. Add base-sepolia

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    0b2366a View commit details
    Browse the repository at this point in the history
  10. Update README

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    bc50f7d View commit details
    Browse the repository at this point in the history
  11. Update deployment scripts

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    6d9a33e View commit details
    Browse the repository at this point in the history
  12. Fix deploy scripts

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1c16b0e View commit details
    Browse the repository at this point in the history
  13. Deploy to Base sepolia

    aviggiano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    5ac5311 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Update getCommitHash

    aviggiano committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    6a06661 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    715c91b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    10832ba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    58d7876 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ed52a5 View commit details
    Browse the repository at this point in the history
  6. Upgrade script

    aviggiano committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    1cc4b03 View commit details
    Browse the repository at this point in the history
  7. Upgrade script

    aviggiano committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    97b6673 View commit details
    Browse the repository at this point in the history
  8. Upgrade script

    aviggiano committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    ba90b0c View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Configuration menu
    Copy the full SHA
    537da1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d411d4 View commit details
    Browse the repository at this point in the history
  3. pure -> view

    aviggiano committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    21708c7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7c66206 View commit details
    Browse the repository at this point in the history
  5. Fix docs

    aviggiano committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    8178fde View commit details
    Browse the repository at this point in the history
  6. Validate WETH

    aviggiano committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    04f4c95 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e92524b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    940211f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d69e05f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    74b64ae View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Update Repay.s.sol script

    aviggiano committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    4afde0c View commit details
    Browse the repository at this point in the history
  2. Fix tests

    aviggiano committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    775fb36 View commit details
    Browse the repository at this point in the history
  3. Add more tests

    aviggiano committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c383bfd View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Fix invariant tests

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    77f9820 View commit details
    Browse the repository at this point in the history
  2. Code4rena Tests/Scripts Updates (#122)

    * c4-001 Wrong decimal conversion in liquidation protocol split (#118)
    
    * c4-002 Wrong crLiquidation cap in overdue liquidation (#119)
    
    * c4-003 Wrong fragmentationFee check in Compensate means it is never charged (#120)
    
    * c4-004 Chainlink heartbeats are different on Base and Ethereum mainnet (#123)
    
    * c4-004 Chainlink heartbeats are different on Base and Ethereum mainnet
    
    * Remove old code
    
    * Add base and mainnet parameters
    
    * Add base sequencer uptime
    
    * c4-005 Users below crOpening cannot withdraw cash (#124)
    
    * c4-006 DoS in market orders due to incorrect params.amount comparison… (#125)
    
    * c4-006 DoS in market orders due to incorrect params.amount comparison with dust limit when amount represents cash
    
    * Remove params.amount > credit comparison
    
    * c4-007 Supply caps can be bypassed due to incorrect balanceOf (#126)
    
    * c4-008 Variable Pool liquidity check should validate balance of aToken, not Pool (#127)
    
    * c4-010 Compensate is prevented if user is underwater (#129)
    
    * c4-010 Compensate is prevented if user is underwater
    
    * Add missing import
    
    * Remove old code
    
    * c4-011 Compensate ignores forSale after credit split (#130)
    
    * c4-012 getCreditPositionProRataAssignedCollateral can be simplified to totalCollateral * credit / totalDebt (#131)
    
    * c4-013 Liquidate does not have deadline protection (#132)
    
    * c4-013 Liquidate does not have deadline protection
    
    * Remove duplicate check
    
    * c4-014 BuyCreditMarket returns incorrect value for liquidity check (#133)
    
    * c4-015 SelfLiquidation check can be simplified (#134)
    
    * c-015 SelfLiquidation check can be simplified
    
    * Remove unused error
    
    * c4-016 Documentation fixes (#135)
    
    * c4-016 Documentation fixes
    
    * Minor documentation/error fixes
    
    * Improve docs for swap fee
    
    * c4-009 Variable Pool liquidity check can be bypassed with a sandwitch attack (#128)
    
    * c4-017 BorrowOffers do not have a maxDueDate (#136)
    
    * c4-017 BorrowOffers do not have a maxDueDate
    
    * Add maxDueDate to LiquidateWithReplacement
    
    * Create validateLimitOrder function
    
    * pure -> view
    
    * c4-018 Wrong fee calculation in SellCreditMarket + exactAmountOut (#137)
    
    * c4-019 Refactor fee calculation in AccountingLibrary.getCashAmountOut (#138)
    
    * c4-019 Refactor fee calculation in AccountingLibrary.getCashAmountOut
    
    * Validate WETH
    
    * Chainlink sequencer feed returns startedAt 0 if down (#140)
    
    * c4-021 Add borrower to RepayStruct to avoid MEV (#141)
    
    * c4-021 Add borrower to RepayStruct to avoid MEV
    
    * Fix typo
    aviggiano authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    d496889 View commit details
    Browse the repository at this point in the history
  3. Update CI

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    6b8b6de View commit details
    Browse the repository at this point in the history
  4. Fix CI test names

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    c3d2308 View commit details
    Browse the repository at this point in the history
  5. Update CI names

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    67d8ad1 View commit details
    Browse the repository at this point in the history
  6. Update CI

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    d3a0338 View commit details
    Browse the repository at this point in the history
  7. Update CI

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    578d4a9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1beba09 View commit details
    Browse the repository at this point in the history
  9. Update foundry.toml

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    51199c1 View commit details
    Browse the repository at this point in the history
  10. Deploy to Base

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    86432cd View commit details
    Browse the repository at this point in the history
  11. Base deployment

    aviggiano committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    0ed16e4 View commit details
    Browse the repository at this point in the history