This is the general repo of the Rezy project for Fantom Hackathon 2023
Rezy is the first tokenization app for plastic bottles (PET) that rewards a user when he/she recycles the bottle. Here in Ecuador people don`t recycle because of lack of rewards , and people who wish to do it have to carry their bottles to a centralized point, it's very tricky , here at Rezy the idea is to decentralize using reverse vending machines and reward people with tokens on the Fantom Network. Users just SCAN the barcode/QR, DROP the bottle in the machine, and then they claim 1 PET token directly to their wallet. If they want to exchange it for stable coins , they will use the swap station website.
Companies that recycle PET bottles pays 0.02 USD per bottle , and they provide liquidity to the swap station in order to exchange PET for fUSD.
This is a prototype derived from my own project "Reciclachain" presentend in Guayaquil - Ecuador and this project got into the finals in "Enviromental Challenges of the Municipality of Guayaquil",https://twitter.com/davotrade2010/status/1573816612045692930/photo/1 and now I decided to power it up switching from idea to a prototype on the fantom network.
--------------Frontend side--------------------------- The Rezy project is made of various elements described as follows:
- A frontend interface for user ( served via web and running on an android device attached to a QR reading device, id could also work on any other android device)
- A swap station web page for those customers who wish to trade their PET token and convert them into fUSD tokens ( The site works with Metamask)
- A forked fantom wallet with for receiving PET Tokens , it can also wokr with metamask too
------------Backend Side------------------------------
- A backend and a middleware that connects to frontend user interface and manage all QR readings and executes the PET tokens minting to the wallets.
- A remote LAMP server that executes a simple database , this database changes the state 0 to 1 and viceversa everytime a succesful scaning is made ( THIS IS ONLY FOR TURN ON AND OFF A LED, in further versions a Servomotor will open and close a Lid)
- A thirdweb API that connects using thirdweb SDK ( This calls a minting fuction )
- 2 ERC20 smartcontracts fromThirdWeb that represents PET and fUSD tokens , another contract forked from fantom for exchanging PET for fUSD tokens in 1 :1 ratio.
---------Basic Hardware--------------------------
- ESP32 board that communicates with the LAMP remote server in order to turn on/off a green led when a valid QR code is read.
- An Android board and screen oginally used for bus validator and refactored for fitting in the demo box.
- A cardboard made "machine" for illustrating how this project works in a possible real scenario at a smaller scale ( of course).
1)PET token=0x2936C1Af841F61cf6489B5B989c5070b2b6A2Df5 https://testnet.ftmscan.com/address/0x2936C1Af841F61cf6489B5B989c5070b2b6A2Df5 2)fUSD token=0x39D974c8307e7E194Ed6C5258DfC9D8b0648A158 https://testnet.ftmscan.com/address/0x39D974c8307e7E194Ed6C5258DfC9D8b0648A158 3)Swap station=0x52386394F71539f468152B220A46E6A2aDd82cF0 https://testnet.ftmscan.com/address/0x52386394F71539f468152B220A46E6A2aDd82cF0 4)Main Wallet=0xA7a171CCf274D0dCdC1FB4c8B7d440c4D5834053
- SwapStation https://reliable-malabi-22a3bc.netlify.app/
- User interface https://frolicking-faloodeh-d7dc61.netlify.app/
- Wallet https://app.netlify.com/sites/singular-belekoy-7d79da/
If you need PET tokens feel free to ask me at [email protected], you can get them too scanning the QR codes and then scanning your wallet on the Fantom testnet network in order to get some :)
David Ramirez Quito-Ecuador [email protected]