Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Deposit

The deposit function transfers and locks QBT into the locker, which results in giving qScore to the user. If the user already has an unexpired lock, the unlockTime argument is ignored and additional amount of QBT is appended to the locker.

QubitLocker

function deposit(uint amount, uint unlockTime) external;
  • amount: The amount of QBT to be locked, in wei.

  • unlockTime: The time when the lock will be expired. It should be greater than current time and smaller than the maximum lockup period (2 years after from now). The unlockTime value might be round-down to meet a week-based granularity rule.

Solidity

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
qubitLocker.deposit(<lockAmount>, <unlockTime>);

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
await qubitLocker.deposit(<lockAmount>, <unlockTime>);

Last updated