Platform: Code4rena
Start Date: 08/07/2021
Pot Size: $50,000 USDC
Total HM: 7
Participants: 13
Period: 7 days
Judge: ghoulsol
Total Solo HM: 5
Id: 18
League: ETH
Rank: 8/13
Findings: 2
Award: $957.40
🌟 Selected for report: 2
🚀 Solo Findings: 0
🌟 Selected for report: defsec
916.341 USDC - $916.34
defsec
With the migrateRewards function, owner can transfer all reward token into other address. Owner should distribute reward balance before migrating rewards.
None
Owner should distribute reward balance before migrating rewards.
#0 - talegift
2021-07-15T10:27:32Z
This is technically not possible to distribute all pending rewards to all users due to the block gas limit and the fact that rewards accrue with each new block.
If the rewards are ever migrated (and it's not urgent), we would likely notify users upfront and give them some time to claim & unstake.
41.0609 USDC - $41.06
defsec
There is occurrence in the code of the TransferHelper contract where amount is checked after the external call.
None
To favor readability and avoid confusions, consider applying check at the beginning of function.
function _safeTransferFrom(address _token, address _sender, uint _amount) internal virtual { require(_amount > 0, "TransferHelper: amount must be > 0"); ... }
#0 - talegift
2021-07-12T12:14:10Z
Readability issues should IMO be marked as 0 (non-critical).
#1 - ghoul-sol
2021-08-01T21:11:16Z
This is gas optimization since I don't see any exploit.