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

External Liquidity Providers #13

Merged
merged 207 commits into from
Oct 17, 2024
Merged

External Liquidity Providers #13

merged 207 commits into from
Oct 17, 2024

Commits on Aug 23, 2024

  1. WIP MultiLP

    naddison36 committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    00164c6 View commit details
    Browse the repository at this point in the history
  2. forge install: openzeppelin-contracts

    v5.0.2
    naddison36 committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    72282eb View commit details
    Browse the repository at this point in the history
  3. WIP

    naddison36 committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    081cad1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9732e85 View commit details
    Browse the repository at this point in the history
  5. WIP redeem queue

    naddison36 committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    80170bd View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Configuration menu
    Copy the full SHA
    9c481ee View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. PeggedARM now support one sided and double sided trades

    Made the AbstractARM more generic
    Improved OETH ARM tests
    naddison36 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    0a987f7 View commit details
    Browse the repository at this point in the history
  2. Added Lido ARM

    naddison36 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    a39504c View commit details
    Browse the repository at this point in the history
  3. Added Lido ARM fork tests

    naddison36 committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    8bf3d33 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    ccf5986 View commit details
    Browse the repository at this point in the history
  2. Updated diagrams

    naddison36 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    550610c View commit details
    Browse the repository at this point in the history
  3. Added convertToShares and convertToAssets to MultiLP

    Added donation attack protection to MultiLP
    naddison36 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    680e7ec View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8da3061 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ce04236 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    04f547c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b9a767 View commit details
    Browse the repository at this point in the history
  3. Generated latest diagrams

    naddison36 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f4e7b89 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    5d65c44 View commit details
    Browse the repository at this point in the history
  2. Added AccessControlLP

    Made it clear the deposit and withdraw hooks are post function
    naddison36 committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    d117f2b View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Added AccessControlShares

    naddison36 committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    849eecc View commit details
    Browse the repository at this point in the history
  2. Split performance fee logic into PerformanceFee contract

    Moved calc of perf fee to LP deposit and withdraw instead of swaps
    naddison36 committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    4c54c48 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    6c49b61 View commit details
    Browse the repository at this point in the history
  2. Natspec updates

    naddison36 committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    6db1bb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4dc44d0 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Configuration menu
    Copy the full SHA
    3a19ed8 View commit details
    Browse the repository at this point in the history
  2. Changed timestamp that was storing the request time in WithdrawalRequ…

    …est to claimTimestamp
    
    Fixed compilation of contracts using PerformanceFee
    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    c44d4de View commit details
    Browse the repository at this point in the history
  3. Refactor PerformanceFee

    Renamed liquidityToken to liquidityAsset
    Renamed _assetsInWithdrawalQueue to _externalWithdrawQueue
    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    fd2bc10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    09e0283 View commit details
    Browse the repository at this point in the history
  5. Fixed OETH ARM fork tests

    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    4b59dc0 View commit details
    Browse the repository at this point in the history
  6. Refactor MultiPriceARM

    Started LidoMultiPriceMultiLpARM fork test
    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    9d003dd View commit details
    Browse the repository at this point in the history
  7. Updated contract diagrams

    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    d00856b View commit details
    Browse the repository at this point in the history
  8. Fixes to MultiPriceARM

    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    32ff7fa View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3755870 View commit details
    Browse the repository at this point in the history
  10. Added whitelist controls to LidoFixedPriceMultiLpARM

    Started LidoFixedPriceMultiLpARM fork tests
    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    77e08ec View commit details
    Browse the repository at this point in the history
  11. Updated Natspec

    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    4487f13 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bbb36e1 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b348276 View commit details
    Browse the repository at this point in the history
  14. Fix Napspec

    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    74de0bb View commit details
    Browse the repository at this point in the history
  15. changed setLiquidityProviderCaps to bulk set lp caps

    Removed increasing the LP's cap on withdrawals
    naddison36 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    07d0242 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    8bf0599 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    dfb26f4 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Refactor test structure (#16)

    * refactor test structur.
    
    * feat: adjust tests for liquidityProviderController.
    
    * forge fmt
    
    * feat: add asOwner modifier
    
    * bump forge version.
    
    * feat: use random address.
    clement-ux authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    d61a3d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c6a6b9 View commit details
    Browse the repository at this point in the history
  3. Switch from gitmodules to Soldeer. (#17)

    * chore: switch from gitmodules to soldeer.
    
    * chore: update Makefile.
    
    * try to fix CI
    
    * chore: use rpc_endpoints for forking.
    clement-ux authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    b607e6f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9b7788c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    25b2302 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b7e7d24 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9d95819 View commit details
    Browse the repository at this point in the history
  8. Updated README

    naddison36 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    cda3c0e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    991e10d View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Add test for Swaps in LidoFixedPriceMultiLpARM.sol. (#18)

    * fix: rename `lidoARM` in `lidoFixedPriceMulltiLpARM` for tests.
    
    * feat: add badToken.
    
    * [WIP] test: add tests for `SwapExactTokensForTokens`.
    
    * test: finalize `swapExactTokensForTokens()`.
    
    * chore: set fuzz runs in config.
    
    * fix: transfer to address dead steth when dealing 0.
    
    * test: add tests for `swapTokensForExactTokens()`.
    
    * fix: adjust `swapExactTokensForTokens()` tests.
    clement-ux authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    74c36a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12dbafe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    19a5439 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2bc1c2e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2371dfb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9a31216 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    73dacff View commit details
    Browse the repository at this point in the history
  8. Updated deploy script

    naddison36 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    d57fe5d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5acf34b View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Merge latest tests (#19)

    * [WIP] test: add reverting test for `deposit()`.
    
    * fix: update `lastTotalAssets` before checking caps.
    
    * [WIP] test: add more test for deposit.
    
    * fix: cleanup tests.
    
    * test: add failing test.
    
    * test: add failling test.
    
    ---------
    
    Co-authored-by: Clément <clemmoller@gmail.com>
    naddison36 and clement-ux authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    0b6e950 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a9f1f6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9de6f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ff7b1c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2de950a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    568c974 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aa61f9c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7ce329e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    541c50e View commit details
    Browse the repository at this point in the history
  10. Updated deposit assertions

    naddison36 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    ca3af64 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bc0403e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c7b676f View commit details
    Browse the repository at this point in the history
  13. Updated deploy script

    naddison36 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    7966860 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a56e90c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    6810952 View commit details
    Browse the repository at this point in the history
  16. generated contract docs

    naddison36 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c5d23b5 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Add more tests. (#21)

    * chore: add coverage files to gitignore.
    
    * test: add tests for claimRedeem and TotalAssets.
    
    * test: add more tests for setters.
    
    * forge fmt
    clement-ux authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    4c33338 View commit details
    Browse the repository at this point in the history
  2. Deposit now adds to the withdrawal queue

    Added test of deposit with outstanding withdrawal request
    naddison36 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    40af28f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f1c9ee4 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Add more tests. (#22)

    * test: add more test for `totalAssets()`.
    
    * feat: add modifiers to simulate gain or loss assets in ARM.
    
    * fix: use boolean instead of int256.
    
    * fix: use Foundry stdError lib for expectRevert.
    
    * test: add setter test for LCP.
    
    * chore: fix lcov name in .gitignore
    
    * test: add tests for collectFees().
    clement-ux authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    5130d6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0997d5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    79eaf5c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9b98110 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    202915f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9d255ff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4c58acd View commit details
    Browse the repository at this point in the history
  8. Ensure swaps don't use withdrawal queue liquidity (#23)

    * Ensure swaps don't use WETH reserved for the withdrawal queue
    
    * Fund the withdrawal queue when WETH is swapped into the ARM
    
    * More refactoring of MultiLP
    deposit and swap not longer add to the withdrawal queue. Its only need on claim
    
    * Refactor withdrawal queue storage to optimize swap gas usage
    
    * Generated latest contract diagrams
    
    * Removed _postClaimHook as it's no longer needed
    
    * Added more Natspec
    
    * Add more Natspec
    
    * Changed the _postWithdrawHook to _postRequestRedeemHook
    
    * Generated latest contract diagrams
    
    * Minor change to constructor param
    naddison36 authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ad1445d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5387d79 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Bring in the latest tests (#24)

    * test: add test for requestStETHWithdrawamForETH.
    
    * chore: use last version of forge for `mockFunction()`.
    
    * feat: create a fake Lido Withdraw to mock it when testing.
    
    * [WIP] test: add test for `claimStETHWithdrawalForWETH()`.
    
    * fix: tests for claimWithdrawals.
    
    * fix: typo on variable name.
    
    ---------
    
    Co-authored-by: Clément <clemmoller@gmail.com>
    naddison36 and clement-ux authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    59ebf11 View commit details
    Browse the repository at this point in the history
  2. Flatten the LidoARM inheritance (#25)

    * Flatten LidoARM's inheritance
    
    * Renamed LidoARM contract
    
    * Changed to LidoARM name in tests
    
    * Generated new contract diagrams
    
    * Minor changes to the LidoARM
    
    * Renamed lidoARM variable in tests
    
    * Updated deposit test comments
    
    * Updated setPrice tests
    
    * Small change to setPrices test
    naddison36 authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    6a8652b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    070f9ff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    133f5e0 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    61f83d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39933ec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4db8f36 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4703a90 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8568f6d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bd33b38 View commit details
    Browse the repository at this point in the history
  7. More setter tests

    naddison36 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    7b33788 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bccfc27 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fa71e97 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2f1f7ee View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a243cbd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    624578d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1653927 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Added parseDeployedAddress

    naddison36 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    28482b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7abcc1d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3940168 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c4c0c86 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Fixed setting of token0 and token1 in LidoARM (#27)

    * Restore deploy script so fork section uses prank
    
    * Fix hardhat postDeploy task
    
    * Added HH task to snap Lido ARM
    
    * Add Hardhat tasks snapLido, swapLido, submitLido
    Renamed the depositLido task
    
    * Added Deposit event
    LidoARM was setting token0 and token1 the wrong way around
    Used PRICE_SCALE in setPrices
    Improved smoke tests
    
    * Generated latest LidoARM contract diagram
    naddison36 authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    35915a6 View commit details
    Browse the repository at this point in the history
  2. Handler Tenderly testnet (#26)

    * fix: handler better tenderly testnet
    
    * fix: use -unlocked keywork to broadcast & impersonate
    
    * feat: add initial deployer test address.
    
    * fix: give enough gas to deployer for Tenderly test.
    
    ---------
    
    Co-authored-by: Nicholas Addison <nick@addisonbrown.com.au>
    clement-ux and naddison36 authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    8ceb827 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8420809 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    39086af View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d53a75c View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    9f999fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2741660 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    745bf57 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5545239 View commit details
    Browse the repository at this point in the history
  5. Renamed total assets to available assets (#28)

    * Renamed _rawTotalAssets to _availableAssets
    Renamed lastTotalAssets to lastAvailableAssets
    
    * Generated new LidoARM diagrams
    
    * Update Natspec
    naddison36 authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    47fae01 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c9f25f4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bf449c2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f3358f2 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    1112965 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef6f7e6 View commit details
    Browse the repository at this point in the history
  3. Only accrued fees when they are collected (#30)

    * Only accrue fees when the fees are collected
    
    * packed fee and lastAvailableAssets back into a single slot
    naddison36 authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    19b55d7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ff40876 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    87ef2f5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    533e21e View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. Configuration menu
    Copy the full SHA
    67259f5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    725fb99 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    75eb931 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b94977f View commit details
    Browse the repository at this point in the history
  5. Natspec update

    naddison36 committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    5d68e72 View commit details
    Browse the repository at this point in the history
  6. Return 0 on early exit

    naddison36 committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    7d8c1f1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2dc0084 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    45b3bf0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    80caba0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5d93f21 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2c342f0 View commit details
    Browse the repository at this point in the history
  12. Clean up _availableAssets

    naddison36 committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    d89607f View commit details
    Browse the repository at this point in the history
  13. cleanup claimRedeem

    naddison36 committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    df8a1f9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    608ccc4 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    faa8495 View commit details
    Browse the repository at this point in the history
  16. Updated contract diagram

    naddison36 committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    5f0b18c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    8d62dfb View commit details
    Browse the repository at this point in the history
  18. simplified _transferAsset

    naddison36 committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    0ac44df View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2f522b9 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    541e298 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    123646f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    9d70f65 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. Configuration menu
    Copy the full SHA
    61e95ab View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Configuration menu
    Copy the full SHA
    89f7146 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de02502 View commit details
    Browse the repository at this point in the history
  3. Add Zapper for LidoARM (#31)

    * feat: create Zapper contract.
    
    * test: add tests for Zapper.
    
    * test: add extra test for rescue tokens.
    
    * Added assets (ETH) to Zapper's Zap event
    
    * Added ZapperLidoARM to deploy script
    
    * Updated deploy script for Testnet
    
    ---------
    
    Co-authored-by: Nicholas Addison <nick@addisonbrown.com.au>
    clement-ux and naddison36 authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    d3a1236 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a1070a9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ebdf3e2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    72415d1 View commit details
    Browse the repository at this point in the history
  7. Update Natspec

    naddison36 committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    4fbb80c View commit details
    Browse the repository at this point in the history
  8. Updated contract diagrams

    naddison36 committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    5ce2a03 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Configuration menu
    Copy the full SHA
    2e7f294 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b339fc5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    322ec2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    db0b95a View commit details
    Browse the repository at this point in the history
  5. totalAssets returns MIN_TOTAL_SUPPLY if fees > available assets

    setPrice enforcement of crossPrice also applies to Owner to ensure no asset losses
    remove old Price cross check as that's replaced by the crossPrice check
    naddison36 committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    fecb2c0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c88e741 View commit details
    Browse the repository at this point in the history
  7. Updated Natspec

    naddison36 committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    711ba46 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    66c0bbf View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4f63104 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    59c2701 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3a3e4a1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    450524d View commit details
    Browse the repository at this point in the history
  13. Natspec updates

    naddison36 committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    6b991c0 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Add Zap compliant with Liquidity Provider Cap (#32)

    * feat: add zap to deposit.
    
    * Updated Natspec
    
    ---------
    
    Co-authored-by: Nicholas Addison <nick@addisonbrown.com.au>
    clement-ux and naddison36 authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    299be9d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7200138 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eea9445 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    90c543b View commit details
    Browse the repository at this point in the history
  5. Natspec update

    naddison36 committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    8b814a8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2a547b4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3191670 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    730b8dc View commit details
    Browse the repository at this point in the history
  9. depositLido now supports depositing ETH using the Zapper

    Added setZapper Hardhat task
    naddison36 committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    3d48ae2 View commit details
    Browse the repository at this point in the history
  10. fix deploy script

    naddison36 committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    c6c29fb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cf916aa View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1e80d46 View commit details
    Browse the repository at this point in the history
  13. Renamed withdrawalQueue to lidoWithdrawalQueue so its not confused wi…

    …th the ARM withdrawal queue
    naddison36 committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    c8467af View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7aa4009 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    11eb8e3 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    be9ad00 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. Change Zap integration in ARM. (#33)

    * fix: remove zap restricted method..
    
    * style: change liquidity provider param name.
    
    * fix: change state then write call.
    
    * fix: state change then transfer token.
    
    * fix: use `fees` instead of `fee` when collecting fees.
    
    * fix: move up `nextWithdrawalIndex` increase.
    
    * fix: avoid code duplication.
    
    * fix: pack variable action (read & write).
    clement-ux authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    36a3132 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    e58a322 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bd8511 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6bdca99 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5c30a4c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ec44d07 View commit details
    Browse the repository at this point in the history
  6. Clearer setPrices comments

    Fixed comment typos
    naddison36 committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    9257f50 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ce9cf60 View commit details
    Browse the repository at this point in the history
  8. Pre launch changes (#34)

    * Set buy and sell prices in initialize function
    setCrossPrice also validates buy and sell prices against the new cross price
    
    * fix: use `newCrossPrice` instead of `crossPrice`.
    
    * fix: use `<=` instead of `<` for `setCrossPrice`.
    
    * test: add reverting test for `setCrossPrice`.
    
    * fix: revert commit `a7947f3`.
    
    * fix: move `setCrossPrice` test to new file.
    
    * test: add more test for `setCrossPrice`.
    
    * feat: allow anyone to call claimLidoWithdrawals.
    
    * fix: adjust failing test
    
    * fix: remove testing stuff.
    
    ---------
    
    Co-authored-by: Clément <clemmoller@gmail.com>
    naddison36 and clement-ux authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    18b96c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Updated Lido ARM's token symbol

    initial performance fee set to 20%
    initial total assets cap set to 400 ether
    naddison36 committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    1ad9655 View commit details
    Browse the repository at this point in the history
  2. Swap rounding (#35)

    * Increased rounding in swapTokensForExactTokens to cover 1-2 wei lost with stETH transfers
    Added test_SwapTokensForExactTokens_Steth_Transfer_Truncated test
    Added test modifiers disableCaps, setPrices and setArmBalances
    
    * Updated fuzz tests for SwapTokensForExactTokens
    
    * Added to SwapExactTokensForTokens fuzz tests
    
    * Added workaround to swapExactTokensForTokens fuzz test
    
    * fix: adjust test structure.
    
    * fix: initialize `accountCapEnabled` to false.
    
    * fix: adjust lastTotalAsset check after swap.
    
    ---------
    
    Co-authored-by: Clément <clemmoller@gmail.com>
    naddison36 and clement-ux authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    6427782 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    894ed9e View commit details
    Browse the repository at this point in the history
  2. Added new Treasury address

    naddison36 committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    6b923cb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    77321c0 View commit details
    Browse the repository at this point in the history
  4. Invariant testing campaign (#29)

    * chore: add solmate.
    
    * feat: add mock for stETH.
    
    * feat: add mock for Lido Withdraw.
    
    * fix: cleanup variables
    
    * feat: create shared contract for invariant.
    
    * [WIP] feat: add handler logic.
    
    * feat: add more users.
    
    * [WIP] feat: add distribution handler.
    
    * chore: add invariant config
    
    * fix: address null user bug.
    
    * feat: add LP Handler.
    
    * [WIP]: feat: swapHandler.
    
    * feat: add swapTokensForExactTokens to handler.
    
    * fix: adjust handler  weight.
    
    * fix: set default verbosity to 3.
    
    * fix: adjust console log
    
    * feat: add Owner handler.
    
    * fix: account withdraw queue in available liquidity.
    
    * fix: adjust failing tx.
    
    * fix: use vm to send ETH instead of .call.
    
    * feat: add Lido Liquidity Manager Handler.
    
    * feat: check preview return corerct amount.
    
    * fix: use correct price
    
    * fix: adjust new availableTotalAssets
    
    * chore: use --fail-fast for test
    
    * [WIP] feat: add first invariants.
    
    * [WIP] feat: add more invariants.
    
    * [WIP] feat: adjust handler and add more invariants.
    
    * [WIP] feat: add invariant for lido liquidity manager.
    
    * feat: add donation handler.
    
    * test: add new concrete scenario test.
    
    * test: fix CI.
    
    * try to fix CI.
    
    * test[invariant]: ensure enough liquiidty before claiming fees.
    
    * chore: add --show-progress for `make test`
    
    * test[invariant]: adjust `withdrawsClaimable` removal.
    
    * fix: use aproxEq instead of Eq due to rounding error
    
    * chore: remove --show-progress
    
    * test[invariant]: only request when there is enough liquidity
    
    * test[invariant]: add more invariant.
    
    * fix: remove wrong invariant.
    
    * fix: adjust with latest update.
    
    * test: adjust with lastest update.
    
    * test[invariant]: use owner to set price.
    
    * chore: add --show-progress for tests.
    
    * fix: use new claimDelay.
    
    * docs: adjust comments.
    
    * test[invariant]: add setCrossPrice to handlers.
    
    * test[invariant]: adjust test.
    
    * forge fmt
    
    * feat: add stats for invariants.
    
    * chore: ignore warning in Proxy.sol.
    
    * fix: adjust with new variable name.
    
    * test[invariant]: adjust swap handler with latest update.
    
    * fix: import console.
    
    * fix: adjust claimResquest for invariant.
    
    * test[invariant]: WIP.
    
    * test[invariant]: add LLM to invariant.
    
    * test[invariant]: adjust owner handler.
    
    * perf: optimize calls for logs.
    
    * perf: adjust % for call distribution.
    
    * feat: add skip %.
    
    * test[invariant]: adjust last invariant.
    
    * fix: log stat bool.
    
    * test[invariant]: up only shares values invariant.
    
    * fix: adjust type uint120 to uint128
    
    * fix: prevetn setCrossPrice to revert.
    
    * feat: remove all user funds after invariants.
    
    * test[invariant]: add approx up-only invariant [WIP]
    
    * test[invariant]: add invariant for approx up-only.
    
    * docs: adjust natspec and description.
    
    * forge fmt
    
    * fix: increase error tolerance.
    clement-ux authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    5883df2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4839ca6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d0bd97a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eaabf90 View commit details
    Browse the repository at this point in the history
  8. Fix contract verification & update Makefile (#37)

    * fix: remove etherscan setting from config.
    
    * chore: update forge version.
    
    * chore: exclude invariant from classic test.
    clement-ux authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    fa3be77 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    f330e03 View commit details
    Browse the repository at this point in the history