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: better handling of `i128` by `i128` multiplication #316

Open gangov opened 2 weeks ago

gangov commented 2 weeks ago

use u256 inside compute_swap and convert it back to i128 at the end of the fn