@pendle/core-v2 0.1.0
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/LICENSE +100 -0
- package/contracts/SuperComposableYield/ISuperComposableYield.sol +68 -0
- package/contracts/SuperComposableYield/SCYUtils.sol +14 -0
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +117 -0
- package/contracts/SuperComposableYield/implementations/SCYBase.sol +126 -0
- package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +79 -0
- package/contracts/core/PendleBaseToken.sol +39 -0
- package/contracts/core/PendleMarket.sol +248 -0
- package/contracts/core/PendleMarketFactory.sol +60 -0
- package/contracts/core/PendleOwnershipToken.sol +44 -0
- package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +139 -0
- package/contracts/core/PendleSCYImpl/AaveV3/WadRayMath.sol +126 -0
- package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +127 -0
- package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +125 -0
- package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +115 -0
- package/contracts/core/PendleYieldContractFactory.sol +109 -0
- package/contracts/core/PendleYieldToken.sol +240 -0
- package/contracts/core/misc/BoringOwnable.sol +62 -0
- package/contracts/core/misc/BoringOwnableUpg.sol +64 -0
- package/contracts/core/misc/PendleJoeSwapHelperUpg.sol +82 -0
- package/contracts/core/router/PendleRouterCoreUpg.sol +219 -0
- package/contracts/core/router/PendleRouterProxy.sol +64 -0
- package/contracts/core/router/PendleRouterYTUpg.sol +134 -0
- package/contracts/core/router/base/PendleRouterOTBaseUpg.sol +218 -0
- package/contracts/core/router/base/PendleRouterSCYAndForgeBaseUpg.sol +141 -0
- package/contracts/core/router/base/PendleRouterYTBaseUpg.sol +212 -0
- package/contracts/interfaces/IAToken.sol +34 -0
- package/contracts/interfaces/IAavePool.sol +41 -0
- package/contracts/interfaces/IAaveRewardsController.sol +32 -0
- package/contracts/interfaces/IBenQiComptroller.sol +33 -0
- package/contracts/interfaces/IJoePair.sol +98 -0
- package/contracts/interfaces/IJoeRouter01.sol +162 -0
- package/contracts/interfaces/IPBaseToken.sol +9 -0
- package/contracts/interfaces/IPFlashCallBack.sol +10 -0
- package/contracts/interfaces/IPGovernanceManager.sol +28 -0
- package/contracts/interfaces/IPMarket.sol +57 -0
- package/contracts/interfaces/IPMarketAddRemoveCallback.sol +18 -0
- package/contracts/interfaces/IPMarketFactory.sol +8 -0
- package/contracts/interfaces/IPMarketSwapCallback.sol +10 -0
- package/contracts/interfaces/IPOwnershipToken.sol +15 -0
- package/contracts/interfaces/IPPermissionsV2.sol +28 -0
- package/contracts/interfaces/IPRouterCore.sol +108 -0
- package/contracts/interfaces/IPRouterYT.sol +47 -0
- package/contracts/interfaces/IPYieldContractFactory.sol +36 -0
- package/contracts/interfaces/IPYieldToken.sol +19 -0
- package/contracts/interfaces/IQiErc20.sol +35 -0
- package/contracts/interfaces/IQiToken.sol +29 -0
- package/contracts/interfaces/IREDACTEDStaking.sol +35 -0
- package/contracts/interfaces/IWETH.sol +34 -0
- package/contracts/interfaces/IWXBTRFLY.sol +37 -0
- package/contracts/interfaces/IYearnVault.sol +32 -0
- package/contracts/libraries/JoeLibrary.sol +121 -0
- package/contracts/libraries/SCYIndex.sol +55 -0
- package/contracts/libraries/helpers/ExpiryUtilsLib.sol +166 -0
- package/contracts/libraries/math/FixedPoint.sol +208 -0
- package/contracts/libraries/math/LogExpMath.sol +515 -0
- package/contracts/libraries/math/MarketApproxLib.sol +140 -0
- package/contracts/libraries/math/MarketMathLib.sol +606 -0
- package/contracts/periphery/PendleGovernanceManager.sol +36 -0
- package/contracts/periphery/PermissionsV2.sol +23 -0
- package/package.json +76 -0
- package/typechain-types/BoringOwnable.ts +194 -0
- package/typechain-types/BoringOwnableData.ts +100 -0
- package/typechain-types/BoringOwnableUpg.ts +194 -0
- package/typechain-types/BoringOwnableUpgData.ts +100 -0
- package/typechain-types/ERC1967UpgradeUpgradeable.ts +97 -0
- package/typechain-types/ERC20.ts +417 -0
- package/typechain-types/IAToken.ts +331 -0
- package/typechain-types/IAavePool.ts +192 -0
- package/typechain-types/IAaveRewardsController.ts +148 -0
- package/typechain-types/IBeaconUpgradeable.ts +87 -0
- package/typechain-types/IBenQiComptroller.ts +125 -0
- package/typechain-types/IERC1822ProxiableUpgradeable.ts +87 -0
- package/typechain-types/IERC20.ts +300 -0
- package/typechain-types/IERC20Metadata.ts +339 -0
- package/typechain-types/IJoePair.ts +888 -0
- package/typechain-types/IJoeRouter01.ts +1107 -0
- package/typechain-types/IPBaseToken.ts +365 -0
- package/typechain-types/IPFlashCallback.ts +115 -0
- package/typechain-types/IPGovernanceManager.ts +84 -0
- package/typechain-types/IPMarket.ts +701 -0
- package/typechain-types/IPMarketAddRemoveCallback.ts +169 -0
- package/typechain-types/IPMarketFactory.ts +109 -0
- package/typechain-types/IPMarketSwapCallback.ts +115 -0
- package/typechain-types/IPOwnershipToken.ts +488 -0
- package/typechain-types/IPRouterCore.ts +759 -0
- package/typechain-types/IPRouterYT.ts +405 -0
- package/typechain-types/IPYieldContractFactory.ts +192 -0
- package/typechain-types/IPYieldToken.ts +525 -0
- package/typechain-types/IPermissionsV2.ts +87 -0
- package/typechain-types/IQiErc20.ts +402 -0
- package/typechain-types/IQiToken.ts +327 -0
- package/typechain-types/IREDACTEDStaking.ts +216 -0
- package/typechain-types/ISuperComposableYield.ts +652 -0
- package/typechain-types/IWETH.ts +380 -0
- package/typechain-types/IWXBTRFLY.ts +254 -0
- package/typechain-types/IYearnVault.ts +152 -0
- package/typechain-types/PendleAaveV3SCY.ts +901 -0
- package/typechain-types/PendleBaseToken.ts +505 -0
- package/typechain-types/PendleBenQiErc20SCY.ts +914 -0
- package/typechain-types/PendleBtrflyScy.ts +794 -0
- package/typechain-types/PendleGovernanceManager.ts +187 -0
- package/typechain-types/PendleJoeSwapHelperUpg.ts +97 -0
- package/typechain-types/PendleMarket.ts +1008 -0
- package/typechain-types/PendleMarketFactory.ts +246 -0
- package/typechain-types/PendleOwnershipToken.ts +628 -0
- package/typechain-types/PendleRouterCoreUpg.ts +780 -0
- package/typechain-types/PendleRouterProxy.ts +417 -0
- package/typechain-types/PendleRouterSCYAndForgeBaseUpg.ts +98 -0
- package/typechain-types/PendleRouterYTBaseUpg.ts +134 -0
- package/typechain-types/PendleRouterYTUpg.ts +453 -0
- package/typechain-types/PendleYearnVaultScy.ts +784 -0
- package/typechain-types/PendleYieldContractFactory.ts +479 -0
- package/typechain-types/PendleYieldToken.ts +1030 -0
- package/typechain-types/PermissionsV2.ts +87 -0
- package/typechain-types/Proxy.ts +57 -0
- package/typechain-types/RewardManager.ts +172 -0
- package/typechain-types/SCYBase.ts +734 -0
- package/typechain-types/SCYBaseWithRewards.ts +819 -0
- package/typechain-types/UUPSUpgradeable.ts +197 -0
- package/typechain-types/common.ts +44 -0
- package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
- package/typechain-types/factories/BoringOwnableUpgData__factory.ts +94 -0
- package/typechain-types/factories/BoringOwnableUpg__factory.ts +139 -0
- package/typechain-types/factories/BoringOwnable__factory.ts +149 -0
- package/typechain-types/factories/ERC1967UpgradeUpgradeable__factory.ts +75 -0
- package/typechain-types/factories/ERC20__factory.ts +348 -0
- package/typechain-types/factories/IAToken__factory.ts +225 -0
- package/typechain-types/factories/IAavePool__factory.ts +99 -0
- package/typechain-types/factories/IAaveRewardsController__factory.ts +78 -0
- package/typechain-types/factories/IBeaconUpgradeable__factory.ts +39 -0
- package/typechain-types/factories/IBenQiComptroller__factory.ts +59 -0
- package/typechain-types/factories/IERC1822ProxiableUpgradeable__factory.ts +43 -0
- package/typechain-types/factories/IERC20Metadata__factory.ts +248 -0
- package/typechain-types/factories/IERC20__factory.ts +203 -0
- package/typechain-types/factories/IJoePair__factory.ts +674 -0
- package/typechain-types/factories/IJoeRouter01__factory.ts +772 -0
- package/typechain-types/factories/IPBaseToken__factory.ts +271 -0
- package/typechain-types/factories/IPFlashCallback__factory.ts +49 -0
- package/typechain-types/factories/IPGovernanceManager__factory.ts +39 -0
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +86 -0
- package/typechain-types/factories/IPMarketFactory__factory.ts +58 -0
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +53 -0
- package/typechain-types/factories/IPMarket__factory.ts +559 -0
- package/typechain-types/factories/IPOwnershipToken__factory.ts +349 -0
- package/typechain-types/factories/IPRouterCore__factory.ts +516 -0
- package/typechain-types/factories/IPRouterYT__factory.ts +246 -0
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +117 -0
- package/typechain-types/factories/IPYieldToken__factory.ts +383 -0
- package/typechain-types/factories/IPermissionsV2__factory.ts +39 -0
- package/typechain-types/factories/IQiErc20__factory.ts +270 -0
- package/typechain-types/factories/IQiToken__factory.ts +219 -0
- package/typechain-types/factories/IREDACTEDStaking__factory.ts +107 -0
- package/typechain-types/factories/ISuperComposableYield__factory.ts +438 -0
- package/typechain-types/factories/IWETH__factory.ts +261 -0
- package/typechain-types/factories/IWXBTRFLY__factory.ts +131 -0
- package/typechain-types/factories/IYearnVault__factory.ts +74 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +727 -0
- package/typechain-types/factories/PendleBaseToken__factory.ts +386 -0
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +753 -0
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +652 -0
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +149 -0
- package/typechain-types/factories/PendleJoeSwapHelperUpg__factory.ts +56 -0
- package/typechain-types/factories/PendleMarketFactory__factory.ts +207 -0
- package/typechain-types/factories/PendleMarket__factory.ts +891 -0
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +565 -0
- package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +620 -0
- package/typechain-types/factories/PendleRouterProxy__factory.ts +316 -0
- package/typechain-types/factories/PendleRouterSCYAndForgeBaseUpg__factory.ts +56 -0
- package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +66 -0
- package/typechain-types/factories/PendleRouterYTUpg__factory.ts +363 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +630 -0
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +368 -0
- package/typechain-types/factories/PendleYieldToken__factory.ts +814 -0
- package/typechain-types/factories/PermissionsV2__factory.ts +36 -0
- package/typechain-types/factories/Proxy__factory.ts +28 -0
- package/typechain-types/factories/RewardManager__factory.ts +89 -0
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +535 -0
- package/typechain-types/factories/SCYBase__factory.ts +479 -0
- package/typechain-types/factories/UUPSUpgradeable__factory.ts +115 -0
- package/typechain-types/hardhat.d.ts +564 -0
- package/typechain-types/index.ts +122 -0
|
@@ -0,0 +1,727 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
PendleAaveV3SCY,
|
|
15
|
+
PendleAaveV3SCYInterface,
|
|
16
|
+
} from "../PendleAaveV3SCY";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "string",
|
|
23
|
+
name: "_name",
|
|
24
|
+
type: "string",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "string",
|
|
28
|
+
name: "_symbol",
|
|
29
|
+
type: "string",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint8",
|
|
33
|
+
name: "__scydecimals",
|
|
34
|
+
type: "uint8",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint8",
|
|
38
|
+
name: "__assetDecimals",
|
|
39
|
+
type: "uint8",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "_aavePool",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "_underlying",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "address",
|
|
53
|
+
name: "_aToken",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "address",
|
|
58
|
+
name: "_rewardsController",
|
|
59
|
+
type: "address",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
stateMutability: "nonpayable",
|
|
63
|
+
type: "constructor",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
anonymous: false,
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
indexed: true,
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "owner",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
indexed: true,
|
|
76
|
+
internalType: "address",
|
|
77
|
+
name: "spender",
|
|
78
|
+
type: "address",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
indexed: false,
|
|
82
|
+
internalType: "uint256",
|
|
83
|
+
name: "value",
|
|
84
|
+
type: "uint256",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "Approval",
|
|
88
|
+
type: "event",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
anonymous: false,
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
indexed: true,
|
|
95
|
+
internalType: "address",
|
|
96
|
+
name: "from",
|
|
97
|
+
type: "address",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
indexed: true,
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "to",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
indexed: false,
|
|
107
|
+
internalType: "uint256",
|
|
108
|
+
name: "value",
|
|
109
|
+
type: "uint256",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
name: "Transfer",
|
|
113
|
+
type: "event",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
inputs: [],
|
|
117
|
+
name: "aToken",
|
|
118
|
+
outputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
stateMutability: "view",
|
|
126
|
+
type: "function",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [
|
|
130
|
+
{
|
|
131
|
+
internalType: "address",
|
|
132
|
+
name: "owner",
|
|
133
|
+
type: "address",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
internalType: "address",
|
|
137
|
+
name: "spender",
|
|
138
|
+
type: "address",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: "allowance",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint256",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "uint256",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [
|
|
154
|
+
{
|
|
155
|
+
internalType: "address",
|
|
156
|
+
name: "spender",
|
|
157
|
+
type: "address",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
internalType: "uint256",
|
|
161
|
+
name: "amount",
|
|
162
|
+
type: "uint256",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
name: "approve",
|
|
166
|
+
outputs: [
|
|
167
|
+
{
|
|
168
|
+
internalType: "bool",
|
|
169
|
+
name: "",
|
|
170
|
+
type: "bool",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
stateMutability: "nonpayable",
|
|
174
|
+
type: "function",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
inputs: [],
|
|
178
|
+
name: "assetDecimals",
|
|
179
|
+
outputs: [
|
|
180
|
+
{
|
|
181
|
+
internalType: "uint8",
|
|
182
|
+
name: "",
|
|
183
|
+
type: "uint8",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
stateMutability: "view",
|
|
187
|
+
type: "function",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
internalType: "address",
|
|
193
|
+
name: "account",
|
|
194
|
+
type: "address",
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
name: "balanceOf",
|
|
198
|
+
outputs: [
|
|
199
|
+
{
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
stateMutability: "view",
|
|
206
|
+
type: "function",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
inputs: [],
|
|
210
|
+
name: "decimals",
|
|
211
|
+
outputs: [
|
|
212
|
+
{
|
|
213
|
+
internalType: "uint8",
|
|
214
|
+
name: "",
|
|
215
|
+
type: "uint8",
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
stateMutability: "view",
|
|
219
|
+
type: "function",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
inputs: [
|
|
223
|
+
{
|
|
224
|
+
internalType: "address",
|
|
225
|
+
name: "spender",
|
|
226
|
+
type: "address",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
internalType: "uint256",
|
|
230
|
+
name: "subtractedValue",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
name: "decreaseAllowance",
|
|
235
|
+
outputs: [
|
|
236
|
+
{
|
|
237
|
+
internalType: "bool",
|
|
238
|
+
name: "",
|
|
239
|
+
type: "bool",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
stateMutability: "nonpayable",
|
|
243
|
+
type: "function",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [],
|
|
247
|
+
name: "getBaseTokens",
|
|
248
|
+
outputs: [
|
|
249
|
+
{
|
|
250
|
+
internalType: "address[]",
|
|
251
|
+
name: "res",
|
|
252
|
+
type: "address[]",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
stateMutability: "view",
|
|
256
|
+
type: "function",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
inputs: [],
|
|
260
|
+
name: "getRewardTokens",
|
|
261
|
+
outputs: [
|
|
262
|
+
{
|
|
263
|
+
internalType: "address[]",
|
|
264
|
+
name: "res",
|
|
265
|
+
type: "address[]",
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
stateMutability: "view",
|
|
269
|
+
type: "function",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
inputs: [
|
|
273
|
+
{
|
|
274
|
+
internalType: "address",
|
|
275
|
+
name: "",
|
|
276
|
+
type: "address",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
name: "globalReward",
|
|
280
|
+
outputs: [
|
|
281
|
+
{
|
|
282
|
+
internalType: "uint256",
|
|
283
|
+
name: "index",
|
|
284
|
+
type: "uint256",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
internalType: "uint256",
|
|
288
|
+
name: "lastBalance",
|
|
289
|
+
type: "uint256",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
stateMutability: "view",
|
|
293
|
+
type: "function",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
inputs: [
|
|
297
|
+
{
|
|
298
|
+
internalType: "address",
|
|
299
|
+
name: "spender",
|
|
300
|
+
type: "address",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
internalType: "uint256",
|
|
304
|
+
name: "addedValue",
|
|
305
|
+
type: "uint256",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
name: "increaseAllowance",
|
|
309
|
+
outputs: [
|
|
310
|
+
{
|
|
311
|
+
internalType: "bool",
|
|
312
|
+
name: "",
|
|
313
|
+
type: "bool",
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
stateMutability: "nonpayable",
|
|
317
|
+
type: "function",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
inputs: [
|
|
321
|
+
{
|
|
322
|
+
internalType: "address",
|
|
323
|
+
name: "token",
|
|
324
|
+
type: "address",
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
name: "isValidBaseToken",
|
|
328
|
+
outputs: [
|
|
329
|
+
{
|
|
330
|
+
internalType: "bool",
|
|
331
|
+
name: "res",
|
|
332
|
+
type: "bool",
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
stateMutability: "view",
|
|
336
|
+
type: "function",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
inputs: [],
|
|
340
|
+
name: "lastScyIndex",
|
|
341
|
+
outputs: [
|
|
342
|
+
{
|
|
343
|
+
internalType: "uint256",
|
|
344
|
+
name: "",
|
|
345
|
+
type: "uint256",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
stateMutability: "view",
|
|
349
|
+
type: "function",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
inputs: [
|
|
353
|
+
{
|
|
354
|
+
internalType: "address",
|
|
355
|
+
name: "receiver",
|
|
356
|
+
type: "address",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
internalType: "address",
|
|
360
|
+
name: "baseTokenIn",
|
|
361
|
+
type: "address",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
internalType: "uint256",
|
|
365
|
+
name: "minAmountScyOut",
|
|
366
|
+
type: "uint256",
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
name: "mint",
|
|
370
|
+
outputs: [
|
|
371
|
+
{
|
|
372
|
+
internalType: "uint256",
|
|
373
|
+
name: "amountScyOut",
|
|
374
|
+
type: "uint256",
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
stateMutability: "nonpayable",
|
|
378
|
+
type: "function",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
inputs: [],
|
|
382
|
+
name: "name",
|
|
383
|
+
outputs: [
|
|
384
|
+
{
|
|
385
|
+
internalType: "string",
|
|
386
|
+
name: "",
|
|
387
|
+
type: "string",
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
stateMutability: "view",
|
|
391
|
+
type: "function",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
inputs: [],
|
|
395
|
+
name: "pool",
|
|
396
|
+
outputs: [
|
|
397
|
+
{
|
|
398
|
+
internalType: "address",
|
|
399
|
+
name: "",
|
|
400
|
+
type: "address",
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
stateMutability: "view",
|
|
404
|
+
type: "function",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
inputs: [
|
|
408
|
+
{
|
|
409
|
+
internalType: "address",
|
|
410
|
+
name: "receiver",
|
|
411
|
+
type: "address",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
internalType: "address",
|
|
415
|
+
name: "baseTokenOut",
|
|
416
|
+
type: "address",
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
internalType: "uint256",
|
|
420
|
+
name: "minAmountBaseOut",
|
|
421
|
+
type: "uint256",
|
|
422
|
+
},
|
|
423
|
+
],
|
|
424
|
+
name: "redeem",
|
|
425
|
+
outputs: [
|
|
426
|
+
{
|
|
427
|
+
internalType: "uint256",
|
|
428
|
+
name: "amountBaseOut",
|
|
429
|
+
type: "uint256",
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
stateMutability: "nonpayable",
|
|
433
|
+
type: "function",
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
inputs: [
|
|
437
|
+
{
|
|
438
|
+
internalType: "address",
|
|
439
|
+
name: "user",
|
|
440
|
+
type: "address",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
internalType: "address",
|
|
444
|
+
name: "receiver",
|
|
445
|
+
type: "address",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
name: "redeemReward",
|
|
449
|
+
outputs: [
|
|
450
|
+
{
|
|
451
|
+
internalType: "uint256[]",
|
|
452
|
+
name: "outAmounts",
|
|
453
|
+
type: "uint256[]",
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
stateMutability: "nonpayable",
|
|
457
|
+
type: "function",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
inputs: [],
|
|
461
|
+
name: "rewardsController",
|
|
462
|
+
outputs: [
|
|
463
|
+
{
|
|
464
|
+
internalType: "address",
|
|
465
|
+
name: "",
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
468
|
+
],
|
|
469
|
+
stateMutability: "view",
|
|
470
|
+
type: "function",
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
inputs: [],
|
|
474
|
+
name: "scyIndexCurrent",
|
|
475
|
+
outputs: [
|
|
476
|
+
{
|
|
477
|
+
internalType: "uint256",
|
|
478
|
+
name: "res",
|
|
479
|
+
type: "uint256",
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
stateMutability: "nonpayable",
|
|
483
|
+
type: "function",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
inputs: [],
|
|
487
|
+
name: "scyIndexStored",
|
|
488
|
+
outputs: [
|
|
489
|
+
{
|
|
490
|
+
internalType: "uint256",
|
|
491
|
+
name: "res",
|
|
492
|
+
type: "uint256",
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
stateMutability: "view",
|
|
496
|
+
type: "function",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
inputs: [],
|
|
500
|
+
name: "symbol",
|
|
501
|
+
outputs: [
|
|
502
|
+
{
|
|
503
|
+
internalType: "string",
|
|
504
|
+
name: "",
|
|
505
|
+
type: "string",
|
|
506
|
+
},
|
|
507
|
+
],
|
|
508
|
+
stateMutability: "view",
|
|
509
|
+
type: "function",
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
inputs: [],
|
|
513
|
+
name: "totalSupply",
|
|
514
|
+
outputs: [
|
|
515
|
+
{
|
|
516
|
+
internalType: "uint256",
|
|
517
|
+
name: "",
|
|
518
|
+
type: "uint256",
|
|
519
|
+
},
|
|
520
|
+
],
|
|
521
|
+
stateMutability: "view",
|
|
522
|
+
type: "function",
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
inputs: [
|
|
526
|
+
{
|
|
527
|
+
internalType: "address",
|
|
528
|
+
name: "to",
|
|
529
|
+
type: "address",
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
internalType: "uint256",
|
|
533
|
+
name: "amount",
|
|
534
|
+
type: "uint256",
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
name: "transfer",
|
|
538
|
+
outputs: [
|
|
539
|
+
{
|
|
540
|
+
internalType: "bool",
|
|
541
|
+
name: "",
|
|
542
|
+
type: "bool",
|
|
543
|
+
},
|
|
544
|
+
],
|
|
545
|
+
stateMutability: "nonpayable",
|
|
546
|
+
type: "function",
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
inputs: [
|
|
550
|
+
{
|
|
551
|
+
internalType: "address",
|
|
552
|
+
name: "from",
|
|
553
|
+
type: "address",
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
internalType: "address",
|
|
557
|
+
name: "to",
|
|
558
|
+
type: "address",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
internalType: "uint256",
|
|
562
|
+
name: "amount",
|
|
563
|
+
type: "uint256",
|
|
564
|
+
},
|
|
565
|
+
],
|
|
566
|
+
name: "transferFrom",
|
|
567
|
+
outputs: [
|
|
568
|
+
{
|
|
569
|
+
internalType: "bool",
|
|
570
|
+
name: "",
|
|
571
|
+
type: "bool",
|
|
572
|
+
},
|
|
573
|
+
],
|
|
574
|
+
stateMutability: "nonpayable",
|
|
575
|
+
type: "function",
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
inputs: [],
|
|
579
|
+
name: "underlying",
|
|
580
|
+
outputs: [
|
|
581
|
+
{
|
|
582
|
+
internalType: "address",
|
|
583
|
+
name: "",
|
|
584
|
+
type: "address",
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
stateMutability: "view",
|
|
588
|
+
type: "function",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
inputs: [],
|
|
592
|
+
name: "updateGlobalReward",
|
|
593
|
+
outputs: [],
|
|
594
|
+
stateMutability: "nonpayable",
|
|
595
|
+
type: "function",
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
inputs: [
|
|
599
|
+
{
|
|
600
|
+
internalType: "address",
|
|
601
|
+
name: "user",
|
|
602
|
+
type: "address",
|
|
603
|
+
},
|
|
604
|
+
],
|
|
605
|
+
name: "updateUserReward",
|
|
606
|
+
outputs: [],
|
|
607
|
+
stateMutability: "nonpayable",
|
|
608
|
+
type: "function",
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
inputs: [
|
|
612
|
+
{
|
|
613
|
+
internalType: "address",
|
|
614
|
+
name: "",
|
|
615
|
+
type: "address",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
internalType: "address",
|
|
619
|
+
name: "",
|
|
620
|
+
type: "address",
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
name: "userReward",
|
|
624
|
+
outputs: [
|
|
625
|
+
{
|
|
626
|
+
internalType: "uint256",
|
|
627
|
+
name: "lastIndex",
|
|
628
|
+
type: "uint256",
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
internalType: "uint256",
|
|
632
|
+
name: "accruedReward",
|
|
633
|
+
type: "uint256",
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
stateMutability: "view",
|
|
637
|
+
type: "function",
|
|
638
|
+
},
|
|
639
|
+
];
|
|
640
|
+
|
|
641
|
+
const _bytecode =
|
|
642
|
+
"0x6101406040523480156200001257600080fd5b5060405162002fe038038062002fe08339810160408190526200003591620005ef565b8787878783838383838381600390805190602001906200005792919062000444565b5080516200006d90600490602084019062000444565b50505060ff9182166080521660a052505050506001600160a01b0384811661012081905287821660e05286821660c081905291851661010052620000c49350909150600019620000d2602090811b62000b3617901c565b5050505050505050620007be565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b1580156200011f57600080fd5b505afa15801562000134573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200015a9190620006c9565b620001669190620006e3565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152919250620001c291869190620001c816565b50505050565b600062000224826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620002af60201b62000c22179092919060201c565b805190915015620002aa57808060200190518101906200024591906200070a565b620002aa5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b505050565b6060620002c08484600085620002ca565b90505b9392505050565b6060824710156200032d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620002a1565b6001600160a01b0385163b620003865760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620002a1565b600080866001600160a01b03168587604051620003a491906200072e565b60006040518083038185875af1925050503d8060008114620003e3576040519150601f19603f3d011682016040523d82523d6000602084013e620003e8565b606091505b509092509050620003fb82828662000406565b979650505050505050565b6060831562000417575081620002c3565b825115620004285782518084602001fd5b8160405162461bcd60e51b8152600401620002a191906200074c565b828054620004529062000781565b90600052602060002090601f016020900481019282620004765760008555620004c1565b82601f106200049157805160ff1916838001178555620004c1565b82800160010185558215620004c1579182015b82811115620004c1578251825591602001919060010190620004a4565b50620004cf929150620004d3565b5090565b5b80821115620004cf5760008155600101620004d4565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200051d57818101518382015260200162000503565b83811115620001c25750506000910152565b600082601f8301126200054157600080fd5b81516001600160401b03808211156200055e576200055e620004ea565b604051601f8301601f19908116603f01168101908282118183101715620005895762000589620004ea565b81604052838152866020858801011115620005a357600080fd5b620005b684602083016020890162000500565b9695505050505050565b805160ff81168114620005d257600080fd5b919050565b80516001600160a01b0381168114620005d257600080fd5b600080600080600080600080610100898b0312156200060d57600080fd5b88516001600160401b03808211156200062557600080fd5b620006338c838d016200052f565b995060208b01519150808211156200064a57600080fd5b50620006598b828c016200052f565b9750506200066a60408a01620005c0565b95506200067a60608a01620005c0565b94506200068a60808a01620005d7565b93506200069a60a08a01620005d7565b9250620006aa60c08a01620005d7565b9150620006ba60e08a01620005d7565b90509295985092959890939650565b600060208284031215620006dc57600080fd5b5051919050565b600082198211156200070557634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156200071d57600080fd5b81518015158114620002c357600080fd5b600082516200074281846020870162000500565b9190910192915050565b60208152600082518060208401526200076d81604085016020870162000500565b601f01601f19169190910160400192915050565b600181811c908216806200079657607f821691505b60208210811415620007b857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051612731620008af6000396000818161034c01528181610836015281816108d201528181610a0901528181610ea701528181610fdf0152818161102d0152818161107c015281816116d401528181611726015281816118a9015281816119d00152611d8e0152600081816102b1015281816108a50152611de50152600081816101cb01528181610a8701528181610f5b01526119460152600081816102d8015281816107e2015281816109ce01528181610ab401528181610f230152818161190a01526119a7015260006103d20152600061021701526127316000f3fe608060405234801561001057600080fd5b506004361061015f5760003560e01c806306fdde0314610164578063095ea7b3146101825780630e6dfcd5146101a557806316f0115b146101c657806318160ddd146101fa57806323b872dd14610202578063313ce5671461021557806339509351146102495780635cbadbe41461025c5780636265bc85146102a35780636bb65f53146102ac5780636f307dc3146102d357806370a08231146102fa5780637695caa21461030d5780638e37b2691461031757806395d89b411461031f5780639a9c1db414610327578063a0c1f15e14610347578063a457c2d71461036e578063a9059cbb14610381578063b2427a6c14610394578063bed64c2f146103bb578063c2d41601146103d0578063c4f59f9b146103f6578063c6c3bbe6146103fe578063c6d6916c14610411578063c9c0c08214610424578063dd62ed3e14610437578063f65d6fc81461044a575b600080fd5b61016c610452565b6040516101799190612174565b60405180910390f35b6101956101903660046121bc565b6104e4565b6040519015158152602001610179565b6101b86101b33660046121e8565b6104fe565b604051908152602001610179565b6101ed7f000000000000000000000000000000000000000000000000000000000000000081565b6040516101799190612229565b6002546101b8565b6101956102103660046121e8565b610596565b7f00000000000000000000000000000000000000000000000000000000000000005b60405160ff9091168152602001610179565b6101956102573660046121bc565b6105bc565b61028e61026a36600461223d565b60076020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610179565b6101b860085481565b6101ed7f000000000000000000000000000000000000000000000000000000000000000081565b6101ed7f000000000000000000000000000000000000000000000000000000000000000081565b6101b8610308366004612276565b6105fb565b610315610616565b005b6008546101b8565b61016c610637565b61033a61033536600461223d565b610646565b6040516101799190612293565b6101ed7f000000000000000000000000000000000000000000000000000000000000000081565b61019561037c3660046121bc565b610715565b61019561038f3660046121bc565b6107b2565b61028e6103a2366004612276565b6006602052600090815260409020805460019091015482565b6103c36107c0565b604051610179919061231b565b7f0000000000000000000000000000000000000000000000000000000000000000610237565b6103c361088b565b6101b861040c3660046121e8565b610953565b61031561041f366004612276565b6109bd565b610195610432366004612276565b6109ca565b6101b861044536600461223d565b610a42565b6101b8610a6d565b6060600380546104619061232e565b80601f016020809104026020016040519081016040528092919081815260200182805461048d9061232e565b80156104da5780601f106104af576101008083540402835291602001916104da565b820191906000526020600020905b8154815290600101906020018083116104bd57829003601f168201915b5050505050905090565b6000336104f2818585610c39565b60019150505b92915050565b6000610509836109ca565b61052e5760405162461bcd60e51b815260040161052590612369565b60405180910390fd5b6000610539306105fb565b90506105453082610d5e565b61054f8482610ea3565b9150828210156105715760405162461bcd60e51b815260040161052590612395565b6105856001600160a01b038516868461100c565b61058e8461102b565b509392505050565b6000336105a4858285611149565b6105af8585856111bd565b60019150505b9392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906104f290829086906105f69087906123d5565b610c39565b6001600160a01b031660009081526020819052604090205490565b600061062061088b565b90506106348161062f60025490565b611384565b50565b6060600480546104619061232e565b60606001600160a01b03831633146106b157826001600160a01b0316826001600160a01b0316146106ac5760405162461bcd60e51b815260206004820152601060248201526f34b73b30b634b2103932b1b2b4bb32b960811b6044820152606401610525565b6106f6565b6001600160a01b0382166106f65760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610525565b61070b83610703856105fb565b6002546114d2565b6105b583836114f3565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561079a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610525565b6107a78286868403610c39565b506001949350505050565b6000336104f28185856111bd565b60408051600280825260608083018452926020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061081457610814612403565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061086857610868612403565b60200260200101906001600160a01b031690816001600160a01b03168152505090565b604051636657732f60e01b81526060906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636657732f906108fa907f000000000000000000000000000000000000000000000000000000000000000090600401612229565b60006040518083038186803b15801561091257600080fd5b505afa158015610926573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261094e91908101906124e0565b905090565b600061095e836109ca565b61097a5760405162461bcd60e51b815260040161052590612369565b6000610985846116d0565b905061099184826118a5565b9150828210156109b35760405162461bcd60e51b815260040161052590612395565b61058e85836119f4565b61063481610703836105fb565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614806104f857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161492915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60405163d15e005360e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d15e005390610adc907f000000000000000000000000000000000000000000000000000000000000000090600401612229565b60206040518083038186803b158015610af457600080fd5b505afa158015610b08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2c9190612514565b6008819055919050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015610b8257600080fd5b505afa158015610b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bba9190612514565b610bc491906123d5565b9050610c1c8463095ea7b360e01b8584604051602401610be592919061252d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ace565b50505050565b6060610c318484600085611ba0565b949350505050565b6001600160a01b038316610c9b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610525565b6001600160a01b038216610cfc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610525565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038216610dbe5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610525565b610dca82600083611cd1565b6001600160a01b03821660009081526020819052604090205481811015610e3e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610525565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610e6d908490612546565b90915550506040518281526000906001600160a01b038516906000805160206126dc83398151915290602001610d51565b505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161415610ef857610ef1610eea610a6d565b8390611d29565b90506104f8565b6000610f0c610f05610a6d565b8490611d29565b604051631a4ca37b60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390523060448301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906369328dec90606401602060405180830381600087803b158015610fa157600080fd5b505af1158015610fb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd99190612514565b506110037f000000000000000000000000000000000000000000000000000000000000000061102b565b610c31846116d0565b610e9e8363a9059cbb60e01b8484604051602401610be592919061252d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141561111d57604051630ed1279f60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631da24f3e906110b1903090600401612229565b60206040518083038186803b1580156110c957600080fd5b505afa1580156110dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111019190612514565b6001600160a01b03821660009081526005602052604090205550565b6040516370a0823160e01b81526001600160a01b038216906370a08231906110b1903090600401612229565b60006111558484610a42565b90506000198114610c1c57818110156111b05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610525565b610c1c8484848403610c39565b6001600160a01b0383166112215760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610525565b6001600160a01b0382166112835760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610525565b61128e838383611cd1565b6001600160a01b038316600090815260208190526040902054818110156113065760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610525565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061133d9084906123d5565b92505081905550826001600160a01b0316846001600160a01b03166000805160206126dc8339815191528460405161137791815260200190565b60405180910390a3610c1c565b61138c611d6a565b61139582611e74565b60005b8251811015610e9e5760008382815181106113b5576113b5612403565b602002602001015190506000816001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016113ed9190612229565b60206040518083038186803b15801561140557600080fd5b505afa158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190612514565b905083156114a5576001600160a01b0382166000908152600660205260409020600101546114779085906114719084612546565b90611f17565b6001600160a01b0383166000908152600660205260408120805490919061149f9084906123d5565b90915550505b6001600160a01b039091166000908152600660205260409020600101556114cb8161255d565b9050611398565b60006114dc61088b565b90506114e88183611384565b610c1c818585611f4e565b606060006114ff61088b565b905080516001600160401b0381111561151a5761151a6123ed565b604051908082528060200260200182016040528015611543578160200160208202803683370190505b50915060005b81518110156116c857600082828151811061156657611566612403565b6020026020010151905060076000876001600160a01b03166001600160a01b031681526020019081526020016000206000826001600160a01b03166001600160a01b03168152602001908152602001600020600101548483815181106115ce576115ce612403565b6020908102919091018101919091526001600160a01b038088166000908152600783526040808220928516825291909252812060010155835184908390811061161957611619612403565b602002602001015160066000836001600160a01b03166001600160a01b0316815260200190815260200160002060010160008282546116589190612546565b9250508190555083828151811061167157611671612403565b60200260200101516000146116b7576116b78585848151811061169657611696612403565b6020026020010151836001600160a01b031661100c9092919063ffffffff16565b506116c18161255d565b9050611549565b505092915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561180057604051630ed1279f60e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631da24f3e9061175b903090600401612229565b60206040518083038186803b15801561177357600080fd5b505afa158015611787573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ab9190612514565b90506117e16117b8610a6d565b6001600160a01b0385166000908152600560205260409020546117db9084612546565b90611d29565b6001600160a01b03939093166000908152600560205260409020555090565b6040516370a0823160e01b81526000906001600160a01b038416906370a082319061182f903090600401612229565b60206040518083038186803b15801561184757600080fd5b505afa15801561185b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187f9190612514565b6001600160a01b0384166000908152600560205260409020549091506117e19082612546565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614156118f357610ef16118ec610a6d565b83906120b1565b60405163617ba03760e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260248201849052306044830152600060648301527f0000000000000000000000000000000000000000000000000000000000000000169063617ba03790608401600060405180830381600087803b15801561198a57600080fd5b505af115801561199e573d6000803e3d6000fd5b505050506119cb7f000000000000000000000000000000000000000000000000000000000000000061102b565b6105b57f00000000000000000000000000000000000000000000000000000000000000006116d0565b6001600160a01b038216611a4a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610525565b611a5660008383611cd1565b8060026000828254611a6891906123d5565b90915550506001600160a01b03821660009081526020819052604081208054839290611a959084906123d5565b90915550506040518181526001600160a01b038316906000906000805160206126dc8339815191529060200160405180910390a35b5050565b6000611b23826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c229092919063ffffffff16565b805190915015610e9e5780806020019051810190611b419190612578565b610e9e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610525565b606082471015611c015760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610525565b6001600160a01b0385163b611c585760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610525565b600080866001600160a01b03168587604051611c74919061259a565b60006040518083038185875af1925050503d8060008114611cb1576040519150601f19603f3d011682016040523d82523d6000602084013e611cb6565b606091505b5091509150611cc68282866120ee565b979650505050505050565b6000611cdb61088b565b9050611cea8161062f60025490565b6001600160a01b03841615611d0c57611d0c8185611d07876105fb565b611f4e565b6001600160a01b03831615610c1c57610c1c8184611d07866105fb565b60008115676765c793fa10079d601a1b1983900484111517611d4a57600080fd5b50676765c793fa10079d601b1b9102676765c793fa10079d601a1b010490565b604080516001808252818301909252600091602080830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611dc057611dc0612403565b6001600160a01b03928316602091820292909201015260405163bb492bf560e01b81527f00000000000000000000000000000000000000000000000000000000000000009091169063bb492bf590611e1e90849030906004016125b6565b600060405180830381600087803b158015611e3857600080fd5b505af1158015611e4c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e9e91908101906125e0565b60005b8151811015611aca5760066000838381518110611e9657611e96612403565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000015460001415611f0757600160066000848481518110611ee257611ee2612403565b6020908102919091018101516001600160a01b03168252810191909152604001600020555b611f108161255d565b9050611e77565b600082611f26575060006104f8565b6000611f3a670de0b6b3a76400008561269a565b9050611f4683826126b9565b9150506104f8565b60005b8351811015610c1c576000848281518110611f6e57611f6e612403565b6020908102919091018101516001600160a01b03808716600090815260078452604080822092841682529184528181205460069094522054909250811415611fb75750506120a1565b80611ff357506001600160a01b0390811660008181526006602090815260408083205494881683526007825280832093835292905220556120a1565b6001600160a01b038216600090815260066020526040812054612017908390612546565b905060006120258683612127565b6001600160a01b0380891660009081526007602090815260408083209389168352929052908120600101805492935083929091906120649084906123d5565b9091555050506001600160a01b03928316600081815260066020908152604080832054968a16835260078252808320938352929052209290925550505b6120aa8161255d565b9050611f51565b60008115676765c793fa10079d601b1b600284041904841117156120d457600080fd5b50676765c793fa10079d601b1b9190910260028204010490565b606083156120fd5750816105b5565b82511561210d5782518084602001fd5b8160405162461bcd60e51b81526004016105259190612174565b600080612134838561269a565b9050610c31670de0b6b3a7640000826126b9565b60005b8381101561216357818101518382015260200161214b565b83811115610c1c5750506000910152565b6020815260008251806020840152612193816040850160208701612148565b601f01601f19169190910160400192915050565b6001600160a01b038116811461063457600080fd5b600080604083850312156121cf57600080fd5b82356121da816121a7565b946020939093013593505050565b6000806000606084860312156121fd57600080fd5b8335612208816121a7565b92506020840135612218816121a7565b929592945050506040919091013590565b6001600160a01b0391909116815260200190565b6000806040838503121561225057600080fd5b823561225b816121a7565b9150602083013561226b816121a7565b809150509250929050565b60006020828403121561228857600080fd5b81356105b5816121a7565b6020808252825182820181905260009190848201906040850190845b818110156122cb578351835292840192918401916001016122af565b50909695505050505050565b600081518084526020808501945080840160005b838110156123105781516001600160a01b0316875295820195908201906001016122eb565b509495945050505050565b6020815260006105b560208301846122d7565b600181811c9082168061234257607f821691505b6020821081141561236357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527134b73b30b634b2103130b9b2903a37b5b2b760711b604082015260600190565b60208082526010908201526f1a5b9cdd59999a58da595b9d081bdd5d60821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156123e8576123e86123bf565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612441576124416123ed565b604052919050565b60006001600160401b03821115612462576124626123ed565b5060051b60200190565b600082601f83011261247d57600080fd5b8151602061249261248d83612449565b612419565b82815260059290921b840181019181810190868411156124b157600080fd5b8286015b848110156124d55780516124c8816121a7565b83529183019183016124b5565b509695505050505050565b6000602082840312156124f257600080fd5b81516001600160401b0381111561250857600080fd5b610c318482850161246c565b60006020828403121561252657600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b600082821015612558576125586123bf565b500390565b6000600019821415612571576125716123bf565b5060010190565b60006020828403121561258a57600080fd5b815180151581146105b557600080fd5b600082516125ac818460208701612148565b9190910192915050565b6040815260006125c960408301856122d7565b905060018060a01b03831660208301529392505050565b600080604083850312156125f357600080fd5b82516001600160401b038082111561260a57600080fd5b6126168683870161246c565b935060209150818501518181111561262d57600080fd5b85019050601f8101861361264057600080fd5b805161264e61248d82612449565b81815260059190911b8201830190838101908883111561266d57600080fd5b928401925b8284101561268b57835182529284019290840190612672565b80955050505050509250929050565b60008160001904831182151516156126b4576126b46123bf565b500290565b6000826126d657634e487b7160e01b600052601260045260246000fd5b50049056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201fbcfd653e82282de07d4d878181b37fbb3528050c450ed68377fcc8073a945264736f6c63430008090033";
|
|
643
|
+
|
|
644
|
+
type PendleAaveV3SCYConstructorParams =
|
|
645
|
+
| [signer?: Signer]
|
|
646
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
647
|
+
|
|
648
|
+
const isSuperArgs = (
|
|
649
|
+
xs: PendleAaveV3SCYConstructorParams
|
|
650
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
651
|
+
|
|
652
|
+
export class PendleAaveV3SCY__factory extends ContractFactory {
|
|
653
|
+
constructor(...args: PendleAaveV3SCYConstructorParams) {
|
|
654
|
+
if (isSuperArgs(args)) {
|
|
655
|
+
super(...args);
|
|
656
|
+
} else {
|
|
657
|
+
super(_abi, _bytecode, args[0]);
|
|
658
|
+
}
|
|
659
|
+
this.contractName = "PendleAaveV3SCY";
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
deploy(
|
|
663
|
+
_name: string,
|
|
664
|
+
_symbol: string,
|
|
665
|
+
__scydecimals: BigNumberish,
|
|
666
|
+
__assetDecimals: BigNumberish,
|
|
667
|
+
_aavePool: string,
|
|
668
|
+
_underlying: string,
|
|
669
|
+
_aToken: string,
|
|
670
|
+
_rewardsController: string,
|
|
671
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
672
|
+
): Promise<PendleAaveV3SCY> {
|
|
673
|
+
return super.deploy(
|
|
674
|
+
_name,
|
|
675
|
+
_symbol,
|
|
676
|
+
__scydecimals,
|
|
677
|
+
__assetDecimals,
|
|
678
|
+
_aavePool,
|
|
679
|
+
_underlying,
|
|
680
|
+
_aToken,
|
|
681
|
+
_rewardsController,
|
|
682
|
+
overrides || {}
|
|
683
|
+
) as Promise<PendleAaveV3SCY>;
|
|
684
|
+
}
|
|
685
|
+
getDeployTransaction(
|
|
686
|
+
_name: string,
|
|
687
|
+
_symbol: string,
|
|
688
|
+
__scydecimals: BigNumberish,
|
|
689
|
+
__assetDecimals: BigNumberish,
|
|
690
|
+
_aavePool: string,
|
|
691
|
+
_underlying: string,
|
|
692
|
+
_aToken: string,
|
|
693
|
+
_rewardsController: string,
|
|
694
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
695
|
+
): TransactionRequest {
|
|
696
|
+
return super.getDeployTransaction(
|
|
697
|
+
_name,
|
|
698
|
+
_symbol,
|
|
699
|
+
__scydecimals,
|
|
700
|
+
__assetDecimals,
|
|
701
|
+
_aavePool,
|
|
702
|
+
_underlying,
|
|
703
|
+
_aToken,
|
|
704
|
+
_rewardsController,
|
|
705
|
+
overrides || {}
|
|
706
|
+
);
|
|
707
|
+
}
|
|
708
|
+
attach(address: string): PendleAaveV3SCY {
|
|
709
|
+
return super.attach(address) as PendleAaveV3SCY;
|
|
710
|
+
}
|
|
711
|
+
connect(signer: Signer): PendleAaveV3SCY__factory {
|
|
712
|
+
return super.connect(signer) as PendleAaveV3SCY__factory;
|
|
713
|
+
}
|
|
714
|
+
static readonly contractName: "PendleAaveV3SCY";
|
|
715
|
+
public readonly contractName: "PendleAaveV3SCY";
|
|
716
|
+
static readonly bytecode = _bytecode;
|
|
717
|
+
static readonly abi = _abi;
|
|
718
|
+
static createInterface(): PendleAaveV3SCYInterface {
|
|
719
|
+
return new utils.Interface(_abi) as PendleAaveV3SCYInterface;
|
|
720
|
+
}
|
|
721
|
+
static connect(
|
|
722
|
+
address: string,
|
|
723
|
+
signerOrProvider: Signer | Provider
|
|
724
|
+
): PendleAaveV3SCY {
|
|
725
|
+
return new Contract(address, _abi, signerOrProvider) as PendleAaveV3SCY;
|
|
726
|
+
}
|
|
727
|
+
}
|