DimensionDev / Maskbook

The portal to the new, open Internet. ([I:b])
https://mask.io
GNU Affero General Public License v3.0
1.51k stars 311 forks source link

[Bounty] Integrate Perpetual v2, a derivative trading protocol, in Mask Plugin #4735

Closed tzhan28 closed 1 year ago

tzhan28 commented 3 years ago

Catalogue

Part 1: Problem Description

Background Perpetual is a world class perpetual dex that has volume of over 100 milllion a day. Its v1 is ETH mainnet and xDAI, and v2 is on Arbitrum. . We think Perptual v2 will be a good fit for our use cases since Perpetual derivatives offer leverage in addition to spot trading feature that we already have

Previously defi plugins on Mask, like the trading widgets powered by 0x and Uniswap, has been plagued by high ETH gas prices. However with the launch of alternative l1/l2s integration, the problem have been largely resolved. Tradings app which was hindered by monstrous ETH gas price is now very much affordable.

Solution Create a plugin that integrate Perpetual protocol v2. The UI should in general be in line with the original trading widget. A few tabs need to be updated or added for a complete perp trading experience. As we can see from the perp interface, left is the trading area, middle displays the price chart, right is the market info, bottom is the your own trading info

Perp trading page

  1. Create a dedicated tab for Perp trading next to trading (will integrate both Perp and other similar perpetual trading solutions). The tab should incorporate most of the elements on the perp main page show below.

Dex interface Perp trading page left bar

  1. Create a dedicated tab for Perp info like funding rate, mark price, latest 5 prices, your position and trading history etc. (information on the right and bottom of the original perp trading page)

  2. Add a price chart source on the original price chart tab that displays perp price. So when you are choosing data source there are added option for Perpetual data next to Coingecko and CMC.

perp price tab

Anylink cashtag with viable ticker, like $ETH on Twitter, could trigger the trading plugin. Need to check with Perp for what tickers are available. Perps should also accessible via top line search bar and the swap entry on the left bar menu

Language like I just 10x yolo-longed $aa worth of xxx token, can it moon? Could be added to help spread the word.

Part 2: Resources

Part 3: Contact and Support

@yisiliu @tzhan28 for ideas @Jack-Works for implementations Mask Network discord server: https://discord.gg/4Xccj7a75Q, Perp discord server: https://discord.gg/qaAJ3N5K

Please speak up in the Mask discord's bounty section or just discord dm @yisiliu or @taylor zhang #8497 so that we can find you on Discord. We can create a dedicated group for faster communication once we found each other

Submission Requirements Please include demo to show the integration is working.

Judging Criteria Have a working demo. Clean code & tech design Clear UI, easy to use and generally good user experience

gitcoinbot commented 2 years ago

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


This issue now has a funding of 200.0 MASK (2202.0 USD @ $11.01/MASK) attached to it.

gitcoinbot commented 2 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 264 years, 10 months from now. Please review their action plans below:

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

Would love to build this plugin 🙂 2) f3rno64 has been approved to start work.

Hi, I'd like to implement this. I used to work at Bitfinex, username @f3rno on github and twitter, cris.m on medium. I have plenty of experience developing trading interfaces for users and would love to get started working on this platform.

Learn more on the Gitcoin Issue Details page.

LindaMask commented 2 years ago

@f3rno64 hey how is it going? I have been trying to get in touch with you. Can you reach out to me and let me know how this integration is going ASAP?

LindaMask commented 2 years ago

@@DhruvJain1122 is working on this