Developers
Search…
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

1
function extendLock(uint nextExpiry) external;
Copied!
  • 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

1
QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
2
qubitLocker.extendLock(<expiryTime>);
Copied!

Ethers.js

1
const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
2
await qubitLocker.expiryOf(<expiryTime>);
Copied!
Last modified 2mo ago