YEARN
v2
v2
  • Introduction to Yearn
  • FAQ
  • DeFi Glossary
  • How-To Guides
    • How to Add a Custom Token to MetaMask
    • How To Make a YIP
    • How to Mint yUSD
    • How To Participate in a yVault
    • How to Understand CRV Vote Locking
    • How To Understand yVault ROI
    • How To Withdraw from yEarn and yVaults
  • YFI and yTokens
  • yUSD
  • Products
    • yVaults
      • V2 yVaults
        • Strategies and yVaults available
      • V1 yVaults
    • Earn
    • Zap
    • yInsure
    • yGift
  • R&D
    • yBorrow
    • yLiquidate
    • ySwap
    • yTrade
    • Delegated Funding DAO Vaults
    • StableCredit
  • Developers
    • Naming Conventions
    • Deployed Contracts Registry
    • Code Repositories
    • Integration Guide
    • yVaults Documentation
      • Vaults Overview
      • Vault Interfaces
    • Misc Resources
      • YIP Boilerplate
      • Admin Access Policy
      • Smart Contract API
        • APR
        • iToken
        • Zap
      • Smart Contract Integration
        • 1split
        • aave
        • apr
        • aprmap
        • aprmapwithpool
        • aprwithpool
        • compound
        • curvefi
        • dydx
        • fulcrum
        • imanage
        • interface
        • itoken
        • uniswap
        • uniswapapr
        • uniswaproi
        • ybtc
        • ybusd
        • ycrv
        • ydai
        • ysusd
        • ytusd
        • yusdc
        • yusdt
        • zap
  • Additional Resources
    • Team
    • Github
    • Medium
    • Gov Forum
    • Discord
    • Telegram
    • Reddit
  • Contributors
    • Contribute
    • Contributor Tools
    • Writing Style Guide
Powered by GitBook
On this page
  • Abstract
  • Contributing
  • YIP Statuses
  • Example YIP
  • Validation
  • Copyright

Was this helpful?

  1. How-To Guides

How To Make a YIP

PreviousHow to Add a Custom Token to MetaMaskNextHow to Mint yUSD

Last updated 4 years ago

Was this helpful?

Abstract

The yEarn Improvement Proposals (YIPs) describe standards for the yEarn platform, including core protocol specifications, client APIs, and contract standards. This is the definitive, canonical reference specification for the core logic.

Contributing

  1. Review .

  2. Fork the repository by clicking "Fork" in the top right.

  3. Add your YIP to your fork of the repository. There is a .

  4. Submit a Pull Request to yEarn's .

Your first PR should be a first draft of the final YIP. It must meet the formatting criteria enforced by the build (largely, correct metadata in the header). An editor will manually review the first PR for a new YIP and assign it a number before merging it. Make sure you include a discussions-to header with the URL to a new thread on where people can discuss the YIP as a whole.

Note: It is important that their be community support behind a proposed YIP - It is up to the author(s) to shepard their proposal through the process.

If your YIP requires images, the image files should be included in a subdirectory of the assets folder for that YIP as follow: assets/yip-X (for yip X). When linking to an image in the YIP, use relative links such as ../assets/yip-X/image.png.

When you believe your YIP is mature and ready to progress past the WIP phase, you should ask to have your issue added to the next governance call where it can be discussed for inclusion in a future platform upgrade. If the community agrees to include it, the YIP editors will update the state of your YIP to 'Approved'.

YIP Statuses

  • WIP - a YIP that is still being developed.

  • Proposed - a YIP that is ready to be reviewed in a governance call.

  • Approved - a YIP that has been accepted for implementation by the yEarn community.

  • Implemented - a YIP that has been released to mainnet.

  • Rejected - a YIP that has been rejected.

Example YIP

-Status: Proposed
+Status: Approved
YIP: integer,
Created: 2020-09-01
-Last-Modified: 2020-09-03
+Last-Modified: 2020-09-08

Validation

It is possible to run the YIP validator locally:

gem install yip_validator
yip_validator <INPUT_FILES>

Copyright

YIPs MUST pass some validation tests. The YIP repository ensures this by running tests using and .

Copyright and related rights waived via .

YIP-0
template YIP here
YIPs repository
gov.yearn.finance
html-proofer
yip_validator
CC0