For the complete documentation index, see llms.txt. This page is also available as Markdown.

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>);

Last updated

Was this helpful?