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
  • QubitLocker
  • Solidity
  • Ethers.js

Was this helpful?

  1. Qubit Locker

Withdraw

The withdraw function returns the locked QBT to the user(msg.sender). The amount received is equal to the quantity of QBT locked. To call this function, the lock should be expired.

QubitLocker

function withdraw() external;

Solidity

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
qubitLocker.withdraw();

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
await qubitLocker.withdraw();
PreviousUnlocked Balance

Last updated 3 years ago

Was this helpful?