per-asset fees

This commit is contained in:
tim
2025-10-29 18:22:23 -04:00
parent 86410c9a91
commit 20758cfb35
18 changed files with 475 additions and 164 deletions

View File

@@ -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,