Open code423n4 opened 2 years ago
1. Title: vaultId 1 can't be created
vaultId
https://github.com/code-423n4/2022-05-cally/blob/main/contracts/src/Cally.sol#L188-L189
Currently, vaultId is started by 3. By replacing L188 and 189 can make it start to create the vaultId by number 1 as vaultIndex initialized value.
vaultId = vaultIndex; //@audit-info: Set vaultId first, then update vaultIndex vaultIndex += 2;
LOW
1. Title:
vaultId
1 can't be createdhttps://github.com/code-423n4/2022-05-cally/blob/main/contracts/src/Cally.sol#L188-L189
Currently,
vaultId
is started by 3. By replacing L188 and 189 can make it start to create the vaultId by number 1 as vaultIndex initialized value.