Developers
  • Introduction
  • QTokens
    • Transfer
    • Total Supply
    • Underlying Balance
    • Exchange Rate
    • Get Cash
    • Total Borrow
    • Borrow Balance
    • Borrow Rate
    • Supply Rate
    • Total Reserve
    • Reserve Factor
    • Key Events
  • Qore
    • Market List
    • Enter Markets
    • Exit Markets
    • Get Markets In
    • Supply
    • Redeem with QToken
    • Redeem with Underlying
    • Borrow
    • Repay Borrow
    • Repay Borrow Behalf
    • Liquidate Borrow
    • Get Account Liquidity
    • Market Information
    • Close Factor
    • Liquidation Incentive
    • Qubit Distribution Speeds
    • Pending Qubit (or Accrued Qubit)
    • Claim Qubit
    • Key Events
  • Qubit Locker
    • qScore
    • Total qScore
    • Deposit
    • Locked Balance
    • Locked Period
    • Extend Lock Period
    • Unlocked Balance
    • Withdraw
Powered by GitBook
On this page
  • Qore
  • Solidity
  • Ethers.js

Was this helpful?

  1. Qore

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);
PreviousMarket ListNextExit Markets

Last updated 3 years ago

Was this helpful?