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: adds a default param for max_slippage_bps when initializing xyk pool #325

Closed gangov closed 3 months ago

gangov commented 3 months ago

adds a new input parameter to pool initialize function that will be stored as a variable inside config, called default_slippage_bps.

we use that for default, instead of 100 when the customer hasn't specified any slippage.

besides these changes, this PR lints and fixes tests inside factory