HODL-bonus-pool ?‍?‍?? dApp – HODL奖金池?‍?‍?? 达普区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,HODL-bonus-pool ?‍?‍?? dApp – HODL奖金池?‍?‍?? 达普区块链毕设代写 是一篇很好的国外资料

HODL-bonus-pool ?‍?‍?? dApp - HODL奖金池?‍?‍?? 达普 HODL-bonus-pool ?‍?‍?? dApp - HODL奖金池?‍?‍?? 达普

HODL-bonus-pool ?‍?‍?? dApp

A project for learning smart-contract-full-stack-whizz-bang-dApp-buidling using the incredible austintgriffith/scaffold-eth.

? The idea: “Strong ? hands” get a bonus from “weak ? hands”‘s penalties for early withdrawals.

Why would anyone use it, why is it a good idea

  1. Price effect: like “staking”, but without the inflation
    • Raises the price by reducing amount in circulation ?.
    • Builds trust in the asset by proving an amount commited to be held ?.
    • Makes HODLing more attractive by providing a positive economic incentive ?.
  2. Social proof / network effects: like “time lock”, but with an incentive to participate
    • Makes HODLing provable and shareable ? .
    • Increases trust in the community’s / project team’s long term commitment, provides a social incentive to demonstrate “skin in the game” ?‍♀️ .
  3. Yield generating: like AMMs LP or lending, but without AMM’s impermanent loss and doesn’t depend on borrowing demand
    • Vs. liquidity providing in AMMs: no dependence on trading volume, no exposure to additional assets, no bleeding value to arbitrageurs (not-so“”impermanent”” loss) ?.
    • Vs. lending: earns yield on tokens that don’t have a borrowing market with high interest rates ? (or any borrowing market).
  4. Volatility bonus: market volatility causes higher bonuses
    • Asset price “moons” ? – more “weak hands” will withdraw early to take profits, increasing the bonus ?.
    • Asset price “tanks” ? – more “weak hands” will withdraw early to panic-sell, increasing the bonus ?.
  5. So what tokens this should / shouldn’t be used for?
    • ✔️ Most tokens which don’t have profitable AMM / staking / lending usage.
    • ✔️✔️ Community driven tokens like meme-tokens.
    • ✔️✔️✔️ Smaller (new) project tokens instead of time-lock mechanism .
    • ? Stablecoins: they can be profitably and safely lended, or provided as liquidity in AMMs.
    • ? Tokens which have very high trading volume but don’t change in price much: they can be LPed in AMMs.
    • ? Tokens which have profitable staking mechanisms: they can be staked for guaranteed yield.

? Vague versions plan (roadmap?)

  1. v0 ✔️ (PoC)
    • goal: ? end-to-end bare skeleton first version deployed (to testnet).
    • scope: fixed commitment params & bonus depends on ratio of current pool, only eth
    • deliver ✔️ repo ✔️, tests + CI ✔️, basic UI ✔️, kovan testnet deployed & verified contract ✔️ and frontend (eth) ✔️
    • stretch ✔️: erc20 support ✔️ (supporting a single token)
  2. v1 ✔️ (alpha)
    • goal: handle all tokens & ETH in one contract
    • scope: any ERC20 token ✔️ (even fee-on-transder tokens ✔️), handle ETH as WETH ✔️, single contract for all tokens ✔️
    • deliver: UI ✔️ frontend (ERC20 tokens / eth) ✔️, explanations ✔️, kovan testnet deployed & verified contract ✔️, some feedback ✔️
  3. v2 ✔️ (alpha+)
    • goal & scope: bonus depends on time held ✔️, flexible commitment params when depositting ✔️
    • deliver: UI ✔️, frontend ✔️, kovan testnet deployed & verified contract ✔️
  4. v3 ✔️ :

    • Goal & added scope: deposit is ERC721 NFT (transferable, view on supporting platforms) ✔️, multiple deposits for same account ✔️, depositFor on behalf someone else ✔️, all-deposits view ✔️.
    • UI:
      • Kovan ✔️
    • Contract:
      • Kovan ✔️
      • Mainnet(s):

Basic V2 demo (Try it out):

HODL-bonus-pool ?‍?‍?? dApp - HODL奖金池?‍?‍?? 达普


Local development

System dependencies: Node & Yarn

Running local chain + contract + local frontend

  1. Install dependecies: yarn install
  2. Start a local chain: yarn chain
  3. In second terminal: deploy the contract to the chain – yarn deploy or yarn watch
  4. In third terminal: start the frontend react server yarn start

Testing:

  • All tests: yarn test
  • Run some tests matching a pattern (in their description strings):
    1. Go to contracts package: cd packages/hardhat
    2. Start a local chain: yarn chain
    3. In second terminal: run e.g. “deployment” related tests – yarn mocha -g deployment

Other utils:

In in packages/hardhat:

  • Gas report: yarn gas-report. It’s saved to packages/hardhat/gasReportResults.txt.
  • slither report:
    • To install: yarn install-slither (this creates a python .venv virtual environment with slither)
    • To run: yarn slither. Report is saved to packages/hardhat/slitherReport.txt.

HODL-bonus-pool ?‍?‍?? dApp - HODL奖金池?‍?‍?? 达普HODL-bonus-pool ?‍?‍?? dApp - HODL奖金池?‍?‍?? 达普

HODL奖金池?‍?‍?? dApp

一个学习智能合约的项目,使用令人难以置信的Austingriffith/scaffold eth构建完整堆栈

? 想法:“坚强?✊ 双手“从”弱者“获得奖金”? 银行对提前提款的处罚

? 模糊版本计划(路线图?

基本V2演示(试用):

本地开发

运行本地连锁+合同+本地前端

测试:

? 模糊版本计划(路线图?

  1. 价格效应:类似于“下注”,但没有通货膨胀通过减少流通量提高价格?. 通过证明承诺持有的金额,建立对资产的信任?. 通过提供积极的经济激励,使胡闹更具吸引力?. 通过证明承诺持有的金额,建立对资产的信任?.
  2. 增加对社区/项目团队长期承诺的信任,提供社会激励,展示“游戏中的皮肤”?‍♀️ .
  3. 波动性奖金:市场波动导致更高奖金资产价格“月亮”? – 更多的“弱手”将提前退出以获取利润,增加奖金?. 资产价格“坦克”? – 更多的“弱手”将提前退出恐慌性抛售,增加奖金?.
  4. ✔️ 大多数没有盈利的AMM/赌注/借贷用途的代币
  5. ? Stablecoins:它们可以安全地进行有利可图的借贷,或者作为流动性在AMMs中提供

基本V2演示(试用):

  1. v3✔️ : 目标及;新增范围:押金为✨ERC721NFT✨ (可转让,在支撑平台上查看)✔️, 同一账户多笔存款✔️, 代他人存款✔️, 所有存款视图✔️. 乌伊:科万✔️ 合同:科万✔️ Mainnet(s):⏳
  2. 安装依赖项:纱线安装启动本地链:第二个终端中的纱线链:将合同部署到链-第三个终端中的纱线部署或纱线监视:启动前端反应服务器纱线启动所有测试:纱线测试运行一些匹配模式的测试说明字符串):转到合同包:cd包/安全帽启动本地链:第二个终端中的纱线链:运行例如“部署”相关测试-纱线摩卡-g部署转到合同包:cd包/安全帽启动本地链:第二个终端中的纱线链:运行例如“部署”相关测试测试-纱线摩卡-g部署
  3. 要运行:纱线slither。报告保存到packages/hardhat/slitherReport.txt
  4. v3✔️ :

    • Goal & added scope: deposit is ERC721 NFT (transferable, view on supporting platforms) ✔️, multiple deposits for same account ✔️, depositFor on behalf someone else ✔️, all-deposits view ✔️.
    • UI:
      • Kovan ✔️
    • Contract:
      • Kovan ✔️
      • Mainnet(s):

本地开发

HODL-bonus-pool ?‍?‍?? dApp - HODL奖金池?‍?‍?? 达普


运行本地连锁+合同+本地前端

系统依赖项:节点和;纱线

其他实用工具:

  1. Install dependecies: yarn install
  2. Start a local chain: yarn chain
  3. In second terminal: deploy the contract to the chain – yarn deploy or yarn watch
  4. In third terminal: start the frontend react server yarn start

Testing:

  • All tests: yarn test
  • Run some tests matching a pattern (in their description strings):
    1. Go to contracts package: cd packages/hardhat
    2. Start a local chain: yarn chain
    3. In second terminal: run e.g. “deployment” related tests – yarn mocha -g deployment

Other utils:

套装/安全帽:

  • Gas report: yarn gas-report. It’s saved to packages/hardhat/gasReportResults.txt.
  • slither report:
    • To install: yarn install-slither (this creates a python .venv virtual environment with slither)
    • To run: yarn slither. Report is saved to packages/hardhat/slitherReport.txt.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/23944.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » HODL-bonus-pool ?‍?‍?? dApp – HODL奖金池?‍?‍?? 达普区块链毕设代写

提供最优质的资源集合

立即查看 了解详情