Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

zimu - Lack of events for critical arithmetic parameters #33

Closed
sherlock-admin opened this issue Nov 17, 2022 · 3 comments
Closed

zimu - Lack of events for critical arithmetic parameters #33

sherlock-admin opened this issue Nov 17, 2022 · 3 comments

Comments

@sherlock-admin
Copy link
Contributor

zimu

medium

Lack of events for critical arithmetic parameters

Summary

Function BondBaseSDA.setDefaults sets critical arithmetic parameters for bond market. But it has no event emitted, it is difficult to track these critical changes off-chain.

Vulnerability Detail

In bases/BondBaseSDA, critical parameters are set and changed in function BondBaseSDA.setDefaults for bond market.
image

However, no event is emitted, and it is difficult to track these critical changes off-chain. Both Users and Issuers would possibly be unware of these changes.

Impact

Both Users and Issuers would possibly be unware of critical changes on bond market.

Code Snippet

https://github.com/sherlock-audit/2022-11-bond/blob/main/src/bases/BondBaseSDA.sol#L348-L356

Tool used

Manual Review

Recommendation

Add an event in BondBaseSDA.setDefaults to report critical arithmetic changes.

@Evert0x
Copy link

Evert0x commented Nov 17, 2022

Message from sponsor


Agree. We have updated setDefaults to emit an event with the newly set values.

@xiaoming9090
Copy link
Collaborator

@Evert0x
Copy link

Evert0x commented Nov 28, 2022

Downgrading to low severity.

@Evert0x Evert0x closed this as completed Nov 28, 2022
@Evert0x Evert0x added Low and removed Medium labels Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants