native currency fixes

This commit is contained in:
tim
2025-10-14 21:13:38 -04:00
parent 96535ed005
commit 7ac4cdc8f6
3 changed files with 632 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ library Deploy {
function newPartyPlanner() internal returns (PartyPlanner) {
IWETH9 wrapper = new WETH9();
return newPartyPlanner(wrapper);
}
function newPartyPlanner(IWETH9 wrapper) internal returns (PartyPlanner) {
return new PartyPlanner(
wrapper,
new PartyPoolSwapImpl(wrapper),
@@ -40,6 +44,20 @@ library Deploy {
bool _stable
) internal returns (PartyPool) {
IWETH9 wrapper = new WETH9();
return newPartyPool(name_, symbol_, tokens_, bases_, _kappa, _swapFeePpm, _flashFeePpm, wrapper, _stable);
}
function newPartyPool(
string memory name_,
string memory symbol_,
IERC20[] memory tokens_,
uint256[] memory bases_,
int128 _kappa,
uint256 _swapFeePpm,
uint256 _flashFeePpm,
IWETH9 wrapper,
bool _stable
) internal returns (PartyPool) {
return _stable && tokens_.length == 2 ?
new PartyPoolBalancedPair(
name_,