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.
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.
评论 (0)