LMSRStabilized pure refactor; swapMintAmounts

This commit is contained in:
tim
2025-10-01 17:09:42 -04:00
parent 5a2e7039d1
commit b7e1b1cac2

View File

@@ -194,7 +194,7 @@ contract PartyPoolMintImpl is PartyPoolBase {
emit Burn(payer, receiver, withdrawAmounts, lpAmount); emit Burn(payer, receiver, withdrawAmounts, lpAmount);
} }
function mintAmounts(uint256 lpTokenAmount, uint256 numAssets, uint256 totalSupply, uint256[] memory cachedUintBalances) public view function mintAmounts(uint256 lpTokenAmount, uint256 numAssets, uint256 totalSupply, uint256[] memory cachedUintBalances) public pure
returns (uint256[] memory depositAmounts) { returns (uint256[] memory depositAmounts) {
depositAmounts = new uint256[](numAssets); depositAmounts = new uint256[](numAssets);
@@ -217,7 +217,7 @@ contract PartyPoolMintImpl is PartyPoolBase {
} }
function burnAmounts(uint256 lpTokenAmount, function burnAmounts(uint256 lpTokenAmount,
uint256 numAssets, uint256 totalSupply, uint256[] memory cachedUintBalances) public view uint256 numAssets, uint256 totalSupply, uint256[] memory cachedUintBalances) public pure
returns (uint256[] memory withdrawAmounts) { returns (uint256[] memory withdrawAmounts) {
withdrawAmounts = new uint256[](numAssets); withdrawAmounts = new uint256[](numAssets);