@pendle/core-v2 2.13.3-mainnet → 2.14.0-mainnet

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 (41) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +6 -6
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.json +0 -26
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
  7. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  8. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +10 -41
  9. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.json +48 -0
  11. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +4 -0
  12. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.json +638 -0
  13. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
  14. package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol +18 -10
  15. package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol +2 -10
  16. package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol +42 -34
  17. package/contracts/interfaces/Camelot/ICamelotNFTPool.sol +14 -0
  18. package/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol +95 -0
  19. package/deployments/42161-markets/CAMELOT-ARBETH-27JUNE2024-ARBITRUM.json +10 -0
  20. package/package.json +1 -1
  21. package/typechain-types/CamelotV1LpHelper.ts +203 -0
  22. package/typechain-types/CamelotV1Preview.ts +431 -0
  23. package/typechain-types/CamelotV1VolatileLpHelper.ts +0 -32
  24. package/typechain-types/ICamelotNFTPool.ts +85 -0
  25. package/typechain-types/ICamelotNitroPoolFactory.ts +1053 -0
  26. package/typechain-types/ICamelotSY.ts +100 -0
  27. package/typechain-types/IPendlePreviewHelper.ts +147 -0
  28. package/typechain-types/PendleCamelotV1SY.ts +2014 -0
  29. package/typechain-types/PendleCamelotV1VolatileSY.ts +14 -46
  30. package/typechain-types/factories/CamelotRewardHelper__factory.ts +24 -13
  31. package/typechain-types/factories/CamelotV1LpHelper__factory.ts +143 -0
  32. package/typechain-types/factories/CamelotV1Preview__factory.ts +309 -0
  33. package/typechain-types/factories/CamelotV1VolatileLpHelper__factory.ts +0 -26
  34. package/typechain-types/factories/ICamelotNFTPool__factory.ts +48 -0
  35. package/typechain-types/factories/ICamelotNitroPoolFactory__factory.ts +657 -0
  36. package/typechain-types/factories/ICamelotSY__factory.ts +49 -0
  37. package/typechain-types/factories/IPendlePreviewHelper__factory.ts +78 -0
  38. package/typechain-types/factories/PendleCamelotV1SY__factory.ts +1614 -0
  39. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +25 -53
  40. package/typechain-types/hardhat.d.ts +9 -0
  41. package/typechain-types/index.ts +2 -0
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/293fb29a5d22083a1345b5fdb65bea04.json"
3
+ "buildInfo": "../../../../../../build-info/38c7e94b53abb3469a0838e77190adbd.json"
4
4
  }
@@ -7,13 +7,13 @@
7
7
  "inputs": [
8
8
  {
9
9
  "internalType": "address",
10
- "name": "_nitroPool",
10
+ "name": "_nftPool",
11
11
  "type": "address"
12
12
  },
13
13
  {
14
- "internalType": "address",
15
- "name": "_lp",
16
- "type": "address"
14
+ "internalType": "uint256",
15
+ "name": "_nitroPoolIndex",
16
+ "type": "uint256"
17
17
  }
18
18
  ],
19
19
  "stateMutability": "nonpayable",
@@ -245,8 +245,8 @@
245
245
  "type": "function"
246
246
  }
247
247
  ],
248
- "bytecode": "0x61010060405260001960005534801561001757600080fd5b506040516109ea3803806109ea83398101604081905261003691610495565b6001600160a01b03821660a081905260408051630828862d60e01b81529051630828862d916004808201926020929091908290030181865afa158015610080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a491906104c8565b6001600160a01b03166080816001600160a01b03168152505060a0516001600160a01b031663c414c5846040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012191906104c8565b6001600160a01b031660c0816001600160a01b03168152505060a0516001600160a01b03166346fa466a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561017a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019e91906104c8565b6001600160a01b031660e0526080516101b890829061029d565b6080516001600160a01b03166368e5dab56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021c91906104c8565b600180546001600160a01b0319166001600160a01b0392831690811790915560e0516040516330d83b4760e21b815292169163c360ed1c9161026491600019906004016104ea565b600060405180830381600087803b15801561027e57600080fd5b505af1158015610292573d6000803e3d6000fd5b5050505050506105a1565b6001600160a01b0382166102af575050565b6102c160026001600160601b03610503565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa15801561031a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033e9190610537565b101561035d5761035082826000610361565b61035d8282600019610361565b5050565b600080846001600160a01b031663095ea7b360e01b85856040516024016103899291906104ea565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516103c79190610550565b6000604051808303816000865af19150503d8060008114610404576040519150601f19603f3d011682016040523d82523d6000602084013e610409565b606091505b5091509150818015610433575080511580610433575080806020019051810190610433919061057f565b6104725760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b604482015260640160405180910390fd5b5050505050565b80516001600160a01b038116811461049057600080fd5b919050565b600080604083850312156104a857600080fd5b6104b183610479565b91506104bf60208401610479565b90509250929050565b6000602082840312156104da57600080fd5b6104e382610479565b9392505050565b6001600160a01b03929092168252602082015260400190565b60006001600160601b038381168061052b57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60006020828403121561054957600080fd5b5051919050565b6000825160005b818110156105715760208186018101518583015201610557565b506000920191825250919050565b60006020828403121561059157600080fd5b815180151581146104e357600080fd5b60805160a05160c05160e0516104116105d960003960006101a30152600061017c0152600061012b01526000609801526104116000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c80630828862d14610093578063150b7a02146100d757806334677c7a146101035780634d6446d91461012657806368e5dab51461014d57806371640de3146101605780637a26603814610177578063896a21de1461019e578063e2b36dc314610103578063fe4ee967146101c5575b600080fd5b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ea6100e53660046102c1565b6101d8565b6040516001600160e01b031990911681526020016100ce565b61011661011136600461035b565b610227565b60405190151581526020016100ce565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6001546100ba906001600160a01b031681565b61016960005481565b6040519081526020016100ce565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6101166101d336600461038e565b610265565b60008360005481146102145760005460405163168a450960e21b815261020b918391600401918252602082015260400190565b60405180910390fd5b50630a85bd0160e11b9695505050505050565b600082600054811461025a5760005460405163168a450960e21b815261020b918391600401918252602082015260400190565b506001949350505050565b60008360005481146102985760005460405163168a450960e21b815261020b918391600401918252602082015260400190565b5060019695505050505050565b80356001600160a01b03811681146102bc57600080fd5b919050565b6000806000806000608086880312156102d957600080fd5b6102e2866102a5565b94506102f0602087016102a5565b93506040860135925060608601356001600160401b038082111561031357600080fd5b818801915088601f83011261032757600080fd5b81358181111561033657600080fd5b89602082850101111561034857600080fd5b9699959850939650602001949392505050565b60008060006060848603121561037057600080fd5b610379846102a5565b95602085013595506040909401359392505050565b600080600080600060a086880312156103a657600080fd5b6103af866102a5565b94506103bd602087016102a5565b9497949650505050604083013592606081013592608090910135915056fea2646970667358221220fb9aec3823989c7f4fc15f254a65d207e61b0611fe227b2c4c6b62720e5266d664736f6c63430008110033",
249
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061008e5760003560e01c80630828862d14610093578063150b7a02146100d757806334677c7a146101035780634d6446d91461012657806368e5dab51461014d57806371640de3146101605780637a26603814610177578063896a21de1461019e578063e2b36dc314610103578063fe4ee967146101c5575b600080fd5b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ea6100e53660046102c1565b6101d8565b6040516001600160e01b031990911681526020016100ce565b61011661011136600461035b565b610227565b60405190151581526020016100ce565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6001546100ba906001600160a01b031681565b61016960005481565b6040519081526020016100ce565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6101166101d336600461038e565b610265565b60008360005481146102145760005460405163168a450960e21b815261020b918391600401918252602082015260400190565b60405180910390fd5b50630a85bd0160e11b9695505050505050565b600082600054811461025a5760005460405163168a450960e21b815261020b918391600401918252602082015260400190565b506001949350505050565b60008360005481146102985760005460405163168a450960e21b815261020b918391600401918252602082015260400190565b5060019695505050505050565b80356001600160a01b03811681146102bc57600080fd5b919050565b6000806000806000608086880312156102d957600080fd5b6102e2866102a5565b94506102f0602087016102a5565b93506040860135925060608601356001600160401b038082111561031357600080fd5b818801915088601f83011261032757600080fd5b81358181111561033657600080fd5b89602082850101111561034857600080fd5b9699959850939650602001949392505050565b60008060006060848603121561037057600080fd5b610379846102a5565b95602085013595506040909401359392505050565b600080600080600060a086880312156103a657600080fd5b6103af866102a5565b94506103bd602087016102a5565b9497949650505050604083013592606081013592608090910135915056fea2646970667358221220fb9aec3823989c7f4fc15f254a65d207e61b0611fe227b2c4c6b62720e5266d664736f6c63430008110033",
248
+ "bytecode": "0x60e060405260001960015534801561001657600080fd5b50604051610a7b380380610a7b833981016040819052610035916104d7565b6001600160a01b0382166080526000198114610157576040516308c7b93360e21b81526004810182905273e0a6b372ac6af4b37c7f3a989fe5d5b194c245699063231ee4cc90602401602060405180830381865afa15801561009b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100bf9190610503565b600080546001600160a01b0319166001600160a01b0392831690811790915560805160408051630828862d60e01b815290519190931692630828862d9160048083019260209291908290030181865afa158015610120573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101449190610503565b6001600160a01b03161461015757600080fd5b60006080516001600160a01b03166360246c886040518163ffffffff1660e01b815260040161010060405180830381865afa15801561019a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101be9190610525565b5050506001600160a01b0392831660c052505090811660a052608051604080516368e5dab560e01b815290519394509116916368e5dab5916004808201926020929091908290030181865afa15801561021b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023f9190610503565b600280546001600160a01b0319166001600160a01b039290921691909117905560805161026d9082906102df565b60c0516002546040516330d83b4760e21b81526001600160a01b039283169263c360ed1c926102a59291169060001990600401610599565b600060405180830381600087803b1580156102bf57600080fd5b505af11580156102d3573d6000803e3d6000fd5b50505050505050610650565b6001600160a01b0382166102f1575050565b61030360026001600160601b036105b2565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa15801561035c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038091906105e6565b101561039f57610392828260006103a3565b61039f82826000196103a3565b5050565b600080846001600160a01b031663095ea7b360e01b85856040516024016103cb929190610599565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161040991906105ff565b6000604051808303816000865af19150503d8060008114610446576040519150601f19603f3d011682016040523d82523d6000602084013e61044b565b606091505b5091509150818015610475575080511580610475575080806020019051810190610475919061062e565b6104b45760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b604482015260640160405180910390fd5b5050505050565b80516001600160a01b03811681146104d257600080fd5b919050565b600080604083850312156104ea57600080fd5b6104f3836104bb565b9150602083015190509250929050565b60006020828403121561051557600080fd5b61051e826104bb565b9392505050565b600080600080600080600080610100898b03121561054257600080fd5b61054b896104bb565b975061055960208a016104bb565b965061056760408a016104bb565b9550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b6001600160a01b03929092168252602082015260400190565b60006001600160601b03838116806105da57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6000602082840312156105f857600080fd5b5051919050565b6000825160005b818110156106205760208186018101518583015201610606565b506000920191825250919050565b60006020828403121561064057600080fd5b8151801515811461051e57600080fd5b60805160a05160c0516103fd61067e600039600061018f0152600061016801526000609801526103fd6000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c80630828862d14610093578063150b7a02146100d757806334677c7a146101035780634d6446d91461012657806368e5dab51461013957806371640de31461014c5780637a26603814610163578063896a21de1461018a578063e2b36dc314610103578063fe4ee967146101b1575b600080fd5b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ea6100e53660046102ad565b6101c4565b6040516001600160e01b031990911681526020016100ce565b610116610111366004610347565b610213565b60405190151581526020016100ce565b6000546100ba906001600160a01b031681565b6002546100ba906001600160a01b031681565b61015560015481565b6040519081526020016100ce565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6101166101bf36600461037a565b610251565b60008360015481146102005760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b60405180910390fd5b50630a85bd0160e11b9695505050505050565b60008260015481146102465760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b506001949350505050565b60008360015481146102845760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b5060019695505050505050565b80356001600160a01b03811681146102a857600080fd5b919050565b6000806000806000608086880312156102c557600080fd5b6102ce86610291565b94506102dc60208701610291565b93506040860135925060608601356001600160401b03808211156102ff57600080fd5b818801915088601f83011261031357600080fd5b81358181111561032257600080fd5b89602082850101111561033457600080fd5b9699959850939650602001949392505050565b60008060006060848603121561035c57600080fd5b61036584610291565b95602085013595506040909401359392505050565b600080600080600060a0868803121561039257600080fd5b61039b86610291565b94506103a960208701610291565b9497949650505050604083013592606081013592608090910135915056fea264697066735822122011c35acdea24ccea79c8c789a591b1ec6693c6ef6192d3b4360641ef27fd721464736f6c63430008110033",
249
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061008e5760003560e01c80630828862d14610093578063150b7a02146100d757806334677c7a146101035780634d6446d91461012657806368e5dab51461013957806371640de31461014c5780637a26603814610163578063896a21de1461018a578063e2b36dc314610103578063fe4ee967146101b1575b600080fd5b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ea6100e53660046102ad565b6101c4565b6040516001600160e01b031990911681526020016100ce565b610116610111366004610347565b610213565b60405190151581526020016100ce565b6000546100ba906001600160a01b031681565b6002546100ba906001600160a01b031681565b61015560015481565b6040519081526020016100ce565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6101166101bf36600461037a565b610251565b60008360015481146102005760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b60405180910390fd5b50630a85bd0160e11b9695505050505050565b60008260015481146102465760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b506001949350505050565b60008360015481146102845760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b5060019695505050505050565b80356001600160a01b03811681146102a857600080fd5b919050565b6000806000806000608086880312156102c557600080fd5b6102ce86610291565b94506102dc60208701610291565b93506040860135925060608601356001600160401b03808211156102ff57600080fd5b818801915088601f83011261031357600080fd5b81358181111561032257600080fd5b89602082850101111561033457600080fd5b9699959850939650602001949392505050565b60008060006060848603121561035c57600080fd5b61036584610291565b95602085013595506040909401359392505050565b600080600080600060a0868803121561039257600080fd5b61039b86610291565b94506103a960208701610291565b9497949650505050604083013592606081013592608090910135915056fea264697066735822122011c35acdea24ccea79c8c789a591b1ec6693c6ef6192d3b4360641ef27fd721464736f6c63430008110033",
250
250
  "linkReferences": {},
251
251
  "deployedLinkReferences": {}
252
252
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/f6bd07e5f9339fdebe4cbf1742aeeb47.json"
3
+ "buildInfo": "../../../../../../build-info/047273f96ab2391f819c8a871f8885a5.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/f6bd07e5f9339fdebe4cbf1742aeeb47.json"
3
+ "buildInfo": "../../../../../../build-info/9a742cc78eee71d84aca4a1c69ef13ce.json"
4
4
  }
@@ -3,19 +3,6 @@
3
3
  "contractName": "CamelotV1VolatileLpHelper",
4
4
  "sourceName": "contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol",
5
5
  "abi": [
6
- {
7
- "inputs": [],
8
- "name": "factory",
9
- "outputs": [
10
- {
11
- "internalType": "address",
12
- "name": "",
13
- "type": "address"
14
- }
15
- ],
16
- "stateMutability": "view",
17
- "type": "function"
18
- },
19
6
  {
20
7
  "inputs": [],
21
8
  "name": "pair",
@@ -29,19 +16,6 @@
29
16
  "stateMutability": "view",
30
17
  "type": "function"
31
18
  },
32
- {
33
- "inputs": [],
34
- "name": "referrerForSwap",
35
- "outputs": [
36
- {
37
- "internalType": "address",
38
- "name": "",
39
- "type": "address"
40
- }
41
- ],
42
- "stateMutability": "view",
43
- "type": "function"
44
- },
45
19
  {
46
20
  "inputs": [],
47
21
  "name": "router",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/f6bd07e5f9339fdebe4cbf1742aeeb47.json"
3
+ "buildInfo": "../../../../../../build-info/047273f96ab2391f819c8a871f8885a5.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/293fb29a5d22083a1345b5fdb65bea04.json"
3
+ "buildInfo": "../../../../../../build-info/9a742cc78eee71d84aca4a1c69ef13ce.json"
4
4
  }