@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.
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +6 -6
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.json +0 -26
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +10 -41
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.json +48 -0
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.json +638 -0
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
- package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol +18 -10
- package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol +2 -10
- package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol +42 -34
- package/contracts/interfaces/Camelot/ICamelotNFTPool.sol +14 -0
- package/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol +95 -0
- package/deployments/42161-markets/CAMELOT-ARBETH-27JUNE2024-ARBITRUM.json +10 -0
- package/package.json +1 -1
- package/typechain-types/CamelotV1LpHelper.ts +203 -0
- package/typechain-types/CamelotV1Preview.ts +431 -0
- package/typechain-types/CamelotV1VolatileLpHelper.ts +0 -32
- package/typechain-types/ICamelotNFTPool.ts +85 -0
- package/typechain-types/ICamelotNitroPoolFactory.ts +1053 -0
- package/typechain-types/ICamelotSY.ts +100 -0
- package/typechain-types/IPendlePreviewHelper.ts +147 -0
- package/typechain-types/PendleCamelotV1SY.ts +2014 -0
- package/typechain-types/PendleCamelotV1VolatileSY.ts +14 -46
- package/typechain-types/factories/CamelotRewardHelper__factory.ts +24 -13
- package/typechain-types/factories/CamelotV1LpHelper__factory.ts +143 -0
- package/typechain-types/factories/CamelotV1Preview__factory.ts +309 -0
- package/typechain-types/factories/CamelotV1VolatileLpHelper__factory.ts +0 -26
- package/typechain-types/factories/ICamelotNFTPool__factory.ts +48 -0
- package/typechain-types/factories/ICamelotNitroPoolFactory__factory.ts +657 -0
- package/typechain-types/factories/ICamelotSY__factory.ts +49 -0
- package/typechain-types/factories/IPendlePreviewHelper__factory.ts +78 -0
- package/typechain-types/factories/PendleCamelotV1SY__factory.ts +1614 -0
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +25 -53
- package/typechain-types/hardhat.d.ts +9 -0
- package/typechain-types/index.ts +2 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
CamelotV1Preview,
|
|
8
|
+
CamelotV1PreviewInterface,
|
|
9
|
+
} from "../CamelotV1Preview";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "_factory",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
stateMutability: "nonpayable",
|
|
21
|
+
type: "constructor",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
anonymous: false,
|
|
25
|
+
inputs: [
|
|
26
|
+
{
|
|
27
|
+
indexed: false,
|
|
28
|
+
internalType: "address",
|
|
29
|
+
name: "previousAdmin",
|
|
30
|
+
type: "address",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
indexed: false,
|
|
34
|
+
internalType: "address",
|
|
35
|
+
name: "newAdmin",
|
|
36
|
+
type: "address",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
name: "AdminChanged",
|
|
40
|
+
type: "event",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
anonymous: false,
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
indexed: true,
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "beacon",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "BeaconUpgraded",
|
|
53
|
+
type: "event",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
anonymous: false,
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
indexed: false,
|
|
60
|
+
internalType: "uint8",
|
|
61
|
+
name: "version",
|
|
62
|
+
type: "uint8",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "Initialized",
|
|
66
|
+
type: "event",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "previousOwner",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
indexed: true,
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "newOwner",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: "OwnershipTransferred",
|
|
85
|
+
type: "event",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
anonymous: false,
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
indexed: true,
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "implementation",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
name: "Upgraded",
|
|
98
|
+
type: "event",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "claimOwnership",
|
|
103
|
+
outputs: [],
|
|
104
|
+
stateMutability: "nonpayable",
|
|
105
|
+
type: "function",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
inputs: [],
|
|
109
|
+
name: "initialize",
|
|
110
|
+
outputs: [],
|
|
111
|
+
stateMutability: "nonpayable",
|
|
112
|
+
type: "function",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
inputs: [],
|
|
116
|
+
name: "owner",
|
|
117
|
+
outputs: [
|
|
118
|
+
{
|
|
119
|
+
internalType: "address",
|
|
120
|
+
name: "",
|
|
121
|
+
type: "address",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
stateMutability: "view",
|
|
125
|
+
type: "function",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
inputs: [],
|
|
129
|
+
name: "pendingOwner",
|
|
130
|
+
outputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "address",
|
|
133
|
+
name: "",
|
|
134
|
+
type: "address",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
stateMutability: "view",
|
|
138
|
+
type: "function",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
inputs: [
|
|
142
|
+
{
|
|
143
|
+
internalType: "address",
|
|
144
|
+
name: "tokenIn",
|
|
145
|
+
type: "address",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
internalType: "uint256",
|
|
149
|
+
name: "amountTokenIn",
|
|
150
|
+
type: "uint256",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
name: "previewDeposit",
|
|
154
|
+
outputs: [
|
|
155
|
+
{
|
|
156
|
+
internalType: "uint256",
|
|
157
|
+
name: "amountLpOut",
|
|
158
|
+
type: "uint256",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
stateMutability: "view",
|
|
162
|
+
type: "function",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
inputs: [
|
|
166
|
+
{
|
|
167
|
+
internalType: "address",
|
|
168
|
+
name: "tokenOut",
|
|
169
|
+
type: "address",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
internalType: "uint256",
|
|
173
|
+
name: "amountLpIn",
|
|
174
|
+
type: "uint256",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
name: "previewRedeem",
|
|
178
|
+
outputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
stateMutability: "view",
|
|
186
|
+
type: "function",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
inputs: [],
|
|
190
|
+
name: "proxiableUUID",
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "bytes32",
|
|
194
|
+
name: "",
|
|
195
|
+
type: "bytes32",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [
|
|
203
|
+
{
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "newOwner",
|
|
206
|
+
type: "address",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
internalType: "bool",
|
|
210
|
+
name: "direct",
|
|
211
|
+
type: "bool",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
internalType: "bool",
|
|
215
|
+
name: "renounce",
|
|
216
|
+
type: "bool",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
name: "transferOwnership",
|
|
220
|
+
outputs: [],
|
|
221
|
+
stateMutability: "nonpayable",
|
|
222
|
+
type: "function",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
inputs: [
|
|
226
|
+
{
|
|
227
|
+
internalType: "address",
|
|
228
|
+
name: "newImplementation",
|
|
229
|
+
type: "address",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
name: "upgradeTo",
|
|
233
|
+
outputs: [],
|
|
234
|
+
stateMutability: "nonpayable",
|
|
235
|
+
type: "function",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
inputs: [
|
|
239
|
+
{
|
|
240
|
+
internalType: "address",
|
|
241
|
+
name: "newImplementation",
|
|
242
|
+
type: "address",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
internalType: "bytes",
|
|
246
|
+
name: "data",
|
|
247
|
+
type: "bytes",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
name: "upgradeToAndCall",
|
|
251
|
+
outputs: [],
|
|
252
|
+
stateMutability: "payable",
|
|
253
|
+
type: "function",
|
|
254
|
+
},
|
|
255
|
+
];
|
|
256
|
+
|
|
257
|
+
const _bytecode =
|
|
258
|
+
"0x60c0604052306080523480156200001557600080fd5b506040516200272b3803806200272b833981016040819052620000389162000197565b600154600160a81b900460ff16158080156200005f575060018054600160a01b900460ff16105b806200009557506200007c306200018860201b62000a7b1760201c565b15801562000095575060018054600160a01b900460ff16145b620000fd5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6001805460ff60a01b1916600160a01b17905580156200012b576001805460ff60a81b1916600160a81b1790555b6001600160a01b03821660a052801562000180576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050620001c9565b6001600160a01b03163b151590565b600060208284031215620001aa57600080fd5b81516001600160a01b0381168114620001c257600080fd5b9392505050565b60805160a0516125126200021960003960008181610e4101528181610ed601526112e10152600081816102c9015281816103090152818161043c0152818161047c01526104f801526125126000f3fe6080604052600436106100815760003560e01c8063078dfbe7146100865780633659cfe6146100a85780634e71e0c8146100c85780634f1ef286146100dd57806352d1902d146100f05780638129fc1c146101185780638da5cb5b1461012d578063b8f82b261461015a578063cbe52ae31461017a578063e30c39781461019a575b600080fd5b34801561009257600080fd5b506100a66100a1366004611f21565b6101ba565b005b3480156100b457600080fd5b506100a66100c3366004611f6c565b6102bf565b3480156100d457600080fd5b506100a6610387565b6100a66100eb366004611f9f565b610432565b3480156100fc57600080fd5b506101056104eb565b6040519081526020015b60405180910390f35b34801561012457600080fd5b506100a6610599565b34801561013957600080fd5b5060005461014d906001600160a01b031681565b60405161010f9190612062565b34801561016657600080fd5b50610105610175366004612076565b6106c7565b34801561018657600080fd5b50610105610195366004612076565b610819565b3480156101a657600080fd5b5060015461014d906001600160a01b031681565b6000546001600160a01b031633146101ed5760405162461bcd60e51b81526004016101e4906120a2565b60405180910390fd5b811561029e576001600160a01b0383161515806102075750805b61024b5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016101e4565b600080546040516001600160a01b038087169392169160008051602061249683398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036103075760405162461bcd60e51b81526004016101e4906120d7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610339610a8a565b6001600160a01b03161461035f5760405162461bcd60e51b81526004016101e490612111565b61036881610aa6565b6040805160008082526020820190925261038491839190610ad0565b50565b6001546001600160a01b03163381146103e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016101e4565b600080546040516001600160a01b038085169392169160008051602061249683398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361047a5760405162461bcd60e51b81526004016101e4906120d7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166104ac610a8a565b6001600160a01b0316146104d25760405162461bcd60e51b81526004016101e490612111565b6104db82610aa6565b6104e782826001610ad0565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105865760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016101e4565b5060008051602061247683398151915290565b600154600160a81b900460ff16158080156105bf575060018054600160a01b900460ff16105b806105e657506105ce30610a7b565b1580156105e6575060018054600160a01b900460ff16145b6106495760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101e4565b6001805460ff60a01b1916600160a01b1790558015610676576001805460ff60a81b1916600160a81b1790555b61067e610c3b565b8015610384576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b600080336001600160a01b031663a8aa1b316040518163ffffffff1660e01b8152600401602060405180830381865afa158015610708573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072c919061214b565b90506000336001600160a01b0316630416f06e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561076e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610792919061214b565b905060006107a1838784610cbc565b905060006107b08288886110d7565b905060006107be8383611104565b905060008083856040018181516107d5919061217e565b9052506060850180518491906107ec908390612191565b9052506107f9848a612191565b915082905061080985838361124a565b9750505050505050505b92915050565b600080336001600160a01b031663a8aa1b316040518163ffffffff1660e01b8152600401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e919061214b565b90506000336001600160a01b0316630416f06e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e4919061214b565b90506000826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610926573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094a919061214b565b90506000836001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561098c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b0919061214b565b905060006109df85846001600160a01b03168a6001600160a01b0316146109d757846109d9565b835b86610cbc565b905060006109ec826112da565b9050600081898460400151610a0191906121a4565b610a0b91906121d1565b90506000828a8560600151610a2091906121a4565b610a2a91906121d1565b90508184604001818151610a3e9190612191565b905250606084018051829190610a55908390612191565b905250610a628483611104565b610a6c908261217e565b9b9a5050505050505050505050565b6001600160a01b03163b151590565b600080516020612476833981519152546001600160a01b031690565b6000546001600160a01b031633146103845760405162461bcd60e51b81526004016101e4906120a2565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610b03576102ba83611533565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b5d575060408051601f3d908101601f19168201909252610b5a918101906121f3565b60015b610bc05760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101e4565b6000805160206124768339815191528114610c2f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101e4565b506102ba8383836115cd565b600154600160a81b900460ff16610ca85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016101e4565b600080546001600160a01b03191633179055565b610d1d60405180610140016040528060006001600160a01b0316815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6001600160a01b03841680825260408051639e548b7f60e01b81529051639e548b7f916004808201926020929091908290030181865afa158015610d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d89919061220c565b1515602082015260408051630240bc6b60e21b815290516001600160a01b03861691630902f1ac9160048083019260809291908290030181865afa158015610dd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df99190612252565b61ffff90811660a08601521660808401526001600160701b03908116606084015216604082015260208101511561102057604051631c60f51f60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637183d47c90610e76908590600401612062565b602060405180830381865afa158015610e93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb791906121f3565b60c082015260408051634cadad5760e11b815281516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263995b5aae92600480820193918290030181865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906122a6565b508160e0018181525050836001600160a01b0316633b9f1dc06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fad91906121f3565b81610100018181525050836001600160a01b031663288e5d026040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ff5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101991906121f3565b6101208201525b836001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561105e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611082919061214b565b6001600160a01b0316836001600160a01b0316036110d057606081018051604083018051909252905260a0810180516080830180519092529052610120810180516101008301805190925290525b9392505050565b600083602001516110f1576110ec84836115f8565b6110fc565b6110fc8484846116eb565b949350505050565b6000826020015161116b57608083015161112190620186a0612191565b61112b90836121a4565b915081620186a0846040015161114191906121a4565b61114b919061217e565b606084015161115a90846121a4565b61116491906121d1565b9050610813565b6111a2836101000151620186a085608001518561118891906121a4565b61119291906121d1565b61119c9085612191565b9061184b565b915060006111c2846101000151856040015161184b90919063ffffffff16565b905060006111e2856101200151866060015161184b90919063ffffffff16565b905060006112036111f3838561217e565b6111fd858561187a565b9061187a565b9050600061121b611214858861217e565b8385611898565b6112259084612191565b905061123f8761012001518261187a90919063ffffffff16565b945050505050610813565b60008061126084866040015187606001516119a7565b905082811161127157809250611287565b61128483866060015187604001516119a7565b93505b6000611292866112da565b90506112d0866040015182876112a891906121a4565b6112b291906121d1565b60608801516112c184886121a4565b6112cb91906121d1565b6119be565b9695505050505050565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663995b5aae6040518163ffffffff1660e01b81526004016040805180830381865afa15801561133c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136091906122a6565b915091506000806001600160a01b0316826001600160a01b031614159050600085600001516001600160a01b0316637464fc3d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e691906121f3565b9050600086600001516001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561142c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145091906121f3565b905082156112d05781156112d057600061147c8860600151896040015161147791906121a4565b6119d4565b90506000611489846119d4565b9050808211156115275760006064886114a5620186a0836121a4565b6114af91906121d1565b6114b99190612191565b905060006114c78385612191565b6114d190866121a4565b6114dc9060646121a4565b905060006114eb8460646121a4565b6114f584876121a4565b6114ff919061217e565b9050600061150d82846121d1565b905080156115225761151f818861217e565b96505b505050505b50509695505050505050565b61153c81610a7b565b61159e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101e4565b60008051602061247683398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6115d683611a44565b6000825111806115e35750805b156102ba576115f28383611a84565b50505050565b604082015160808301516000919080611615620186a060016121a4565b61161f9190612191565b61162a9060026121a4565b828261163a620186a060026121a4565b6116449190612191565b61164e91906121a4565b6116ce848785611662620186a060016121a4565b61166c9190612191565b61167a620186a060046121a4565b61168491906121a4565b61168e91906121a4565b61169891906121a4565b6116c486866116ab620186a060026121a4565b6116b59190612191565b6116bf91906121a4565b611aa9565b611477919061217e565b6116d89190612191565b6116e291906121d1565b95945050505050565b6000806116f88386611ab5565b90505b602081015181511015611842578051602082015160029161171b9161217e565b61172591906121d1565b6040828101829052865190516378a051ad60e11b815260048101929092526001600160a01b038681166024840152169063f140a35a90604401602060405180830381865afa15801561177b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179f91906121f3565b8160a00181815250506117c98160400151866040015187608001518860c001518960e00151611c13565b606082015260408101516117dd9084612191565b6080820152606081015160a08201516117f691906121a4565b8560600151826080015161180a91906121a4565b101561182b57600181604001516118219190612191565b60208201526116fb565b604081015161183b90600161217e565b81526116fb565b51949350505050565b600080611860670de0b6b3a7640000856121a4565b9050828181611871576118716121bb565b04949350505050565b60008061188783856121a4565b9050670de0b6b3a764000081611871565b6000805b60ff81101561199e578260006118b28783611cbc565b9050858110156119025760006118c88887611d59565b6118d28389612191565b6118e490670de0b6b3a76400006121a4565b6118ee91906121d1565b90506118fa818761217e565b955050611944565b600061190e8887611d59565b6119188884612191565b61192a90670de0b6b3a76400006121a4565b61193491906121d1565b90506119408187612191565b9550505b8185111561196d5760016119588387612191565b11611968578493505050506110d0565b611989565b60016119798684612191565b11611989578493505050506110d0565b50508080611996906122d6565b91505061189c565b50909392505050565b6000826119b483866121a4565b6110fc91906121d1565b60008183106119cd57816110d0565b5090919050565b60006003821115611a3557508060006119ee6002836121d1565b6119f990600161217e565b90505b81811015611a2f57905080600281611a1481866121d1565b611a1e919061217e565b611a2891906121d1565b90506119fc565b50919050565b8115611a3f575060015b919050565b611a4d81611533565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606110d083836040518060600160405280602781526020016124b660279139611dc1565b600061081382806121a4565b611aee6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000611b0c836101000151846040015161184b90919063ffffffff16565b90506000611b2c846101200151856060015161184b90919063ffffffff16565b9050611b468461010001518661184b90919063ffffffff16565b94506000611b5e611b57878561217e565b839061184b565b90506000611b8d611b6f848061187a565b611b79868061187a565b611b83919061217e565b6111fd868661187a565b9050600082611ba0816111fd818061187a565b611baa919061217e565b610100880151909150611bd4906111fd87611bc5868661184b565b611bcf9190612191565b611e92565b86526080870151611be890620186a0612191565b8651611bf890620186a0906121a4565b611c0291906121d1565b602087015250939695505050505050565b600080611c246002620186a06123d3565b84611c2f878a6121a4565b611c3991906121a4565b611c4391906121d1565b905082611c5385620186a0612191565b611c5d91906121a4565b92506000611c6f6003620186a06123d3565b84611c7a888b6121a4565b611c8491906121a4565b611c8e91906121d1565b90508082611c9c8a8a61217e565b611ca69190612191565b611cb09190612191565b98975050505050505050565b6000670de0b6b3a764000082818581611cd582806121a4565b611cdf91906121d1565b611ce991906121a4565b611cf391906121d1565b611cfd91906121a4565b611d0791906121d1565b670de0b6b3a7640000808481611d1d82806121a4565b611d2791906121d1565b611d3191906121a4565b611d3b91906121d1565b611d4590866121a4565b611d4f91906121d1565b6110d0919061217e565b6000670de0b6b3a76400008381611d7082806121a4565b611d7a91906121d1565b611d8491906121a4565b611d8e91906121d1565b670de0b6b3a764000080611da285806121a4565b611dac91906121d1565b611db78660036121a4565b611d4591906121a4565b6060611dcc84610a7b565b611e275760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016101e4565b600080856001600160a01b031685604051611e429190612406565b600060405180830381855af49150503d8060008114611e7d576040519150601f19603f3d011682016040523d82523d6000602084013e611e82565b606091505b50915091506112d0828286611ec5565b600080611e9e836119d4565b611eac90633b9aca006121a4565b9050611eb7816119d4565b6110d090633b9aca006121a4565b60608315611ed45750816110d0565b825115611ee45782518084602001fd5b8160405162461bcd60e51b81526004016101e49190612422565b6001600160a01b038116811461038457600080fd5b801515811461038457600080fd5b600080600060608486031215611f3657600080fd5b8335611f4181611efe565b92506020840135611f5181611f13565b91506040840135611f6181611f13565b809150509250925092565b600060208284031215611f7e57600080fd5b81356110d081611efe565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215611fb257600080fd5b8235611fbd81611efe565b915060208301356001600160401b0380821115611fd957600080fd5b818501915085601f830112611fed57600080fd5b813581811115611fff57611fff611f89565b604051601f8201601f19908116603f0116810190838211818310171561202757612027611f89565b8160405282815288602084870101111561204057600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6001600160a01b0391909116815260200190565b6000806040838503121561208957600080fd5b823561209481611efe565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c9082015260008051602061245683398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061245683398151915260408201526b6163746976652070726f787960a01b606082015260800190565b60006020828403121561215d57600080fd5b81516110d081611efe565b634e487b7160e01b600052601160045260246000fd5b8082018082111561081357610813612168565b8181038181111561081357610813612168565b808202811582820484141761081357610813612168565b634e487b7160e01b600052601260045260246000fd5b6000826121ee57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561220557600080fd5b5051919050565b60006020828403121561221e57600080fd5b81516110d081611f13565b80516001600160701b0381168114611a3f57600080fd5b805161ffff81168114611a3f57600080fd5b6000806000806080858703121561226857600080fd5b61227185612229565b935061227f60208601612229565b925061228d60408601612240565b915061229b60608601612240565b905092959194509250565b600080604083850312156122b957600080fd5b8251915060208301516122cb81611efe565b809150509250929050565b6000600182016122e8576122e8612168565b5060010190565b600181815b8085111561232a57816000190482111561231057612310612168565b8085161561231d57918102915b93841c93908002906122f4565b509250929050565b60008261234157506001610813565b8161234e57506000610813565b8160018114612364576002811461236e5761238a565b6001915050610813565b60ff84111561237f5761237f612168565b50506001821b610813565b5060208310610133831016604e8410600b84101617156123ad575081810a610813565b6123b783836122ef565b80600019048211156123cb576123cb612168565b029392505050565b60006110d060ff841683612332565b60005b838110156123fd5781810151838201526020016123e5565b50506000910152565b600082516124188184602087016123e2565b9190910192915050565b60208152600082518060208401526124418160408501602087016123e2565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209cd8bf7a04bae62489b102dbeb791cb7780edcb289085c8dfd4de355d620203864736f6c63430008110033";
|
|
259
|
+
|
|
260
|
+
type CamelotV1PreviewConstructorParams =
|
|
261
|
+
| [signer?: Signer]
|
|
262
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
263
|
+
|
|
264
|
+
const isSuperArgs = (
|
|
265
|
+
xs: CamelotV1PreviewConstructorParams
|
|
266
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
267
|
+
|
|
268
|
+
export class CamelotV1Preview__factory extends ContractFactory {
|
|
269
|
+
constructor(...args: CamelotV1PreviewConstructorParams) {
|
|
270
|
+
if (isSuperArgs(args)) {
|
|
271
|
+
super(...args);
|
|
272
|
+
} else {
|
|
273
|
+
super(_abi, _bytecode, args[0]);
|
|
274
|
+
}
|
|
275
|
+
this.contractName = "CamelotV1Preview";
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
deploy(
|
|
279
|
+
_factory: string,
|
|
280
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
281
|
+
): Promise<CamelotV1Preview> {
|
|
282
|
+
return super.deploy(_factory, overrides || {}) as Promise<CamelotV1Preview>;
|
|
283
|
+
}
|
|
284
|
+
getDeployTransaction(
|
|
285
|
+
_factory: string,
|
|
286
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
287
|
+
): TransactionRequest {
|
|
288
|
+
return super.getDeployTransaction(_factory, overrides || {});
|
|
289
|
+
}
|
|
290
|
+
attach(address: string): CamelotV1Preview {
|
|
291
|
+
return super.attach(address) as CamelotV1Preview;
|
|
292
|
+
}
|
|
293
|
+
connect(signer: Signer): CamelotV1Preview__factory {
|
|
294
|
+
return super.connect(signer) as CamelotV1Preview__factory;
|
|
295
|
+
}
|
|
296
|
+
static readonly contractName: "CamelotV1Preview";
|
|
297
|
+
public readonly contractName: "CamelotV1Preview";
|
|
298
|
+
static readonly bytecode = _bytecode;
|
|
299
|
+
static readonly abi = _abi;
|
|
300
|
+
static createInterface(): CamelotV1PreviewInterface {
|
|
301
|
+
return new utils.Interface(_abi) as CamelotV1PreviewInterface;
|
|
302
|
+
}
|
|
303
|
+
static connect(
|
|
304
|
+
address: string,
|
|
305
|
+
signerOrProvider: Signer | Provider
|
|
306
|
+
): CamelotV1Preview {
|
|
307
|
+
return new Contract(address, _abi, signerOrProvider) as CamelotV1Preview;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
@@ -10,19 +10,6 @@ import type {
|
|
|
10
10
|
} from "../CamelotV1VolatileLpHelper";
|
|
11
11
|
|
|
12
12
|
const _abi = [
|
|
13
|
-
{
|
|
14
|
-
inputs: [],
|
|
15
|
-
name: "factory",
|
|
16
|
-
outputs: [
|
|
17
|
-
{
|
|
18
|
-
internalType: "address",
|
|
19
|
-
name: "",
|
|
20
|
-
type: "address",
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
stateMutability: "view",
|
|
24
|
-
type: "function",
|
|
25
|
-
},
|
|
26
13
|
{
|
|
27
14
|
inputs: [],
|
|
28
15
|
name: "pair",
|
|
@@ -36,19 +23,6 @@ const _abi = [
|
|
|
36
23
|
stateMutability: "view",
|
|
37
24
|
type: "function",
|
|
38
25
|
},
|
|
39
|
-
{
|
|
40
|
-
inputs: [],
|
|
41
|
-
name: "referrerForSwap",
|
|
42
|
-
outputs: [
|
|
43
|
-
{
|
|
44
|
-
internalType: "address",
|
|
45
|
-
name: "",
|
|
46
|
-
type: "address",
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
stateMutability: "view",
|
|
50
|
-
type: "function",
|
|
51
|
-
},
|
|
52
26
|
{
|
|
53
27
|
inputs: [],
|
|
54
28
|
name: "router",
|
|
@@ -190,6 +190,54 @@ const _abi = [
|
|
|
190
190
|
stateMutability: "view",
|
|
191
191
|
type: "function",
|
|
192
192
|
},
|
|
193
|
+
{
|
|
194
|
+
inputs: [],
|
|
195
|
+
name: "getPoolInfo",
|
|
196
|
+
outputs: [
|
|
197
|
+
{
|
|
198
|
+
internalType: "address",
|
|
199
|
+
name: "lpToken",
|
|
200
|
+
type: "address",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
internalType: "address",
|
|
204
|
+
name: "grailToken",
|
|
205
|
+
type: "address",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
internalType: "address",
|
|
209
|
+
name: "xGrailToken",
|
|
210
|
+
type: "address",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "uint256",
|
|
214
|
+
name: "lastRewardTime",
|
|
215
|
+
type: "uint256",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "uint256",
|
|
219
|
+
name: "accRewardsPerShare",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
internalType: "uint256",
|
|
224
|
+
name: "lpSupply",
|
|
225
|
+
type: "uint256",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
internalType: "uint256",
|
|
229
|
+
name: "lpSupplyWithMultiplier",
|
|
230
|
+
type: "uint256",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
internalType: "uint256",
|
|
234
|
+
name: "allocPoint",
|
|
235
|
+
type: "uint256",
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
stateMutability: "view",
|
|
239
|
+
type: "function",
|
|
240
|
+
},
|
|
193
241
|
{
|
|
194
242
|
inputs: [
|
|
195
243
|
{
|