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.


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.


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


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

Last updated