Is Ann correct?
https://github.com/curvefi/curve-contract/blob/8c338d100b2c389a78cbd9b77c238ee305bca2bd/vyper/stableswap.vy#L102 should be: Ann: uint256 = convert(self.A, uint256) * N_COINS * N_COINS
same confusion
same confusion
I think it should be changed
convert(self.A, uint256) * (N_COINS ** N_COINS)
not
convert(self.A, uint256) * N_COINS * N_COINS
I think this question can be solved by this annotation. https://github.com/curvefi/curve-contract/blob/master/contracts/pool-templates/base/SwapTemplateBase.vy#L136 The A passed into the contract is "A * (n ** (n - 1))" (there is a typo on it.), not the A shown in the equation. Thus, Ann is correct. Maybe the "self.A" might not be named as "self.A", it will make people confused.