Ditto-money / Bounties

Ditto.money open bounties
0 stars 0 forks source link

Create a utility for the cross-chain token swap #7

Closed chefchansey closed 3 years ago

chefchansey commented 3 years ago

Create a utility for extracting depositor data and transferring tokens to depositors who trade Ethereum tokens for DITTO in the cross-chain token swap.

Overview

The DittoSwap smart contracts lets Ethereum users deposit selected Ethereum tokens. Every time a user deposits input tokens, the smart contract calculates a DITTO output amount based on a fixed exchange rate and emits an event.

A tool is needed to automated the process of listening for deposit events on the Ethereum blockchain and transferring output DITTO to the user's address on BSC.

Details

Create a command line tool using Python or NodeJS that implements the following features:

Export swap data

Print (blockNo,timestamp,address,inputTokenName,inputAmount,outputAmount) as CSV for a given start and end block. This allows us to handle DITTO transfers manually should be implemented first.

Real-time swap

Listen for swaps events in real time and transfer DITTO tokens from a BSC wallet to the user's address.

Contact Information

We are looking for an experienced frontend developer who will be working closely with the DITTO team. If you get approved for this bounty contact @chefchansey on the DITTO Telegram channel:

https://t.me/dittomoney

gitcoinbot commented 3 years ago

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


This issue now has a funding of 0.55 ETH (1016.59 USD @ $1848.34/ETH) attached to it.

gitcoinbot commented 3 years ago

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


Work has been started.

These users each claimed they can complete the work by 265 years, 9 months from now. Please review their action plans below:

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

I have experience in both Python and NodeJs, My github profile: https://github.com/srisankethu 2) 0xrs has been approved to start work.

Export swap data implemented here: https://github.com/0xRS/ditto-swap-event-web3py/ Will complete implementation of the rest in the next few hours. 3) 1-macros has applied to start work _(Funders only: approve worker | reject worker)_.

CLI using either nodejs/ts to support the given functionality. Will be using cron jobs with db support to understand the desirable block confirmations and act accordingly. 4) leetdev has applied to start work _(Funders only: approve worker | reject worker)_.

I am familiar with Ethereum, BSC, and related APIs, and have examined the DittoSwap smart contract. I can develop the required command line tool using NodeJS with relative ease, within no more than two days.

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 3 years ago

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


Work for 0.55 ETH (996.52 USD @ $1811.85/ETH) has been submitted by:


CB002 commented 3 years ago

Export functionality implementation: https://github.com/1-macros/DITTO-Swap