Yieldy.transferFrom() returns false on failure instead of reverting.
This might lead to moveFundsToUpgradedContract() incorrectly unstaking and restaking tokens, potentially causing user or Migration.sol to lose funds depending on NEW_CONTRACT and OLD_CONTRACT implementations.
IYieldy(OLD_YIELDY_TOKEN).transferFrom(
msg.sender,
address(this),
userWalletBalance
);
No check for boolean return value from transferFrom()
Manual Review
Implement a check on the return value of transferFrom().
The text was updated successfully, but these errors were encountered:
All reactions