📁
filecoin.loans
  • Introduction
  • Protocol
    • Lend FIL - ERC20 Tokens as Collateral
    • Lend ERC20 Tokens - FIL as Collateral
  • Develop
    • Requirements
    • Quickstart Guide
      • Setting up the Hardhat node
      • Running the server
      • Running the app
      • Setting up Metamask
  • Reference guide
    • Filecoin Loans Contracts
      • Interfaces
        • IBLAKE2b
        • IERC20
        • IPriceAggregator
      • Contracts
        • ERC20CollateralLock
        • ERC20Loans
    • API Reference
      • operation
        • FIL - ERC20 loan operations
        • ERC20 - FIL loan operations
      • loanAssets
      • protocolContracts
      • orders
      • loan
      • loans
      • notification
      • activity
  • Tools
    • filecoin-js-signer
      • API Reference
        • FilecoinSigner
          • msig
          • paych
          • tx
          • wallet
        • FilecoinClient
          • msig
          • paych
          • tx
          • wallet
      • Develop Guide
      • Credits and references
Powered by GitBook
On this page
  • Functions
  • latestAnswer
  • latestTimestamp
  • latestRound
  • getAnswer
  • getTimestamp
  • Events
  • AnswerUpdated
  • NewRound

Was this helpful?

  1. Reference guide
  2. Filecoin Loans Contracts
  3. Interfaces

IPriceAggregator

Price aggregator interface

Functions

latestAnswer

Returns the last round price.

latestTimestamp

Returns the time of the last round price.

latestRound

Returns the count of rounds registered.

getAnswer

Returns the price at round roundId

Parameters

Parameter

Type

Description

roundId

uint256

Id of the round

getTimestamp

Returns the time of the roundroundId

Parameters

Parameter

Type

Description

roundId

uint256

Id of the round

Events

AnswerUpdated

Emmited when the answer was updated.

Parameters

Parameter

Type

Description

current

uint256

New price

roundId

uint256

New round id

timestamp

uint256

New time

NewRound

Emmited when a new round starts.

Parameters

Parameter

Type

Description

roundId

uint256

New round id

startedBy

address

Address of the starter

startedAt

uint256

New time

PreviousIERC20NextContracts

Last updated 3 years ago

Was this helpful?