code-423n4 / 2021-09-defiprotocol-findings

1 stars 0 forks source link

emit NewIBRatio in function initialize #205

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

I think function initialize should also emit NewIBRatio event as it sets the initial value: ibRatio = BASE;

Recommended Mitigation Steps

emit NewIBRatio(ibRatio) in function initialize.

GalloDaSballo commented 2 years ago

Agree with finding, since you are emitting events everywhere it would make it more consistent