VenusLens
Last updated
Last updated
The read only functions on the VenusLens contract provide a view into: - metadata of vToken - daily XVS rewards for an account - account balance for a single vToken - account balances for all vTokens in an account - underlying price of a vToken - underlying prices for a set of vTokens - get liquidity and shortfall of an account - get user's vote history - get proposal details for a set of proposals - get account XVS balance, total votes, and delegated votes - get historical voting balance for a user - get pending XVS Rewards for an account
Query the metadata of a vToken by its address
Parameters
Name | Type | Description |
---|---|---|
Return Values
Name | Type | Description |
---|---|---|
Get VTokenMetadata for an array of vToken addresses
Parameters
Return Values
Get amount of XVS distributed daily to an account
Parameters
Return Values
Get the current vToken balance (outstanding borrows) for an account
Parameters
Return Values
Get the current vToken balances (outstanding borrows) for all vTokens on an account
Parameters
Return Values
Get the price for the underlying asset of a vToken
Parameters
Return Values
Query the underlyingPrice of an array of vTokens
Parameters
Return Values
Query the account liquidity and shortfall of an account
Parameters
Return Values
Query the voting information of an account for a list of governance proposals
Parameters
Return Values
Query the details of a list of governance proposals
Parameters
Return Values
Query the XVSBalance info of an account
Parameters
Return Values
Query the XVSBalance extended info of an account
Parameters
Return Values
Query the voting power for an account at a specific list of block numbers
Parameters
Return Values
Calculate the total XVS tokens pending or accrued by a user account
Parameters
Return Values
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
vToken
contract VToken
The address of the vToken to fetch VTokenMetadata
[0]
struct VenusLens.VTokenMetadata
VTokenMetadata struct with vToken supply and borrow information.
vTokens
contract VToken[]
Array of vToken addresses to fetch VTokenMetadata
[0]
struct VenusLens.VTokenMetadata[]
Array of structs with vToken supply and borrow information.
account
address payable
Address of account to fetch the daily XVS distribution
comptrollerAddress
address
Address of the comptroller proxy
[0]
uint256
Amount of XVS distributed daily to an account
vToken
contract VToken
Address of the token to check the balance of
account
address payable
Account address to fetch the balance of
[0]
struct VenusLens.VTokenBalances
VTokenBalances with token balance information
vTokens
contract VToken[]
Addresses of the tokens to check the balance of
account
address payable
Account address to fetch the balance of
[0]
struct VenusLens.VTokenBalances[]
VTokenBalances Array with token balance information
vToken
contract VToken
address of the vToken
[0]
struct VenusLens.VTokenUnderlyingPrice
response struct with underlyingPrice info of vToken
vTokens
contract VToken[]
Array of vToken addresses
[0]
struct VenusLens.VTokenUnderlyingPrice[]
array of response structs with underlying price information of vTokens
comptroller
contract ComptrollerInterface
Address of comptroller proxy
account
address
Address of the account to query
[0]
struct VenusLens.AccountLimits
Struct with markets user has entered, liquidity, and shortfall of the account
governor
contract GovernorAlpha
Governor address
voter
address
Voter address
proposalIds
uint256[]
Array of proposal ids
[0]
struct VenusLens.GovReceipt[]
Array of governor receipts
governor
contract GovernorAlpha
Address of governor contract
proposalIds
uint256[]
Array of proposal Ids
[0]
struct VenusLens.GovProposal[]
GovProposal structs for provided proposal Ids
xvs
contract XVS
XVS contract address
account
address
Account address
[0]
struct VenusLens.XVSBalanceMetadata
Struct with XVS balance and voter details
xvs
contract XVS
XVS contract address
comptroller
contract ComptrollerInterface
Comptroller proxy contract address
account
address
Account address
[0]
struct VenusLens.XVSBalanceMetadataExt
Struct with XVS balance and voter details and XVS allocation
xvs
contract XVS
XVS contract address
account
address
Address of the account
blockNumbers
uint32[]
Array of blocks to query
[0]
struct VenusLens.VenusVotes[]
Array of VenusVotes structs with block number and vote count
holder
address
Account to query pending XVS
comptroller
contract ComptrollerInterface
Address of the comptroller
[0]
uint256
Total number of accrued XVS that can be claimed