protocol fees

This commit is contained in:
tim
2025-10-02 16:43:02 -04:00
parent b7e1b1cac2
commit c002d26daf
5 changed files with 178 additions and 22 deletions

View File

@@ -12,7 +12,9 @@ library Deploy {
function newPartyPlanner() internal returns (PartyPlanner) {
return new PartyPlanner(
new PartyPoolSwapMintImpl(),
new PartyPoolMintImpl()
new PartyPoolMintImpl(),
0, // protocolFeePpm = 0 for deploy helper
address(0) // protocolFeeAddress = address(0) for deploy helper
);
}
@@ -26,7 +28,21 @@ library Deploy {
uint256 _flashFeePpm,
bool _stable
) internal returns (PartyPool) {
return new PartyPool(name_, symbol_, tokens_, bases_, _kappa, _swapFeePpm, _flashFeePpm, _stable,
// default protocol fee/off parameters (per your instruction) - set to 0 / address(0)
uint256 protocolFeePpm = 0;
address protocolAddr = address(0);
return new PartyPool(
name_,
symbol_,
tokens_,
bases_,
_kappa,
_swapFeePpm,
_flashFeePpm,
protocolFeePpm,
protocolAddr,
_stable,
new PartyPoolSwapMintImpl(),
new PartyPoolMintImpl()
);