Open hats-bug-reporter[bot] opened 1 week ago
The report is invalid. The deployAtomWallet
function is specifically designed for deploying atom wallets and is not intended for triple vaults.
The current implementation of deployAtomWallet
verifies that the atomId
is within a valid range for atom wallets. Triple vaults and their counter vaults are managed through different mechanisms and do not require the deployAtomWallet
function for their deployment. This separation of functionality ensures that each type of vault is deployed correctly and securely.
Therefore, the issue raised does not apply to the intended functionality of deployAtomWallet
, and the current implementation works as designed.
Github username: @0x3b33 Twitter username: -- Submission hash (on-chain): 0xf6a385f2f693e57a2486ca4a42e5da3f4c030dbe3e5a690bace66441c7b7e565 Severity: high
Description: Description\ deployAtomWallet is used to deploy vaults. Any vault can be deployed as long as its ID is valid (greater than 0 and not greater than the count). If these conditions are met,
deployAtomWallet
can deploy both normal wallets and triple vaults.However, the issue is that triple vaults have a normal vault (
Id
1, 2, 3,...) and a counter vault with anId
ofuint256.max - normalId
. deployAtomWallet will not work for deploying a triple counter vault because of the checkatomId > count
, as their IDs starts from the max and goes down.Recommendation\ Include a check to enable counter triple vaults to be deployed.