Giter Site home page Giter Site logo

plotx / smart-contracts Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 10.0 2.26 MB

Smart contracts for the PlotX protocol

Home Page: https://plotx.io/

License: GNU General Public License v3.0

JavaScript 70.92% Shell 0.15% Solidity 28.90% Batchfile 0.03%
ethereum-dapp plotx prediction smart-contracts

smart-contracts's People

Contributors

ankitnirwal avatar kushaljaisinghani avatar nitika-goel avatar parul2718 avatar parv-somish avatar parv3213 avatar pragatisharma23 avatar premsomish avatar reemasomish avatar tech-somish avatar udkreddy avatar udkreddysomish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

smart-contracts's Issues

Handle 403 page for liquidity and app.plotx.io

Describe the bug
Currently for disallowed geolocations, the website shows 403

To Reproduce
Try accessing via a disallowed geolocation

Expected behavior
Should show a page that IP location is detected from xxx country and the following countries are disallowed.

Button for raising dispute doesn’t work on mobile[Short description of bug]

The 08:00 bitcoin market needs disputing, clearly below $11450 was $11436 on Binance at 20:00 surely not that much difference.

What was the chain link price?
Button for raising dispute doesn’t work on mobile

It clearly takes the actual settlement price early. Come on guys if we can’t get this right what hope have we got. Everybody will be disputing results. This is fundamental and wrong needs fixing as a matter of urgent

image

image

image

Create adapter for DefiPulse

Is your feature request related to a problem? Please describe.
PlotX to be listed on defiPulse

Describe the solution you'd like
Create adapter for DeFi pulse to show the TVL locked

Transaction confirmed on Etherscan, but not showing in My Account or Leaderboard

Transaction confirmed on Etherscan, but doesn't shows up in "My Account" or "Leaderboard"
User predicted on 2 different hourly markets and both the transactions were confirmed within 30 seconds in Etherscan, but his address or prediction doesn't shows up on "My Account" or "Leaderboard" neither.

Telegram Username : @KruglovTeam

ETH Address : 0xab4ac4201f412033d2744f235b3e075eacdb0282

Etherscan Transaction Link
Prediction 1 : https://etherscan.io/tx/0xd55c15e5b1c25b70bf5516048958084b3057651bbba69b7059d9176aab8bf151
Prediction 2 : https://etherscan.io/tx/0x5ccbf5fc4d9a8fe61d408e3fd5d5d29fe6cb9cffe039ad64f9f9405a92bef762

Screenshots
2 screenshots attached

Prediction 1 :
photo_2020-10-21 21 43 16

Prediction 2 :
photo_2020-10-21 21 43 20

Leaderboard numbers are showing 0 participation & rewards

Describe the bug
The leaderboard numbers that show market participation data is showing null values

To Reproduce
Steps to reproduce the behavior:

  1. Go to the leaderboard page
  2. See error

Expected behavior
Amount of the ETH & PLOT staked + Rewards distributed should be updated in real-time

Screenshots
Screenshot 2020-10-22 at 1 13 24 PM

Desktop (please complete the following information):

  • Chrome Browser
  • Metamask Extension

Disable dispute button in case of 0 participation

Describe the bug
If 0 participants are there, the the dispute functionality does not work. But it looks confusing.

Expected behavior
Disable dispute button in case of 0 participants. Add text
"Please note markets with 0 participants cannot be disputed"

Show only in markets with 0 participants

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser [e.g. chrome, safari]
  • Extension

Smartphone (please complete the following information):

  • Browser [e.g. stock browser, safari]
  • Extension

Additional context
Add any other context about the problem here.

Create APIs for market pages

Is your feature request related to a problem? Please describe.
Data on market page is only being shown when user has signed in via metamask

Describe the solution you'd like
We should be able to show the data using a API, such that a person can see data without signing in via metamask

Return stakes if n participant

Is your feature request related to a problem? Please describe.
Currently, the 1st participant is not incentivised to participate because there are no pool rewards and he might end up losing money to DAO if he is wrong

Describe the solution you'd like
Return participation amount in case there is only 1 participant, irrespective of whether he is right or wrong.
Dispute should not be allowed if participation = 1

Add popup to give more allowance

Is your feature request related to a problem? Please describe.
Currently, a player needs to approve PLOT every time he/she participates in a market. This results in more gas and tx hindrance

Describe the solution you'd like
Create a link under approve toggle in Live market prediction "Approve more"
Opena popup with text box to enter amount to be approved
Approve button.
Some text should be there around what does approval mean.

Show incentives on Leaderboard View

Is your feature request related to a problem? Please describe.
We have the feature of sponsoring incentives, however, no UI to show that.

Describe the solution you'd like
Show Total Incentives distributed in market i top section
Club Incentives in Rewards in PLOT in the table below

Show existing transactions that are pending for market creation

Is your feature request related to a problem? Please describe.
It is unclear if market creation transaction has been trigerred by someone else. Henc, more than 1 people trigger transaction and it fails for the 2nd user.

Describe the solution you'd like
Show a table near the Create market button to show the list of transactions that are pending
Asset/Currency Index
MarketType
txHash
Address
Time
Gas price
Gas limit
Status - Pending

Migrate to Angular 9+

Is your feature request related to a problem? Please describe.
Extensions like walleconnect are not working well. The issue is due to Angulare version adopted

Describe the solution you'd like
Migrate to Angular 9+

Liquidity Mining Issue

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser [e.g. chrome, safari]
  • Extension

Smartphone (please complete the following information):

  • Browser [e.g. stock browser, safari]
  • Extension

Additional context
Add any other context about the problem here.

Create API to Add Chainlink data for 24-hr in leaderboard view

Is your feature request related to a problem? Please describe.
Currently, it is difficult to see the pricefeed by Chainlink and how the result was computed. A graph below the leaderboard table of a market can highlight the price movement on Chainlink

Describe the solution you'd like
Create a listener, to listen to events from Chainlink Aggregator(ETH and BTC)
Then based on market settle time, return all price feeds for +- 12 hours. This info can be used to plot a graph on the UI.

Reduce decimals in total participation in Leaderboard page

Describe the bug
The numbers in participation are looking too long because of 4 decimals

Expected behavior
Round off the number in PLOT and for ETH, show 2 decimals
Screenshots
If applicable, add screenshots to help explain your problem.

Grammatical Error My Accounts page

There is a grammatical error in the PlotX up under staking. "you will start getting more number of positions for the same about."

It should read "you will start getting a greater number of positions for the same amount."

image

Show deleveraged amount in the live markets page

image

We do show reward pool in the in settlement page. I think showing the reward pool directly in live page will be a bit irresponsible but we can show the develeraged amount per option for sure.

Create analytics page

Is your feature request related to a problem? Please describe.
Difficult to portray specific analytics for PlotX

Describe the solution you'd like
Create UI to show analytics for PlotX
Graphs:
Total Volume Locked
Predictions per day
New users per day
Rewards per day

User had his real 0.1 ETH deducted on the Alpha

"My metamask was on Kovan network. I opened the alpha on the browser and then went on the markets page. Then I switched to the metamask app to see how much kETH I have in my wallet. Then I switched my wallet to the main etherium network to see how much ETH I have on my mainnet account. Then I opened the browser again and clicked on the Predict Now button. Entered 0.1 kETH (but it was 0.1 ETH in reality), and clicked on Buy Now. That took me to my metamask app to ask for payment approval. It got cancelled somehow. Then I went on the browser again, tried it again. Then it took me to my metamask app where I accepted the transaction n transaction was successful."

Address - 0x71439347cae692f66036ba9e9431e33b2563cf7e

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.