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
unlockTimeargument is ignored and additional
amountof 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>);
const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
await qubitLocker.deposit(<lockAmount>, <unlockTime>);