Comment on page
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.
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).
QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
qubitLocker.extendLock(<expiryTime>);
const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
await qubitLocker.expiryOf(<expiryTime>);
Last modified 2yr ago