Cryp-too / SWAP

ERC20 token swap DEX aggregator
0 stars 0 forks source link

Connect a frontend UI with the 0x-API #1

Open Cryp-too opened 3 years ago

Cryp-too commented 3 years ago

Overview:

Connect one of the following UI frontend repos in mainnet environment:

- Balancer - https://github.com/balancer-labs/balancer-frontend.git (Vue)

- KyberSwap - https://github.com/KyberNetwork/KyberSwap (React)

- Gnosis - https://github.com/gnosis/gp-swap-ui.git (React)

- UniSwap - https://github.com/Uniswap/uniswap-interface.git (React)

to the 0x-API https://0x.org/docs/api#swap and https://0x.org/docs/guides/swap-tokens-with-0x-api with the following additional aspects: _pass feeRecipient=0xYOUR_ETH_ADDRESS&buyTokenPercentageFee=PERCENTAGE_FEE_0_to1 as additional query parameters to /swap/v1/quote endpoint.

Set also the 0x-API contract addresses and packages (https://github.com/0xProject/protocol) where needed to achieve the abovementioned functionality on the mainnet.

Description: Steps of swap functionality:

The functionality of below listed swap process steps are already included in the four frontend UI repos. These may vary depending which repo you choose. The 0x-API should be connect to all aspects of the swap process.

Users who visit the swap are prompted to connect to their wallets and to the Ethereum mainnet if they aren't already.

Connect site to wallet : Therefore connecting of the site to the wallet should be seamless on both the desktop and mobile.

Choose from your wallet the token you want to swap.

Then choose from the list the token you want to swap to.

Set slippage: here adhere to the % range provided by the frontend repo you choose.

Custom gas price setting: If provided by the repo you choose, then include it.

"Approve": Confirm the allowance approval

Review order

Place order : Rate and estimated fees are displayed.

Confirm in wallet.

Receipt = link to Etherscan transaction details page.

If there is an error the user gets an error message.

Acceptance of work

Proof that the work has been done completely and successfully is given by testing the frontend on the mainnet. This is done by conducting a swap and having the set % buyTokenPercentageFee arriving on the feeRecipientAddress.

Contact

In case you have any questions, feel free to reach out by email N_crypto_B@protonmail.com or by Telegram @CryptooSwap

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.5 ETH (852.48 USD @ $1704.97/ETH) attached to it.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 1 week, 6 days from now. Please review their action plans below:

1) emanuel-sol has applied to start work _(Funders only: approve worker | reject worker)_.

Hi, I can take care of this task. I'm an experienced web developer and have worked with many different APIs, however, I'm new to open source. I'd like to integrate the 0x API into the UniSwap Interface. I'd greatly appreciate some help getting started. 2) rhuantac has applied to start work _(Funders only: approve worker | reject worker)_.

I'm a experienced frontend developer, yet new to blockchain world. I'll use the Balancer (Vue) repo to connect to the 0x-API. 3) deepface19 has applied to start work _(Funders only: approve worker | reject worker)_.

I will try my best to provide the best quality for this bounty provider 4) toniton has applied to start work _(Funders only: approve worker | reject worker)_.

I have competence in React/GraphQL/React-Redux. I can also have good UI/UX skills, and will present a good solution in quick time. 5) jordan69420 has applied to start work _(Funders only: approve worker | reject worker)_.

sure, I can work on this : ) I will make the swap! 6) payamsaremi has applied to start work _(Funders only: approve worker | reject worker)_.

Im learning web3.js , I can do this while learning.

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 3 years ago

@eswarasai Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 0.5 ETH (1032.80 USD @ $2065.6/ETH) has been submitted by: