Giter VIP home page Giter VIP logo

zeit_fund's Introduction

Zeitgeist Fund

This repository is a simple fund that allows a single manager to compose a single ERC-like asset of multiple prediction markets.

It is not audited, and was built in a relatively small amount of time. Do not use in production yet.

Smart contract diagram

Project

The entire repository is a Rust workspace. Compile by navigating to a folder and executing cargo contract build --release. The output will be within the main folder, in the target folder.

dividend_wallet

This is a smart contract that holds ZTG dividends so that it is separate from the manager's available liquidity. It can only be distributed with a smart contract call from the Zeitgeist fund when a user wants to claim their dividend.

This smart contract is automatically instantiated by the Zeitgeist Fund.

zeit_fund

This is the main smart contract. It is created by a manager.

Workflow:

  1. Manager creates the ZeitFund with an initial funding goal.
  2. Users add ZTG with fund() until the fund is complete, unlocking it for the manager.
    • It is recommended that managers also fund, to lock their tokens as a trust mechanism. Otherwise, there is nothing stopping the manager from dumping. By locking, their liquidity is locked until liquidation of the fund.
  3. Manager can interact with markets & issue dividends of ZTG.
    • Users can claim ZTG dividends as issued by the Manager with claim().

Interact:

https://contracts-ui.substrate.io/instantiate?rpc=wss://bsr.zeitgeist.pm

zeit_fund's People

Contributors

jboetticher avatar

Stargazers

Divgun avatar Harald Heckmann avatar

Watchers

 avatar

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.