Open Redoudou opened 1 month ago
@Jovells this should be the priority of the correction. If you can do something like this you will highlight the possibility of zkSync paymaster.
@Redoudou The reason buying the product fails for you is because you do not have MUSDT . Which is a mock stablwcoin token I created for trading on the platform as usually sellers would prefer it price items in a stable asset. Normally you should pay gas fees in eth, but the platform allows you to pay gas fees in musdt too making it possible to transact even if you do not have eth for gas fees. when you click on the mint some MUSDT, it will take you to the contract on the zksyn explorer and you can call the mint function to mint some usdt. the transaction will surely go through after that
You're seeing MUSDT when trying to purchase a product because the product is priced in USD, not ETH. While you can pay gas fees in ETH or another token, the actual purchase requires the correct currency (MUSDT) to be deducted and escrowed for the transaction. This is a key aspect of how DeWorld's escrow system functions. In future updates, we aim to make the payment flow clearer.
However, this is good feedback and we will work on UI improvements to better indicate product pricing and simplify the buying process.
Also the plugin I created allows the developer to use a paymaster which entirely sponsors the transaction allowing for gassles sponsored transactions. Though this has not been implemented in the ui yet, In the future it will be implemented to allow sellers offer something like this to their loyal buyers as promotions and things like that.
Step to reproduce: going to the page https://deworld.on-fleek.app/product-details?id=3 Im connected to zksync sepolia and have zk eth from the faucet, However the faucet only allows to collect 0,01 ETH per day so the price of the products are too high to execute any transaction.
I select pay gas fee with ETH , qty 1 and clic buy I get the following screen
It is confusing because while I selected ETH I am being asked to allow spending on MUSDT
I approve some transaction there is some error message that show then disappear. Tx available here https://sepolia-era.zksync.network/tx/0x3f4f5aad92f3b7477b1fffadfeae78022b1e97c44745b02d3d13dd5f5ec96cc2
Expected Behavior
Here a perfect demo would Show the user current balance for 3 sepolia token (A B C) display the product with a price in A B or C Have the use select what current he want to pay and use gas fees user select A B C User buy product the page update display the link to the executed transaction and display and actualized balanced of the user A B C.