Mainnet address:
0x17A5B908254191d180e6BCA9A46f9c9E9E7c070a
EIP_4626 specifications can be found here. This contract wraps cbETH with EIP_4626 view specifications.
The wrapper does not include any deposit, withdraw, redeem, mint related write and read functions as they are all restricted to be only accessible by Coinbase.
├─ asset — "The address of the underlying token used for the Vault for accounting, depositing, and withdrawing."
├─ totalAssets — "Total amount of the underlying asset that is “managed” by Vault."
├─ convertToShares — "The amount of shares that the Vault would exchange for the amount of assets provided, in an ideal scenario where all the conditions are met."
├─ convertToAssets — "The amount of assets that the Vault would exchange for the amount of shares provided, in an ideal scenario where all the conditions are met."forge compileforge test --fork-url <your_eth_mainnet_rpc_url> -vvtests against mainnet
forge create --rpc-url <your_rpc_url> --private-key <your_private_key> src/cbETHEip4626ViewWrapper.sol:cbETHEip4626ViewWrapper
forge verify-contract --chain-id 1 --num-of-optimizations 1000000 --compiler-version v0.8.16 <the_contract_address> src/cbETHEip4626ViewWrapper.sol:cbETHEip4626ViewWrapper <your_etherscan_api_key>