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

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

Solidity

1
address[] memory qTokens = new address[](2);
2
qTokens[0] = <qTokenAddress>;
3
qTokens[1] = <qTokenAddress>;
4
5
Qore qore = Qore(<qoreAddress>);
6
qore.enterMarkets(qTokens);
Copied!

Ethers.js

1
const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
2
const qTokens = [<qTokenAddress>, <qTokenAddress>];
3
await qore.enterMarkets(qTokens);
Copied!
Last modified 2mo ago
Copy link