Improvised Decentralized prediction market smart contracts – 临时分散预测市场智能合约区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Improvised Decentralized prediction market smart contracts – 临时分散预测市场智能合约区块链毕设代写 是一篇很好的国外资料

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

Improvised Decentralized prediction market smart contracts

Introduction

Forecast is a decentralized market where users can stake on a question and get exciting and high returns. We can provide you more returns with the help of external network staking clients. What are you waiting for? Lets stake some Matic with minimal gas fee!🥳

Type of users

  • An owner:
    • can post a new question
    • can set start time & end time
    • will get the rewards at the end
  • A user:
    • can stake on an option
      • Pay some validation+platform fee, which increases as we reach closer to the end time
      • Can change their option at any time
      • Get reward after resolution phase
    • can change their option by paying a small amount of fee
  • Validators:
    • Can validate on an option
    • Get rewards if their option turns out to be correct

Features

  • Right users will always get profit
  • Right validators will always get profit
  • Owner will get their benefit
  • Contract states: Betting, inactive, reporting, resolved
  • External staking through smart contract, ps: more profit to everyone
  • Deployment on matic
  • Compatible with metamask and portis

Platform fee for stakers over time

The platform fee increases with degree 5 polynomial function as the number of days increases, explained by the given formula y = k*x^5, where x is the number of days and k is a normalizing constant.

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

Rewards vs. stake over time

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

Technology used:

  • Smart contract:
    • Solidity v0.7.6
    • EIP1167 Proxy contract
    • OpenZeppelin

Files

. ├── contracts │   ├── Factory │   │   └── EIP1167_Factory.sol │   ├── Question │   │   └── EIP1167_Question.sol │   └── Utils │       ├── CloneFactory.sol │       ├── console.sol │       ├── Formulas.sol │       └── SafeMath.sol ├── hardhat.config.js ├── helper │   ├── components-ganache.js │   └── components-hre.js ├── integ │   └── info.json ├── migrations │   ├── 1_local_node.js │   └── 2_any.js ├── package.json ├── README.md └── test     ├── 1_EIP1167_Tests.js     ├── 2_Require_Tests.js     └── 3_Random_market_Simulation.js 

How to run?

  • npm i: Installation
  • npm run compile: Compile the contracts
  • npm run test: Run the tests
  • npm run node: Run the local hardhat node
  • npm run hh: Deploy on local hardhat node
  • npm run any: Deploy on custom specified network

VS Code Extensions

  • Solidity by Juan Blanco: error messages in the editor
  • Prettier – Code Formatter: formatting js files

Contributors

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
Anupam Kumar
Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
Chinmay Sai Vemuri
Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
Saurabh Kumar Suryan
Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
Tushar Rohilla
Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
VIPIN K P

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约


Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约<Improvised Decentralized prediction market smart contracts>Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

简易分散预测市场智能合约

简介

随着天数的增加,平台费用随着5次多项式函数的增加而增加,由给定的公式y=k*x^5解释,其中x是天数,k是标准化常数。

用户类型

  • 所有者:可以发布新问题可以设置开始时间和结束时间将在结束时获得奖励
  • 用户:可以在期权上下注支付一定的验证费+平台费,这会随着我们接近结束时间而增加可以随时更改自己的期权在解析阶段后获得奖励可以通过支付少量费用来更改自己的期权
  • 验证者:可以在选项上验证如果他们的选项被证明是正确的,则获得奖励

功能

  • 正确的用户将始终获得利润
  • 正确的验证者将始终获得利润
  • 所有者将获得其利益
  • 合同状态:下注、停用、报告、通过智能合约解决外部下注,ps:为每个人带来更多利润部署在兼容metamask和portis的matic上智能合约:Solidity v0.7.6 EIP1167代理合约OpenZeppelin
  • Solidity v0.7.6
  • EIP1167代理合约
  • OpenZeppelin

随时间变化的参与者平台费用

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

随着时间的推移,奖励与股权的对比

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

使用的技术:

  • npm i:安装

文件

. ├── contracts │   ├── Factory │   │   └── EIP1167_Factory.sol │   ├── Question │   │   └── EIP1167_Question.sol │   └── Utils │       ├── CloneFactory.sol │       ├── console.sol │       ├── Formulas.sol │       └── SafeMath.sol ├── hardhat.config.js ├── helper │   ├── components-ganache.js │   └── components-hre.js ├── integ │   └── info.json ├── migrations │   ├── 1_local_node.js │   └── 2_any.js ├── package.json ├── README.md └── test     ├── 1_EIP1167_Tests.js     ├── 2_Require_Tests.js     └── 3_Random_market_Simulation.js 

如何运行?

  • npm i: Installation
  • npm run compile: Compile the contracts
  • npm run test: Run the tests
  • npm run node: Run the local hardhat node
  • npm run hh: Deploy on local hardhat node
  • npm run any: Deploy on custom specified network

VS代码扩展

  • Solidity by Juan Blanco: error messages in the editor
  • Prettier – Code Formatter: formatting js files

贡献者

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
阿努帕姆·库马尔
Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
钦玛依·赛维穆里
Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
苏拉布·库马尔
图沙罗希拉 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约
VIPIN K P

Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约 Improvised Decentralized prediction market smart contracts - 临时分散预测市场智能合约

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/20629.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Improvised Decentralized prediction market smart contracts – 临时分散预测市场智能合约区块链毕设代写

提供最优质的资源集合

立即查看 了解详情