Fortress
Search…
Get Assets In
Get the list of markets an account is currently entered into. In order to supply collateral or borrow in a market, it must be entered first. Entered markets count towards Account Liquidity calculations.

Unitroller

1
function getAssetsIn(address account) view returns (address[] memory)
Copied!
  • account: The account whose list of entered markets shall be queried.
  • RETURN: The address of each market which is currently entered into.

Solidity

1
Unitroller troll = Unitroller(0xABCD...);
2
address[] memory markets = troll.getAssetsIn(0xMyAccount);
Copied!

Web3 1.0

1
const troll = Unitroller.at(0xABCD...);
2
const markets = await troll.methods.getAssetsIn(fTokens).call();
Copied!
Last modified 9mo ago