Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 2 KB

File metadata and controls

34 lines (28 loc) · 2 KB

compound

Contract Address
CDAI 0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643
CBAT 0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E
CETH 0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5
CREP 0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1
CSAI 0xF5DCe57282A584D2746FaF1593d3121Fcac444dC
CUSDC 0x39AA39c021dfbaE8faC545936693aC917d5E7563
CWBTC 0xC11b1268C1A384e55C48c2391d8d480264A3A7F4
CZRX 0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407

Compound Interface

{% tabs %} {% tab title="Compound.sol" %}

// 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);
}

{% endtab %} {% endtabs %}