[Unstoppable] TotalSupply #28
-
Hello everyone ! I'm kind of new to Web 3.0 and I recently discovered Damn VUlenrable DeFi. Thanks for helping me :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @MartinTochon , Are you using VSCode ? If so you can In your specific case, Hope that helps, |
Beta Was this translation helpful? Give feedback.
@MartinTochon
That's a fair question. I didn't understand this either initially.
ERC4626
is the standard fortokenized vaults
. What's a tokenized vault ? Think about an ETH lending pool. People can deposit ETH (or rather WETH in our case) into the pool for other people to borrow (asset), and get an ERC20 that represents their shares (the proportion of the total lended eth in that pool) that can at any time be exchanged back for their original ETH. (the incentive is that they accrue yield based on their shares but this isn't relevant here)The constructor of ERC4626 therefore takes 3 arguments :