Skip to content

nigsdev/token-vendor

Repository files navigation

🏵 Token Vendor 🤖

🤖 Smart contracts are kind of like "always on" vending machines that anyone can access. Let's make a decentralized, digital currency. Then, let's build an unstoppable vending machine that will buy and sell the currency. We'll learn about the "approve" pattern for ERC20s and how contract to contract interactions work.

🏵 Created YourToken.sol smart contract that inherits the ERC20 token standard from OpenZeppelin. Set your token to _mint() 1000 (* 10 ** 18) tokens to the msg.sender. Then created a Vendor.sol contract that sells your token using a payable buyTokens() function.

About

An unstoppable vending machine that will buy and sell the currency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published