LMSRStabilized pure refactor; swapMintAmounts
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user