EraLend
  • 🪐Introduction to EraLend
  • Protocol Core
    • Supply / Withdraw
    • Borrow / Repay
    • Interest Rate Model
    • Liquidation
    • Oracle
  • Rewards
    • EraLend Stellar Program
      • Special Epoch on Telos
  • Developers
    • Contract Addresses
    • Protocol Parameters
  • References
    • Audits
    • Whitepaper
    • Github
  • Community
    • Twitter
    • Discord
Powered by GitBook
On this page
  • What are oracles?
  • How does EraLend utilize oracles?
  • EraLend Oracle Contracts
  • Constituent Contracts
  1. Protocol Core

Oracle

PreviousLiquidationNextEraLend Stellar Program

Last updated 1 year ago

What are oracles?

EraLend utilizes the decentralized Pyth , which provides up-to-date token prices data to smart contracts on zkSync Mainnet.

Responsibilities of an oracle

  • Updates, stores, and distributes up-to-date token prices relevant to the system.

  • Disables borrowing functionality if prices are not fresh.

  • Provides functionality to perform liquidation.

How does EraLend utilize oracles?

The EraLend protocol utilizes its respective contract to retrieve frequently stored price updates.

EraLend Oracle Contracts

At EraLend, the on-chain manifestation of the oracle is the contract, which stores prices that are frequently updated by the oracle. The primary user of these prices is the contract, which needs them to evaluate the user's asset status to determine eligibility for liquidation.

Constituent Contracts

Contract
Description

The oracle is responsible for collecting and updating all token prices known to the EraLend system.

The EraLend audit contract which receives token prices from the oracle, and supplies them to all contracts that need it.

oracle network
pythOracle
pythOracle
Comptroller
pythOracle
Comptroller