per-asset fees
This commit is contained in:
@@ -64,6 +64,9 @@ library Deploy {
|
||||
NativeWrapper wrapper,
|
||||
bool _stable
|
||||
) internal returns (PartyPool) {
|
||||
// Build per-asset fee vector from scalar for tests
|
||||
uint256[] memory feesArr = new uint256[](tokens_.length);
|
||||
for (uint256 i = 0; i < tokens_.length; i++) { feesArr[i] = _swapFeePpm; }
|
||||
return _stable && tokens_.length == 2 ?
|
||||
new PartyPoolBalancedPair(
|
||||
owner_,
|
||||
@@ -71,7 +74,7 @@ library Deploy {
|
||||
symbol_,
|
||||
tokens_,
|
||||
_kappa,
|
||||
_swapFeePpm,
|
||||
feesArr,
|
||||
_flashFeePpm,
|
||||
PROTOCOL_FEE_PPM,
|
||||
PROTOCOL_FEE_RECEIVER,
|
||||
@@ -85,7 +88,7 @@ library Deploy {
|
||||
symbol_,
|
||||
tokens_,
|
||||
_kappa,
|
||||
_swapFeePpm,
|
||||
feesArr,
|
||||
_flashFeePpm,
|
||||
PROTOCOL_FEE_PPM,
|
||||
PROTOCOL_FEE_RECEIVER,
|
||||
|
||||
Reference in New Issue
Block a user