Deposit flow integration in the website
Challenges and Payments Integration
Withdrawal requests functional
Script for automating the transfer of tokens from the smart contract to the user’s address
Completed Task:
Deposit flow:
Deposit functionality has been implemented. After login user can deposit his token by first approving and then depositing in the vault contract using the deposit button on the deposit tab.
Users can also buy tokens using PayPal (0.08$ per token) called in Game Token.
The addition of the deposit and in Game Token is the total Balance of the user displayed in the balance tab on the website.
Challenges and Payments Integration:
When users create challenges token payment is charged.
Balances are being updated as per the challenge amount.
Pending tasks at your end:
Withdrawal requests functional
Script for automating the transfer of tokens from smart contract to the user’s address
If withdraw functionality is managed properly in contract as discussed then we will be properly able to manage the balance of the user properly in website. As in website its the reflection of the deposit token and we are getting the deposit tokens information from contract.
withdraw request can be generated and the admin can view the request
Crown job will run and call the withdraw function of the contract to execute the request but the contract has issues.
Problem Statement:
We are integrating the vault Contract for deposit and withdraw and BDC token as a token currency for the game.
Right now, when user want to withdraw his amount (token) from our website he needs to send request to admin.Admin will approve or cancel the withdraw request.
With in 7 days the website will call the withdraw function of the Vault contract that will check if there is enough deposited token in contract. If yes, it should be transferred to the claimer address otherwise new token should be minted.
We are stuck at withdrawal function of the contract as told . It was due to wrong deployment of contract that does not have " mint Onramp " function deploying the old BDC token on sepoli that was deployed on the Goerli network may solve the problem as it has mint Onramp function.
Also, we need the Pair address for the BDC token as we need to check the real-time price of the token right now we are using a static token price.
Hourly Range: $25.00-$50.00
Posted On: August 10, 2024 23:00 UTC
Category: Full Stack Development
Skills:Web Design, Web Development, Cryptocurrency, Crypto Asset
Country: Canada
click to apply
Powered by WPeMatico
