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
  • v2 Yield Tokens
  • yDAIv2
  • yUSDCv2
  • yUSDTv2
  • yTUSDv2
  • Utility Contracts
  • IEarnAPRWithPool
  • APRWithPoolOracle
  • UniswapROI
  • UniswapAPR
  • Lending Providers

Was this helpful?

  1. Developers
  2. Misc Resources

Admin Access Policy

These docs are still being worked on.

v2 Yield Tokens

Contract

ABI

Address

yDAIv2

yUSDCv2

yUSDTv2

yTUSDv2

yDAIv2

None ✅

yUSDCv2

None ✅

yUSDTv2

  • set_new_APR ✅

No interaction with funds.

APR used for stateless recommend() function. Can be used to change the recommended provider. The owner could replace the existing contract to a controlled contract that could suggest a specific lending provider.
  • set_new_COMPOUND ⚠️

Could access funds via malicious lending contract.

Sets the downstream address for Compound. The owner could replicate the compound mint() function call and force the APR change (with the vector mentioned in set_new_APR) and withdraw funds.

This method is implemented to allow adding Compound if they support the underlying token.
  • set_new_DTOKEN ✅

No interaction with funds.

Can only update the ID at dydx, no way to influence any other action.

This method is implemented to allow adding dYdX if they support the underlying token.
  • set_new_FULCRUM ⚠️

As per set_new_COMPOUND

yTUSDv2

  • set_new_APR ✅

  • set_new_COMPOUND ⚠️

  • set_new_DTOKEN ✅

Utility Contracts

Contract

ABI

Address

APROracle

UniswapROI

UniswapAPR

APRWithPoolOracle

IEarnAPRWithPool

IEarnAPRWithPool

No interaction with funds.

APR used for stateless recommend() function. Can be used to change the recommended provider. The owner could influence the calculation to a specific lending provider.
  • addAToken ✅

  • addAUniToken ✅

  • addCToken ✅

  • addDToken ✅

  • addIToken ✅

  • addPool ✅

  • addYToken ✅

  • set_new_APR ✅

  • set_new_UNI ✅

  • set_new_UNIAPR ✅

  • set_new_UNIROI ✅

APRWithPoolOracle

No interaction with funds.

APR used for stateless recommend() function. Can be used to change the recommended provider. The owner could influence the calculation to a specific lending provider.
  • set_new_AAVE ✅

  • set_new_DDEX ✅

  • set_new_DYDX ✅

  • set_new_Modifier ✅

  • set_new_Ratio ✅

  • set_new_blocksPerYear ✅

UniswapROI

None ✅

UniswapAPR

No interaction with funds.
  • set_new_blocksPerYear ✅

Lending Providers

PreviousMisc ResourcesNextSmart Contract API

Last updated 4 years ago

Was this helpful?

compound.finance
aave.com
ddex.io
dydx.exchange
fulcrum.trade
JSON
ydaiv2.iearn.eth
JSON
yusdcv2.iearn.eth
JSON
yusdtv2.iearn.eth
JSON
ytusdv2.iearn.eth
JSON
apr.iearn.eth
JSON
uniroi.iearn.eth
JSON
uniapr.iearn.eth
JSON
apradj.iearn.eth
JSON
iapradj.iearn.eth