QA Report #144
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
valid
Since if there was no
false
in it. It would be better to addingfalse
for "Reverts if no locks expired" so in this case down below :File : MyStrategy.sol Line. 223
can be changed to :
Tool Used
Manual Review
Harvest event that every strategy MUST have. Since Event is an inheritable member of a contract. An event is emitted, it stores the arguments passed in transaction logs. These logs are stored on blockchain and are accessible using address of the contract till the contract is present on the blockchain.
File : MyStrategy.sol Line. 219
The require function should be used to check return values from calls to external contracts or to guarantee that valid conditions, such as inputs or contract state variables, are satisfied.
1.) File : MyStrategy.sol Line. 57
return
https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L165
On this case it can be shorter by just call
return protected;
instead ofreturn protectedTokens;
.POC
https://github.com/sambacha/yearn-strategy-boilerplate-nodejs/blob/master/contracts/Strategy.sol#L156
Tool Used
Manual Review
Code architecture, incentives, and error handling/reporting questions/issues. It should be resolved before deployment
1.) File : MyStrategy.sol Line. 85
2.) File : MyStrategy.sol Line. 91
3.) File : MyStrategy.sol Line. 135
4.) File : MyStrategy.sol Line. 284
File : MyStrategy.sol Line.205
There are many external risks so the suggestion was it should be consider making the contracts pausable, so if in the case of an unexpected event, the admin can pause transfers.
Tool Used
Manual Review
##POC
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/Pausable.sol
Recommended Mitigation Steps
Consider making contracts Pausable
The text was updated successfully, but these errors were encountered: