@pendle/core-v2 0.17.1-daily → 0.17.3-testnet

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.
Files changed (39) hide show
  1. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  15. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  19. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  20. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  21. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  22. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  23. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  24. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  25. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  26. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  27. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  28. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  29. package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +1 -1
  30. package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +1 -1
  31. package/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +2 -2
  32. package/contracts/LiquidityMining/libraries/WeekMath.sol +1 -1
  33. package/contracts/core/Market/PendleMarket.sol +2 -2
  34. package/contracts/interfaces/IPMarket.sol +1 -0
  35. package/contracts/offchain-helpers/RouterStatic.sol +1 -1
  36. package/deployments/43113-core.json +11 -11
  37. package/deployments/43113-markets/USDC-FEB-2ND.json +4 -4
  38. package/deployments/43113-markets/WETH-FEB-2ND.json +5 -5
  39. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3a6d5ca548469b1a92b8c9110bb006bc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../../build-info/3a6d5ca548469b1a92b8c9110bb006bc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3a6d5ca548469b1a92b8c9110bb006bc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3a6d5ca548469b1a92b8c9110bb006bc.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/dfab9348b7820ea6dcb9c38e22808511.json"
3
+ "buildInfo": "../../../build-info/3e8778582196fe1911d74fe5ae7e13a1.json"
4
4
  }
@@ -44,7 +44,7 @@ abstract contract PendleGaugeControllerBaseUpg is
44
44
  uint128 incentiveEndsAt;
45
45
  }
46
46
 
47
- uint128 internal constant WEEK = 1 days;
47
+ uint128 internal constant WEEK = 1 weeks;
48
48
 
49
49
  address public immutable pendle;
50
50
  IPMarketFactory public immutable marketFactory;
@@ -49,7 +49,7 @@ abstract contract VotingControllerStorageUpg is IPVotingController {
49
49
  }
50
50
 
51
51
  uint128 public constant MAX_LOCK_TIME = 104 weeks;
52
- uint128 public constant WEEK = 1 days;
52
+ uint128 public constant WEEK = 1 weeks;
53
53
  uint128 public constant GOVERNANCE_PENDLE_VOTE = 10**24;
54
54
 
55
55
  IPVeToken public immutable vePendle;
@@ -25,9 +25,9 @@ abstract contract VotingEscrowTokenBase is IPVeToken {
25
25
  using VeBalanceLib for VeBalance;
26
26
  using VeBalanceLib for LockedPosition;
27
27
 
28
- uint128 public constant WEEK = 1 days;
28
+ uint128 public constant WEEK = 1 weeks;
29
29
  uint128 public constant MAX_LOCK_TIME = 104 weeks;
30
- uint128 public constant MIN_LOCK_TIME = 1 days;
30
+ uint128 public constant MIN_LOCK_TIME = 1 weeks;
31
31
 
32
32
  VeBalance internal _totalSupply;
33
33
 
@@ -3,7 +3,7 @@
3
3
  pragma solidity 0.8.17;
4
4
 
5
5
  library WeekMath {
6
- uint128 internal constant WEEK = 1 days;
6
+ uint128 internal constant WEEK = 7 days;
7
7
 
8
8
  function getWeekStartTimestamp(uint128 timestamp) internal pure returns (uint128) {
9
9
  return (timestamp / WEEK) * WEEK;
@@ -191,7 +191,7 @@ contract PendleMarket is PendleERC20Permit, PendleGauge, IPMarket {
191
191
  if (_selfBalance(PT) < market.totalPt.Uint())
192
192
  revert Errors.MarketInsufficientPtReceived(_selfBalance(PT), market.totalPt.Uint());
193
193
 
194
- emit Swap(receiver, exactPtIn.neg(), netSyOut.Int(), netSyFee, netSyToReserve);
194
+ emit Swap(msg.sender, receiver, exactPtIn.neg(), netSyOut.Int(), netSyFee, netSyToReserve);
195
195
  }
196
196
 
197
197
  /**
@@ -231,7 +231,7 @@ contract PendleMarket is PendleERC20Permit, PendleGauge, IPMarket {
231
231
  if (_selfBalance(SY) < market.totalSy.Uint())
232
232
  revert Errors.MarketInsufficientSyReceived(_selfBalance(SY), market.totalSy.Uint());
233
233
 
234
- emit Swap(receiver, exactPtOut.Int(), netSyIn.neg(), netSyFee, netSyToReserve);
234
+ emit Swap(msg.sender, receiver, exactPtOut.Int(), netSyIn.neg(), netSyFee, netSyToReserve);
235
235
  }
236
236
 
237
237
  /// @notice forces balances to match reserves
@@ -25,6 +25,7 @@ interface IPMarket is IERC20Metadata, IPGauge {
25
25
  );
26
26
 
27
27
  event Swap(
28
+ address indexed caller,
28
29
  address indexed receiver,
29
30
  int256 netPtOut,
30
31
  int256 netSyOut,
@@ -23,7 +23,7 @@ contract RouterStatic is Initializable, BoringOwnableUpgradeable, UUPSUpgradeabl
23
23
  using BulkSellerMathCore for BulkSellerState;
24
24
 
25
25
  uint128 public constant MAX_LOCK_TIME = 104 weeks;
26
- uint128 public constant MIN_LOCK_TIME = 1 days;
26
+ uint128 public constant MIN_LOCK_TIME = 1 weeks;
27
27
 
28
28
  struct TokenAmount {
29
29
  address token;
@@ -8,16 +8,16 @@
8
8
  "lzEndpoint": "0x93f54D755A063cE7bB9e6Ac47Eccc8e33411d706",
9
9
  "wrappedNative": "0xe43a7aD7C09d8fAE3ADe7361f0b847b23adD5094"
10
10
  },
11
- "splitter": "0x7705919aAA74108D06fA9800D48B0AaC6D74d4ae",
11
+ "splitter": "0x315A059EB986507A2a6085726643228401ea5e78",
12
12
  "PENDLE": "0xB7609dec1C926204c3B67345cbCd54bc4aa7a940",
13
- "yieldContractFactory": "0xbe79FdF72e7b21dd4D4e18D9D1B208a5Df0E7A54",
14
- "marketFactory": "0x927a47f2e3124b6f94dA38FA366Aea4EaDfD5684",
15
- "bulkSellerFactory": "0x2003B557193cD1e62A118DeB57f47d083B4a282d",
16
- "bulkSellerOffchain": "0x6b0a8cd00117f2C30decE99818525258E565ed3E",
17
- "router": "0x837CA09Dd56AF718076fC43480f5466914ef59B5",
18
- "routerStatic": "0xBED8b7EC6fa736fe641B7D94c38E5254bE14aa83",
19
- "vePendle": "0xA049ac4620f75945E44de17892B437630B09f579",
20
- "senderEndpoint": "0x2982db3C22733780F109ac255bA7C48cC1114355",
21
- "votingController": "0xc71693Bf326F0cE471129E4EDae38D2d405E103B",
22
- "gaugeController": "0x2dd2414dB9fEc50dB2E7160165a89facBd936136"
13
+ "yieldContractFactory": "0xe189c0F1EABDD23AB7DcA0d7657FF60c8f137356",
14
+ "marketFactory": "0x24265d37C87d3ffE64D6B0274c168945d44D1ba2",
15
+ "bulkSellerFactory": "0x137404E334a80fa741AD03d8965ee4b5b8A20259",
16
+ "bulkSellerOffchain": "0x85C369B1aD9A981DCf4Fd8F00F74cB783cacec34",
17
+ "router": "0x17ae363f142517b593d9A71282BAb8CA6bb4eA51",
18
+ "routerStatic": "0x2F308CaE3A9e6018A571958656cC4Fd0B954144F",
19
+ "vePendle": "0xB20E3c268C993BC3c9Bc1C1cc5D7491F2268cD91",
20
+ "senderEndpoint": "0x86bD575c36e236386284C035ffeBE66CB6ecd2DD",
21
+ "votingController": "0x40ea97a7E9A4A0520229d1bbdf4D82E36b1a5475",
22
+ "gaugeController": "0x90Fa61ea34f61e31e9471CEB0ED22b12bBf4263E"
23
23
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "SY Benqi USDC",
3
- "SY": "0x1223Ebf2EC58aeb6A4886d033b1Be7AB0b02130c",
4
- "YT": "0x0966975352EB04752965b7171746D6d8077B03cC",
5
- "PT": "0x93C89e08D04589a0F75AcB2c66D9A3eab8922220",
6
- "market": "0xEa222548dBF096814a4D2b454260368cA53F6d53",
3
+ "SY": "0x0209b7e742ea0C0cD466eB7cdDA596d7a624387F",
4
+ "YT": "0x7cDE2A6E964Ef46CF88e73D0f4b9D99705638C5E",
5
+ "PT": "0xb7a1e3aFA053E2ff4B525900b3359749BeAb101F",
6
+ "market": "0x0e303BbD4F9F316c797AaEDc71ebE7342a5269C6",
7
7
  "expiry": 1675382400,
8
8
  "scalarRoot": "62000000000000000000",
9
9
  "initAnchor": "1012600000000000000"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "SY Benqi WETH",
3
- "SY": "0x8B66a7664267E5CFe40B498601194f36110651B7",
4
- "YT": "0xf5d23f38Da28637B8d595968AA3863bA54454a77",
5
- "PT": "0xBa3C57f9d2A945db0BDB5f280C863655d4582bD3",
6
- "market": "0xb08c0a69D12c3d6E34f3723b11F3057D2FBc1515",
3
+ "SY": "0x2E6cDFD2c1379270553EF1Ab8bbeDE0BCB9eF737",
4
+ "YT": "0xc0eD42Fa7521936f26DdCc226D2761fBb47000A4",
5
+ "PT": "0x4CFe3aB9cF4bDA9b668497E373baA00E875f722C",
6
+ "market": "0x671610F13e56bD530Dc2A3b9504eba2F402913d7",
7
7
  "expiry": 1675382400,
8
- "bulkSeller": "0xd3487a6cf536020cf647ECb19dC4Ef60bedee8d1",
8
+ "bulkSeller": "0x9118368BdbA84B86507AFb1D15c349099Cd41c9D",
9
9
  "scalarRoot": "62000000000000000000",
10
10
  "initAnchor": "1012600000000000000"
11
11
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pendle/core-v2",
3
3
  "description": "Core smart contracts of Pendle Protocol.",
4
4
  "license": "BUSL-1.1",
5
- "version": "0.17.1-daily",
5
+ "version": "0.17.3-testnet",
6
6
  "homepage": "https://pendle.finance",
7
7
  "keywords": [
8
8
  "pendle",