Phoenix-Protocol-Group / phoenix-contracts

Source code of the smart contracts of the Phoenix DeFi hub DEX protocol
GNU General Public License v3.0
10 stars 6 forks source link

Pool Stable: integer overflow will prevent depositors from adding liquidity to stable pool #360

Open gangov opened 2 months ago

gangov commented 1 month ago

the values are already using u256 when multiplying, this PR contains checks if to make sure we don't use values for stable pool pairs that can still overflow with u256