code-423n4 / 2021-11-yaxis-findings

0 stars 0 forks source link

setBorrowFee emits HarvestFeeUpdated #104

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

function setBorrowFee emits HarvestFeeUpdated event. This event based on its name is for harvest fee and is also emitted in setHarvestFee. Because it has only one parameter of uint, there is no way for an external agent that fetches these events to know which fee was updated by just looking at the event.

Recommended Mitigation Steps

Consider introducing a separate event for the borrow fee.

Xuefeng-Zhu commented 2 years ago

https://github.com/code-423n4/2021-11-yaxis-findings/issues/7