I noticed that in 8-VAULTGUARDIAN, the constructor code of the VaultShares contract is as follows: #325
jupiter-Pulin
started this conversation in
General
Replies: 1 comment 2 replies
-
Hello @jupiter-Pulin, having two of the same tokens defeats a pool's purpose, so that is unrealistic. Otherwise, that will be a useless pool. What do you swap in the pool if the two tokens are the same? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In this code, the Uniswap factory contract is called to obtain the pair address:
However, what happens if constructorData.asset is the same as i_weth in the parameters passed to getPair? In other words, if both parameters are the same address, will this cause an error? Interestingly, during the audit, the Cyfrin team did not identify this issue.
Beta Was this translation helpful? Give feedback.
All reactions