deployed to Sepolia; liqp-deployments.json

This commit is contained in:
tim
2025-10-16 16:16:41 -04:00
parent 38371614fc
commit e948067167
18 changed files with 304 additions and 64 deletions

View File

@@ -2,7 +2,7 @@
pragma solidity ^0.8.30;
import {IERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import {IWETH9} from "../src/IWETH9.sol";
import {NativeWrapper} from "../src/NativeWrapper.sol";
import {PartyPlanner} from "../src/PartyPlanner.sol";
import {PartyPool} from "../src/PartyPool.sol";
import {PartyPoolBalancedPair} from "../src/PartyPoolBalancedPair.sol";
@@ -17,11 +17,11 @@ library Deploy {
uint256 internal constant PROTOCOL_FEE_PPM = 100_000; // 10%
function newPartyPlanner() internal returns (PartyPlanner) {
IWETH9 wrapper = new WETH9();
NativeWrapper wrapper = new WETH9();
return newPartyPlanner(wrapper);
}
function newPartyPlanner(IWETH9 wrapper) internal returns (PartyPlanner) {
function newPartyPlanner(NativeWrapper wrapper) internal returns (PartyPlanner) {
return new PartyPlanner(
wrapper,
new PartyPoolSwapImpl(wrapper),
@@ -43,7 +43,7 @@ library Deploy {
uint256 _flashFeePpm,
bool _stable
) internal returns (PartyPool) {
IWETH9 wrapper = new WETH9();
NativeWrapper wrapper = new WETH9();
return newPartyPool(name_, symbol_, tokens_, bases_, _kappa, _swapFeePpm, _flashFeePpm, wrapper, _stable);
}
@@ -55,7 +55,7 @@ library Deploy {
int128 _kappa,
uint256 _swapFeePpm,
uint256 _flashFeePpm,
IWETH9 wrapper,
NativeWrapper wrapper,
bool _stable
) internal returns (PartyPool) {
return _stable && tokens_.length == 2 ?
@@ -91,7 +91,7 @@ library Deploy {
function newViewer() internal returns (PartyPoolViewer) {
IWETH9 wrapper = new WETH9();
NativeWrapper wrapper = new WETH9();
return new PartyPoolViewer(new PartyPoolSwapImpl(wrapper), new PartyPoolMintImpl(wrapper));
}
}

View File

@@ -7,7 +7,7 @@ import "@abdk/ABDKMath64x64.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "../src/LMSRStabilized.sol";
import "../src/PartyPool.sol";
import {IWETH9} from "../src/IWETH9.sol";
import {NativeWrapper} from "../src/NativeWrapper.sol";
import {PartyPlanner} from "../src/PartyPlanner.sol";
import {Deploy} from "./Deploy.sol";
import {PartyPoolViewer} from "../src/PartyPoolViewer.sol";
@@ -272,7 +272,7 @@ contract NativeTest is Test {
uint256 aliceEthBefore = alice.balance;
// Execute swapToLimit: token0 (index 0) -> WETH (index 2) with unwrap=true
(uint256 amountInUsed, uint256 amountOut, uint256 fee) = pool.swapToLimit(
(uint256 amountInUsed, uint256 amountOut, /*uint256 fee*/) = pool.swapToLimit(
alice, // payer
alice, // receiver
0, // inputTokenIndex (token0)

View File

@@ -1,9 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.30;
import {IWETH9} from "../src/IWETH9.sol";
import {NativeWrapper} from "../src/NativeWrapper.sol";
contract WETH9 is IWETH9 {
contract WETH9 is NativeWrapper {
string public name = "Wrapped Ether";
string public symbol = "WETH";
uint8 public decimals = 18;