Aave

Aave Resolver fetch Position of user. You can view details like source code, ABIs on Etherscan.

Get Position

Fetch aave position of a user with just a single call.

dsa.aave.getPosition(address, key);

Parameter

Type

Description

address

address

The user address.

key

string

(Optional) the key type to return in the response. Default will use `token`. - `token` eth, dai, usdc, etc. - `address` "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "0x6B175474E89094C44Da98b954EedeAC495271d0F", etc. - `caddress` "0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5", "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643", etc.

Returns: Object with all the Compound details

{
"eth": {
  "priceInEth": 1,
  "supply": 0.020001941382760555,
  "borrow": 0,
  "borrowFee": 0,
  "supplyYield": 0.010534205695367227,
  "borrowYield": 2.078140652407834,
},
"dai": {},
"usdc": {},
....
"totalSupplyInEth": 0.043728986801881906,
"totalBorrowInEth": 0.0023955855814168704,
"maxBorrowLimitInEth": 0.032796740101411426,
"totalFeeInETH": 0.000003279674010141,
"status": 0.05478255401320606,
"liquidation": 0.7499999999999999
}

Return Parameter

Type

Description

priceInEth

number

Token price w.r.t Ethereum price.

supply

number

Supply balance of token.

borrow

number

Borrow balance of token.

borrowFee

number

The borrowing fee.

supplyYield

number

Supply APY of token.

borrowYield

number

Borrow APY of token.

totalSupplyInEth

number

Total supply w.r.t Ethereum.

totalBorrowInEth

number

Total borrow w.r.t Ethereum.

maxBorrowLimitInEth

number

Max borrow limit w.r.t Ethereum.

totalFeeInETH

number

Total fee for overall borrowing in ETH.

status

number

Current status.

liquidation

number

Position breakage limit. Mulitply by 100 to convert into %.

Last updated