Token LockId can be transfered to same user which effects the protocol.
user can _transfer token LockId to himself so the _updateRewards(from) and _updateRewards(to) execute the same address.
a user has 2 addresses 0x11111 and 0x22222.
the user approve lockId 1 to address 0x22222.
now the user from address 0x22222 uses transferFrom(0x11111, 0x11111, 1) to transfer lockId 1 from 0x11111 to 0x11111.
and now _updateRewards executed for address 0x11111 twice.
from: 0x11111
to: 0x11111
_updateRewards executed twice with same address.
check that from != to when transfer.
from and to address same in transfer
from and to address same in transfer
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.