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

0 stars 0 forks source link

Incorrect event emitted on BorrowFee update #99

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

gzeon

Vulnerability details

Impact

Incorrect event emitted on BorrowFee update.

Proof of Concept

https://github.com/code-423n4/2021-11-yaxis/blob/146febcb61ae7fe20b0920849c4f4bbe111c6ba7/contracts/v3/alchemix/Alchemist.sol#L299

Recommended Mitigation Steps

Add around L78 event BorrowFeeUpdated(uint256 fee); Replace L299 emit BorrowFeeUpdated(_borrowFee);

Xuefeng-Zhu commented 2 years ago

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