Alchemist.migrate
can push duplicate adapters to _vaults
#65
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
wont fix
Handle
cmichel
Vulnerability details
The
Alchemist.migrate
function pushes the adapter to the_vaults
list.It does not check if the adapter is already registered.
Impact
Duplicate adapters can be registered and will then track the
totalDeposited
independently.Recommended Mitigation Steps
Check if adapter already exists in
_vaults
before adding it.The text was updated successfully, but these errors were encountered: