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

onboard wrsETH on Base - Review #632

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marczeller
Copy link
Contributor

@marczeller marczeller commented Feb 26, 2025

Ready for review

@marczeller marczeller changed the title onboard wrsETH on Base - WIP onboard wrsETH on Base - Review Feb 26, 2025
Copy link

🌈Test Results Compiling 307 files with Solc 0.8.22 Solc 0.8.22 finished in 155.06s Compiler run successful! 2025-02-26T12:53:10.081278Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^1.1.17", "diff-snapshots", "./reports/AaveV3Base_WrsETHBaseOnboarding_20250226_before.json", "./reports/AaveV3Base_WrsETHBaseOnboarding_20250226_after.json", "-o", "./diffs/AaveV3Base_WrsETHBaseOnboarding_20250226_before_AaveV3Base_WrsETHBaseOnboarding_20250226_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: 4127,\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/20250226_AaveV3Base_WrsETHBaseOnboarding/AaveV3Base_WrsETHBaseOnboarding_20250226.t.sol:AaveV3Base_WrsETHBaseOnboarding_20250226_Test
[PASS] test_collectorHaswrsETHFunds() (gas: 2189335)
[PASS] test_defaultProposalExecution() (gas: 33774062)
Logs:
0x4200000000000000000000000000000000000006
0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22
0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA
0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
0x2416092f143378750bb29b79eD961ab195CcEea5
0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee
E2E: Collateral WETH, TestAsset WETH
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: WETH, Amount: 4068246943316861886
WITHDRAW: WETH, Amount: 2034123471658430943
WITHDRAW: WETH, Amount: 2034123471658430942
BORROW: WETH, Amount 4068246943316861886
REPAY: WETH, Amount: 4068246943316861886
REPAY: WETH, Amount: 4068246943316861886
BORROW: WETH, Amount 4068246943316861886
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4068246943316861886
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 4068246943316861886
FLASH LOAN: WETH, Amount: 4068246943316861886
FLASH LOAN: WETH, Amount: 4068246943316861886
E2E: Collateral WETH, TestAsset cbETH
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: cbETH, Amount: 3719348734351399167
WITHDRAW: cbETH, Amount: 1859674367175699583
WITHDRAW: cbETH, Amount: 1859674367175699585
BORROW: cbETH, Amount 3719348734351399167
REPAY: cbETH, Amount: 3719348734351399167
REPAY: cbETH, Amount: 3719348734351399167
BORROW: cbETH, Amount 3719348734351399167
LIQUIDATE: cbETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3719348734351399167
LIQUIDATE: cbETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3719348734351399167
FLASH LOAN: cbETH, Amount: 3719348734351399167
FLASH LOAN: cbETH, Amount: 3719348734351399167
E2E: Collateral WETH, TestAsset USDbC
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: USDbC, Amount: 9999987000
WITHDRAW: USDbC, Amount: 4999993500
WITHDRAW: USDbC, Amount: 4999993499
BORROW: USDbC, Amount 9999987000
REPAY: USDbC, Amount: 9999987000
REPAY: USDbC, Amount: 9999987000
BORROW: USDbC, Amount 9999987000
LIQUIDATE: USDbC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9999986999
LIQUIDATE: USDbC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9999986999
FLASH LOAN: USDbC, Amount: 9999987000
FLASH LOAN: USDbC, Amount: 9999987000
E2E: Collateral WETH, TestAsset wstETH
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: wstETH, Amount: 3404143304443154716
WITHDRAW: wstETH, Amount: 1702071652221577358
WITHDRAW: wstETH, Amount: 1702071652221577359
BORROW: wstETH, Amount 3404143304443154716
REPAY: wstETH, Amount: 3404143304443154716
REPAY: wstETH, Amount: 3404143304443154716
BORROW: wstETH, Amount 3404143304443154716
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3404143304443154716
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3404143304443154716
FLASH LOAN: wstETH, Amount: 3404143304443154716
FLASH LOAN: wstETH, Amount: 3404143304443154716
E2E: Collateral WETH, TestAsset USDC
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: USDC, Amount: 9999987000
WITHDRAW: USDC, Amount: 4999993500
WITHDRAW: USDC, Amount: 4999993501
BORROW: USDC, Amount 9999987000
REPAY: USDC, Amount: 9999987000
REPAY: USDC, Amount: 9999987000
BORROW: USDC, Amount 9999987000
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9999987000
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9999987000
FLASH LOAN: USDC, Amount: 9999987000
FLASH LOAN: USDC, Amount: 9999987000
E2E: Collateral WETH, TestAsset weETH
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: weETH, Amount: 3834211568392278634
WITHDRAW: weETH, Amount: 1917105784196139317
WITHDRAW: weETH, Amount: 1917105784196139317
BORROW: weETH, Amount 3834211568392278634
REPAY: weETH, Amount: 3834211568392278634
REPAY: weETH, Amount: 3834211568392278634
BORROW: weETH, Amount 3834211568392278634
LIQUIDATE: weETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3834211568392278634
LIQUIDATE: weETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3834211568392278634
FLASH LOAN: weETH, Amount: 3834211568392278634
FLASH LOAN: weETH, Amount: 3834211568392278634
E2E: Collateral WETH, TestAsset cbBTC
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: cbBTC, Amount: 11315657
WITHDRAW: cbBTC, Amount: 5657828
WITHDRAW: cbBTC, Amount: 5657830
BORROW: cbBTC, Amount 11315657
REPAY: cbBTC, Amount: 11315657
REPAY: cbBTC, Amount: 11315657
BORROW: cbBTC, Amount 11315657
LIQUIDATE: cbBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 11315657
LIQUIDATE: cbBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 11315657
FLASH LOAN: cbBTC, Amount: 11315657
FLASH LOAN: cbBTC, Amount: 11315657
E2E: Collateral WETH, TestAsset ezETH
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: ezETH, Amount: 3917648482734812345
WITHDRAW: ezETH, Amount: 1958824241367406172
WITHDRAW: ezETH, Amount: 1958824241367406172
FLASH LOAN: ezETH, Amount: 3917648482734812345
E2E: Collateral WETH, TestAsset GHO
SUPPLY: WETH, Amount: 40682469433168618869
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 wrsETH
SUPPLY: WETH, Amount: 40682469433168618869
SUPPLY: wrsETH, Amount: 3919370936968112460
WITHDRAW: wrsETH, Amount: 1959685468484056230
WITHDRAW: wrsETH, Amount: 1959685468484056230
FLASH LOAN: wrsETH, Amount: 3919370936968112460

[PASS] test_wrsETHAdmin() (gas: 2190586)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 54.66s (67.56s CPU time)

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

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