Assessment reports>Prisma Finance>Discussion>Unused code

Unused code in TokenLocker.sol:_weeklyWeightWrite

Within the TokenLocker contract, there is a line of code that reads systemWeek;. This line of code appears to be left over and currently does not serve any functional purpose within the contract. To maintain a clean and efficient codebase, it is recommended to remove this unused code snippet.

uint256 unlocked;
uint256 bitfield = accountData.updateWeeks[accountWeek / 256] >> (accountWeek % 256);

systemWeek; // unused code
while (accountWeek < systemWeek) {
    accountWeek++;
    weight -= locked;
Zellic © 2025Back to top ↑