@pendle/core-v2 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -50,18 +50,18 @@ contract RouterStatic is IPRouterStatic {
|
|
|
50
50
|
function removeLiquidityStatic(address market, uint256 lpToRemove)
|
|
51
51
|
external
|
|
52
52
|
view
|
|
53
|
-
returns (uint256
|
|
53
|
+
returns (uint256 netScyOut, uint256 netPtOut)
|
|
54
54
|
{
|
|
55
55
|
MarketState memory state = IPMarket(market).readState(false);
|
|
56
|
-
(
|
|
56
|
+
(netScyOut, netPtOut) = state.removeLiquidity(lpToRemove, false);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function swapPtForScyStatic(address market, uint256 exactPtIn)
|
|
60
60
|
external
|
|
61
|
-
returns (uint256
|
|
61
|
+
returns (uint256 netScyOut, uint256 netScyFee)
|
|
62
62
|
{
|
|
63
63
|
MarketState memory state = IPMarket(market).readState(false);
|
|
64
|
-
(
|
|
64
|
+
(netScyOut, netScyFee) = state.swapExactPtForScy(
|
|
65
65
|
scyIndex(market),
|
|
66
66
|
exactPtIn,
|
|
67
67
|
block.timestamp,
|