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

QubitLocker

function withdraw() external;

Solidity

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
qubitLocker.withdraw();

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
await qubitLocker.withdraw();
Copy link
On this page
QubitLocker
Solidity
Ethers.js