Today I wrote a smart contract that can accept deposits and withdrawals of any ERC20 token. A user with a manager role calls a function with an ERC20 contract address, which creates a new vault for that token. Once created, tokens can be deposited and withdrawn from their respective vaults in the contract. Since we are working with ethereum, the movement of tokens must be approved in the ERC20 contract, and most of the transactions had to be verified with MetaMask and consumed gas on the Goerli test network.
Subscribe to:
Post Comments (Atom)
190: Sablier
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The ZKasino project recently exit scammed over 33 million dollars worth of Ethereum. he recent debacle surrounding ZKasino offers valuable...
-
In addition to its native SDK, Hedera also supports smart contracts in a platform compatible with the Ethereum Virtual Machine. This allows ...
No comments:
Post a Comment