Git Product home page Git Product logo

inception-contracts's Introduction

Stability

Stability Core

Source code of smart contracts for Stability protocol

What is Stability?

Stability is a profit generating protocol managed and developed by our decentralized autonomous organization.

Platform repositories

Core Development

Branches

Branch What for?
main Mainnet deployed smart contracts. Production.
develop Testnet deployments. Contracts for testing, debugging, and auditing before deploying to mainnet.
l2/** Layer 2 specific network contracts development and deployments.
draft/** Protocol development.

Technology stack

Learning smart contract development

Start coding

Setup

git clone https://github.com/stabilitydao/core.git
cd core
yarn

Local environment

npx hardhat node

Testing

yarn test

Linting

yarn lint

Coverage

yarn coverage

Cleaning

yarn clean

inception-contracts's People

Contributors

a17 avatar iammrjude avatar 0xrajkumar avatar

Stargazers

Renzo avatar Lavishq avatar John Freier avatar Anny1730 avatar t11s avatar Γ–mer Faruk Aksoy avatar zachi.eth avatar  avatar Pup Ragnarok avatar  avatar Ed K avatar Pouria Taj avatar  avatar  avatar

Watchers

 avatar Nuno Edgar Nunes Fernandes avatar

inception-contracts's Issues

Stability Builder

Stability Builder ERC721

Features:

  • Splitting
  • Salary
  • Vesting
  • changeable
  • upgradeable

Profit collections

Abstract ERC721Votes contract of token which can be minted by locking PROFIT tokens on contract address.

Splitter

The Splitter contract must fairly distribute generating profits in form of ERC20 tokens between the dividend payers, the treasury and the development fund. The contract should keep the shares of the recipients of the resources, and allow them to be changed by the governance.

[0.1 eth, 1000 PROFIT] ProfitHolder and SDIV burns

ProfitHolder contract

Contract with DividendToken BURNER_ROLE (deployed to mainnet).

todo

  • balanceOf(address) view function need to calculate total amount of holder PROFIT tokens:
    • on address
    • staked to DividendMinter pool
    • provided to liquidity by holding of uniswapv2 LP Pair
    • provided LP to MasterChef farms
    • in governance NFTs like ProfitMaker
    • bridged
  • maxSDIV changeable by governance role limit of holding SDIV tokens by 1 PROFIT token
  • whitelisted role to pass dividend pool, liquidity providing contracts and other addresses
  • burnSDIV(address) public function need to burn SDIV exceeding the limit and whitelist

On-chain governance

Motivation
DAO needs a Governance contract.
On-chain governance is a mechanism that enables the decentralized community to govern the protocol through direct on-chain voting.
On-chain governance is most reliable for transparent protocol management because it guarantees a transparent consensus forming process.

Details
The native token has the voting capability provided by the ERC20Votes extension.
Optimal base implementation for us is openzeppelin-contracts Governon.sol
How to set up on-chain governance

[1000 PROFIT] Bridge

Simple PoA auto bridge for natural-synthetic token between EVM chains.

  • synthetic token
  • bridge

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.