yearn.finance
yearnmediumtwittergithub
English
English
  • Introduction to Yearn
  • FAQ
  • DeFi Glossary
  • How-To Guides
    • How to Mint yUSD
    • How to Add a Custom Token to MetaMask
    • How To Participate in a yVault
    • How To Understand yVault ROI
    • How to Understand CRV Vote Locking
    • How To Make a YIP
  • Governance
  • YFI and yTokens
  • yUSD
  • Products
    • yVaults
    • Earn
    • Zap
    • yInsure
  • 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
Powered by GitBook
On this page
  1. Developers
  2. Misc Resources
  3. Smart Contract Integration

compound

Contract

Address

CDAI

CBAT

CETH

CREP

CSAI

CUSDC

CWBTC

CZRX

Compound Interface

// Solidity Interface

interface Compound {
  function supply(address asset, uint amount) external returns (uint);
  function withdraw(address asset, uint requestedAmount) external returns (uint);
  function getSupplyBalance(address account, address asset) view external returns (uint);
  function supplyRatePerBlock() external view returns (uint);
  function mint(uint mintAmount) external returns (uint);
  function redeem(uint redeemTokens) external returns (uint);
  function balanceOf(address account) external view returns (uint);
}
PreviousaprwithpoolNextcurvefi

Last updated 4 years ago

0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643
0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E
0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5
0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1
0xF5DCe57282A584D2746FaF1593d3121Fcac444dC
0x39AA39c021dfbaE8faC545936693aC917d5E7563
0xC11b1268C1A384e55C48c2391d8d480264A3A7F4
0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407