Closed code423n4 closed 3 years ago
hyh
User requested key actions: {mint, borrow, repay, deposit, and withdraw} should be paired with the corresponding events emittance. For example, in increase function when new position NFT id is generated and then deposited to, this newly allocated id to be communicated to a user. https://github.com/code-423n4/2021-10-mochi/blob/main/projects/mochi-core/contracts/vault/MochiVault.sol#L113
All MochiVault public user functions should have corresponding events issuance as the last actions for the corresponding code
duplicated with https://github.com/code-423n4/2021-10-mochi-findings/issues/84
Handle
hyh
Vulnerability details
Description
User requested key actions: {mint, borrow, repay, deposit, and withdraw} should be paired with the corresponding events emittance. For example, in increase function when new position NFT id is generated and then deposited to, this newly allocated id to be communicated to a user. https://github.com/code-423n4/2021-10-mochi/blob/main/projects/mochi-core/contracts/vault/MochiVault.sol#L113
Recommended Mitigation Steps
All MochiVault public user functions should have corresponding events issuance as the last actions for the corresponding code