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.
function withdraw() external;
QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
qubitLocker.withdraw();
const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
await qubitLocker.withdraw();
Last modified 1yr ago