Block: 75

Author: Shieldify Security

AuditProfile

Security blog

ProportionalRewards

#mapping

#update

Hint

Have the necessary things been updated in the code?

Answer

In stake(), the mapping originalId is not updated to point owner->tokenId. Therefore, they cannot unstake. Their NFT is stuck in this contract. First, calculate rewards for msg.sender,then remove the msg.sender from array to ensure accurate calculation.

Регистрация прошла успешно! Спасибо за внимание!

loader