Submitted by jonah1005, also found by hrkrshnn and 0xRajeev
Theres no safety check in Manager.sol addToken. There are two possible cases that might happen.
Permission keys should always be treated cautiously. However, calling the same initialize function twice should not be able to destroy the vault. Also, as the protocol develops, theres likely that one token is supported in two vaults. The DAO may mistakenly add the same token twice. I consider this a high-risk issue.
Adding same token twice would not raise any error here.
Hardhat
I recommend to add two checks
transferAndCall (yAxis) confirmed and patched:
GalloDaSballo (judge) commented:
