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

1
function withdraw() external;
Copied!

Solidity

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

Ethers.js

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