LogoLogo
Return to CozyDiscord
Main
Main
  • Get started
  • What is Cozy
    • Overview
    • Case study
    • FAQ
    • Security
  • For Developers
    • Guides
      • Set up your development environment
      • Create a protection market
      • Buy protection programmatically
      • Manage protection programmatically
      • Provide protection programmatically
      • Liquidate a vault
      • Create a protected investing opportunity
      • Create an invest/divest contract
    • Error codes
    • API reference
      • Cozy tokens
      • Comptroller
      • Full API reference
    • Contract deployments
  • Get In Touch
    • Twitter
    • Discord
Powered by GitBook
On this page
  • Cozy Tokens
  • CEther
  • CErc20
  • Shared
  • Comptroller
  • Chainlink Reporter
  • Error Handling
  • Protection Market Factory
  • Error Handling

Was this helpful?

  1. For Developers
  2. API reference

Full API reference

API reference for all Cozy contracts

Cozy Tokens

CEther

CErc20

Shared

Comptroller

The protocol's Comptroller is an instance of the ComptrollerStatic contract, which has the following interface.

Chainlink Reporter

The ChainlinkReporter contract is the protocol's price oracle.

Error Handling

Error Codes

Code
Name
Description

0

NO_ERROR

Call succeeded

1

UNAUTHORIZED

Caller is not authorized

Failure Info

Code
Name

0

ACCEPT_ADMIN_PENDING_ADMIN_CHECK

1

ADD_OR_UPDATE_ORACLES_OWNER_CHECK

2

SET_PENDING_ADMIN_OWNER_CHECK

Protection Market Factory

Error Handling

Error Codes

Code
Name
Description

0

NO_ERROR

Call succeeded

1

UNAUTHORIZED

Caller is not authorized

2

INTEREST_RATE_MODEL_ERROR

Invalid interest rate model specified

Failure Info

Code
Name

0

SET_DEFAULT_INTEREST_RATE_MODEL_OWNER_CHECK

1

SET_DEFAULT_INTEREST_RATE_MODEL_VALIDITY_CHECK

PreviousComptrollerNextContract deployments

Last updated 3 years ago

Was this helpful?