Skip to content

Latest commit

 

History

History
45 lines (41 loc) · 2.29 KB

MajorFunctions.md

File metadata and controls

45 lines (41 loc) · 2.29 KB

Major Functions in PLOTX Platform

MarketRegistry.sol

  • createMarket
    Allows user to create a new market provided market type and market currency index.
  • claimCreationReward
    Claims user reward accumulated for creating markets.
  • claimPendingReturn
    Allows user to claim return earned by user in multiple markets.

Market.sol

  • placePrediction
    Allows user to place a prediction in an open market
  • settleMarket
    Settles a market post settlement time is reached, uses chainlink oracle to get the market price at settlement time.
  • raiseDispute
    Allows users to raise a dispute if the market is settled with incorrect price, user need to deposit a configurable amount of PLOT for raising dispute. It creates a governance proposal which will be allowed to vote for users who had locked their tokens for reason “DR” in TokenController.
  • claimReturn
    Allows user to claim return earned by participating in Market.

TokenController.sol

  • lock
    Allows users to lock/stake particular amount of PLOT tokens for provided reason and time
  • increaseLockAmount
    Allows users to increase already locked amount for given reason
  • extendLock
    Allows users to extend lock period for given reason
  • unlock
    Unlock all the locked tokens for which lock period was completed.

Governance.sol

  • createProposal
    Allows all PLOT token holders to create a governance proposal
  • categorizeProposal
    Allows authorized members to whitelist and categorize a proposal.
  • submitProposalWithSolution
    Allows proposal owners to submit an action to be executed on a proposal accepted and open it for voting.
  • submitVote
    Allows authorized voters to submit a vote for proposals.
  • closeProposal
    Closes the proposal post proposal voting time.
  • triggerAction
    Executes the submitted action of a proposal post the proposal gets majority acceptance.
  • claimReward
    Allows user to claim rewards earned for voting in governance proposals.