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
  1. Smart Contract

AlienFinanceLens

0xF090b119b10FE4aF048B3EAEB9c0d4821CaBcD30

Methods

getAllCurrentMarketsStatus

function getAllCurrentMarketsStatus(contract AlienFinance alien) external nonpayable returns (struct AlienFinanceLens.MarketStatus[])

Gets the current market status for all markets.

This function is not gas efficient and should not be called on chain.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

Returns

Name
Type
Description

_0

AlienFinanceLens.MarketStatus[]

The list of all market status

getAllMarketsMetadata

function getAllMarketsMetadata(contract AlienFinance alien) external view returns (struct AlienFinanceLens.MarketMetadata[])

Gets the market metadata for all markets.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

Returns

Name
Type
Description

_0

AlienFinanceLens.MarketMetadata[]

The list of all market metadata

getAllMarketsStatus

function getAllMarketsStatus(contract AlienFinance alien) external view returns (struct AlienFinanceLens.MarketStatus[])

Gets the market status for all markets.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

Returns

Name
Type
Description

_0

AlienFinanceLens.MarketStatus[]

The list of all market status

getCurrentMarketStatus

function getCurrentMarketStatus(contract AlienFinance alien, address market) external nonpayable returns (struct AlienFinanceLens.MarketStatus)

Gets the current market status for a given market.

This function is not gas efficient and should not be called on chain.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

market

address

The market to get status for

Returns

Name
Type
Description

_0

AlienFinanceLens.MarketStatus

The market status

getCurrentUserMarketStatus

function getCurrentUserMarketStatus(contract AlienFinance alien, address user, address market) external nonpayable returns (struct AlienFinanceLens.UserMarketStatus)

Gets the user's current market status for a given market.

This function is not gas efficient and should not be called on chain.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

user

address

The user to get status for

market

address

The market to get status for

Returns

Name
Type
Description

_0

AlienFinanceLens.UserMarketStatus

The user's market status

getMarketMetadata

function getMarketMetadata(contract AlienFinance alien, address market) external view returns (struct AlienFinanceLens.MarketMetadata)

Gets the market metadata for a given market.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

market

address

The market to get metadata for

Returns

Name
Type
Description

_0

AlienFinanceLens.MarketMetadata

The market metadata

getMarketStatus

function getMarketStatus(contract AlienFinance alien, address market) external view returns (struct AlienFinanceLens.MarketStatus)

Gets the market status for a given market.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

market

address

The market to get status for

Returns

Name
Type
Description

_0

AlienFinanceLens.MarketStatus

The market status

getUserAllCurrentMarketsStatus

function getUserAllCurrentMarketsStatus(contract AlienFinance alien, address user) external nonpayable returns (struct AlienFinanceLens.UserMarketStatus[])

Gets the user's current market status for all markets.

This function is not gas efficient and should not be called on chain.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

user

address

The user to get status for

Returns

Name
Type
Description

_0

AlienFinanceLens.UserMarketStatus[]

The list of all user's market status

getUserAllMarketsStatus

function getUserAllMarketsStatus(contract AlienFinance alien, address user) external view returns (struct AlienFinanceLens.UserMarketStatus[])

Gets the user's market status for all markets.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

user

address

The user to get status for

Returns

Name
Type
Description

_0

AlienFinanceLens.UserMarketStatus[]

The list of all user's market status

getUserMarketStatus

function getUserMarketStatus(contract AlienFinance alien, address user, address market) external view returns (struct AlienFinanceLens.UserMarketStatus)

Gets the user's market status for a given market.

Parameters

Name
Type
Description

alien

contract AlienFinance

The Alien contract

user

address

The user to get status for

market

address

The market to get status for

Returns

Name
Type
Description

_0

AlienFinanceLens.UserMarketStatus

The user's market status

Last updated 1 year ago