Developers
Search…
Enter Markets
Enter into a list of markets. In order to supply collateral or borrow in a market, it must be entered first.

Qore

function enterMarkets(address[] memory qTokens) external;
  • msg.sender: The account which shall enter the given markets.
  • qTokens: The addresses of the qToken markets to enter.

Solidity

address[] memory qTokens = new address[](2);
qTokens[0] = <qTokenAddress>;
qTokens[1] = <qTokenAddress>;
Qore qore = Qore(<qoreAddress>);
qore.enterMarkets(qTokens);

Ethers.js

const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
const qTokens = [<qTokenAddress>, <qTokenAddress>];
await qore.enterMarkets(qTokens);
Copy link
On this page
Qore
Solidity
Ethers.js