Alien Finance
AppTwitter
  • General
    • Overview
    • What's Native on Blast
    • Brand Kit
  • Open Source
    • Blast Multisig Tx Builder
  • Lending Protocol - DApp Pool
    • Market Parameters
    • Interest Rate Model
    • Contract Address
  • Lending Protocol - Blast Pool
    • Market Parameters
    • Interest Rate Model
    • Contract Address
    • Alien Leverage
      • Leverage FAQ
  • Smart Contract
    • AlienFinance
      • Interface: AlienFinance
    • BlastPriceOracle
      • Interface: BlastPriceOracle
    • AlienFinanceLens
      • Interface: AlienFinanceLens
    • TripleSlopeRateModel
      • Interface: TripleSlopeRateModel
    • AToken
    • DebtToken
    • TxBuilderExtension
    • UniswapExtension
    • FlashLoan
  • Links
    • App
    • Twitter
Powered by GitBook
On this page
  • Methods
  • Events
  1. Smart Contract

BlastPriceOracle

0x3A9B69eE4b7F238c38380A540B211f682f724968

Methods

MAX_SWING

function MAX_SWING() external view returns (uint256)

The max swing of the price per update (20%)

Returns

Name
Type
Description

_0

uint256

undefined

UPDATE_INTERVAL

function UPDATE_INTERVAL() external view returns (uint256)

The min update interval (5 minutes)

Returns

Name
Type
Description

_0

uint256

undefined

fallbackPrices

function fallbackPrices(address) external view returns (uint256)

The fallback price of the assets

Parameters

Name
Type
Description

_0

address

undefined

Returns

Name
Type
Description

_0

uint256

undefined

getPrice

function getPrice(address asset) external view returns (uint256)

Gets the price of an asset

Parameters

Name
Type
Description

asset

address

The asset to get the price of

Returns

Name
Type
Description

_0

uint256

The price of the asset

lastUpdated

function lastUpdated(address) external view returns (uint256)

The last updated time of the assets

Parameters

Name
Type
Description

_0

address

undefined

Returns

Name
Type
Description

_0

uint256

undefined

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

Name
Type
Description

_0

address

undefined

poster

function poster() external view returns (address)

The poster address

Returns

Name
Type
Description

_0

address

undefined

redStoneFeeds

function redStoneFeeds(address) external view returns (address)

The red stone price feeds

Parameters

Name
Type
Description

_0

address

undefined

Returns

Name
Type
Description

_0

address

undefined

renounceOwnership

function renounceOwnership() external nonpayable

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

setFallbackPrices

function setFallbackPrices(BlastPriceOracle.PriceData[] priceData) external nonpayable

Parameters

Name
Type
Description

priceData

BlastPriceOracle.PriceData[]

undefined

setPoster

function setPoster(address _poster) external nonpayable

Sets the poster address

Parameters

Name
Type
Description

_poster

address

The poster address

setRedStonePriceFeeds

function setRedStonePriceFeeds(BlastPriceOracle.PriceFeedData[] priceFeedData) external nonpayable

Parameters

Name
Type
Description

priceFeedData

BlastPriceOracle.PriceFeedData[]

undefined

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

Name
Type
Description

newOwner

address

undefined

Events

FallbackPriceSet

event FallbackPriceSet(address asset, uint256 price)

Parameters

Name
Type
Description

asset

address

undefined

price

uint256

undefined

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

Name
Type
Description

previousOwner indexed

address

undefined

newOwner indexed

address

undefined

PosterSet

event PosterSet(address poster)

Parameters

Name
Type
Description

poster

address

undefined

PriceFeedSet

event PriceFeedSet(address asset, address priceFeed)

Parameters

Name
Type
Description

asset

address

undefined

priceFeed

address

undefined

Last updated 1 year ago