Code Monkey home page Code Monkey logo

audit's Introduction

Value Defi Smart-contracts

Bringing True Value to DeFi

Full announcement

VALUE (previously known as YFV) is the governance token of YFValue protocol. The project aims to bring the true value of yield farming finance accessible to all users, regardless of whether you are a big whale or small minnow, via its unique features, namely the voting of the inflationary rate of the supply and a referral system with automatic burning done fully on-chain.

  • ValueDefi.io is a DeFi yield aggregator
  • First-ever Vote on-chain Supply Inflation rate to enable farmers to vote on-chain and automatic execution will be made based on the votes counted.
  • YFV has a stable-coins pool which allows even small players to join the DeFi Yield Farming. The number of users will then be 100x or more compared to other DeFi Yield Farming Protocol.
  • Referral and Burn On-chain to motivate the community who are giving a hand for bringing YFV to the public.
  • Last but not least, the separated Elastic Supply Stable-coins vUSD and vETH are great add-on benefits for the farmers and the whole ecosystem later on along the road map.

Smart contracts comparison with super-classes

Diff checker: YFI and YFV

Diff checker: YFIRewards and YFVRewards (Seed Pool)

  • Seed Pool supports 4 stables coin instead of a single y coin from the original code

Diff checker: YFIRewards and YFV_Rewards_PoolXXX (Balancer/Uni Pool)

  • Removed rewardDistribution
  • notifyRewardAmount() can only call once by owner and reward amount cant be over TOTAL_REWARD

Diff checker: YFV_Stake and YFV_Stake_v2

  • Added whitelistedPools (so hackers can't attack via stakeOnBelf by penny amount anymore)
  • Added lowStakeDepositFee, highStakeDepositFee, unlockWithdrawFee (and disable all at the beginning. Will set by governance after VIP-1.1)
  • Set yfvInsuranceFund to Governance Multisig Wallet (and move to deployed Insurance Fund contract later)
  • Owner (governance) can set epochReward to 0 to disable the pool with no harm
  • Check if the minter rights (vETH and vUSD) are revoked, and set epochReward to zero with no harm (in checkNextEpoch() modifier)
  • Use the same solidity version uniformly across the contract
  • Optimise gas usage for getReward() method
  • Add governanceRecoverUnsupported for recover any ERC20 sent in mess up
  • Governance can add more reward if needed via addTotalReward() but not more than 10 times
  • Ability to upgrade vUSD and vETH contract (v1 is still experimental, we may need vUSDv2 with rebase() function working soon)

Staking Deposit/Withdraw Fee system:

  • unlockWithdrawFee = 0.1%: stakers will need to pay 0.1% (sent to insurance fund)of amount they want to withdraw if the coin still frozen
  • lowStakeDepositFee = 0.1%: stakers still can stake with low amount but need to pay 0.1% (sent to insurance fund)
  • specially, if lowStakeDepositFee = 10000 -> low amount stakers will not pay anything (rich-men pay tax, not poor-men)
  • highStakeDepositFee = 0.1%: stakers need to pay 0.1% of extra amount more than 90 YFV (sent to insurance fund)

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.