[Bounty] Integrate Perpetual v2, a derivative trading protocol, in Mask Plugin
Catalogue
- Platform
- [x] Gitcoin
- [ ] Hackerlink
- [ ] Mask
- Experience
- [ ] Beginner
- [x] Intermediate
- [ ] Advanced
- Category
- [ ] Mask Core Feature
- [x] Mask Plugin
- [ ] Security/Cryptography Feature
- [ ] Documentation
- [ ] Design
- [ ] Other
- [ ] /List it here/
- Time Commitment
- [x] 2 weeks
- Bounty Size
- [x] 200 $MASK or $2000
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

- 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.

-
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)
-
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.

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
- Bounty Guide
- https://www.perp.fi/
- https://docs.perp.fi/sdk-documentation/developer-faq
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
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.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin's Discord
- $6,322,233.78 more funded OSS Work available on the Gitcoin Issue Explorer
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.
@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?
@@DhruvJain1122 is working on this