Situation

Before, users were stuck using certain tokens like ETH, BNB, or MATIC to pay for things on the blockchain they were using. This wasn't ideal, especially if users didn't have enough of those tokens or if they had governance token of GameFi projects or meme tokens. On zkSync chain, we have a technology that can solve this problems

Introduce GameSwap Paymaster

GameSwap offers transactions paid via Paymaster. Users can configure any ERC20 tokens provided by GameSwap to cover all transaction fees. Once Paymaster is configured, users no longer need to hold any ETH in their wallet to make transactions.

The technical process of GameSwap Paymaster differs slightly from the traditional method used by normal DEX. GameSwap will provide a contract to hold ERC20 tokens that are used for GameSwap liquidity. When a user initiates a transaction, GameSwap will validate the transaction (verify signature, verify PayMaster stake). If user doesn't use Paymaster, GameSwap will proceed as normal; otherwise, we will first calculate the fee in ETH. Subsequently, we will transfer the ERC20 token to the GameSwap Paymaster contract and use the ETH in that contract to pay your fee.

GameSwap Paymaster Flow

When user initiate a transaction and have already configured Paymaster, there is no need for approval and swap stages; simply "sign" and GameSwap will use signature aggregators to handle everything for you. Upon receiving the "sign" from your end and validating all the information, the GameSwap Paymaster contract will execute the “transfer” function from the Swap Contract to transfer the swapped token to your wallet.

Conclusion

In this year, GameSwap will initially provide GSWP (governance token of GameSwap) to the GameSwap Paymaster contract. User can utilize it to pay fees on our DEX, where we will implement gas discounts (the discount percentage can be configured up to 50% for all transactions) and apply burn strategies when users use Paymaster with GSWT to increase value for holders.

Mirror文章信息

Mirror原文:查看原文

作者地址:0x58a786789908463e2cF62BAA122999D8262c77dd

内容类型:application/json

应用名称:MirrorXYZ

内容摘要:rBBzluZkDh2m1ld5b9Hz9S9X9KJwPqApoM9UgCqbbE0

原始内容摘要:bP0NWpUPSDmscB1iW9ihwzCPwobyOreTm6Cq1cv8334

区块高度:1365618

发布时间:2024-02-17 04:36:09