Code Monkey home page Code Monkey logo

pos-pool's Introduction

PoS-Pool

POS-POOL IS A OPEN SOURCED SOFTWARE. USE AT YOUR OWN RISK! WE ASSUMES NO RESPONSIBILITY OR LIABILITY IF THERE IS A BUG IN THIS IMPLEMENTATION.

This is the source code of Conflux PoS pool dapp, including Solidity and UI code. Anyone can use this code setup a Conflux PoS pool to enable CFX holder participate in Conflux PoS earn staking reward without running a Conflux node. The pool runner can share some CFX from PoS reward as node maintenance costs.

Prerequisite

To deploy PoS pool running a Conflux archive/full node is required

Setup

To build and deploy the PoS pool contract check this guide.

To setup the UI check this guide

Disclaimer

It's PoS pool runner's responsibility to keep the PoS pool node running correctly. Here is the Conflux PoS node running notice

pos-pool's People

Contributors

0xfx01 avatar angelia-yuqi-personal avatar cfx-gspos avatar chy2021 avatar mc-kanon avatar nucleonprotocol avatar pana avatar sssensational avatar zctocm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pos-pool's Issues

npm install error

npm -v
8.13.0

Severity: high
Prototype Pollution in y18n - GHSA-c4w7-xm78-47vh
fix available via npm audit fix
node_modules/ethereumjs-testrpc-sc/node_modules/y18n

yargs-parser <=5.0.0 || 6.0.0 - 13.1.1
Severity: moderate
Prototype Pollution in yargs-parser - GHSA-p9pc-299p-vxgp
Prototype Pollution in yargs-parser - GHSA-p9pc-299p-vxgp
No fix available
node_modules/@ensdomains/ens/node_modules/yargs-parser
node_modules/ethereumjs-testrpc-sc/node_modules/yargs-parser
yargs 4.0.0-alpha1 - 7.0.0-alpha.3 || 7.1.1
Depends on vulnerable versions of yargs-parser
node_modules/@ensdomains/ens/node_modules/yargs
solc 0.3.6 - 0.4.26
Depends on vulnerable versions of yargs
node_modules/@ensdomains/ens/node_modules/solc
@ensdomains/ens *
Depends on vulnerable versions of solc
node_modules/@ensdomains/ens
@ethereum-waffle/ens *
Depends on vulnerable versions of @ensdomains/ens
node_modules/@ethereum-waffle/ens

60 vulnerabilities (16 moderate, 41 high, 3 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

When the portal disabled, the balance doesn't become 0

Reproduce steps:

  1. Connect to the Portal with testnet
  2. Select a pool and Stack some CFX in it
  3. Wait for there are some rewards generated
  4. Disable the portal and refresh the page

Expect:
All the number related to the wallet should become 0
Actual:
The Balance is not, it is 659.56920

withdraw operation raised err

Reproduce steps:

  1. wait for there is some CFX can be withdraw in the pos pool
  2. do the withdraw operation
  3. the portal desn't pop up

Err info:
index.js:291 error Error: Estimation isn't accurate: transaction is reverted. Innermost error is at CFXTEST:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH3DW3CTN: InternalContract("not enough unlocked staking balance to withdraw").
at s. (js-conflux-sdk.umd.min.js:19)
at s (js-conflux-sdk.umd.min.js:17)
at Generator._invoke (js-conflux-sdk.umd.min.js:17)
at Generator.next (js-conflux-sdk.umd.min.js:17)
at r (js-conflux-sdk.umd.min.js:1)
at u (js-conflux-sdk.umd.min.js:1)

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.