Giter VIP home page Giter VIP logo

dfi's Introduction

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

dfi's People

Contributors

auspicious-001 avatar imgbotapp avatar ixiaowu2020 avatar jin10086 avatar lancelotm avatar leolee-defi avatar lychees avatar shellteo avatar wepiggy-dev avatar yunfetian avatar zjhmale 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dfi's Issues

【提升TVL】建议前端页面加上用 iToken 挖矿的入口和APY

有个UI上的建议,可以把支持 iToken 挖矿的入口放到dfi 的页面里来。

例如 s.finance 用 itoken 挖 SFG ,入口可以是一个跳转链接,或者直接前端操作投到sfg合约里。数据展示上显示itoken本身的APY+挖SFG的APY来吸引用户。

以 USDT 为例,如果你投入 USDT,iUSDT 本身有14%的年化,再放到s.finance挖 SFG 有22%的年化。加起来35%这个足够有吸引力了。harvest 和 pickle 都是这么做的,把两项APY加起来,或是分别列出来。

个人认为这点还是蛮重要的:

  1. 很多不在社区的用户真的不知道 iToken 还有哪里可以投,很多在社区里的朋友其实也并不知道。导致兴趣度不高,门槛却很高。
  2. 比较一下最近火热的 harvest 其代币 FARM 的分发没有完成,所以用 fToken 挖 FARM 来补贴的 APY 吸引了不少关注度(pickle也类似)。而YFI、YFII这类项目代币的分发已经完成,这就更需要发挥iToken作用了。
  3. APY 的显示真的非常非常重要,多写一份收益率,就多一份关注度,harvest 和 pickle 都是在首页显示了 A%+B% 一目了然。咱们别太实在了,挖过harvest的都知道它前半部分的apy只是预估(实际净值还经常掉),而且显示上也直接把两部分收益率相加。这种做法讨巧又不过份,也算不上虚假宣传。

还有就是早日把 LP 池的入口也放到首页来吧,首页显示的数据不怕多,就怕都藏着找不到

https://gov.dfi.money/t/tvl-itoken-apy/836

首页优化

把这个去掉?
image

下面的这个放到上面去?
image

pool4 质押yfii领取iUSDT

合约地址是:0x3d367c9529f260b0661e1c1e91167c9319ee96ca

和yfii.finance pool3一样,

质押的也是YFII 0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83

分红的代币是0x72Cf258c852Dc485a853370171d46B9D29fD3184

没有倒计时

质押进去需要3天后解锁

image

canWithdrawTime[用户地址] 拿到的是用户可以提现的时间戳

如果不为0,且小于当前时间戳(当前时间大于canWithdrawTime),则unstake以及exit这两个按钮都是可以点的,否则这两个按钮不可点.

领取奖励按钮以及stake是一直可以点的

Error when click stake token button

TxGasUtil - Trying to call a function on a non-contract address { "originalError": { "errorKey": "transactionErrorNoContract", "getCodeResponse": "0x" } }

机枪池增加lp 挖矿

首页vault需要支持两个区切换

进入lp区,需要先弹提示,

提示内容大概是: lp挖矿是有损的(这个需要文案提供)

用户确认后才可以进入

入金方式支持3种

  1. lp直接如今
  2. 两个代币种的两个单独入金

可能需要换一个图 说明系统是如何运作的

比如 eth/usdt的

用户存 usdt->自动帮忙换成eth/usdt的lp -> uniswap 质押挖矿 -> uni ->换成 eth/usdt lp继续复利挖矿

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.