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

feat: onboard EURC on V3 Base #620

Merged
merged 35 commits into from
Mar 5, 2025

Conversation

Rozengarden
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Feb 20, 2025

🌈Test Results Compiling 359 files with Solc 0.8.22 Solc 0.8.22 finished in 179.21s Compiler run successful! 2025-03-05T06:00:39.249868Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^1.1.17", "diff-snapshots", "./reports/AaveV3Base_AddEURCToBASEAaveV3_20250219_before.json", "./reports/AaveV3Base_AddEURCToBASEAaveV3_20250219_after.json", "-o", "./diffs/AaveV3Base_AddEURCToBASEAaveV3_20250219_before_AaveV3Base_AddEURCToBASEAaveV3_20250219_after.md"] stderr="npm warn exec The following package was not found and will be installed: @bgd-labs/[email protected]\nerror: unrecognized subcommand 'source'\n\n tip: some similar subcommands exist: 'nonce', 'gas-price', 's', 'storage', 'sr', 'src'\n\nUsage: cast [OPTIONS] \n\nFor more information, try '--help'.\nerror: unrecognized subcommand 'source'\n\n tip: some similar subcommands exist: 'nonce', 'gas-price', 's', 'storage', 'sr', 'src'\n\nUsage: cast [OPTIONS] \n\nFor more information, try '--help'.\nnode:internal/errors:984\n const err = new Error(message);\n ^\n\nError: Command failed: cast source --chain 8453 -d /tmp/8453_0x98F409Fc4A42F34AE3c326c7f48ED01ae8cAeC69 0x98F409Fc4A42F34AE3c326c7f48ED01ae8cAeC69 --etherscan-api-key undefined && forge fmt /tmp/8453_0x98F409Fc4A42F34AE3c326c7f48ED01ae8cAeC69\nerror: unrecognized subcommand 'source'\n\n tip: some similar subcommands exist: 'nonce', 'gas-price', 's', 'storage', 'sr', 'src'\n\nUsage: cast [OPTIONS] \n\nFor more information, try '--help'.\n\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at checkExecSyncError (node:child_process:891:11)\n at execSync (node:child_process:963:15)\n at downloadContract (file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:862:3)\n at diffSlot (file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:914:16)\n at file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:937:11\n at Array.map ()\n at diffRawStorage (file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:929:22)\n at diffReports (file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:1084:5) {\n status: 2,\n signal: null,\n output: [\n null,\n Buffer(0) [Uint8Array] [],\n Buffer(200) [Uint8Array] [\n 101, 114, 114, 111, 114, 58, 32, 117, 110, 114, 101, 99,\n 111, 103, 110, 105, 122, 101, 100, 32, 115, 117, 98, 99,\n 111, 109, 109, 97, 110, 100, 32, 39, 115, 111, 117, 114,\n 99, 101, 39, 10, 10, 32, 32, 116, 105, 112, 58, 32,\n 115, 111, 109, 101, 32, 115, 105, 109, 105, 108, 97, 114,\n 32, 115, 117, 98, 99, 111, 109, 109, 97, 110, 100, 115,\n 32, 101, 120, 105, 115, 116, 58, 32, 39, 110, 111, 110,\n 99, 101, 39, 44, 32, 39, 103, 97, 115, 45, 112, 114,\n 105, 99, 101, 39,\n ... 100 more items\n ]\n ],\n pid: 4180,\n stdout: Buffer(0) [Uint8Array] [],\n stderr: Buffer(200) [Uint8Array] [\n 101, 114, 114, 111, 114, 58, 32, 117, 110, 114, 101, 99,\n 111, 103, 110, 105, 122, 101, 100, 32, 115, 117, 98, 99,\n 111, 109, 109, 97, 110, 100, 32, 39, 115, 111, 117, 114,\n 99, 101, 39, 10, 10, 32, 32, 116, 105, 112, 58, 32,\n 115, 111, 109, 101, 32, 115, 105, 109, 105, 108, 97, 114,\n 32, 115, 117, 98, 99, 111, 109, 109, 97, 110, 100, 115,\n 32, 101, 120, 105, 115, 116, 58, 32, 39, 110, 111, 110,\n 99, 101, 39, 44, 32, 39, 103, 97, 115, 45, 112, 114,\n 105, 99, 101, 39,\n ... 100 more items\n ]\n}\n\nNode.js v20.18.3\n"

Ran 3 tests for src/20250219_AaveV3Base_AddEURCToBASEAaveV3/AaveV3Base_AddEURCToBASEAaveV3_20250219.t.sol:AaveV3Base_AddEURCToBASEAaveV3_20250219_Test
[PASS] test_EURCAdmin() (gas: 2117652)
[PASS] test_collectorHasEURCFunds() (gas: 2116586)
[PASS] test_defaultProposalExecution() (gas: 35197140)
Logs:
0x4200000000000000000000000000000000000006
0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22
0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA
0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
0x2416092f143378750bb29b79eD961ab195CcEea5
0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee
0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42
E2E: Collateral WETH, TestAsset WETH
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: WETH, Amount: 4525167935885696921
WITHDRAW: WETH, Amount: 2262583967942848460
WITHDRAW: WETH, Amount: 2262583967942848461
BORROW: WETH, Amount 4525167935885696921
REPAY: WETH, Amount: 4525167935885696921
REPAY: WETH, Amount: 4525167935885696921
BORROW: WETH, Amount 4525167935885696921
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4525167935885696921
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4525167935885696921
FLASH LOAN: WETH, Amount: 4525167935885696921
FLASH LOAN: WETH, Amount: 4525167935885696921
E2E: Collateral WETH, TestAsset cbETH
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: cbETH, Amount: 4136530536562232896
WITHDRAW: cbETH, Amount: 2068265268281116448
WITHDRAW: cbETH, Amount: 2068265268281116449
BORROW: cbETH, Amount 4136530536562232896
REPAY: cbETH, Amount: 4136530536562232896
REPAY: cbETH, Amount: 4136530536562232896
BORROW: cbETH, Amount 4136530536562232896
LIQUIDATE: cbETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4136530536562232896
LIQUIDATE: cbETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4136530536562232896
FLASH LOAN: cbETH, Amount: 4136530536562232896
FLASH LOAN: cbETH, Amount: 4136530536562232896
E2E: Collateral WETH, TestAsset USDbC
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: USDbC, Amount: 10001027605
WITHDRAW: USDbC, Amount: 5000513802
WITHDRAW: USDbC, Amount: 5000513804
BORROW: USDbC, Amount 10001027605
REPAY: USDbC, Amount: 10001027605
REPAY: USDbC, Amount: 10001027605
BORROW: USDbC, Amount 10001027605
LIQUIDATE: USDbC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001027605
LIQUIDATE: USDbC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001027605
FLASH LOAN: USDbC, Amount: 10001027605
FLASH LOAN: USDbC, Amount: 10001027605
E2E: Collateral WETH, TestAsset wstETH
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: wstETH, Amount: 3785727795307281208
WITHDRAW: wstETH, Amount: 1892863897653640604
WITHDRAW: wstETH, Amount: 1892863897653640604
BORROW: wstETH, Amount 3785727795307281208
REPAY: wstETH, Amount: 3785727795307281208
REPAY: wstETH, Amount: 3785727795307281208
BORROW: wstETH, Amount 3785727795307281208
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3785727795307281208
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3785727795307281208
FLASH LOAN: wstETH, Amount: 3785727795307281208
FLASH LOAN: wstETH, Amount: 3785727795307281208
E2E: Collateral WETH, TestAsset USDC
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: USDC, Amount: 10001027605
WITHDRAW: USDC, Amount: 5000513802
WITHDRAW: USDC, Amount: 5000513803
BORROW: USDC, Amount 10001027605
REPAY: USDC, Amount: 10001027605
REPAY: USDC, Amount: 10001027605
BORROW: USDC, Amount 10001027605
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001027606
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001027606
FLASH LOAN: USDC, Amount: 10001027605
FLASH LOAN: USDC, Amount: 10001027605
E2E: Collateral WETH, TestAsset weETH
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: weETH, Amount: 4264268668303622239
WITHDRAW: weETH, Amount: 2132134334151811119
WITHDRAW: weETH, Amount: 2132134334151811119
BORROW: weETH, Amount 4264268668303622239
REPAY: weETH, Amount: 4264268668303622239
REPAY: weETH, Amount: 4264268668303622239
BORROW: weETH, Amount 4264268668303622239
LIQUIDATE: weETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4264268668303622239
LIQUIDATE: weETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4264268668303622239
FLASH LOAN: weETH, Amount: 4264268668303622239
FLASH LOAN: weETH, Amount: 4264268668303622239
E2E: Collateral WETH, TestAsset cbBTC
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: cbBTC, Amount: 11960077
WITHDRAW: cbBTC, Amount: 5980038
WITHDRAW: cbBTC, Amount: 5980039
BORROW: cbBTC, Amount 11960077
REPAY: cbBTC, Amount: 11960077
REPAY: cbBTC, Amount: 11960077
BORROW: cbBTC, Amount 11960077
LIQUIDATE: cbBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 11960077
LIQUIDATE: cbBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 11960077
FLASH LOAN: cbBTC, Amount: 11960077
FLASH LOAN: cbBTC, Amount: 11960077
E2E: Collateral WETH, TestAsset ezETH
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: ezETH, Amount: 4357333184493385180
WITHDRAW: ezETH, Amount: 2178666592246692590
WITHDRAW: ezETH, Amount: 2178666592246692590
FLASH LOAN: ezETH, Amount: 4357333184493385180
E2E: Collateral WETH, TestAsset GHO
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: GHO, Amount: 10000000000000000000000
WITHDRAW: GHO, Amount: 5000000000000000000000
WITHDRAW: GHO, Amount: 5000000000000000000001
BORROW: GHO, Amount 10000000000000000000000
REPAY: GHO, Amount: 10000000000000000000000
REPAY: GHO, Amount: 10000000000000000000000
BORROW: GHO, Amount 10000000000000000000000
LIQUIDATE: GHO, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000000000000000000000
LIQUIDATE: GHO, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000000000000000000000
FLASH LOAN: GHO, Amount: 10000000000000000000000
FLASH LOAN: GHO, Amount: 10000000000000000000000
E2E: Collateral WETH, TestAsset EURC
SUPPLY: WETH, Amount: 45251679358856969211
SUPPLY: EURC, Amount: 9628928351
WITHDRAW: EURC, Amount: 4814464175
WITHDRAW: EURC, Amount: 4814464176
BORROW: EURC, Amount 9628928351
REPAY: EURC, Amount: 9628928351
REPAY: EURC, Amount: 9628928351
BORROW: EURC, Amount 9628928351
LIQUIDATE: EURC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9628928351
LIQUIDATE: EURC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9628928351
FLASH LOAN: EURC, Amount: 9628928351
FLASH LOAN: EURC, Amount: 9628928351

Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 25.90s (27.45s CPU time)

Ran 1 test suite in 25.90s (25.90s CPU time): 3 tests passed, 0 failed, 0 skipped (3 total tests)

@brotherlymite
Copy link
Contributor

@Rozengarden can you seed the executor or mock it, so the tests passes so you can add the diff snapshots.

@Rozengarden
Copy link
Contributor Author

@Rozengarden can you seed the executor or mock it, so the tests passes so you can add the diff snapshots.

executor was funded, forgot to bump block height 🙏

@brotherlymite
Copy link
Contributor

@Rozengarden i think the branch has a bunch of conflicts 😅

@marczeller
Copy link
Contributor

@Rozengarden i think the branch has a bunch of conflicts 😅

my fault, will revert and fix

LucasWongC and others added 19 commits February 28, 2025 14:20
* weht LTV updated

* BTC UOptiminal Rate update

* Revert "BTC UOptiminal Rate update"

This reverts commit d64400c.

* updated readme

* added snapshot link

* updated md

* Update PrimeInstanceRestoreETHLTV.md

---------

Co-authored-by: Matthew <[email protected]>
* feat: v3.3.0 activation

* test: add test

* chore: register zksync

* fix: add sherlock report

* Update src/20250205_Multi_UpgradeAaveInstancesToV33/UpgradeAaveInstancesToV33.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250205_Multi_UpgradeAaveInstancesToV33/UpgradeAaveInstancesToV33_20250205.s.sol

Co-authored-by: Andrey <[email protected]>

* Update src/20250205_Multi_UpgradeAaveInstancesToV33/UpgradeAaveInstancesToV33.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250205_Multi_UpgradeAaveInstancesToV33/UpgradeAaveInstancesToV33.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250205_Multi_UpgradeAaveInstancesToV33/UpgradeAaveInstancesToV33.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250205_Multi_UpgradeAaveInstancesToV33/UpgradeAaveInstancesToV33.md

Co-authored-by: Ernesto Boado <[email protected]>

---------

Co-authored-by: Ernesto Boado <[email protected]>
Co-authored-by: Andrey <[email protected]>
* fix: scripts

* fix: revert bump
* feat: edge caps injector activation

* feat: add writeup

* fix: review changes

* fix: writeup

* Update CapsRiskOracleActivationOnArbitrum.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250218_AaveV3Arbitrum_CapsRiskOracleActivationOnArbitrum/CapsRiskOracleActivationOnArbitrum.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250218_AaveV3Arbitrum_CapsRiskOracleActivationOnArbitrum/CapsRiskOracleActivationOnArbitrum.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250218_AaveV3Arbitrum_CapsRiskOracleActivationOnArbitrum/CapsRiskOracleActivationOnArbitrum.md

Co-authored-by: Ernesto Boado <[email protected]>

* Update src/20250218_AaveV3Arbitrum_CapsRiskOracleActivationOnArbitrum/CapsRiskOracleActivationOnArbitrum.md

Co-authored-by: Ernesto Boado <[email protected]>

* chore: update writeup

* fix: writeup

---------

Co-authored-by: Ernesto Boado <[email protected]>
* feat: adjust rf and LTV on polygon

* feat: set ltv to  0 instead of freeze

* ⬆️ bump aave-helpers

* forge install: aave-helpers

v3.0.0

* ➖ remove aave-helpers

* forge install: aave-helpers

v3.0.0

* ⬆️ bump aave-helpers to last commit

* Update src/20250210_Multi_AdjustRiskParametersForAaveV2AndV3OnPolygon/AdjustRiskParametersForAaveV2AndV3OnPolygon.md

Co-authored-by: Harsh Pandey <[email protected]>

* Update src/20250210_Multi_AdjustRiskParametersForAaveV2AndV3OnPolygon/AdjustRiskParametersForAaveV2AndV3OnPolygon.md

Co-authored-by: Harsh Pandey <[email protected]>

* Update src/20250210_Multi_AdjustRiskParametersForAaveV2AndV3OnPolygon/AdjustRiskParametersForAaveV2AndV3OnPolygon.md

Co-authored-by: Harsh Pandey <[email protected]>

* Update AdjustRiskParametersForAaveV2AndV3OnPolygon.md

---------

Co-authored-by: MartinGbz <[email protected]>
Co-authored-by: Harsh Pandey <[email protected]>
* feat: modify aave token lt & ltv

* Update src/20250218_Multi_UpdateAAVETokenLTVLiquidationPercentages/UpdateAAVETokenLTVLiquidationPercentages.md

Co-authored-by: Harsh Pandey <[email protected]>

* Update src/20250218_Multi_UpdateAAVETokenLTVLiquidationPercentages/AaveV3Arbitrum_UpdateAAVETokenLTVLiquidationPercentages_20250218.t.sol

Co-authored-by: Harsh Pandey <[email protected]>

* feat: arbitrum test result

---------

Co-authored-by: Harsh Pandey <[email protected]>
* added new gho-aave-steward on prime instance

* updated redme

* added some comments

* used constant for council address

* added more tests

* removed unused import

* added more tests

* BTC UOptiminal Rate update

* Revert "BTC UOptiminal Rate update"

This reverts commit d64400c.

* test script and md updated

* Update src/20250129_AaveV3EthereumLido_ExtendGHOStewardOnAavePrimeInstance/ExtendGHOStewardOnAavePrimeInstance.md

Co-authored-by: Harsh Pandey <[email protected]>

* restricted gho on risk steward

* import source bugfix

---------

Co-authored-by: Harsh Pandey <[email protected]>
* feat: sUSD ltv to 0

* Update src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/SUSDRiskParameterAdjustment.md

Co-authored-by: Harsh Pandey <[email protected]>

---------

Co-authored-by: Harsh Pandey <[email protected]>
* feat: sonic generator configs

* feat: add sonic activation payload

* feat: add writeup and fix tests

* chore: update package

* fix: libs and increase seed amount

* fix: proposal script

* fix: update to new risk params

* chore: update permissions book

* chore: bump aave-helpers and remove some old breaking proposals

* chore: remove more old proposals
* BTC UOptiminal Rate update

* Revert "BTC UOptiminal Rate update"

This reverts commit d64400c.

* february funding update part B

* removed pass usdc withdraw on optimism

* bugfix on readme

* updated readme

* updated helpers

* updated  blocknumber
Cache bot and others added 10 commits February 28, 2025 14:20
* feat: sonic generator configs

* feat: add sonic activation payload

* feat: add writeup and fix tests

* chore: update package

* fix: libs and increase seed amount

* fix: proposal script

* fix: update to new risk params

* chore: update permissions book

* chore: bump aave-helpers and remove some old breaking proposals

* chore: remove more old proposals
* feat: sonic generator configs

* feat: add sonic activation payload

* feat: add writeup and fix tests

* chore: update package

* fix: libs and increase seed amount

* fix: proposal script

* fix: update to new risk params

* chore: update permissions book

* chore: bump aave-helpers and remove some old breaking proposals

* chore: remove more old proposals
@brotherlymite
Copy link
Contributor

@Rozengarden can you update the diff-snapshots to the latest one too

@brotherlymite brotherlymite merged commit 0203799 into bgd-labs:main Mar 5, 2025
4 checks passed
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.

6 participants