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

Extend Lock Period

The extend function extends the unlockTime(expiryTime) of the QBT lock for msg.sender. In order to call this function, the msg.sender should have locked some QBT into the locker.

QubitLocker

function extendLock(uint nextExpiry) external;
  • nextExpiry : The next expiry time of the QBT lock for the msg.sender. This value should be larger than previous expiry time and smaller than maximum expiry time (i.e., current time + 2 years).

Solidity

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
qubitLocker.extendLock(<expiryTime>);

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
await qubitLocker.expiryOf(<expiryTime>);
PreviousLocked PeriodNextUnlocked Balance

Last updated 3 years ago

Was this helpful?