Closed c4-judge closed 1 year ago
Judge has assessed an item in Issue #625 as 2 risk. The relevant finding follows:
4) lastHarvest variable inside AdapterBase will never be updated after a successful harvest,this will create big problems related to all the harvest function inside AdapterBase by making this function unusable,in fact only the first harvest will work and the following ones wont,can resolve this problem by updating lastHarvest = block.timestamp after successfull harvest https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adapter/abstracts/AdapterBase.sol#L441
dmvt marked the issue as duplicate of #558
dmvt marked the issue as partial-25
Judge has assessed an item in Issue #625 as 2 risk. The relevant finding follows:
4) lastHarvest variable inside AdapterBase will never be updated after a successful harvest,this will create big problems related to all the harvest function inside AdapterBase by making this function unusable,in fact only the first harvest will work and the following ones wont,can resolve this problem by updating lastHarvest = block.timestamp after successfull harvest https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adapter/abstracts/AdapterBase.sol#L441