Giter Club home page Giter Club logo

dckb's Introduction

DCKB

DCKB means (DAO/Deposited) CKB.

DCKB is an extended UDT that 1 to 1 mapping to NervosDAO deposited CKB, it enables users to transfer CKB from NervosDAO while still get NervosDAO compensation.

Advantages:

  • Deposit CKB to layer2 / Defi while still earning NervosDAO compensation.
  • Transfer CKB from NervosDAO.
  • No centralized service involved.

Known limitation:

  • After deposition, users need to wait for 4 epochs(~16 hours in mainnet) to use DCKB.
  • Max deposition limitation is 10_000_000 CKB at once.
  • NervosDAO withdrawal must be completed within 42 epochs(~ 7 days) since the withdrawal started; otherwise, anyone can unlock the cell.

Build

make build && cargo test

Usage

Contracts:

  • DCKB - an extended UDT type script
  • DAOLock - NervosDAO cell's lock script
  • CustodianLock - lock script, used for custodian DCKB while withdraw from NervosDAO

Wiki

License

MIT

Copyright, 2020, by JJy

dckb's People

Contributors

jjyr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dckb's Issues

Which the cell will be unlocked and why?

NervosDAO withdrawal must be completed within 42 epochs(~ 7 days) since the withdrawal started; otherwise, anyone can unlock the cell.

I am not sure why there is the limitation when this idea implemented, could you explained more ?
I love this idea so much!

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.