@pendle/core-v2 5.8.0 → 5.8.1

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 (66) hide show
  1. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  3. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  17. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  18. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  19. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  20. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  21. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  23. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  30. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  31. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +28 -3
  32. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  33. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  34. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  35. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  36. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  37. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  38. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  39. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  40. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  41. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  43. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  44. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  45. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.dbg.json +1 -1
  46. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.dbg.json +1 -1
  47. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.dbg.json +1 -1
  48. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  49. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  50. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  51. package/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol +8 -3
  52. package/deployments/1-core.json +1 -1
  53. package/deployments/10-core.json +1 -1
  54. package/deployments/146-core.json +2 -2
  55. package/deployments/42161-core.json +1 -1
  56. package/deployments/5000-core.json +2 -2
  57. package/deployments/56-core.json +2 -2
  58. package/deployments/80094-core.json +2 -2
  59. package/deployments/8453-core.json +2 -2
  60. package/package.json +1 -1
  61. package/typechain-types/IGenericSwapExactAmountIn.ts +161 -0
  62. package/typechain-types/PendleSparkLinearDiscountOracleFactory.ts +25 -3
  63. package/typechain-types/factories/IGenericSwapExactAmountIn__factory.ts +100 -0
  64. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +27 -2
  65. package/typechain-types/hardhat.d.ts +9 -0
  66. package/typechain-types/index.ts +2 -0
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3f39f3a6dee5404fad715e990d523574.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3f39f3a6dee5404fad715e990d523574.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3188aded34c15c4f50680da0d8bf0fcf.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/c544eb7999c8fa4fd2f81d0b62abcf65.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -3,6 +3,31 @@
3
3
  "contractName": "PendleSparkLinearDiscountOracleFactory",
4
4
  "sourceName": "contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol",
5
5
  "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "address",
12
+ "name": "pt",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "uint256",
18
+ "name": "baseDiscountPerYear",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "address",
24
+ "name": "oracle",
25
+ "type": "address"
26
+ }
27
+ ],
28
+ "name": "OracleCreated",
29
+ "type": "event"
30
+ },
6
31
  {
7
32
  "inputs": [
8
33
  {
@@ -44,7 +69,7 @@
44
69
  "outputs": [
45
70
  {
46
71
  "internalType": "address",
47
- "name": "",
72
+ "name": "res",
48
73
  "type": "address"
49
74
  }
50
75
  ],
@@ -52,8 +77,8 @@
52
77
  "type": "function"
53
78
  }
54
79
  ],
55
- "bytecode": "0x608060405234801561001057600080fd5b50610762806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633b8863cc1461003b57806380245dad1461006a575b600080fd5b61004e610049366004610188565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e610078366004610188565b610124565b600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e291906101b4565b5091505080836040516100f490610163565b6100ff929190610201565b604051809103906000f08015801561011b573d6000803e3d6000fd5b50949350505050565b6000828260405161013490610163565b61013f929190610201565b604051809103906000f08015801561015b573d6000803e3d6000fd5b509392505050565b6105128061021b83390190565b6001600160a01b038116811461018557600080fd5b50565b6000806040838503121561019b57600080fd5b82356101a681610170565b946020939093013593505050565b6000806000606084860312156101c957600080fd5b83516101d481610170565b60208501519093506101e581610170565b60408501519092506101f681610170565b809150509250925092565b6001600160a01b0392909216825260208201526040019056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c63430008170033a2646970667358221220c64fad83121df1e1f922ac639d112c8f7556006a369b264afcd5f5b1f194e62964736f6c63430008170033",
56
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80633b8863cc1461003b57806380245dad1461006a575b600080fd5b61004e610049366004610188565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e610078366004610188565b610124565b600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e291906101b4565b5091505080836040516100f490610163565b6100ff929190610201565b604051809103906000f08015801561011b573d6000803e3d6000fd5b50949350505050565b6000828260405161013490610163565b61013f929190610201565b604051809103906000f08015801561015b573d6000803e3d6000fd5b509392505050565b6105128061021b83390190565b6001600160a01b038116811461018557600080fd5b50565b6000806040838503121561019b57600080fd5b82356101a681610170565b946020939093013593505050565b6000806000606084860312156101c957600080fd5b83516101d481610170565b60208501519093506101e581610170565b60408501519092506101f681610170565b809150509250925092565b6001600160a01b0392909216825260208201526040019056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c63430008170033a2646970667358221220c64fad83121df1e1f922ac639d112c8f7556006a369b264afcd5f5b1f194e62964736f6c63430008170033",
80
+ "bytecode": "0x608060405234801561001057600080fd5b50610800806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633b8863cc1461003b57806380245dad1461006a575b600080fd5b61004e6100493660046101ef565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101ef565b610159565b600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e2919061021b565b50915050600081846040516100f6906101ca565b610101929190610268565b604051809103906000f08015801561011d573d6000803e3d6000fd5b509050816001600160a01b03166000805160206107ab8339815191528583604051610149929190610281565b60405180910390a2949350505050565b60008282604051610169906101ca565b610174929190610268565b604051809103906000f080158015610190573d6000803e3d6000fd5b509050826001600160a01b03166000805160206107ab83398151915283836040516101bc929190610281565b60405180910390a292915050565b6105128061029983390190565b6001600160a01b03811681146101ec57600080fd5b50565b6000806040838503121561020257600080fd5b823561020d816101d7565b946020939093013593505050565b60008060006060848603121561023057600080fd5b835161023b816101d7565b602085015190935061024c816101d7565b604085015190925061025d816101d7565b809150509250925092565b6001600160a01b03929092168252602082015260400190565b9182526001600160a01b031660208201526040019056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c6343000817003390ee845759e3368e15efca97a228f30ad3e506893c7f9215b13c393b31f8e620a2646970667358221220b7cdfa4314f22f5796a3d941ecedc841834a4d3e0c04d051aff28453f128874564736f6c63430008170033",
81
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80633b8863cc1461003b57806380245dad1461006a575b600080fd5b61004e6100493660046101ef565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101ef565b610159565b600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e2919061021b565b50915050600081846040516100f6906101ca565b610101929190610268565b604051809103906000f08015801561011d573d6000803e3d6000fd5b509050816001600160a01b03166000805160206107ab8339815191528583604051610149929190610281565b60405180910390a2949350505050565b60008282604051610169906101ca565b610174929190610268565b604051809103906000f080158015610190573d6000803e3d6000fd5b509050826001600160a01b03166000805160206107ab83398151915283836040516101bc929190610281565b60405180910390a292915050565b6105128061029983390190565b6001600160a01b03811681146101ec57600080fd5b50565b6000806040838503121561020257600080fd5b823561020d816101d7565b946020939093013593505050565b60008060006060848603121561023057600080fd5b835161023b816101d7565b602085015190935061024c816101d7565b604085015190925061025d816101d7565b809150509250925092565b6001600160a01b03929092168252602082015260400190565b9182526001600160a01b031660208201526040019056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c6343000817003390ee845759e3368e15efca97a228f30ad3e506893c7f9215b13c393b31f8e620a2646970667358221220b7cdfa4314f22f5796a3d941ecedc841834a4d3e0c04d051aff28453f128874564736f6c63430008170033",
57
82
  "linkReferences": {},
58
83
  "deployedLinkReferences": {}
59
84
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6617d382e5ae37096b284b86207f33fd.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
3
+ "buildInfo": "../../../../build-info/bb711ef75e7b3f7b7a7f04824b4e8fd8.json"
4
4
  }
@@ -6,12 +6,17 @@ import "../../interfaces/IPPrincipalToken.sol";
6
6
  import "../../interfaces/IPMarket.sol";
7
7
 
8
8
  contract PendleSparkLinearDiscountOracleFactory {
9
- function createWithPt(address pt, uint256 baseDiscountPerYear) external returns (address) {
10
- return address(new PendleSparkLinearDiscountOracle(pt, baseDiscountPerYear));
9
+ event OracleCreated(address indexed pt, uint256 baseDiscountPerYear, address oracle);
10
+
11
+ function createWithPt(address pt, uint256 baseDiscountPerYear) external returns (address res) {
12
+ res = address(new PendleSparkLinearDiscountOracle(pt, baseDiscountPerYear));
13
+ emit OracleCreated(pt, baseDiscountPerYear, res);
11
14
  }
12
15
 
13
16
  function createWithMarket(address market, uint256 baseDiscountPerYear) external returns (address) {
14
17
  (, IPPrincipalToken PT, ) = IPMarket(market).readTokens();
15
- return address(new PendleSparkLinearDiscountOracle(address(PT), baseDiscountPerYear));
18
+ address res = address(new PendleSparkLinearDiscountOracle(address(PT), baseDiscountPerYear));
19
+ emit OracleCreated(address(PT), baseDiscountPerYear, res);
20
+ return res;
16
21
  }
17
22
  }
@@ -47,7 +47,7 @@
47
47
  "reflector": "0x5039Da22E5126e7c4e9284376116716A91782faF",
48
48
  "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
49
49
  "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
50
- "sparkLinearDiscountOracleFactory": "0x084ceE278DA67F2B0fead8194FFe43C566E4e0B3",
50
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
51
51
  "beta": {
52
52
  "PendleChainlinkOracleFactory": "0x2A73e899389cABa2a2f648BaBA35e67f5C00EFee"
53
53
  },
@@ -47,7 +47,7 @@
47
47
  "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
48
48
  "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
49
49
  "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
50
- "sparkLinearDiscountOracleFactory": "0x084ceE278DA67F2B0fead8194FFe43C566E4e0B3",
50
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
51
51
  "beta": {
52
52
  "PendleChainlinkOracleFactory": "0x2A73e899389cABa2a2f648BaBA35e67f5C00EFee"
53
53
  },
@@ -4,7 +4,7 @@
4
4
  "chainId": 146,
5
5
  "treasury": "0xCbcb48e22622a3778b6F14C2f5d258Ba026b05e6",
6
6
  "governance": "0x7877adfaded756f3248a0ebfe8ac2e2ef87b75ac",
7
- "devMultisig": "0x7877adfaded756f3248a0ebfe8ac2e2ef87b75ac",
7
+ "devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
8
8
  "pendle": "0xf1eF7d2D4C0c881cd634481e0586ed5d2871A74B",
9
9
  "lzEndpoint": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
10
10
  "wrappedNative": "0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38",
@@ -41,7 +41,7 @@
41
41
  "receiverEndpoint": "0x3209E9412cca80B18338f2a56ADA59c484c39644",
42
42
  "vePendle": "0xE017CCC08505Ac8fbb5a364680e459d9fBaEE74d",
43
43
  "gaugeController": "0xeE708FC793a02F1eDd5BB9DBD7fD13010D1F7136",
44
- "sparkLinearDiscountOracleFactory": "0x084ceE278DA67F2B0fead8194FFe43C566E4e0B3",
44
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
45
45
  "vePendleAirdropDistributor": "0x3942F7B55094250644cFfDa7160226Caa349A38E",
46
46
  "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
47
47
  "beta": {
@@ -47,7 +47,7 @@
47
47
  "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
48
48
  "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
49
49
  "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
50
- "sparkLinearDiscountOracleFactory": "0x084ceE278DA67F2B0fead8194FFe43C566E4e0B3",
50
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
51
51
  "beta": {
52
52
  "PendleChainlinkOracleFactory": "0x2A73e899389cABa2a2f648BaBA35e67f5C00EFee"
53
53
  },
@@ -5,7 +5,7 @@
5
5
  "treasury": "0x5C30d3578A4D07a340650a76B9Ae5dF20D5bdF55",
6
6
  "governance": "0x9F72a06084EdD040E973C32Bf026b1ACf65db9aB",
7
7
  "pendle": "0xd27B18915e7acc8FD6Ac75DB6766a80f8D2f5729",
8
- "devMultisig": "0xa3d74DB1cB054b67A6684f76AaF1305252481c6A",
8
+ "devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
9
9
  "lzEndpoint": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
10
10
  "wrappedNative": "0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8",
11
11
  "initialRewardFee": "30000000000000000",
@@ -47,7 +47,7 @@
47
47
  "receiverEndpoint": "0xf799E4c029d14f41Dc1918C9A4C67242F565710e",
48
48
  "vePendle": "0x30c6d4e892871220B5Ab66c10db577da96Fb974b",
49
49
  "gaugeController": "0x428f2f93afAc3F96B0DE59854038c585e06165C8",
50
- "sparkLinearDiscountOracleFactory": "0xA9A924A4BB95509F77868E086154C25e934F6171",
50
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
51
51
  "vePendleAirdropDistributor": "0x3942F7B55094250644cFfDa7160226Caa349A38E",
52
52
  "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
53
53
  "beta": {
@@ -4,7 +4,7 @@
4
4
  "chainId": 56,
5
5
  "treasury": "0xd77E9062c6DF3F2d1CB5Bf45855fa1E7712A059e",
6
6
  "governance": "0xA06627d9884996BC27a7c20fDA94FC94C13aa9Ec",
7
- "devMultisig": "0x2ad76D576D5910F32227B2F07efC21b3F559858C",
7
+ "devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
8
8
  "pendle": "0xb3Ed0A426155B79B898849803E3B36552f7ED507",
9
9
  "lzEndpoint": "0x3c2269811836af69497E5F486A85D7316753cf62",
10
10
  "wrappedNative": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
@@ -45,7 +45,7 @@
45
45
  "reflector": "0x5039Da22E5126e7c4e9284376116716A91782faF",
46
46
  "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
47
47
  "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
48
- "sparkLinearDiscountOracleFactory": "0x084ceE278DA67F2B0fead8194FFe43C566E4e0B3",
48
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
49
49
  "vePendleAirdropDistributor": "0x3942F7B55094250644cFfDa7160226Caa349A38E",
50
50
  "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
51
51
  "beta": {
@@ -4,7 +4,7 @@
4
4
  "chainId": 80094,
5
5
  "treasury": "0xCbcb48e22622a3778b6F14C2f5d258Ba026b05e6",
6
6
  "governance": "0x7877adfaded756f3248a0ebfe8ac2e2ef87b75ac",
7
- "devMultisig": "0x7877adfaded756f3248a0ebfe8ac2e2ef87b75ac",
7
+ "devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
8
8
  "pendle": "0xFf9c599D51C407A45D631c6e89cB047Efb88AeF6",
9
9
  "lzEndpoint": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
10
10
  "wrappedNative": "0x6969696969696969696969696969696969696969",
@@ -38,7 +38,7 @@
38
38
  "reflector": "0xFAa7aD6258b1aa40F2cC414E49033dc77183ba76",
39
39
  "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
40
40
  "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
41
- "sparkLinearDiscountOracleFactory": "0x084ceE278DA67F2B0fead8194FFe43C566E4e0B3",
41
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
42
42
  "vePendleAirdropDistributor": "0x3942F7B55094250644cFfDa7160226Caa349A38E",
43
43
  "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
44
44
  "beta": {
@@ -4,7 +4,7 @@
4
4
  "chainId": 8453,
5
5
  "treasury": "0xCbcb48e22622a3778b6F14C2f5d258Ba026b05e6",
6
6
  "governance": "0x7877AdFaDEd756f3248a0EBfe8Ac2E2eF87b75Ac",
7
- "devMultisig": "0x3c0f8F070E6400C1C4eD10CfF85dE4c643b66bd3",
7
+ "devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
8
8
  "pendle": "0xA99F6e6785Da0F5d6fB42495Fe424BCE029Eeb3E",
9
9
  "lzEndpoint": "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
10
10
  "wrappedNative": "0x4200000000000000000000000000000000000006",
@@ -38,7 +38,7 @@
38
38
  "reflector": "0x5039Da22E5126e7c4e9284376116716A91782faF",
39
39
  "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
40
40
  "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
41
- "sparkLinearDiscountOracleFactory": "0x084ceE278DA67F2B0fead8194FFe43C566E4e0B3",
41
+ "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
42
42
  "vePendleAirdropDistributor": "0x3942F7B55094250644cFfDa7160226Caa349A38E",
43
43
  "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
44
44
  "beta": {
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": "5.8.0",
5
+ "version": "5.8.1",
6
6
  "homepage": "https://pendle.finance",
7
7
  "keywords": [
8
8
  "pendle",
@@ -0,0 +1,161 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ PayableOverrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import { FunctionFragment, Result } from "@ethersproject/abi";
17
+ import { Listener, Provider } from "@ethersproject/providers";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ } from "./common";
24
+
25
+ export declare namespace IGenericSwapExactAmountIn {
26
+ export type GenericDataStruct = {
27
+ srcToken: string;
28
+ destToken: string;
29
+ fromAmount: BigNumberish;
30
+ toAmount: BigNumberish;
31
+ quotedAmount: BigNumberish;
32
+ metadata: BytesLike;
33
+ beneficiary: string;
34
+ };
35
+
36
+ export type GenericDataStructOutput = [
37
+ string,
38
+ string,
39
+ BigNumber,
40
+ BigNumber,
41
+ BigNumber,
42
+ string,
43
+ string
44
+ ] & {
45
+ srcToken: string;
46
+ destToken: string;
47
+ fromAmount: BigNumber;
48
+ toAmount: BigNumber;
49
+ quotedAmount: BigNumber;
50
+ metadata: string;
51
+ beneficiary: string;
52
+ };
53
+ }
54
+
55
+ export interface IGenericSwapExactAmountInInterface extends utils.Interface {
56
+ contractName: "IGenericSwapExactAmountIn";
57
+ functions: {
58
+ "swapExactAmountIn(address,(address,address,uint256,uint256,uint256,bytes32,address),uint256,bytes,bytes)": FunctionFragment;
59
+ };
60
+
61
+ encodeFunctionData(
62
+ functionFragment: "swapExactAmountIn",
63
+ values: [
64
+ string,
65
+ IGenericSwapExactAmountIn.GenericDataStruct,
66
+ BigNumberish,
67
+ BytesLike,
68
+ BytesLike
69
+ ]
70
+ ): string;
71
+
72
+ decodeFunctionResult(
73
+ functionFragment: "swapExactAmountIn",
74
+ data: BytesLike
75
+ ): Result;
76
+
77
+ events: {};
78
+ }
79
+
80
+ export interface IGenericSwapExactAmountIn extends BaseContract {
81
+ contractName: "IGenericSwapExactAmountIn";
82
+ connect(signerOrProvider: Signer | Provider | string): this;
83
+ attach(addressOrName: string): this;
84
+ deployed(): Promise<this>;
85
+
86
+ interface: IGenericSwapExactAmountInInterface;
87
+
88
+ queryFilter<TEvent extends TypedEvent>(
89
+ event: TypedEventFilter<TEvent>,
90
+ fromBlockOrBlockhash?: string | number | undefined,
91
+ toBlock?: string | number | undefined
92
+ ): Promise<Array<TEvent>>;
93
+
94
+ listeners<TEvent extends TypedEvent>(
95
+ eventFilter?: TypedEventFilter<TEvent>
96
+ ): Array<TypedListener<TEvent>>;
97
+ listeners(eventName?: string): Array<Listener>;
98
+ removeAllListeners<TEvent extends TypedEvent>(
99
+ eventFilter: TypedEventFilter<TEvent>
100
+ ): this;
101
+ removeAllListeners(eventName?: string): this;
102
+ off: OnEvent<this>;
103
+ on: OnEvent<this>;
104
+ once: OnEvent<this>;
105
+ removeListener: OnEvent<this>;
106
+
107
+ functions: {
108
+ swapExactAmountIn(
109
+ executor: string,
110
+ swapData: IGenericSwapExactAmountIn.GenericDataStruct,
111
+ partnerAndFee: BigNumberish,
112
+ permit: BytesLike,
113
+ executorData: BytesLike,
114
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
115
+ ): Promise<ContractTransaction>;
116
+ };
117
+
118
+ swapExactAmountIn(
119
+ executor: string,
120
+ swapData: IGenericSwapExactAmountIn.GenericDataStruct,
121
+ partnerAndFee: BigNumberish,
122
+ permit: BytesLike,
123
+ executorData: BytesLike,
124
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
125
+ ): Promise<ContractTransaction>;
126
+
127
+ callStatic: {
128
+ swapExactAmountIn(
129
+ executor: string,
130
+ swapData: IGenericSwapExactAmountIn.GenericDataStruct,
131
+ partnerAndFee: BigNumberish,
132
+ permit: BytesLike,
133
+ executorData: BytesLike,
134
+ overrides?: CallOverrides
135
+ ): Promise<void>;
136
+ };
137
+
138
+ filters: {};
139
+
140
+ estimateGas: {
141
+ swapExactAmountIn(
142
+ executor: string,
143
+ swapData: IGenericSwapExactAmountIn.GenericDataStruct,
144
+ partnerAndFee: BigNumberish,
145
+ permit: BytesLike,
146
+ executorData: BytesLike,
147
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
148
+ ): Promise<BigNumber>;
149
+ };
150
+
151
+ populateTransaction: {
152
+ swapExactAmountIn(
153
+ executor: string,
154
+ swapData: IGenericSwapExactAmountIn.GenericDataStruct,
155
+ partnerAndFee: BigNumberish,
156
+ permit: BytesLike,
157
+ executorData: BytesLike,
158
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
159
+ ): Promise<PopulatedTransaction>;
160
+ };
161
+ }
@@ -13,7 +13,7 @@ import {
13
13
  Signer,
14
14
  utils,
15
15
  } from "ethers";
16
- import { FunctionFragment, Result } from "@ethersproject/abi";
16
+ import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
17
17
  import { Listener, Provider } from "@ethersproject/providers";
18
18
  import type {
19
19
  TypedEventFilter,
@@ -48,9 +48,20 @@ export interface PendleSparkLinearDiscountOracleFactoryInterface
48
48
  data: BytesLike
49
49
  ): Result;
50
50
 
51
- events: {};
51
+ events: {
52
+ "OracleCreated(address,uint256,address)": EventFragment;
53
+ };
54
+
55
+ getEvent(nameOrSignatureOrTopic: "OracleCreated"): EventFragment;
52
56
  }
53
57
 
58
+ export type OracleCreatedEvent = TypedEvent<
59
+ [string, BigNumber, string],
60
+ { pt: string; baseDiscountPerYear: BigNumber; oracle: string }
61
+ >;
62
+
63
+ export type OracleCreatedEventFilter = TypedEventFilter<OracleCreatedEvent>;
64
+
54
65
  export interface PendleSparkLinearDiscountOracleFactory extends BaseContract {
55
66
  contractName: "PendleSparkLinearDiscountOracleFactory";
56
67
  connect(signerOrProvider: Signer | Provider | string): this;
@@ -118,7 +129,18 @@ export interface PendleSparkLinearDiscountOracleFactory extends BaseContract {
118
129
  ): Promise<string>;
119
130
  };
120
131
 
121
- filters: {};
132
+ filters: {
133
+ "OracleCreated(address,uint256,address)"(
134
+ pt?: string | null,
135
+ baseDiscountPerYear?: null,
136
+ oracle?: null
137
+ ): OracleCreatedEventFilter;
138
+ OracleCreated(
139
+ pt?: string | null,
140
+ baseDiscountPerYear?: null,
141
+ oracle?: null
142
+ ): OracleCreatedEventFilter;
143
+ };
122
144
 
123
145
  estimateGas: {
124
146
  createWithMarket(
@@ -0,0 +1,100 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IGenericSwapExactAmountIn,
9
+ IGenericSwapExactAmountInInterface,
10
+ } from "../IGenericSwapExactAmountIn";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "executor",
18
+ type: "address",
19
+ },
20
+ {
21
+ components: [
22
+ {
23
+ internalType: "contract IERC20",
24
+ name: "srcToken",
25
+ type: "address",
26
+ },
27
+ {
28
+ internalType: "contract IERC20",
29
+ name: "destToken",
30
+ type: "address",
31
+ },
32
+ {
33
+ internalType: "uint256",
34
+ name: "fromAmount",
35
+ type: "uint256",
36
+ },
37
+ {
38
+ internalType: "uint256",
39
+ name: "toAmount",
40
+ type: "uint256",
41
+ },
42
+ {
43
+ internalType: "uint256",
44
+ name: "quotedAmount",
45
+ type: "uint256",
46
+ },
47
+ {
48
+ internalType: "bytes32",
49
+ name: "metadata",
50
+ type: "bytes32",
51
+ },
52
+ {
53
+ internalType: "address payable",
54
+ name: "beneficiary",
55
+ type: "address",
56
+ },
57
+ ],
58
+ internalType: "struct IGenericSwapExactAmountIn.GenericData",
59
+ name: "swapData",
60
+ type: "tuple",
61
+ },
62
+ {
63
+ internalType: "uint256",
64
+ name: "partnerAndFee",
65
+ type: "uint256",
66
+ },
67
+ {
68
+ internalType: "bytes",
69
+ name: "permit",
70
+ type: "bytes",
71
+ },
72
+ {
73
+ internalType: "bytes",
74
+ name: "executorData",
75
+ type: "bytes",
76
+ },
77
+ ],
78
+ name: "swapExactAmountIn",
79
+ outputs: [],
80
+ stateMutability: "payable",
81
+ type: "function",
82
+ },
83
+ ];
84
+
85
+ export class IGenericSwapExactAmountIn__factory {
86
+ static readonly abi = _abi;
87
+ static createInterface(): IGenericSwapExactAmountInInterface {
88
+ return new utils.Interface(_abi) as IGenericSwapExactAmountInInterface;
89
+ }
90
+ static connect(
91
+ address: string,
92
+ signerOrProvider: Signer | Provider
93
+ ): IGenericSwapExactAmountIn {
94
+ return new Contract(
95
+ address,
96
+ _abi,
97
+ signerOrProvider
98
+ ) as IGenericSwapExactAmountIn;
99
+ }
100
+ }
@@ -9,6 +9,31 @@ import type {
9
9
  } from "../PendleSparkLinearDiscountOracleFactory";
10
10
 
11
11
  const _abi = [
12
+ {
13
+ anonymous: false,
14
+ inputs: [
15
+ {
16
+ indexed: true,
17
+ internalType: "address",
18
+ name: "pt",
19
+ type: "address",
20
+ },
21
+ {
22
+ indexed: false,
23
+ internalType: "uint256",
24
+ name: "baseDiscountPerYear",
25
+ type: "uint256",
26
+ },
27
+ {
28
+ indexed: false,
29
+ internalType: "address",
30
+ name: "oracle",
31
+ type: "address",
32
+ },
33
+ ],
34
+ name: "OracleCreated",
35
+ type: "event",
36
+ },
12
37
  {
13
38
  inputs: [
14
39
  {
@@ -50,7 +75,7 @@ const _abi = [
50
75
  outputs: [
51
76
  {
52
77
  internalType: "address",
53
- name: "",
78
+ name: "res",
54
79
  type: "address",
55
80
  },
56
81
  ],
@@ -60,7 +85,7 @@ const _abi = [
60
85
  ];
61
86
 
62
87
  const _bytecode =
63
- "0x608060405234801561001057600080fd5b50610762806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633b8863cc1461003b57806380245dad1461006a575b600080fd5b61004e610049366004610188565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e610078366004610188565b610124565b600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e291906101b4565b5091505080836040516100f490610163565b6100ff929190610201565b604051809103906000f08015801561011b573d6000803e3d6000fd5b50949350505050565b6000828260405161013490610163565b61013f929190610201565b604051809103906000f08015801561015b573d6000803e3d6000fd5b509392505050565b6105128061021b83390190565b6001600160a01b038116811461018557600080fd5b50565b6000806040838503121561019b57600080fd5b82356101a681610170565b946020939093013593505050565b6000806000606084860312156101c957600080fd5b83516101d481610170565b60208501519093506101e581610170565b60408501519092506101f681610170565b809150509250925092565b6001600160a01b0392909216825260208201526040019056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c63430008170033a2646970667358221220c64fad83121df1e1f922ac639d112c8f7556006a369b264afcd5f5b1f194e62964736f6c63430008170033";
88
+ "0x608060405234801561001057600080fd5b50610800806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633b8863cc1461003b57806380245dad1461006a575b600080fd5b61004e6100493660046101ef565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101ef565b610159565b600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e2919061021b565b50915050600081846040516100f6906101ca565b610101929190610268565b604051809103906000f08015801561011d573d6000803e3d6000fd5b509050816001600160a01b03166000805160206107ab8339815191528583604051610149929190610281565b60405180910390a2949350505050565b60008282604051610169906101ca565b610174929190610268565b604051809103906000f080158015610190573d6000803e3d6000fd5b509050826001600160a01b03166000805160206107ab83398151915283836040516101bc929190610281565b60405180910390a292915050565b6105128061029983390190565b6001600160a01b03811681146101ec57600080fd5b50565b6000806040838503121561020257600080fd5b823561020d816101d7565b946020939093013593505050565b60008060006060848603121561023057600080fd5b835161023b816101d7565b602085015190935061024c816101d7565b604085015190925061025d816101d7565b809150509250925092565b6001600160a01b03929092168252602082015260400190565b9182526001600160a01b031660208201526040019056fe60e060405234801561001057600080fd5b5060405161051238038061051283398101604081905261002f9161013e565b670de0b6b3a764000081111561007f5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a5908191a5cd8dbdd5b9d60821b60448201526064015b60405180910390fd5b6001600160a01b0382166100c45760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610076565b6001600160a01b0382166080819052604080516370c264df60e11b8152905163e184c9be916004808201926020929091908290030181865afa15801561010e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101329190610178565b60a05260c05250610191565b6000806040838503121561015157600080fd5b82516001600160a01b038116811461016857600080fd5b6020939093015192949293505050565b60006020828403121561018a57600080fd5b5051919050565b60805160a05160c0516103406101d26000396000818160c80152610171015260008181606c015281816101b201526101e30152600060ef01526103406000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063204f83f9146100675780632336dbe4146100a1578063313ce567146100b4578063598e5451146100c3578063d94073d4146100ea578063feaf968c14610129575b600080fd5b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61008e6100af36600461028f565b610165565b60405160128152602001610098565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b6101117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610098565b6101316101a6565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610098565b60006301e133806101967f0000000000000000000000000000000000000000000000000000000000000000846102be565b6101a091906102d5565b92915050565b600080600080600080427f0000000000000000000000000000000000000000000000000000000000000000116101dd576000610207565b610207427f00000000000000000000000000000000000000000000000000000000000000006102f7565b9050600061021482610165565b9050670de0b6b3a76400008111156102665760405162461bcd60e51b8152602060048201526011602482015270646973636f756e74206f766572666c6f7760781b604482015260640160405180910390fd5b600061027a82670de0b6b3a76400006102f7565b90989097506000965086955085945092505050565b6000602082840312156102a157600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176101a0576101a06102a8565b6000826102f257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156101a0576101a06102a856fea2646970667358221220417d7d239712adda0978f25f59e5bb4dce9016e9ca48e1006a4a3e8027ca1c8764736f6c6343000817003390ee845759e3368e15efca97a228f30ad3e506893c7f9215b13c393b31f8e620a2646970667358221220b7cdfa4314f22f5796a3d941ecedc841834a4d3e0c04d051aff28453f128874564736f6c63430008170033";
64
89
 
65
90
  type PendleSparkLinearDiscountOracleFactoryConstructorParams =
66
91
  | [signer?: Signer]
@@ -784,6 +784,10 @@ declare module "hardhat/types/runtime" {
784
784
  name: "I1inchAggregationRouterV6",
785
785
  signerOrOptions?: ethers.Signer | FactoryOptions
786
786
  ): Promise<Contracts.I1inchAggregationRouterV6__factory>;
787
+ getContractFactory(
788
+ name: "IGenericSwapExactAmountIn",
789
+ signerOrOptions?: ethers.Signer | FactoryOptions
790
+ ): Promise<Contracts.IGenericSwapExactAmountIn__factory>;
787
791
  getContractFactory(
788
792
  name: "IKyberScalingHelper",
789
793
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -1762,6 +1766,11 @@ declare module "hardhat/types/runtime" {
1762
1766
  address: string,
1763
1767
  signer?: ethers.Signer
1764
1768
  ): Promise<Contracts.I1inchAggregationRouterV6>;
1769
+ getContractAt(
1770
+ name: "IGenericSwapExactAmountIn",
1771
+ address: string,
1772
+ signer?: ethers.Signer
1773
+ ): Promise<Contracts.IGenericSwapExactAmountIn>;
1765
1774
  getContractAt(
1766
1775
  name: "IKyberScalingHelper",
1767
1776
  address: string,
@@ -194,6 +194,7 @@ export type { Reflector } from "./Reflector";
194
194
  export type { IPSwapAggregator } from "./IPSwapAggregator";
195
195
  export type { IOKXDexRouter } from "./IOKXDexRouter";
196
196
  export type { I1inchAggregationRouterV6 } from "./I1inchAggregationRouterV6";
197
+ export type { IGenericSwapExactAmountIn } from "./IGenericSwapExactAmountIn";
197
198
  export type { IKyberScalingHelper } from "./IKyberScalingHelper";
198
199
  export type { IOdosRouterV2 } from "./IOdosRouterV2";
199
200
  export type { PendleSwap } from "./PendleSwap";
@@ -391,6 +392,7 @@ export { Reflector__factory } from "./factories/Reflector__factory";
391
392
  export { IPSwapAggregator__factory } from "./factories/IPSwapAggregator__factory";
392
393
  export { IOKXDexRouter__factory } from "./factories/IOKXDexRouter__factory";
393
394
  export { I1inchAggregationRouterV6__factory } from "./factories/I1inchAggregationRouterV6__factory";
395
+ export { IGenericSwapExactAmountIn__factory } from "./factories/IGenericSwapExactAmountIn__factory";
394
396
  export { IKyberScalingHelper__factory } from "./factories/IKyberScalingHelper__factory";
395
397
  export { IOdosRouterV2__factory } from "./factories/IOdosRouterV2__factory";
396
398
  export { PendleSwap__factory } from "./factories/PendleSwap__factory";