GithubHelp home page GithubHelp logo

starswap-core's People

Contributors

9191stc avatar adlirust avatar element2050 avatar pause125 avatar valentinereese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

starswap-core's Issues

License not specified, making the code closed source

Bug Description
License is not specified, making the code essentially closed source.

This can be fixed in many ways, the most common being a LICENSE file in the root of the repo (recognized by GitHub). GitHub guide.

Expected Behavior
The license should be clearly visible, for example at the root of the repo.

Additional Context
If the author does not specify a license, the rights to the work are 100% owned and controlled by the author.

Starswap support Move-based multi-chain

About Starswap

Starswap is positioned as a universal Dex on the Move-based chain, a Uniswap-inspired Automated Market Maker (AMM) protocol with fast trading speeds and low fees. Every wallet holder on the chain can freely exchange tokens.
Functionally, in addition to LP market making and Swap swaps, it also offers YieldFarming and Stake functions, and users can participate in LP and single coin stake mining.

Starswap Situation

Starswap has been officially launched on the Starcoin block chain in 2022 Q1, and it is planned to support Move-based multi-chain soon.

What need to do to support Move-based multi-chain?

The Starcoin public chain itself is also a public chain based on the Move language, and has similar syntax, model and Stdlib to Aptos, SUI and other public chains. However, since Starcoin has been on the mainnet for more than a year, it has implemented richer Move Stdlib and tool methods. Making Starswap support Move multi-chain needs to solve:

  1. The difference of Account model, especially the Account model of SUI has big differences.
  2. Differences in the Coin model;
  3. Improvement of Stdlib and tool library

In addition, there is an urgent demand for large number computing in the Defi project. For this reason, Starcoin has provides a native implementation of U256. Aptos and SUI's Stdlib also need to support the implementation of U256.

Starswap multi-chain Support Plan

  1. Milestone 1
  • Upgrade the economic model corresponding to multi-chain, and reach a consensus with the community
  • Refactor the project to have multi-chain scalability
  1. Milestone 2
  • Based on Aptos public chain, adapt to contract functions such as Account, Coin, Stblib and tools
  1. Milestone 3
  • Based on the SUI public chain Account model, redesign the Starswap contract
  • Adapt to contract functions such as Coin, Stblib and tools

Starswap STAR回购合约

Is your feature request related to a problem? Please describe.
由社区提议的,经过投票,申请了100万的STC,发起STAR的回购,整个回购持续1年。

Starswap 在社区版最终回购策略出来前,有个初步方案会先跑起来,具体策略是:将100万STC Grant平摊到每天,每天累计回购2741 STC等值的STAR,为了避免套利,一天内的回购分多次触发,每5min回购一次,每次回购9.52 STC等值的STAR,回购持续2周。预计两周累计回购38384 STC等值的STAR。此次回购周期从2022-7-29号开始,持续到8-14号。

Describe the solution you'd like
回购的策略:关键就两个参数,一个是单次回购数量,一个是回购周期,直到把grant的资金回购完。
考虑把回购流程合约化,任意社区用户都可以调用,调用时候把当前时间之前还没回购的额度全部购买,购买资金来自回购国库。
回购数量和回购周期实现配置化。
回购来的STAR,先保留在回购账号的Balance下,待社区投票后,再决定如何使用(是锁仓还是其它用途)。

回购最终会DAO化,也可以提前考虑下。

[Refactor]: Refactor yield farming on Aptos

The yield farming on the Starcoin chain has iterated through multiple versions and is somewhat complex, the new Aptos chain allows for a simplified model and thus simplified contract code.

[Feature Request]: Modify the commons to be compatible with Aptos

Is your feature request related to a problem? Please describe.
Some commons on the Starcoin chain, such as SafaMath, FixedPoint128, BigExponential compatible with Aptos

Describe the solution you'd like
Modify the commons to be compatible with Aptos.

Describe alternatives you've considered

Additional context

[Feature Request]: Multi-chain economic model upgrade

Is your feature request related to a problem? Please describe.
How to ensure stable economic models under multiple chains?

Describe the solution you'd like
It is expected to realize the economic model of multiple chains by reducing the production of STAR mining on the Starcoin chain, and the reduction ratio will be determined by community voting.

Describe alternatives you've considered

Additional context

Feature: Implementing linear release logic in the economic model

Implementing linear release logic in the economic model.

When the mainnet was launched, genesis released 15% of the tokens, and the remaining 85% needed to be released linearly. With reference to the economic model, a linear release logic is implemented.

Total Allocation
The Initial Dex Offering(IDO) 1%, and the genesis is fully released.
LP mining rewards, 60%, genesis release 5%, and the rest will be released linearly for two years.
Stake rewards 10%, genesis release 5%, and the rest will be released linearly for one year.
Community incentives 5%, for community incentives, airdrops, etc. Genesis releases 2%, and the rest will be released linearly for two years.
Developer Funds 10%, released linearly for two years.
Protocol Treasury 14%, used for initial liquidity, community governance, ecological construction, etc. Genesis release 2%, the rest is locked in DAO Treasury, and it will be operated by voting after DAO is launched.

Refer : https://docs.starswap.xyz/v/en/tokenomics/tokenomics

[Feature Request]: Support big decimal calculation for Aptos

Is your feature request related to a problem? Please describe.
In Swap scenarios higher precision is needed to avoid large number overflow.
Starcoin already supports U256 natively, Aptos does not support U256 yet.

Describe the solution you'd like
So need degrade of the original U256 to u128, then wait for Aptos to support U256 before accessing and supporting

Describe alternatives you've considered

Additional context

注入流动资金时,报错

Bug Description
注入流动资金时,报错
内容是:
ALERT: Starmask: contract.dry_run_raw failed. Error: {"ExecutionFailure":{"code_offset":4,"function":54,"function_name":"withdraw_with_metadata","location":{"Module":{"address":"0x00000000000000000000000000000001","name":"Account"}},"status":4008,"status_code":"MISSING_DATA"}}

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.