Skip to content

ZkBob pools with ERC4626 underlying#84

Draft
akolotov wants to merge 8 commits intodevelopfrom
feat/erc4626-based-pool
Draft

ZkBob pools with ERC4626 underlying#84
akolotov wants to merge 8 commits intodevelopfrom
feat/erc4626-based-pool

Conversation

@akolotov
Copy link
Contributor

@akolotov akolotov commented Aug 11, 2023

The migration script ETHPoolMigration.sol demonstrates the behavior of the ETH zkBOB pool on Optimism when the pool token is changed from WETH to ATokenVault. The following output was obtained when the script was run using script/deploy.sh --fork-block-number 107906981 script/scripts/ETHPoolMigration.sol -vvvv:

  WETH before migration: 67020639076000000000
  waWETH before migration: 0
  WETH in AAVE before migration: 0
  WETH after migration: 0
  waWETH after migration: 67020639076000000000
  WETH in AAVE after migration: 67020639076000000000
  ***** directNativeDeposit ******
  queue's waWETH before making DD: 0
  queue's WETH in AAVE before making DD: 0
  queue's waWETH after making DD: 10199793404112546
  queue's WETH in AAVE after making DD: 10199999999999999
  ***** appendDirectDeposits ******
  pool's waWETH before append DD: 67020639076000000000
  pool's WETH in AAVE before append DD: 67022020062601220124
  queue's waWETH before append DD: 10199793404112546
  queue's WETH in AAVE before append DD: 10200003574863235
  pool's waWETH after append DD: 67030838869000000000
  pool's WETH in AAVE after append DD: 67032220065771962487
  queue's waWETH after append DD: 404112546
  queue's WETH in AAVE after append DD: 404120872
  ***** directNativeDeposit ******
  queue's waWETH before making DD: 404112546
  queue's WETH in AAVE before making DD: 404128025
  queue's waWETH after making DD: 5199801229560095
  queue's WETH in AAVE after making DD: 5200000404128024
  ***** directNativeDeposit ******
  queue's waWETH before making DD: 5199801229560095
  queue's WETH in AAVE before making DD: 5200001927786402
  queue's waWETH after making DD: 27398944402834662
  queue's WETH in AAVE after making DD: 27400001927786401
  ***** appendDirectDeposits ******
  pool's waWETH before append DD: 67030838869000000000
  pool's WETH in AAVE before append DD: 67033428495019174823
  queue's waWETH before append DD: 27398944402834662
  queue's WETH in AAVE before append DD: 27400002915908952
  pool's waWETH after append DD: 67036038669000000000
  pool's WETH in AAVE after append DD: 67038628495904880592
  queue's waWETH after append DD: 22199144402834662
  queue's WETH in AAVE after append DD: 22200002030203183
  ***** appendDirectDeposits ******
  pool's waWETH before append DD: 67036038669000000000
  pool's WETH in AAVE before append DD: 67038649347746914115
  queue's waWETH before append DD: 22199144402834662
  queue's WETH in AAVE before append DD: 22200008935340502
  pool's waWETH after append DD: 67058237812000000000
  pool's WETH in AAVE after append DD: 67060849355279365323
  queue's waWETH after append DD: 1402834662
  queue's WETH in AAVE after append DD: 1402889294
  ***** Withdrawal ******
  pool's waWETH before withdrawal: 67058237812000000000
  pool's WETH in AAVE before withdrawal: 67060877015791917381
  recipient's ETH before withdrawal: 0
  recipient's WETH before withdrawal: 0
  pool's waWETH after withdrawal: 67036829466000000000
  pool's WETH in AAVE after withdrawal: 67039467827225965972
  recipient's ETH after withdrawal: 21409188565951409
  recipient's WETH after withdrawal: 0
  ***** Withdrawal ******
  pool's waWETH before withdrawal: 67036829466000000000
  pool's WETH in AAVE before withdrawal: 67039479386579578614
  recipient's ETH before withdrawal: 1000000000000000000
  recipient's WETH before withdrawal: 5000000000000000
  pool's waWETH after withdrawal: 67032113516000000000
  pool's WETH in AAVE after withdrawal: 67034763250161261149
  recipient's ETH after withdrawal: 1004716136418317465
  recipient's WETH after withdrawal: 5000000000000000

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