@underscore-finance/sdk 1.2.17 → 1.2.19
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/AGENTS.md +161 -0
- package/README.md +17 -116
- package/abis.json +179426 -0
- package/addresses.json +75 -0
- package/dist/contracts/AaveV3.d.ts.map +1 -1
- package/dist/contracts/AaveV3.js +1898 -1919
- package/dist/contracts/AeroClassic.d.ts.map +1 -1
- package/dist/contracts/AeroClassic.js +1518 -1533
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/AeroSlipstream.js +1620 -1641
- package/dist/contracts/AgentSenderGeneric.d.ts +1 -1
- package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
- package/dist/contracts/AgentSenderGeneric.js +3093 -3108
- package/dist/contracts/AgentSenderSpecial.d.ts +1 -1
- package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecial.js +1495 -1510
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +1 -1
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecialSigHelper.js +1733 -1733
- package/dist/contracts/AgentWrapper.d.ts +1 -1
- package/dist/contracts/AgentWrapper.d.ts.map +1 -1
- package/dist/contracts/AgentWrapper.js +1926 -1929
- package/dist/contracts/AgentWrapperV1.d.ts +1 -1
- package/dist/contracts/AgentWrapperV1.d.ts.map +1 -1
- package/dist/contracts/AgentWrapperV1.js +2727 -2742
- package/dist/contracts/AgentWrapperV2.d.ts +1 -1
- package/dist/contracts/AgentWrapperV2.d.ts.map +1 -1
- package/dist/contracts/AgentWrapperV2.js +1832 -1835
- package/dist/contracts/Appraiser.d.ts.map +1 -1
- package/dist/contracts/Appraiser.js +404 -410
- package/dist/contracts/Avantis.d.ts.map +1 -1
- package/dist/contracts/Avantis.js +1905 -1929
- package/dist/contracts/Billing.d.ts.map +1 -1
- package/dist/contracts/Billing.js +235 -247
- package/dist/contracts/ChequeBook.d.ts.map +1 -1
- package/dist/contracts/ChequeBook.js +868 -877
- package/dist/contracts/CompoundV3.d.ts.map +1 -1
- package/dist/contracts/CompoundV3.js +1919 -1943
- package/dist/contracts/ConvertVaultToken.d.ts.map +1 -1
- package/dist/contracts/ConvertVaultToken.js +31 -31
- package/dist/contracts/Curve.d.ts.map +1 -1
- package/dist/contracts/Curve.js +787 -802
- package/dist/contracts/DefaultsBase.d.ts.map +1 -1
- package/dist/contracts/DefaultsBase.js +178 -178
- package/dist/contracts/ERC20.d.ts.map +1 -1
- package/dist/contracts/ERC20.js +186 -192
- package/dist/contracts/EarnVault.d.ts.map +1 -1
- package/dist/contracts/EarnVault.js +1262 -1292
- package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
- package/dist/contracts/EarnVaultAgent.js +745 -760
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -1
- package/dist/contracts/EarnVaultAgentSigHelper.js +665 -665
- package/dist/contracts/Euler.d.ts.map +1 -1
- package/dist/contracts/Euler.js +1948 -1975
- package/dist/contracts/ExtraFi.d.ts.map +1 -1
- package/dist/contracts/ExtraFi.js +1929 -1953
- package/dist/contracts/Fluid.d.ts.map +1 -1
- package/dist/contracts/Fluid.js +1927 -1951
- package/dist/contracts/FortyAcres.d.ts.map +1 -1
- package/dist/contracts/FortyAcres.js +1916 -1940
- package/dist/contracts/Hatchery.d.ts.map +1 -1
- package/dist/contracts/Hatchery.js +255 -264
- package/dist/contracts/Helpers.d.ts.map +1 -1
- package/dist/contracts/Helpers.js +1069 -1123
- package/dist/contracts/HighCommand.d.ts.map +1 -1
- package/dist/contracts/HighCommand.js +1395 -1407
- package/dist/contracts/Kernel.d.ts.map +1 -1
- package/dist/contracts/Kernel.js +224 -236
- package/dist/contracts/Ledger.d.ts +9 -12
- package/dist/contracts/Ledger.d.ts.map +1 -1
- package/dist/contracts/Ledger.js +480 -486
- package/dist/contracts/LegoBook.d.ts.map +1 -1
- package/dist/contracts/LegoBook.js +1069 -1123
- package/dist/contracts/LegoTools.d.ts +16 -22
- package/dist/contracts/LegoTools.d.ts.map +1 -1
- package/dist/contracts/LegoTools.js +1420 -1426
- package/dist/contracts/LevgVault.d.ts.map +1 -1
- package/dist/contracts/LevgVault.js +1544 -1580
- package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
- package/dist/contracts/LevgVaultAgent.js +1514 -1529
- package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -1
- package/dist/contracts/LevgVaultAgentSigHelper.js +1769 -1769
- package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
- package/dist/contracts/LevgVaultHelper.js +732 -732
- package/dist/contracts/LevgVaultTools.d.ts.map +1 -1
- package/dist/contracts/LevgVaultTools.js +2118 -2118
- package/dist/contracts/LootDistributor.d.ts.map +1 -1
- package/dist/contracts/LootDistributor.js +753 -789
- package/dist/contracts/Migrator.d.ts.map +1 -1
- package/dist/contracts/Migrator.js +168 -174
- package/dist/contracts/MissionControl.d.ts.map +1 -1
- package/dist/contracts/MissionControl.js +956 -962
- package/dist/contracts/Moonwell.d.ts.map +1 -1
- package/dist/contracts/Moonwell.js +1918 -1942
- package/dist/contracts/Morpho.d.ts.map +1 -1
- package/dist/contracts/Morpho.js +1948 -1975
- package/dist/contracts/Paymaster.d.ts.map +1 -1
- package/dist/contracts/Paymaster.js +1203 -1224
- package/dist/contracts/RipeLego.d.ts.map +1 -1
- package/dist/contracts/RipeLego.js +2134 -2176
- package/dist/contracts/Sentinel.d.ts +32 -41
- package/dist/contracts/Sentinel.d.ts.map +1 -1
- package/dist/contracts/Sentinel.js +1398 -1398
- package/dist/contracts/SignatureHelper.d.ts.map +1 -1
- package/dist/contracts/SignatureHelper.js +3202 -3202
- package/dist/contracts/SignatureHelperV1.d.ts +1 -1
- package/dist/contracts/SignatureHelperV1.d.ts.map +1 -1
- package/dist/contracts/SignatureHelperV1.js +3223 -3223
- package/dist/contracts/SkyPsm.d.ts.map +1 -1
- package/dist/contracts/SkyPsm.js +1953 -1980
- package/dist/contracts/Switchboard.d.ts.map +1 -1
- package/dist/contracts/Switchboard.js +1085 -1139
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +2333 -2474
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
- package/dist/contracts/SwitchboardBravo.js +1138 -1216
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +2295 -2475
- package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
- package/dist/contracts/UnderscoreLego.js +1894 -1918
- package/dist/contracts/UndyAero.d.ts.map +1 -1
- package/dist/contracts/UndyAero.js +1342 -1372
- package/dist/contracts/UndyBtc.d.ts.map +1 -1
- package/dist/contracts/UndyBtc.js +1342 -1372
- package/dist/contracts/UndyCbeth.d.ts.map +1 -1
- package/dist/contracts/UndyCbeth.js +1342 -1372
- package/dist/contracts/UndyEth.d.ts.map +1 -1
- package/dist/contracts/UndyEth.js +1342 -1372
- package/dist/contracts/UndyEurc.d.ts.map +1 -1
- package/dist/contracts/UndyEurc.js +1342 -1372
- package/dist/contracts/UndyGho.d.ts.map +1 -1
- package/dist/contracts/UndyGho.js +1342 -1372
- package/dist/contracts/UndyHq.d.ts.map +1 -1
- package/dist/contracts/UndyHq.js +1234 -1300
- package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
- package/dist/contracts/UndyRewardsLego.js +1120 -1120
- package/dist/contracts/UndyUsd.d.ts.map +1 -1
- package/dist/contracts/UndyUsd.js +1342 -1372
- package/dist/contracts/UndyUsds.d.ts.map +1 -1
- package/dist/contracts/UndyUsds.js +1342 -1372
- package/dist/contracts/UndyVirtual.d.ts.map +1 -1
- package/dist/contracts/UndyVirtual.js +1363 -1396
- package/dist/contracts/UniswapV2.d.ts.map +1 -1
- package/dist/contracts/UniswapV2.js +1518 -1533
- package/dist/contracts/UniswapV3.d.ts.map +1 -1
- package/dist/contracts/UniswapV3.js +1620 -1641
- package/dist/contracts/UserWallet.d.ts.map +1 -1
- package/dist/contracts/UserWallet.js +1999 -2005
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +2572 -2593
- package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfigV1.js +2327 -2348
- package/dist/contracts/UserWalletSignatureHelper.d.ts +1 -1
- package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
- package/dist/contracts/UserWalletSignatureHelper.js +3458 -3458
- package/dist/contracts/UserWalletV1.d.ts.map +1 -1
- package/dist/contracts/UserWalletV1.js +1914 -1920
- package/dist/contracts/VaultRegistry.d.ts +11 -14
- package/dist/contracts/VaultRegistry.d.ts.map +1 -1
- package/dist/contracts/VaultRegistry.js +2343 -2439
- package/dist/contracts/WalletBackpack.d.ts.map +1 -1
- package/dist/contracts/WalletBackpack.js +926 -965
- package/dist/contracts/Wasabi.d.ts.map +1 -1
- package/dist/contracts/Wasabi.js +1916 -1940
- package/dist/contracts/sdk.d.ts +8 -8
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -5
- package/package.json +44 -24
- package/LICENSE +0 -41
- package/dist/contracts/Agent.d.ts +0 -3773
- package/dist/contracts/Agent.d.ts.map +0 -1
- package/dist/contracts/Agent.js +0 -4942
- package/dist/getContracts.d.ts +0 -77
- package/dist/getContracts.d.ts.map +0 -1
- package/dist/getContracts.js +0 -64
|
@@ -3,2399 +3,2399 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/* @ts-nocheck */
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
|
-
import { encodeEventTopics, parseEventLogs
|
|
6
|
+
import { encodeEventTopics, parseEventLogs } from 'viem';
|
|
7
7
|
export const abi = [
|
|
8
8
|
{
|
|
9
|
-
name:
|
|
10
|
-
inputs: [
|
|
9
|
+
"name": "NonceIncremented",
|
|
10
|
+
"inputs": [
|
|
11
11
|
{
|
|
12
|
-
name:
|
|
13
|
-
type:
|
|
14
|
-
indexed: false
|
|
12
|
+
"name": "levgVault",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"indexed": false
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
name:
|
|
18
|
-
type:
|
|
19
|
-
indexed: false
|
|
17
|
+
"name": "oldNonce",
|
|
18
|
+
"type": "uint256",
|
|
19
|
+
"indexed": false
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
name:
|
|
23
|
-
type:
|
|
24
|
-
indexed: false
|
|
25
|
-
}
|
|
22
|
+
"name": "newNonce",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"indexed": false
|
|
25
|
+
}
|
|
26
26
|
],
|
|
27
|
-
anonymous: false,
|
|
28
|
-
type:
|
|
27
|
+
"anonymous": false,
|
|
28
|
+
"type": "event"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
name:
|
|
32
|
-
inputs: [
|
|
31
|
+
"name": "OwnershipChangeInitiated",
|
|
32
|
+
"inputs": [
|
|
33
33
|
{
|
|
34
|
-
name:
|
|
35
|
-
type:
|
|
36
|
-
indexed: true
|
|
34
|
+
"name": "prevOwner",
|
|
35
|
+
"type": "address",
|
|
36
|
+
"indexed": true
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
name:
|
|
40
|
-
type:
|
|
41
|
-
indexed: true
|
|
39
|
+
"name": "newOwner",
|
|
40
|
+
"type": "address",
|
|
41
|
+
"indexed": true
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
name:
|
|
45
|
-
type:
|
|
46
|
-
indexed: false
|
|
47
|
-
}
|
|
44
|
+
"name": "confirmBlock",
|
|
45
|
+
"type": "uint256",
|
|
46
|
+
"indexed": false
|
|
47
|
+
}
|
|
48
48
|
],
|
|
49
|
-
anonymous: false,
|
|
50
|
-
type:
|
|
49
|
+
"anonymous": false,
|
|
50
|
+
"type": "event"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
name:
|
|
54
|
-
inputs: [
|
|
53
|
+
"name": "OwnershipChangeConfirmed",
|
|
54
|
+
"inputs": [
|
|
55
55
|
{
|
|
56
|
-
name:
|
|
57
|
-
type:
|
|
58
|
-
indexed: true
|
|
56
|
+
"name": "prevOwner",
|
|
57
|
+
"type": "address",
|
|
58
|
+
"indexed": true
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
name:
|
|
62
|
-
type:
|
|
63
|
-
indexed: true
|
|
61
|
+
"name": "newOwner",
|
|
62
|
+
"type": "address",
|
|
63
|
+
"indexed": true
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
name:
|
|
67
|
-
type:
|
|
68
|
-
indexed: false
|
|
66
|
+
"name": "initiatedBlock",
|
|
67
|
+
"type": "uint256",
|
|
68
|
+
"indexed": false
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
name:
|
|
72
|
-
type:
|
|
73
|
-
indexed: false
|
|
74
|
-
}
|
|
71
|
+
"name": "confirmBlock",
|
|
72
|
+
"type": "uint256",
|
|
73
|
+
"indexed": false
|
|
74
|
+
}
|
|
75
75
|
],
|
|
76
|
-
anonymous: false,
|
|
77
|
-
type:
|
|
76
|
+
"anonymous": false,
|
|
77
|
+
"type": "event"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
name:
|
|
81
|
-
inputs: [
|
|
80
|
+
"name": "OwnershipChangeCancelled",
|
|
81
|
+
"inputs": [
|
|
82
82
|
{
|
|
83
|
-
name:
|
|
84
|
-
type:
|
|
85
|
-
indexed: true
|
|
83
|
+
"name": "cancelledOwner",
|
|
84
|
+
"type": "address",
|
|
85
|
+
"indexed": true
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
name:
|
|
89
|
-
type:
|
|
90
|
-
indexed: true
|
|
88
|
+
"name": "cancelledBy",
|
|
89
|
+
"type": "address",
|
|
90
|
+
"indexed": true
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
name:
|
|
94
|
-
type:
|
|
95
|
-
indexed: false
|
|
93
|
+
"name": "initiatedBlock",
|
|
94
|
+
"type": "uint256",
|
|
95
|
+
"indexed": false
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
name:
|
|
99
|
-
type:
|
|
100
|
-
indexed: false
|
|
101
|
-
}
|
|
98
|
+
"name": "confirmBlock",
|
|
99
|
+
"type": "uint256",
|
|
100
|
+
"indexed": false
|
|
101
|
+
}
|
|
102
102
|
],
|
|
103
|
-
anonymous: false,
|
|
104
|
-
type:
|
|
103
|
+
"anonymous": false,
|
|
104
|
+
"type": "event"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name:
|
|
108
|
-
inputs: [
|
|
107
|
+
"name": "OwnershipTimeLockSet",
|
|
108
|
+
"inputs": [
|
|
109
109
|
{
|
|
110
|
-
name:
|
|
111
|
-
type:
|
|
112
|
-
indexed: false
|
|
113
|
-
}
|
|
110
|
+
"name": "numBlocks",
|
|
111
|
+
"type": "uint256",
|
|
112
|
+
"indexed": false
|
|
113
|
+
}
|
|
114
114
|
],
|
|
115
|
-
anonymous: false,
|
|
116
|
-
type:
|
|
115
|
+
"anonymous": false,
|
|
116
|
+
"type": "event"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
stateMutability:
|
|
120
|
-
type:
|
|
121
|
-
name:
|
|
122
|
-
inputs: [
|
|
123
|
-
{
|
|
124
|
-
name:
|
|
125
|
-
type:
|
|
126
|
-
}
|
|
119
|
+
"stateMutability": "nonpayable",
|
|
120
|
+
"type": "function",
|
|
121
|
+
"name": "changeOwnership",
|
|
122
|
+
"inputs": [
|
|
123
|
+
{
|
|
124
|
+
"name": "_newOwner",
|
|
125
|
+
"type": "address"
|
|
126
|
+
}
|
|
127
127
|
],
|
|
128
|
-
outputs: []
|
|
128
|
+
"outputs": []
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
stateMutability:
|
|
132
|
-
type:
|
|
133
|
-
name:
|
|
134
|
-
inputs: [],
|
|
135
|
-
outputs: []
|
|
131
|
+
"stateMutability": "nonpayable",
|
|
132
|
+
"type": "function",
|
|
133
|
+
"name": "confirmOwnershipChange",
|
|
134
|
+
"inputs": [],
|
|
135
|
+
"outputs": []
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
stateMutability:
|
|
139
|
-
type:
|
|
140
|
-
name:
|
|
141
|
-
inputs: [],
|
|
142
|
-
outputs: []
|
|
138
|
+
"stateMutability": "nonpayable",
|
|
139
|
+
"type": "function",
|
|
140
|
+
"name": "cancelOwnershipChange",
|
|
141
|
+
"inputs": [],
|
|
142
|
+
"outputs": []
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
stateMutability:
|
|
146
|
-
type:
|
|
147
|
-
name:
|
|
148
|
-
inputs: [],
|
|
149
|
-
outputs: [
|
|
150
|
-
{
|
|
151
|
-
name:
|
|
152
|
-
type:
|
|
153
|
-
}
|
|
154
|
-
]
|
|
145
|
+
"stateMutability": "view",
|
|
146
|
+
"type": "function",
|
|
147
|
+
"name": "hasPendingOwnerChange",
|
|
148
|
+
"inputs": [],
|
|
149
|
+
"outputs": [
|
|
150
|
+
{
|
|
151
|
+
"name": "",
|
|
152
|
+
"type": "bool"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
stateMutability:
|
|
158
|
-
type:
|
|
159
|
-
name:
|
|
160
|
-
inputs: [
|
|
161
|
-
{
|
|
162
|
-
name:
|
|
163
|
-
type:
|
|
164
|
-
}
|
|
157
|
+
"stateMutability": "nonpayable",
|
|
158
|
+
"type": "function",
|
|
159
|
+
"name": "setOwnershipTimeLock",
|
|
160
|
+
"inputs": [
|
|
161
|
+
{
|
|
162
|
+
"name": "_numBlocks",
|
|
163
|
+
"type": "uint256"
|
|
164
|
+
}
|
|
165
165
|
],
|
|
166
|
-
outputs: []
|
|
166
|
+
"outputs": []
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
stateMutability:
|
|
170
|
-
type:
|
|
171
|
-
name:
|
|
172
|
-
inputs: [],
|
|
173
|
-
outputs: [
|
|
174
|
-
{
|
|
175
|
-
name:
|
|
176
|
-
type:
|
|
177
|
-
}
|
|
178
|
-
]
|
|
169
|
+
"stateMutability": "view",
|
|
170
|
+
"type": "function",
|
|
171
|
+
"name": "owner",
|
|
172
|
+
"inputs": [],
|
|
173
|
+
"outputs": [
|
|
174
|
+
{
|
|
175
|
+
"name": "",
|
|
176
|
+
"type": "address"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
|
-
stateMutability:
|
|
182
|
-
type:
|
|
183
|
-
name:
|
|
184
|
-
inputs: [],
|
|
185
|
-
outputs: [
|
|
186
|
-
{
|
|
187
|
-
name:
|
|
188
|
-
type:
|
|
189
|
-
}
|
|
190
|
-
]
|
|
181
|
+
"stateMutability": "view",
|
|
182
|
+
"type": "function",
|
|
183
|
+
"name": "ownershipTimeLock",
|
|
184
|
+
"inputs": [],
|
|
185
|
+
"outputs": [
|
|
186
|
+
{
|
|
187
|
+
"name": "",
|
|
188
|
+
"type": "uint256"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
stateMutability:
|
|
194
|
-
type:
|
|
195
|
-
name:
|
|
196
|
-
inputs: [],
|
|
197
|
-
outputs: [
|
|
193
|
+
"stateMutability": "view",
|
|
194
|
+
"type": "function",
|
|
195
|
+
"name": "pendingOwner",
|
|
196
|
+
"inputs": [],
|
|
197
|
+
"outputs": [
|
|
198
198
|
{
|
|
199
|
-
name:
|
|
200
|
-
type:
|
|
201
|
-
components: [
|
|
199
|
+
"name": "",
|
|
200
|
+
"type": "tuple",
|
|
201
|
+
"components": [
|
|
202
202
|
{
|
|
203
|
-
name:
|
|
204
|
-
type:
|
|
203
|
+
"name": "newOwner",
|
|
204
|
+
"type": "address"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
name:
|
|
208
|
-
type:
|
|
207
|
+
"name": "initiatedBlock",
|
|
208
|
+
"type": "uint256"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
|
-
name:
|
|
212
|
-
type:
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
]
|
|
211
|
+
"name": "confirmBlock",
|
|
212
|
+
"type": "uint256"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
|
-
stateMutability:
|
|
220
|
-
type:
|
|
221
|
-
name:
|
|
222
|
-
inputs: [],
|
|
223
|
-
outputs: [
|
|
224
|
-
{
|
|
225
|
-
name:
|
|
226
|
-
type:
|
|
227
|
-
}
|
|
228
|
-
]
|
|
219
|
+
"stateMutability": "view",
|
|
220
|
+
"type": "function",
|
|
221
|
+
"name": "MIN_OWNERSHIP_TIMELOCK",
|
|
222
|
+
"inputs": [],
|
|
223
|
+
"outputs": [
|
|
224
|
+
{
|
|
225
|
+
"name": "",
|
|
226
|
+
"type": "uint256"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
|
-
stateMutability:
|
|
232
|
-
type:
|
|
233
|
-
name:
|
|
234
|
-
inputs: [],
|
|
235
|
-
outputs: [
|
|
236
|
-
{
|
|
237
|
-
name:
|
|
238
|
-
type:
|
|
239
|
-
}
|
|
240
|
-
]
|
|
231
|
+
"stateMutability": "view",
|
|
232
|
+
"type": "function",
|
|
233
|
+
"name": "MAX_OWNERSHIP_TIMELOCK",
|
|
234
|
+
"inputs": [],
|
|
235
|
+
"outputs": [
|
|
236
|
+
{
|
|
237
|
+
"name": "",
|
|
238
|
+
"type": "uint256"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
|
-
stateMutability:
|
|
244
|
-
type:
|
|
245
|
-
name:
|
|
246
|
-
inputs: [
|
|
247
|
-
{
|
|
248
|
-
name:
|
|
249
|
-
type:
|
|
250
|
-
}
|
|
243
|
+
"stateMutability": "nonpayable",
|
|
244
|
+
"type": "function",
|
|
245
|
+
"name": "borrowAndEarnYield",
|
|
246
|
+
"inputs": [
|
|
247
|
+
{
|
|
248
|
+
"name": "_levgWallet",
|
|
249
|
+
"type": "address"
|
|
250
|
+
}
|
|
251
251
|
],
|
|
252
|
-
outputs: []
|
|
252
|
+
"outputs": []
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
stateMutability:
|
|
256
|
-
type:
|
|
257
|
-
name:
|
|
258
|
-
inputs: [
|
|
255
|
+
"stateMutability": "nonpayable",
|
|
256
|
+
"type": "function",
|
|
257
|
+
"name": "borrowAndEarnYield",
|
|
258
|
+
"inputs": [
|
|
259
259
|
{
|
|
260
|
-
name:
|
|
261
|
-
type:
|
|
260
|
+
"name": "_levgWallet",
|
|
261
|
+
"type": "address"
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
|
-
name:
|
|
265
|
-
type:
|
|
266
|
-
components: [
|
|
264
|
+
"name": "_removeCollateral",
|
|
265
|
+
"type": "tuple[]",
|
|
266
|
+
"components": [
|
|
267
267
|
{
|
|
268
|
-
name:
|
|
269
|
-
type:
|
|
268
|
+
"name": "positionType",
|
|
269
|
+
"type": "uint8"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
name:
|
|
273
|
-
type:
|
|
274
|
-
}
|
|
275
|
-
]
|
|
276
|
-
}
|
|
272
|
+
"name": "amount",
|
|
273
|
+
"type": "uint256"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
277
|
],
|
|
278
|
-
outputs: []
|
|
278
|
+
"outputs": []
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
stateMutability:
|
|
282
|
-
type:
|
|
283
|
-
name:
|
|
284
|
-
inputs: [
|
|
281
|
+
"stateMutability": "nonpayable",
|
|
282
|
+
"type": "function",
|
|
283
|
+
"name": "borrowAndEarnYield",
|
|
284
|
+
"inputs": [
|
|
285
285
|
{
|
|
286
|
-
name:
|
|
287
|
-
type:
|
|
286
|
+
"name": "_levgWallet",
|
|
287
|
+
"type": "address"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
|
-
name:
|
|
291
|
-
type:
|
|
292
|
-
components: [
|
|
290
|
+
"name": "_removeCollateral",
|
|
291
|
+
"type": "tuple[]",
|
|
292
|
+
"components": [
|
|
293
293
|
{
|
|
294
|
-
name:
|
|
295
|
-
type:
|
|
294
|
+
"name": "positionType",
|
|
295
|
+
"type": "uint8"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
name:
|
|
299
|
-
type:
|
|
300
|
-
}
|
|
301
|
-
]
|
|
298
|
+
"name": "amount",
|
|
299
|
+
"type": "uint256"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
|
-
name:
|
|
305
|
-
type:
|
|
306
|
-
components: [
|
|
304
|
+
"name": "_withdrawPositions",
|
|
305
|
+
"type": "tuple[]",
|
|
306
|
+
"components": [
|
|
307
307
|
{
|
|
308
|
-
name:
|
|
309
|
-
type:
|
|
308
|
+
"name": "positionType",
|
|
309
|
+
"type": "uint8"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
|
-
name:
|
|
313
|
-
type:
|
|
314
|
-
}
|
|
315
|
-
]
|
|
316
|
-
}
|
|
312
|
+
"name": "amount",
|
|
313
|
+
"type": "uint256"
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
317
|
],
|
|
318
|
-
outputs: []
|
|
318
|
+
"outputs": []
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
stateMutability:
|
|
322
|
-
type:
|
|
323
|
-
name:
|
|
324
|
-
inputs: [
|
|
321
|
+
"stateMutability": "nonpayable",
|
|
322
|
+
"type": "function",
|
|
323
|
+
"name": "borrowAndEarnYield",
|
|
324
|
+
"inputs": [
|
|
325
325
|
{
|
|
326
|
-
name:
|
|
327
|
-
type:
|
|
326
|
+
"name": "_levgWallet",
|
|
327
|
+
"type": "address"
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
|
-
name:
|
|
331
|
-
type:
|
|
332
|
-
components: [
|
|
330
|
+
"name": "_removeCollateral",
|
|
331
|
+
"type": "tuple[]",
|
|
332
|
+
"components": [
|
|
333
333
|
{
|
|
334
|
-
name:
|
|
335
|
-
type:
|
|
334
|
+
"name": "positionType",
|
|
335
|
+
"type": "uint8"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
|
-
name:
|
|
339
|
-
type:
|
|
340
|
-
}
|
|
341
|
-
]
|
|
338
|
+
"name": "amount",
|
|
339
|
+
"type": "uint256"
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
name:
|
|
345
|
-
type:
|
|
346
|
-
components: [
|
|
344
|
+
"name": "_withdrawPositions",
|
|
345
|
+
"type": "tuple[]",
|
|
346
|
+
"components": [
|
|
347
347
|
{
|
|
348
|
-
name:
|
|
349
|
-
type:
|
|
348
|
+
"name": "positionType",
|
|
349
|
+
"type": "uint8"
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
|
-
name:
|
|
353
|
-
type:
|
|
354
|
-
}
|
|
355
|
-
]
|
|
352
|
+
"name": "amount",
|
|
353
|
+
"type": "uint256"
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
name:
|
|
359
|
-
type:
|
|
360
|
-
components: [
|
|
358
|
+
"name": "_depositPositions",
|
|
359
|
+
"type": "tuple[]",
|
|
360
|
+
"components": [
|
|
361
361
|
{
|
|
362
|
-
name:
|
|
363
|
-
type:
|
|
362
|
+
"name": "positionType",
|
|
363
|
+
"type": "uint8"
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
name:
|
|
367
|
-
type:
|
|
366
|
+
"name": "amount",
|
|
367
|
+
"type": "uint256"
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
|
-
name:
|
|
371
|
-
type:
|
|
370
|
+
"name": "shouldAddToRipeCollateral",
|
|
371
|
+
"type": "bool"
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
|
-
name:
|
|
375
|
-
type:
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
}
|
|
374
|
+
"name": "shouldSweepAll",
|
|
375
|
+
"type": "bool"
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
379
|
],
|
|
380
|
-
outputs: []
|
|
380
|
+
"outputs": []
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
stateMutability:
|
|
384
|
-
type:
|
|
385
|
-
name:
|
|
386
|
-
inputs: [
|
|
383
|
+
"stateMutability": "nonpayable",
|
|
384
|
+
"type": "function",
|
|
385
|
+
"name": "borrowAndEarnYield",
|
|
386
|
+
"inputs": [
|
|
387
387
|
{
|
|
388
|
-
name:
|
|
389
|
-
type:
|
|
388
|
+
"name": "_levgWallet",
|
|
389
|
+
"type": "address"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
-
name:
|
|
393
|
-
type:
|
|
394
|
-
components: [
|
|
392
|
+
"name": "_removeCollateral",
|
|
393
|
+
"type": "tuple[]",
|
|
394
|
+
"components": [
|
|
395
395
|
{
|
|
396
|
-
name:
|
|
397
|
-
type:
|
|
396
|
+
"name": "positionType",
|
|
397
|
+
"type": "uint8"
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
|
-
name:
|
|
401
|
-
type:
|
|
402
|
-
}
|
|
403
|
-
]
|
|
400
|
+
"name": "amount",
|
|
401
|
+
"type": "uint256"
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
name:
|
|
407
|
-
type:
|
|
408
|
-
components: [
|
|
406
|
+
"name": "_withdrawPositions",
|
|
407
|
+
"type": "tuple[]",
|
|
408
|
+
"components": [
|
|
409
409
|
{
|
|
410
|
-
name:
|
|
411
|
-
type:
|
|
410
|
+
"name": "positionType",
|
|
411
|
+
"type": "uint8"
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
-
name:
|
|
415
|
-
type:
|
|
416
|
-
}
|
|
417
|
-
]
|
|
414
|
+
"name": "amount",
|
|
415
|
+
"type": "uint256"
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
418
|
},
|
|
419
419
|
{
|
|
420
|
-
name:
|
|
421
|
-
type:
|
|
422
|
-
components: [
|
|
420
|
+
"name": "_depositPositions",
|
|
421
|
+
"type": "tuple[]",
|
|
422
|
+
"components": [
|
|
423
423
|
{
|
|
424
|
-
name:
|
|
425
|
-
type:
|
|
424
|
+
"name": "positionType",
|
|
425
|
+
"type": "uint8"
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
|
-
name:
|
|
429
|
-
type:
|
|
428
|
+
"name": "amount",
|
|
429
|
+
"type": "uint256"
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
|
-
name:
|
|
433
|
-
type:
|
|
432
|
+
"name": "shouldAddToRipeCollateral",
|
|
433
|
+
"type": "bool"
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
|
-
name:
|
|
437
|
-
type:
|
|
438
|
-
}
|
|
439
|
-
]
|
|
436
|
+
"name": "shouldSweepAll",
|
|
437
|
+
"type": "bool"
|
|
438
|
+
}
|
|
439
|
+
]
|
|
440
440
|
},
|
|
441
441
|
{
|
|
442
|
-
name:
|
|
443
|
-
type:
|
|
444
|
-
components: [
|
|
442
|
+
"name": "_addCollateral",
|
|
443
|
+
"type": "tuple[]",
|
|
444
|
+
"components": [
|
|
445
445
|
{
|
|
446
|
-
name:
|
|
447
|
-
type:
|
|
446
|
+
"name": "positionType",
|
|
447
|
+
"type": "uint8"
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
|
-
name:
|
|
451
|
-
type:
|
|
452
|
-
}
|
|
453
|
-
]
|
|
454
|
-
}
|
|
450
|
+
"name": "amount",
|
|
451
|
+
"type": "uint256"
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
455
|
],
|
|
456
|
-
outputs: []
|
|
456
|
+
"outputs": []
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
|
-
stateMutability:
|
|
460
|
-
type:
|
|
461
|
-
name:
|
|
462
|
-
inputs: [
|
|
459
|
+
"stateMutability": "nonpayable",
|
|
460
|
+
"type": "function",
|
|
461
|
+
"name": "borrowAndEarnYield",
|
|
462
|
+
"inputs": [
|
|
463
463
|
{
|
|
464
|
-
name:
|
|
465
|
-
type:
|
|
464
|
+
"name": "_levgWallet",
|
|
465
|
+
"type": "address"
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
|
-
name:
|
|
469
|
-
type:
|
|
470
|
-
components: [
|
|
468
|
+
"name": "_removeCollateral",
|
|
469
|
+
"type": "tuple[]",
|
|
470
|
+
"components": [
|
|
471
471
|
{
|
|
472
|
-
name:
|
|
473
|
-
type:
|
|
472
|
+
"name": "positionType",
|
|
473
|
+
"type": "uint8"
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
|
-
name:
|
|
477
|
-
type:
|
|
478
|
-
}
|
|
479
|
-
]
|
|
476
|
+
"name": "amount",
|
|
477
|
+
"type": "uint256"
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
|
-
name:
|
|
483
|
-
type:
|
|
484
|
-
components: [
|
|
482
|
+
"name": "_withdrawPositions",
|
|
483
|
+
"type": "tuple[]",
|
|
484
|
+
"components": [
|
|
485
485
|
{
|
|
486
|
-
name:
|
|
487
|
-
type:
|
|
486
|
+
"name": "positionType",
|
|
487
|
+
"type": "uint8"
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
|
-
name:
|
|
491
|
-
type:
|
|
492
|
-
}
|
|
493
|
-
]
|
|
490
|
+
"name": "amount",
|
|
491
|
+
"type": "uint256"
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
|
-
name:
|
|
497
|
-
type:
|
|
498
|
-
components: [
|
|
496
|
+
"name": "_depositPositions",
|
|
497
|
+
"type": "tuple[]",
|
|
498
|
+
"components": [
|
|
499
499
|
{
|
|
500
|
-
name:
|
|
501
|
-
type:
|
|
500
|
+
"name": "positionType",
|
|
501
|
+
"type": "uint8"
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
|
-
name:
|
|
505
|
-
type:
|
|
504
|
+
"name": "amount",
|
|
505
|
+
"type": "uint256"
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
|
-
name:
|
|
509
|
-
type:
|
|
508
|
+
"name": "shouldAddToRipeCollateral",
|
|
509
|
+
"type": "bool"
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
|
-
name:
|
|
513
|
-
type:
|
|
514
|
-
}
|
|
515
|
-
]
|
|
512
|
+
"name": "shouldSweepAll",
|
|
513
|
+
"type": "bool"
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
|
-
name:
|
|
519
|
-
type:
|
|
520
|
-
components: [
|
|
518
|
+
"name": "_addCollateral",
|
|
519
|
+
"type": "tuple[]",
|
|
520
|
+
"components": [
|
|
521
521
|
{
|
|
522
|
-
name:
|
|
523
|
-
type:
|
|
522
|
+
"name": "positionType",
|
|
523
|
+
"type": "uint8"
|
|
524
524
|
},
|
|
525
525
|
{
|
|
526
|
-
name:
|
|
527
|
-
type:
|
|
528
|
-
}
|
|
529
|
-
]
|
|
526
|
+
"name": "amount",
|
|
527
|
+
"type": "uint256"
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
530
|
},
|
|
531
531
|
{
|
|
532
|
-
name:
|
|
533
|
-
type:
|
|
534
|
-
}
|
|
532
|
+
"name": "_borrowAmount",
|
|
533
|
+
"type": "uint256"
|
|
534
|
+
}
|
|
535
535
|
],
|
|
536
|
-
outputs: []
|
|
536
|
+
"outputs": []
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
|
-
stateMutability:
|
|
540
|
-
type:
|
|
541
|
-
name:
|
|
542
|
-
inputs: [
|
|
539
|
+
"stateMutability": "nonpayable",
|
|
540
|
+
"type": "function",
|
|
541
|
+
"name": "borrowAndEarnYield",
|
|
542
|
+
"inputs": [
|
|
543
543
|
{
|
|
544
|
-
name:
|
|
545
|
-
type:
|
|
544
|
+
"name": "_levgWallet",
|
|
545
|
+
"type": "address"
|
|
546
546
|
},
|
|
547
547
|
{
|
|
548
|
-
name:
|
|
549
|
-
type:
|
|
550
|
-
components: [
|
|
548
|
+
"name": "_removeCollateral",
|
|
549
|
+
"type": "tuple[]",
|
|
550
|
+
"components": [
|
|
551
551
|
{
|
|
552
|
-
name:
|
|
553
|
-
type:
|
|
552
|
+
"name": "positionType",
|
|
553
|
+
"type": "uint8"
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
|
-
name:
|
|
557
|
-
type:
|
|
558
|
-
}
|
|
559
|
-
]
|
|
556
|
+
"name": "amount",
|
|
557
|
+
"type": "uint256"
|
|
558
|
+
}
|
|
559
|
+
]
|
|
560
560
|
},
|
|
561
561
|
{
|
|
562
|
-
name:
|
|
563
|
-
type:
|
|
564
|
-
components: [
|
|
562
|
+
"name": "_withdrawPositions",
|
|
563
|
+
"type": "tuple[]",
|
|
564
|
+
"components": [
|
|
565
565
|
{
|
|
566
|
-
name:
|
|
567
|
-
type:
|
|
566
|
+
"name": "positionType",
|
|
567
|
+
"type": "uint8"
|
|
568
568
|
},
|
|
569
569
|
{
|
|
570
|
-
name:
|
|
571
|
-
type:
|
|
572
|
-
}
|
|
573
|
-
]
|
|
570
|
+
"name": "amount",
|
|
571
|
+
"type": "uint256"
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
|
-
name:
|
|
577
|
-
type:
|
|
578
|
-
components: [
|
|
576
|
+
"name": "_depositPositions",
|
|
577
|
+
"type": "tuple[]",
|
|
578
|
+
"components": [
|
|
579
579
|
{
|
|
580
|
-
name:
|
|
581
|
-
type:
|
|
580
|
+
"name": "positionType",
|
|
581
|
+
"type": "uint8"
|
|
582
582
|
},
|
|
583
583
|
{
|
|
584
|
-
name:
|
|
585
|
-
type:
|
|
584
|
+
"name": "amount",
|
|
585
|
+
"type": "uint256"
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
|
-
name:
|
|
589
|
-
type:
|
|
588
|
+
"name": "shouldAddToRipeCollateral",
|
|
589
|
+
"type": "bool"
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
|
-
name:
|
|
593
|
-
type:
|
|
594
|
-
}
|
|
595
|
-
]
|
|
592
|
+
"name": "shouldSweepAll",
|
|
593
|
+
"type": "bool"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
596
|
},
|
|
597
597
|
{
|
|
598
|
-
name:
|
|
599
|
-
type:
|
|
600
|
-
components: [
|
|
598
|
+
"name": "_addCollateral",
|
|
599
|
+
"type": "tuple[]",
|
|
600
|
+
"components": [
|
|
601
601
|
{
|
|
602
|
-
name:
|
|
603
|
-
type:
|
|
602
|
+
"name": "positionType",
|
|
603
|
+
"type": "uint8"
|
|
604
604
|
},
|
|
605
605
|
{
|
|
606
|
-
name:
|
|
607
|
-
type:
|
|
608
|
-
}
|
|
609
|
-
]
|
|
606
|
+
"name": "amount",
|
|
607
|
+
"type": "uint256"
|
|
608
|
+
}
|
|
609
|
+
]
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
|
-
name:
|
|
613
|
-
type:
|
|
612
|
+
"name": "_borrowAmount",
|
|
613
|
+
"type": "uint256"
|
|
614
614
|
},
|
|
615
615
|
{
|
|
616
|
-
name:
|
|
617
|
-
type:
|
|
618
|
-
}
|
|
616
|
+
"name": "_wantsSavingsGreen",
|
|
617
|
+
"type": "bool"
|
|
618
|
+
}
|
|
619
619
|
],
|
|
620
|
-
outputs: []
|
|
620
|
+
"outputs": []
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
|
-
stateMutability:
|
|
624
|
-
type:
|
|
625
|
-
name:
|
|
626
|
-
inputs: [
|
|
623
|
+
"stateMutability": "nonpayable",
|
|
624
|
+
"type": "function",
|
|
625
|
+
"name": "borrowAndEarnYield",
|
|
626
|
+
"inputs": [
|
|
627
627
|
{
|
|
628
|
-
name:
|
|
629
|
-
type:
|
|
628
|
+
"name": "_levgWallet",
|
|
629
|
+
"type": "address"
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
|
-
name:
|
|
633
|
-
type:
|
|
634
|
-
components: [
|
|
632
|
+
"name": "_removeCollateral",
|
|
633
|
+
"type": "tuple[]",
|
|
634
|
+
"components": [
|
|
635
635
|
{
|
|
636
|
-
name:
|
|
637
|
-
type:
|
|
636
|
+
"name": "positionType",
|
|
637
|
+
"type": "uint8"
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
|
-
name:
|
|
641
|
-
type:
|
|
642
|
-
}
|
|
643
|
-
]
|
|
640
|
+
"name": "amount",
|
|
641
|
+
"type": "uint256"
|
|
642
|
+
}
|
|
643
|
+
]
|
|
644
644
|
},
|
|
645
645
|
{
|
|
646
|
-
name:
|
|
647
|
-
type:
|
|
648
|
-
components: [
|
|
646
|
+
"name": "_withdrawPositions",
|
|
647
|
+
"type": "tuple[]",
|
|
648
|
+
"components": [
|
|
649
649
|
{
|
|
650
|
-
name:
|
|
651
|
-
type:
|
|
650
|
+
"name": "positionType",
|
|
651
|
+
"type": "uint8"
|
|
652
652
|
},
|
|
653
653
|
{
|
|
654
|
-
name:
|
|
655
|
-
type:
|
|
656
|
-
}
|
|
657
|
-
]
|
|
654
|
+
"name": "amount",
|
|
655
|
+
"type": "uint256"
|
|
656
|
+
}
|
|
657
|
+
]
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
|
-
name:
|
|
661
|
-
type:
|
|
662
|
-
components: [
|
|
660
|
+
"name": "_depositPositions",
|
|
661
|
+
"type": "tuple[]",
|
|
662
|
+
"components": [
|
|
663
663
|
{
|
|
664
|
-
name:
|
|
665
|
-
type:
|
|
664
|
+
"name": "positionType",
|
|
665
|
+
"type": "uint8"
|
|
666
666
|
},
|
|
667
667
|
{
|
|
668
|
-
name:
|
|
669
|
-
type:
|
|
668
|
+
"name": "amount",
|
|
669
|
+
"type": "uint256"
|
|
670
670
|
},
|
|
671
671
|
{
|
|
672
|
-
name:
|
|
673
|
-
type:
|
|
672
|
+
"name": "shouldAddToRipeCollateral",
|
|
673
|
+
"type": "bool"
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
|
-
name:
|
|
677
|
-
type:
|
|
678
|
-
}
|
|
679
|
-
]
|
|
676
|
+
"name": "shouldSweepAll",
|
|
677
|
+
"type": "bool"
|
|
678
|
+
}
|
|
679
|
+
]
|
|
680
680
|
},
|
|
681
681
|
{
|
|
682
|
-
name:
|
|
683
|
-
type:
|
|
684
|
-
components: [
|
|
682
|
+
"name": "_addCollateral",
|
|
683
|
+
"type": "tuple[]",
|
|
684
|
+
"components": [
|
|
685
685
|
{
|
|
686
|
-
name:
|
|
687
|
-
type:
|
|
686
|
+
"name": "positionType",
|
|
687
|
+
"type": "uint8"
|
|
688
688
|
},
|
|
689
689
|
{
|
|
690
|
-
name:
|
|
691
|
-
type:
|
|
692
|
-
}
|
|
693
|
-
]
|
|
690
|
+
"name": "amount",
|
|
691
|
+
"type": "uint256"
|
|
692
|
+
}
|
|
693
|
+
]
|
|
694
694
|
},
|
|
695
695
|
{
|
|
696
|
-
name:
|
|
697
|
-
type:
|
|
696
|
+
"name": "_borrowAmount",
|
|
697
|
+
"type": "uint256"
|
|
698
698
|
},
|
|
699
699
|
{
|
|
700
|
-
name:
|
|
701
|
-
type:
|
|
700
|
+
"name": "_wantsSavingsGreen",
|
|
701
|
+
"type": "bool"
|
|
702
702
|
},
|
|
703
703
|
{
|
|
704
|
-
name:
|
|
705
|
-
type:
|
|
706
|
-
}
|
|
704
|
+
"name": "_shouldEnterStabPool",
|
|
705
|
+
"type": "bool"
|
|
706
|
+
}
|
|
707
707
|
],
|
|
708
|
-
outputs: []
|
|
708
|
+
"outputs": []
|
|
709
709
|
},
|
|
710
710
|
{
|
|
711
|
-
stateMutability:
|
|
712
|
-
type:
|
|
713
|
-
name:
|
|
714
|
-
inputs: [
|
|
711
|
+
"stateMutability": "nonpayable",
|
|
712
|
+
"type": "function",
|
|
713
|
+
"name": "borrowAndEarnYield",
|
|
714
|
+
"inputs": [
|
|
715
715
|
{
|
|
716
|
-
name:
|
|
717
|
-
type:
|
|
716
|
+
"name": "_levgWallet",
|
|
717
|
+
"type": "address"
|
|
718
718
|
},
|
|
719
719
|
{
|
|
720
|
-
name:
|
|
721
|
-
type:
|
|
722
|
-
components: [
|
|
720
|
+
"name": "_removeCollateral",
|
|
721
|
+
"type": "tuple[]",
|
|
722
|
+
"components": [
|
|
723
723
|
{
|
|
724
|
-
name:
|
|
725
|
-
type:
|
|
724
|
+
"name": "positionType",
|
|
725
|
+
"type": "uint8"
|
|
726
726
|
},
|
|
727
727
|
{
|
|
728
|
-
name:
|
|
729
|
-
type:
|
|
730
|
-
}
|
|
731
|
-
]
|
|
728
|
+
"name": "amount",
|
|
729
|
+
"type": "uint256"
|
|
730
|
+
}
|
|
731
|
+
]
|
|
732
732
|
},
|
|
733
733
|
{
|
|
734
|
-
name:
|
|
735
|
-
type:
|
|
736
|
-
components: [
|
|
734
|
+
"name": "_withdrawPositions",
|
|
735
|
+
"type": "tuple[]",
|
|
736
|
+
"components": [
|
|
737
737
|
{
|
|
738
|
-
name:
|
|
739
|
-
type:
|
|
738
|
+
"name": "positionType",
|
|
739
|
+
"type": "uint8"
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
name:
|
|
743
|
-
type:
|
|
744
|
-
}
|
|
745
|
-
]
|
|
742
|
+
"name": "amount",
|
|
743
|
+
"type": "uint256"
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
746
|
},
|
|
747
747
|
{
|
|
748
|
-
name:
|
|
749
|
-
type:
|
|
750
|
-
components: [
|
|
748
|
+
"name": "_depositPositions",
|
|
749
|
+
"type": "tuple[]",
|
|
750
|
+
"components": [
|
|
751
751
|
{
|
|
752
|
-
name:
|
|
753
|
-
type:
|
|
752
|
+
"name": "positionType",
|
|
753
|
+
"type": "uint8"
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
|
-
name:
|
|
757
|
-
type:
|
|
756
|
+
"name": "amount",
|
|
757
|
+
"type": "uint256"
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
|
-
name:
|
|
761
|
-
type:
|
|
760
|
+
"name": "shouldAddToRipeCollateral",
|
|
761
|
+
"type": "bool"
|
|
762
762
|
},
|
|
763
763
|
{
|
|
764
|
-
name:
|
|
765
|
-
type:
|
|
766
|
-
}
|
|
767
|
-
]
|
|
764
|
+
"name": "shouldSweepAll",
|
|
765
|
+
"type": "bool"
|
|
766
|
+
}
|
|
767
|
+
]
|
|
768
768
|
},
|
|
769
769
|
{
|
|
770
|
-
name:
|
|
771
|
-
type:
|
|
772
|
-
components: [
|
|
770
|
+
"name": "_addCollateral",
|
|
771
|
+
"type": "tuple[]",
|
|
772
|
+
"components": [
|
|
773
773
|
{
|
|
774
|
-
name:
|
|
775
|
-
type:
|
|
774
|
+
"name": "positionType",
|
|
775
|
+
"type": "uint8"
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
|
-
name:
|
|
779
|
-
type:
|
|
780
|
-
}
|
|
781
|
-
]
|
|
778
|
+
"name": "amount",
|
|
779
|
+
"type": "uint256"
|
|
780
|
+
}
|
|
781
|
+
]
|
|
782
782
|
},
|
|
783
783
|
{
|
|
784
|
-
name:
|
|
785
|
-
type:
|
|
784
|
+
"name": "_borrowAmount",
|
|
785
|
+
"type": "uint256"
|
|
786
786
|
},
|
|
787
787
|
{
|
|
788
|
-
name:
|
|
789
|
-
type:
|
|
788
|
+
"name": "_wantsSavingsGreen",
|
|
789
|
+
"type": "bool"
|
|
790
790
|
},
|
|
791
791
|
{
|
|
792
|
-
name:
|
|
793
|
-
type:
|
|
792
|
+
"name": "_shouldEnterStabPool",
|
|
793
|
+
"type": "bool"
|
|
794
794
|
},
|
|
795
795
|
{
|
|
796
|
-
name:
|
|
797
|
-
type:
|
|
798
|
-
components: [
|
|
796
|
+
"name": "_swapInstruction",
|
|
797
|
+
"type": "tuple",
|
|
798
|
+
"components": [
|
|
799
799
|
{
|
|
800
|
-
name:
|
|
801
|
-
type:
|
|
800
|
+
"name": "legoId",
|
|
801
|
+
"type": "uint256"
|
|
802
802
|
},
|
|
803
803
|
{
|
|
804
|
-
name:
|
|
805
|
-
type:
|
|
804
|
+
"name": "amountIn",
|
|
805
|
+
"type": "uint256"
|
|
806
806
|
},
|
|
807
807
|
{
|
|
808
|
-
name:
|
|
809
|
-
type:
|
|
808
|
+
"name": "minAmountOut",
|
|
809
|
+
"type": "uint256"
|
|
810
810
|
},
|
|
811
811
|
{
|
|
812
|
-
name:
|
|
813
|
-
type:
|
|
812
|
+
"name": "tokenPath",
|
|
813
|
+
"type": "address[]"
|
|
814
814
|
},
|
|
815
815
|
{
|
|
816
|
-
name:
|
|
817
|
-
type:
|
|
818
|
-
}
|
|
819
|
-
]
|
|
820
|
-
}
|
|
816
|
+
"name": "poolPath",
|
|
817
|
+
"type": "address[]"
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
}
|
|
821
821
|
],
|
|
822
|
-
outputs: []
|
|
822
|
+
"outputs": []
|
|
823
823
|
},
|
|
824
824
|
{
|
|
825
|
-
stateMutability:
|
|
826
|
-
type:
|
|
827
|
-
name:
|
|
828
|
-
inputs: [
|
|
825
|
+
"stateMutability": "nonpayable",
|
|
826
|
+
"type": "function",
|
|
827
|
+
"name": "borrowAndEarnYield",
|
|
828
|
+
"inputs": [
|
|
829
829
|
{
|
|
830
|
-
name:
|
|
831
|
-
type:
|
|
830
|
+
"name": "_levgWallet",
|
|
831
|
+
"type": "address"
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
|
-
name:
|
|
835
|
-
type:
|
|
836
|
-
components: [
|
|
834
|
+
"name": "_removeCollateral",
|
|
835
|
+
"type": "tuple[]",
|
|
836
|
+
"components": [
|
|
837
837
|
{
|
|
838
|
-
name:
|
|
839
|
-
type:
|
|
838
|
+
"name": "positionType",
|
|
839
|
+
"type": "uint8"
|
|
840
840
|
},
|
|
841
841
|
{
|
|
842
|
-
name:
|
|
843
|
-
type:
|
|
844
|
-
}
|
|
845
|
-
]
|
|
842
|
+
"name": "amount",
|
|
843
|
+
"type": "uint256"
|
|
844
|
+
}
|
|
845
|
+
]
|
|
846
846
|
},
|
|
847
847
|
{
|
|
848
|
-
name:
|
|
849
|
-
type:
|
|
850
|
-
components: [
|
|
848
|
+
"name": "_withdrawPositions",
|
|
849
|
+
"type": "tuple[]",
|
|
850
|
+
"components": [
|
|
851
851
|
{
|
|
852
|
-
name:
|
|
853
|
-
type:
|
|
852
|
+
"name": "positionType",
|
|
853
|
+
"type": "uint8"
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
|
-
name:
|
|
857
|
-
type:
|
|
858
|
-
}
|
|
859
|
-
]
|
|
856
|
+
"name": "amount",
|
|
857
|
+
"type": "uint256"
|
|
858
|
+
}
|
|
859
|
+
]
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
|
-
name:
|
|
863
|
-
type:
|
|
864
|
-
components: [
|
|
862
|
+
"name": "_depositPositions",
|
|
863
|
+
"type": "tuple[]",
|
|
864
|
+
"components": [
|
|
865
865
|
{
|
|
866
|
-
name:
|
|
867
|
-
type:
|
|
866
|
+
"name": "positionType",
|
|
867
|
+
"type": "uint8"
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
|
-
name:
|
|
871
|
-
type:
|
|
870
|
+
"name": "amount",
|
|
871
|
+
"type": "uint256"
|
|
872
872
|
},
|
|
873
873
|
{
|
|
874
|
-
name:
|
|
875
|
-
type:
|
|
874
|
+
"name": "shouldAddToRipeCollateral",
|
|
875
|
+
"type": "bool"
|
|
876
876
|
},
|
|
877
877
|
{
|
|
878
|
-
name:
|
|
879
|
-
type:
|
|
880
|
-
}
|
|
881
|
-
]
|
|
878
|
+
"name": "shouldSweepAll",
|
|
879
|
+
"type": "bool"
|
|
880
|
+
}
|
|
881
|
+
]
|
|
882
882
|
},
|
|
883
883
|
{
|
|
884
|
-
name:
|
|
885
|
-
type:
|
|
886
|
-
components: [
|
|
884
|
+
"name": "_addCollateral",
|
|
885
|
+
"type": "tuple[]",
|
|
886
|
+
"components": [
|
|
887
887
|
{
|
|
888
|
-
name:
|
|
889
|
-
type:
|
|
888
|
+
"name": "positionType",
|
|
889
|
+
"type": "uint8"
|
|
890
890
|
},
|
|
891
891
|
{
|
|
892
|
-
name:
|
|
893
|
-
type:
|
|
894
|
-
}
|
|
895
|
-
]
|
|
892
|
+
"name": "amount",
|
|
893
|
+
"type": "uint256"
|
|
894
|
+
}
|
|
895
|
+
]
|
|
896
896
|
},
|
|
897
897
|
{
|
|
898
|
-
name:
|
|
899
|
-
type:
|
|
898
|
+
"name": "_borrowAmount",
|
|
899
|
+
"type": "uint256"
|
|
900
900
|
},
|
|
901
901
|
{
|
|
902
|
-
name:
|
|
903
|
-
type:
|
|
902
|
+
"name": "_wantsSavingsGreen",
|
|
903
|
+
"type": "bool"
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
|
-
name:
|
|
907
|
-
type:
|
|
906
|
+
"name": "_shouldEnterStabPool",
|
|
907
|
+
"type": "bool"
|
|
908
908
|
},
|
|
909
909
|
{
|
|
910
|
-
name:
|
|
911
|
-
type:
|
|
912
|
-
components: [
|
|
910
|
+
"name": "_swapInstruction",
|
|
911
|
+
"type": "tuple",
|
|
912
|
+
"components": [
|
|
913
913
|
{
|
|
914
|
-
name:
|
|
915
|
-
type:
|
|
914
|
+
"name": "legoId",
|
|
915
|
+
"type": "uint256"
|
|
916
916
|
},
|
|
917
917
|
{
|
|
918
|
-
name:
|
|
919
|
-
type:
|
|
918
|
+
"name": "amountIn",
|
|
919
|
+
"type": "uint256"
|
|
920
920
|
},
|
|
921
921
|
{
|
|
922
|
-
name:
|
|
923
|
-
type:
|
|
922
|
+
"name": "minAmountOut",
|
|
923
|
+
"type": "uint256"
|
|
924
924
|
},
|
|
925
925
|
{
|
|
926
|
-
name:
|
|
927
|
-
type:
|
|
926
|
+
"name": "tokenPath",
|
|
927
|
+
"type": "address[]"
|
|
928
928
|
},
|
|
929
929
|
{
|
|
930
|
-
name:
|
|
931
|
-
type:
|
|
932
|
-
}
|
|
933
|
-
]
|
|
930
|
+
"name": "poolPath",
|
|
931
|
+
"type": "address[]"
|
|
932
|
+
}
|
|
933
|
+
]
|
|
934
934
|
},
|
|
935
935
|
{
|
|
936
|
-
name:
|
|
937
|
-
type:
|
|
938
|
-
components: [
|
|
936
|
+
"name": "_postSwapDeposits",
|
|
937
|
+
"type": "tuple[]",
|
|
938
|
+
"components": [
|
|
939
939
|
{
|
|
940
|
-
name:
|
|
941
|
-
type:
|
|
940
|
+
"name": "positionType",
|
|
941
|
+
"type": "uint8"
|
|
942
942
|
},
|
|
943
943
|
{
|
|
944
|
-
name:
|
|
945
|
-
type:
|
|
944
|
+
"name": "amount",
|
|
945
|
+
"type": "uint256"
|
|
946
946
|
},
|
|
947
947
|
{
|
|
948
|
-
name:
|
|
949
|
-
type:
|
|
948
|
+
"name": "shouldAddToRipeCollateral",
|
|
949
|
+
"type": "bool"
|
|
950
950
|
},
|
|
951
951
|
{
|
|
952
|
-
name:
|
|
953
|
-
type:
|
|
954
|
-
}
|
|
955
|
-
]
|
|
956
|
-
}
|
|
952
|
+
"name": "shouldSweepAll",
|
|
953
|
+
"type": "bool"
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
}
|
|
957
957
|
],
|
|
958
|
-
outputs: []
|
|
958
|
+
"outputs": []
|
|
959
959
|
},
|
|
960
960
|
{
|
|
961
|
-
stateMutability:
|
|
962
|
-
type:
|
|
963
|
-
name:
|
|
964
|
-
inputs: [
|
|
961
|
+
"stateMutability": "nonpayable",
|
|
962
|
+
"type": "function",
|
|
963
|
+
"name": "borrowAndEarnYield",
|
|
964
|
+
"inputs": [
|
|
965
965
|
{
|
|
966
|
-
name:
|
|
967
|
-
type:
|
|
966
|
+
"name": "_levgWallet",
|
|
967
|
+
"type": "address"
|
|
968
968
|
},
|
|
969
969
|
{
|
|
970
|
-
name:
|
|
971
|
-
type:
|
|
972
|
-
components: [
|
|
970
|
+
"name": "_removeCollateral",
|
|
971
|
+
"type": "tuple[]",
|
|
972
|
+
"components": [
|
|
973
973
|
{
|
|
974
|
-
name:
|
|
975
|
-
type:
|
|
974
|
+
"name": "positionType",
|
|
975
|
+
"type": "uint8"
|
|
976
976
|
},
|
|
977
977
|
{
|
|
978
|
-
name:
|
|
979
|
-
type:
|
|
980
|
-
}
|
|
981
|
-
]
|
|
978
|
+
"name": "amount",
|
|
979
|
+
"type": "uint256"
|
|
980
|
+
}
|
|
981
|
+
]
|
|
982
982
|
},
|
|
983
983
|
{
|
|
984
|
-
name:
|
|
985
|
-
type:
|
|
986
|
-
components: [
|
|
984
|
+
"name": "_withdrawPositions",
|
|
985
|
+
"type": "tuple[]",
|
|
986
|
+
"components": [
|
|
987
987
|
{
|
|
988
|
-
name:
|
|
989
|
-
type:
|
|
988
|
+
"name": "positionType",
|
|
989
|
+
"type": "uint8"
|
|
990
990
|
},
|
|
991
991
|
{
|
|
992
|
-
name:
|
|
993
|
-
type:
|
|
994
|
-
}
|
|
995
|
-
]
|
|
992
|
+
"name": "amount",
|
|
993
|
+
"type": "uint256"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
996
996
|
},
|
|
997
997
|
{
|
|
998
|
-
name:
|
|
999
|
-
type:
|
|
1000
|
-
components: [
|
|
998
|
+
"name": "_depositPositions",
|
|
999
|
+
"type": "tuple[]",
|
|
1000
|
+
"components": [
|
|
1001
1001
|
{
|
|
1002
|
-
name:
|
|
1003
|
-
type:
|
|
1002
|
+
"name": "positionType",
|
|
1003
|
+
"type": "uint8"
|
|
1004
1004
|
},
|
|
1005
1005
|
{
|
|
1006
|
-
name:
|
|
1007
|
-
type:
|
|
1006
|
+
"name": "amount",
|
|
1007
|
+
"type": "uint256"
|
|
1008
1008
|
},
|
|
1009
1009
|
{
|
|
1010
|
-
name:
|
|
1011
|
-
type:
|
|
1010
|
+
"name": "shouldAddToRipeCollateral",
|
|
1011
|
+
"type": "bool"
|
|
1012
1012
|
},
|
|
1013
1013
|
{
|
|
1014
|
-
name:
|
|
1015
|
-
type:
|
|
1016
|
-
}
|
|
1017
|
-
]
|
|
1014
|
+
"name": "shouldSweepAll",
|
|
1015
|
+
"type": "bool"
|
|
1016
|
+
}
|
|
1017
|
+
]
|
|
1018
1018
|
},
|
|
1019
1019
|
{
|
|
1020
|
-
name:
|
|
1021
|
-
type:
|
|
1022
|
-
components: [
|
|
1020
|
+
"name": "_addCollateral",
|
|
1021
|
+
"type": "tuple[]",
|
|
1022
|
+
"components": [
|
|
1023
1023
|
{
|
|
1024
|
-
name:
|
|
1025
|
-
type:
|
|
1024
|
+
"name": "positionType",
|
|
1025
|
+
"type": "uint8"
|
|
1026
1026
|
},
|
|
1027
1027
|
{
|
|
1028
|
-
name:
|
|
1029
|
-
type:
|
|
1030
|
-
}
|
|
1031
|
-
]
|
|
1028
|
+
"name": "amount",
|
|
1029
|
+
"type": "uint256"
|
|
1030
|
+
}
|
|
1031
|
+
]
|
|
1032
1032
|
},
|
|
1033
1033
|
{
|
|
1034
|
-
name:
|
|
1035
|
-
type:
|
|
1034
|
+
"name": "_borrowAmount",
|
|
1035
|
+
"type": "uint256"
|
|
1036
1036
|
},
|
|
1037
1037
|
{
|
|
1038
|
-
name:
|
|
1039
|
-
type:
|
|
1038
|
+
"name": "_wantsSavingsGreen",
|
|
1039
|
+
"type": "bool"
|
|
1040
1040
|
},
|
|
1041
1041
|
{
|
|
1042
|
-
name:
|
|
1043
|
-
type:
|
|
1042
|
+
"name": "_shouldEnterStabPool",
|
|
1043
|
+
"type": "bool"
|
|
1044
1044
|
},
|
|
1045
1045
|
{
|
|
1046
|
-
name:
|
|
1047
|
-
type:
|
|
1048
|
-
components: [
|
|
1046
|
+
"name": "_swapInstruction",
|
|
1047
|
+
"type": "tuple",
|
|
1048
|
+
"components": [
|
|
1049
1049
|
{
|
|
1050
|
-
name:
|
|
1051
|
-
type:
|
|
1050
|
+
"name": "legoId",
|
|
1051
|
+
"type": "uint256"
|
|
1052
1052
|
},
|
|
1053
1053
|
{
|
|
1054
|
-
name:
|
|
1055
|
-
type:
|
|
1054
|
+
"name": "amountIn",
|
|
1055
|
+
"type": "uint256"
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
1058
|
-
name:
|
|
1059
|
-
type:
|
|
1058
|
+
"name": "minAmountOut",
|
|
1059
|
+
"type": "uint256"
|
|
1060
1060
|
},
|
|
1061
1061
|
{
|
|
1062
|
-
name:
|
|
1063
|
-
type:
|
|
1062
|
+
"name": "tokenPath",
|
|
1063
|
+
"type": "address[]"
|
|
1064
1064
|
},
|
|
1065
1065
|
{
|
|
1066
|
-
name:
|
|
1067
|
-
type:
|
|
1068
|
-
}
|
|
1069
|
-
]
|
|
1066
|
+
"name": "poolPath",
|
|
1067
|
+
"type": "address[]"
|
|
1068
|
+
}
|
|
1069
|
+
]
|
|
1070
1070
|
},
|
|
1071
1071
|
{
|
|
1072
|
-
name:
|
|
1073
|
-
type:
|
|
1074
|
-
components: [
|
|
1072
|
+
"name": "_postSwapDeposits",
|
|
1073
|
+
"type": "tuple[]",
|
|
1074
|
+
"components": [
|
|
1075
1075
|
{
|
|
1076
|
-
name:
|
|
1077
|
-
type:
|
|
1076
|
+
"name": "positionType",
|
|
1077
|
+
"type": "uint8"
|
|
1078
1078
|
},
|
|
1079
1079
|
{
|
|
1080
|
-
name:
|
|
1081
|
-
type:
|
|
1080
|
+
"name": "amount",
|
|
1081
|
+
"type": "uint256"
|
|
1082
1082
|
},
|
|
1083
1083
|
{
|
|
1084
|
-
name:
|
|
1085
|
-
type:
|
|
1084
|
+
"name": "shouldAddToRipeCollateral",
|
|
1085
|
+
"type": "bool"
|
|
1086
1086
|
},
|
|
1087
1087
|
{
|
|
1088
|
-
name:
|
|
1089
|
-
type:
|
|
1090
|
-
}
|
|
1091
|
-
]
|
|
1088
|
+
"name": "shouldSweepAll",
|
|
1089
|
+
"type": "bool"
|
|
1090
|
+
}
|
|
1091
|
+
]
|
|
1092
1092
|
},
|
|
1093
1093
|
{
|
|
1094
|
-
name:
|
|
1095
|
-
type:
|
|
1096
|
-
components: [
|
|
1094
|
+
"name": "_sig",
|
|
1095
|
+
"type": "tuple",
|
|
1096
|
+
"components": [
|
|
1097
1097
|
{
|
|
1098
|
-
name:
|
|
1099
|
-
type:
|
|
1098
|
+
"name": "signature",
|
|
1099
|
+
"type": "bytes"
|
|
1100
1100
|
},
|
|
1101
1101
|
{
|
|
1102
|
-
name:
|
|
1103
|
-
type:
|
|
1102
|
+
"name": "nonce",
|
|
1103
|
+
"type": "uint256"
|
|
1104
1104
|
},
|
|
1105
1105
|
{
|
|
1106
|
-
name:
|
|
1107
|
-
type:
|
|
1108
|
-
}
|
|
1109
|
-
]
|
|
1110
|
-
}
|
|
1106
|
+
"name": "expiration",
|
|
1107
|
+
"type": "uint256"
|
|
1108
|
+
}
|
|
1109
|
+
]
|
|
1110
|
+
}
|
|
1111
1111
|
],
|
|
1112
|
-
outputs: []
|
|
1112
|
+
"outputs": []
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
1115
|
-
stateMutability:
|
|
1116
|
-
type:
|
|
1117
|
-
name:
|
|
1118
|
-
inputs: [
|
|
1119
|
-
{
|
|
1120
|
-
name:
|
|
1121
|
-
type:
|
|
1122
|
-
}
|
|
1115
|
+
"stateMutability": "nonpayable",
|
|
1116
|
+
"type": "function",
|
|
1117
|
+
"name": "deleverage",
|
|
1118
|
+
"inputs": [
|
|
1119
|
+
{
|
|
1120
|
+
"name": "_levgWallet",
|
|
1121
|
+
"type": "address"
|
|
1122
|
+
}
|
|
1123
1123
|
],
|
|
1124
|
-
outputs: []
|
|
1124
|
+
"outputs": []
|
|
1125
1125
|
},
|
|
1126
1126
|
{
|
|
1127
|
-
stateMutability:
|
|
1128
|
-
type:
|
|
1129
|
-
name:
|
|
1130
|
-
inputs: [
|
|
1127
|
+
"stateMutability": "nonpayable",
|
|
1128
|
+
"type": "function",
|
|
1129
|
+
"name": "deleverage",
|
|
1130
|
+
"inputs": [
|
|
1131
1131
|
{
|
|
1132
|
-
name:
|
|
1133
|
-
type:
|
|
1132
|
+
"name": "_levgWallet",
|
|
1133
|
+
"type": "address"
|
|
1134
1134
|
},
|
|
1135
1135
|
{
|
|
1136
|
-
name:
|
|
1137
|
-
type:
|
|
1138
|
-
}
|
|
1136
|
+
"name": "_mode",
|
|
1137
|
+
"type": "uint8"
|
|
1138
|
+
}
|
|
1139
1139
|
],
|
|
1140
|
-
outputs: []
|
|
1140
|
+
"outputs": []
|
|
1141
1141
|
},
|
|
1142
1142
|
{
|
|
1143
|
-
stateMutability:
|
|
1144
|
-
type:
|
|
1145
|
-
name:
|
|
1146
|
-
inputs: [
|
|
1143
|
+
"stateMutability": "nonpayable",
|
|
1144
|
+
"type": "function",
|
|
1145
|
+
"name": "deleverage",
|
|
1146
|
+
"inputs": [
|
|
1147
1147
|
{
|
|
1148
|
-
name:
|
|
1149
|
-
type:
|
|
1148
|
+
"name": "_levgWallet",
|
|
1149
|
+
"type": "address"
|
|
1150
1150
|
},
|
|
1151
1151
|
{
|
|
1152
|
-
name:
|
|
1153
|
-
type:
|
|
1152
|
+
"name": "_mode",
|
|
1153
|
+
"type": "uint8"
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
1156
|
-
name:
|
|
1157
|
-
type:
|
|
1158
|
-
}
|
|
1156
|
+
"name": "_autoDeleverageAmount",
|
|
1157
|
+
"type": "uint256"
|
|
1158
|
+
}
|
|
1159
1159
|
],
|
|
1160
|
-
outputs: []
|
|
1160
|
+
"outputs": []
|
|
1161
1161
|
},
|
|
1162
1162
|
{
|
|
1163
|
-
stateMutability:
|
|
1164
|
-
type:
|
|
1165
|
-
name:
|
|
1166
|
-
inputs: [
|
|
1163
|
+
"stateMutability": "nonpayable",
|
|
1164
|
+
"type": "function",
|
|
1165
|
+
"name": "deleverage",
|
|
1166
|
+
"inputs": [
|
|
1167
1167
|
{
|
|
1168
|
-
name:
|
|
1169
|
-
type:
|
|
1168
|
+
"name": "_levgWallet",
|
|
1169
|
+
"type": "address"
|
|
1170
1170
|
},
|
|
1171
1171
|
{
|
|
1172
|
-
name:
|
|
1173
|
-
type:
|
|
1172
|
+
"name": "_mode",
|
|
1173
|
+
"type": "uint8"
|
|
1174
1174
|
},
|
|
1175
1175
|
{
|
|
1176
|
-
name:
|
|
1177
|
-
type:
|
|
1176
|
+
"name": "_autoDeleverageAmount",
|
|
1177
|
+
"type": "uint256"
|
|
1178
1178
|
},
|
|
1179
1179
|
{
|
|
1180
|
-
name:
|
|
1181
|
-
type:
|
|
1182
|
-
components: [
|
|
1180
|
+
"name": "_deleverageAssets",
|
|
1181
|
+
"type": "tuple[]",
|
|
1182
|
+
"components": [
|
|
1183
1183
|
{
|
|
1184
|
-
name:
|
|
1185
|
-
type:
|
|
1184
|
+
"name": "vaultId",
|
|
1185
|
+
"type": "uint256"
|
|
1186
1186
|
},
|
|
1187
1187
|
{
|
|
1188
|
-
name:
|
|
1189
|
-
type:
|
|
1188
|
+
"name": "asset",
|
|
1189
|
+
"type": "address"
|
|
1190
1190
|
},
|
|
1191
1191
|
{
|
|
1192
|
-
name:
|
|
1193
|
-
type:
|
|
1194
|
-
}
|
|
1195
|
-
]
|
|
1196
|
-
}
|
|
1192
|
+
"name": "targetRepayAmount",
|
|
1193
|
+
"type": "uint256"
|
|
1194
|
+
}
|
|
1195
|
+
]
|
|
1196
|
+
}
|
|
1197
1197
|
],
|
|
1198
|
-
outputs: []
|
|
1198
|
+
"outputs": []
|
|
1199
1199
|
},
|
|
1200
1200
|
{
|
|
1201
|
-
stateMutability:
|
|
1202
|
-
type:
|
|
1203
|
-
name:
|
|
1204
|
-
inputs: [
|
|
1201
|
+
"stateMutability": "nonpayable",
|
|
1202
|
+
"type": "function",
|
|
1203
|
+
"name": "deleverage",
|
|
1204
|
+
"inputs": [
|
|
1205
1205
|
{
|
|
1206
|
-
name:
|
|
1207
|
-
type:
|
|
1206
|
+
"name": "_levgWallet",
|
|
1207
|
+
"type": "address"
|
|
1208
1208
|
},
|
|
1209
1209
|
{
|
|
1210
|
-
name:
|
|
1211
|
-
type:
|
|
1210
|
+
"name": "_mode",
|
|
1211
|
+
"type": "uint8"
|
|
1212
1212
|
},
|
|
1213
1213
|
{
|
|
1214
|
-
name:
|
|
1215
|
-
type:
|
|
1214
|
+
"name": "_autoDeleverageAmount",
|
|
1215
|
+
"type": "uint256"
|
|
1216
1216
|
},
|
|
1217
1217
|
{
|
|
1218
|
-
name:
|
|
1219
|
-
type:
|
|
1220
|
-
components: [
|
|
1218
|
+
"name": "_deleverageAssets",
|
|
1219
|
+
"type": "tuple[]",
|
|
1220
|
+
"components": [
|
|
1221
1221
|
{
|
|
1222
|
-
name:
|
|
1223
|
-
type:
|
|
1222
|
+
"name": "vaultId",
|
|
1223
|
+
"type": "uint256"
|
|
1224
1224
|
},
|
|
1225
1225
|
{
|
|
1226
|
-
name:
|
|
1227
|
-
type:
|
|
1226
|
+
"name": "asset",
|
|
1227
|
+
"type": "address"
|
|
1228
1228
|
},
|
|
1229
1229
|
{
|
|
1230
|
-
name:
|
|
1231
|
-
type:
|
|
1232
|
-
}
|
|
1233
|
-
]
|
|
1230
|
+
"name": "targetRepayAmount",
|
|
1231
|
+
"type": "uint256"
|
|
1232
|
+
}
|
|
1233
|
+
]
|
|
1234
1234
|
},
|
|
1235
1235
|
{
|
|
1236
|
-
name:
|
|
1237
|
-
type:
|
|
1238
|
-
components: [
|
|
1236
|
+
"name": "_removeCollateral",
|
|
1237
|
+
"type": "tuple[]",
|
|
1238
|
+
"components": [
|
|
1239
1239
|
{
|
|
1240
|
-
name:
|
|
1241
|
-
type:
|
|
1240
|
+
"name": "positionType",
|
|
1241
|
+
"type": "uint8"
|
|
1242
1242
|
},
|
|
1243
1243
|
{
|
|
1244
|
-
name:
|
|
1245
|
-
type:
|
|
1246
|
-
}
|
|
1247
|
-
]
|
|
1248
|
-
}
|
|
1244
|
+
"name": "amount",
|
|
1245
|
+
"type": "uint256"
|
|
1246
|
+
}
|
|
1247
|
+
]
|
|
1248
|
+
}
|
|
1249
1249
|
],
|
|
1250
|
-
outputs: []
|
|
1250
|
+
"outputs": []
|
|
1251
1251
|
},
|
|
1252
1252
|
{
|
|
1253
|
-
stateMutability:
|
|
1254
|
-
type:
|
|
1255
|
-
name:
|
|
1256
|
-
inputs: [
|
|
1253
|
+
"stateMutability": "nonpayable",
|
|
1254
|
+
"type": "function",
|
|
1255
|
+
"name": "deleverage",
|
|
1256
|
+
"inputs": [
|
|
1257
1257
|
{
|
|
1258
|
-
name:
|
|
1259
|
-
type:
|
|
1258
|
+
"name": "_levgWallet",
|
|
1259
|
+
"type": "address"
|
|
1260
1260
|
},
|
|
1261
1261
|
{
|
|
1262
|
-
name:
|
|
1263
|
-
type:
|
|
1262
|
+
"name": "_mode",
|
|
1263
|
+
"type": "uint8"
|
|
1264
1264
|
},
|
|
1265
1265
|
{
|
|
1266
|
-
name:
|
|
1267
|
-
type:
|
|
1266
|
+
"name": "_autoDeleverageAmount",
|
|
1267
|
+
"type": "uint256"
|
|
1268
1268
|
},
|
|
1269
1269
|
{
|
|
1270
|
-
name:
|
|
1271
|
-
type:
|
|
1272
|
-
components: [
|
|
1270
|
+
"name": "_deleverageAssets",
|
|
1271
|
+
"type": "tuple[]",
|
|
1272
|
+
"components": [
|
|
1273
1273
|
{
|
|
1274
|
-
name:
|
|
1275
|
-
type:
|
|
1274
|
+
"name": "vaultId",
|
|
1275
|
+
"type": "uint256"
|
|
1276
1276
|
},
|
|
1277
1277
|
{
|
|
1278
|
-
name:
|
|
1279
|
-
type:
|
|
1278
|
+
"name": "asset",
|
|
1279
|
+
"type": "address"
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
1282
|
-
name:
|
|
1283
|
-
type:
|
|
1284
|
-
}
|
|
1285
|
-
]
|
|
1282
|
+
"name": "targetRepayAmount",
|
|
1283
|
+
"type": "uint256"
|
|
1284
|
+
}
|
|
1285
|
+
]
|
|
1286
1286
|
},
|
|
1287
1287
|
{
|
|
1288
|
-
name:
|
|
1289
|
-
type:
|
|
1290
|
-
components: [
|
|
1288
|
+
"name": "_removeCollateral",
|
|
1289
|
+
"type": "tuple[]",
|
|
1290
|
+
"components": [
|
|
1291
1291
|
{
|
|
1292
|
-
name:
|
|
1293
|
-
type:
|
|
1292
|
+
"name": "positionType",
|
|
1293
|
+
"type": "uint8"
|
|
1294
1294
|
},
|
|
1295
1295
|
{
|
|
1296
|
-
name:
|
|
1297
|
-
type:
|
|
1298
|
-
}
|
|
1299
|
-
]
|
|
1296
|
+
"name": "amount",
|
|
1297
|
+
"type": "uint256"
|
|
1298
|
+
}
|
|
1299
|
+
]
|
|
1300
1300
|
},
|
|
1301
1301
|
{
|
|
1302
|
-
name:
|
|
1303
|
-
type:
|
|
1304
|
-
components: [
|
|
1302
|
+
"name": "_withdrawPositions",
|
|
1303
|
+
"type": "tuple[]",
|
|
1304
|
+
"components": [
|
|
1305
1305
|
{
|
|
1306
|
-
name:
|
|
1307
|
-
type:
|
|
1306
|
+
"name": "positionType",
|
|
1307
|
+
"type": "uint8"
|
|
1308
1308
|
},
|
|
1309
1309
|
{
|
|
1310
|
-
name:
|
|
1311
|
-
type:
|
|
1312
|
-
}
|
|
1313
|
-
]
|
|
1314
|
-
}
|
|
1310
|
+
"name": "amount",
|
|
1311
|
+
"type": "uint256"
|
|
1312
|
+
}
|
|
1313
|
+
]
|
|
1314
|
+
}
|
|
1315
1315
|
],
|
|
1316
|
-
outputs: []
|
|
1316
|
+
"outputs": []
|
|
1317
1317
|
},
|
|
1318
1318
|
{
|
|
1319
|
-
stateMutability:
|
|
1320
|
-
type:
|
|
1321
|
-
name:
|
|
1322
|
-
inputs: [
|
|
1319
|
+
"stateMutability": "nonpayable",
|
|
1320
|
+
"type": "function",
|
|
1321
|
+
"name": "deleverage",
|
|
1322
|
+
"inputs": [
|
|
1323
1323
|
{
|
|
1324
|
-
name:
|
|
1325
|
-
type:
|
|
1324
|
+
"name": "_levgWallet",
|
|
1325
|
+
"type": "address"
|
|
1326
1326
|
},
|
|
1327
1327
|
{
|
|
1328
|
-
name:
|
|
1329
|
-
type:
|
|
1328
|
+
"name": "_mode",
|
|
1329
|
+
"type": "uint8"
|
|
1330
1330
|
},
|
|
1331
1331
|
{
|
|
1332
|
-
name:
|
|
1333
|
-
type:
|
|
1332
|
+
"name": "_autoDeleverageAmount",
|
|
1333
|
+
"type": "uint256"
|
|
1334
1334
|
},
|
|
1335
1335
|
{
|
|
1336
|
-
name:
|
|
1337
|
-
type:
|
|
1338
|
-
components: [
|
|
1336
|
+
"name": "_deleverageAssets",
|
|
1337
|
+
"type": "tuple[]",
|
|
1338
|
+
"components": [
|
|
1339
1339
|
{
|
|
1340
|
-
name:
|
|
1341
|
-
type:
|
|
1340
|
+
"name": "vaultId",
|
|
1341
|
+
"type": "uint256"
|
|
1342
1342
|
},
|
|
1343
1343
|
{
|
|
1344
|
-
name:
|
|
1345
|
-
type:
|
|
1344
|
+
"name": "asset",
|
|
1345
|
+
"type": "address"
|
|
1346
1346
|
},
|
|
1347
1347
|
{
|
|
1348
|
-
name:
|
|
1349
|
-
type:
|
|
1350
|
-
}
|
|
1351
|
-
]
|
|
1348
|
+
"name": "targetRepayAmount",
|
|
1349
|
+
"type": "uint256"
|
|
1350
|
+
}
|
|
1351
|
+
]
|
|
1352
1352
|
},
|
|
1353
1353
|
{
|
|
1354
|
-
name:
|
|
1355
|
-
type:
|
|
1356
|
-
components: [
|
|
1354
|
+
"name": "_removeCollateral",
|
|
1355
|
+
"type": "tuple[]",
|
|
1356
|
+
"components": [
|
|
1357
1357
|
{
|
|
1358
|
-
name:
|
|
1359
|
-
type:
|
|
1358
|
+
"name": "positionType",
|
|
1359
|
+
"type": "uint8"
|
|
1360
1360
|
},
|
|
1361
1361
|
{
|
|
1362
|
-
name:
|
|
1363
|
-
type:
|
|
1364
|
-
}
|
|
1365
|
-
]
|
|
1362
|
+
"name": "amount",
|
|
1363
|
+
"type": "uint256"
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
1366
|
},
|
|
1367
1367
|
{
|
|
1368
|
-
name:
|
|
1369
|
-
type:
|
|
1370
|
-
components: [
|
|
1368
|
+
"name": "_withdrawPositions",
|
|
1369
|
+
"type": "tuple[]",
|
|
1370
|
+
"components": [
|
|
1371
1371
|
{
|
|
1372
|
-
name:
|
|
1373
|
-
type:
|
|
1372
|
+
"name": "positionType",
|
|
1373
|
+
"type": "uint8"
|
|
1374
1374
|
},
|
|
1375
1375
|
{
|
|
1376
|
-
name:
|
|
1377
|
-
type:
|
|
1378
|
-
}
|
|
1379
|
-
]
|
|
1376
|
+
"name": "amount",
|
|
1377
|
+
"type": "uint256"
|
|
1378
|
+
}
|
|
1379
|
+
]
|
|
1380
1380
|
},
|
|
1381
1381
|
{
|
|
1382
|
-
name:
|
|
1383
|
-
type:
|
|
1384
|
-
components: [
|
|
1382
|
+
"name": "_swapInstruction",
|
|
1383
|
+
"type": "tuple",
|
|
1384
|
+
"components": [
|
|
1385
1385
|
{
|
|
1386
|
-
name:
|
|
1387
|
-
type:
|
|
1386
|
+
"name": "legoId",
|
|
1387
|
+
"type": "uint256"
|
|
1388
1388
|
},
|
|
1389
1389
|
{
|
|
1390
|
-
name:
|
|
1391
|
-
type:
|
|
1390
|
+
"name": "amountIn",
|
|
1391
|
+
"type": "uint256"
|
|
1392
1392
|
},
|
|
1393
1393
|
{
|
|
1394
|
-
name:
|
|
1395
|
-
type:
|
|
1394
|
+
"name": "minAmountOut",
|
|
1395
|
+
"type": "uint256"
|
|
1396
1396
|
},
|
|
1397
1397
|
{
|
|
1398
|
-
name:
|
|
1399
|
-
type:
|
|
1398
|
+
"name": "tokenPath",
|
|
1399
|
+
"type": "address[]"
|
|
1400
1400
|
},
|
|
1401
1401
|
{
|
|
1402
|
-
name:
|
|
1403
|
-
type:
|
|
1404
|
-
}
|
|
1405
|
-
]
|
|
1406
|
-
}
|
|
1402
|
+
"name": "poolPath",
|
|
1403
|
+
"type": "address[]"
|
|
1404
|
+
}
|
|
1405
|
+
]
|
|
1406
|
+
}
|
|
1407
1407
|
],
|
|
1408
|
-
outputs: []
|
|
1408
|
+
"outputs": []
|
|
1409
1409
|
},
|
|
1410
1410
|
{
|
|
1411
|
-
stateMutability:
|
|
1412
|
-
type:
|
|
1413
|
-
name:
|
|
1414
|
-
inputs: [
|
|
1411
|
+
"stateMutability": "nonpayable",
|
|
1412
|
+
"type": "function",
|
|
1413
|
+
"name": "deleverage",
|
|
1414
|
+
"inputs": [
|
|
1415
1415
|
{
|
|
1416
|
-
name:
|
|
1417
|
-
type:
|
|
1416
|
+
"name": "_levgWallet",
|
|
1417
|
+
"type": "address"
|
|
1418
1418
|
},
|
|
1419
1419
|
{
|
|
1420
|
-
name:
|
|
1421
|
-
type:
|
|
1420
|
+
"name": "_mode",
|
|
1421
|
+
"type": "uint8"
|
|
1422
1422
|
},
|
|
1423
1423
|
{
|
|
1424
|
-
name:
|
|
1425
|
-
type:
|
|
1424
|
+
"name": "_autoDeleverageAmount",
|
|
1425
|
+
"type": "uint256"
|
|
1426
1426
|
},
|
|
1427
1427
|
{
|
|
1428
|
-
name:
|
|
1429
|
-
type:
|
|
1430
|
-
components: [
|
|
1428
|
+
"name": "_deleverageAssets",
|
|
1429
|
+
"type": "tuple[]",
|
|
1430
|
+
"components": [
|
|
1431
1431
|
{
|
|
1432
|
-
name:
|
|
1433
|
-
type:
|
|
1432
|
+
"name": "vaultId",
|
|
1433
|
+
"type": "uint256"
|
|
1434
1434
|
},
|
|
1435
1435
|
{
|
|
1436
|
-
name:
|
|
1437
|
-
type:
|
|
1436
|
+
"name": "asset",
|
|
1437
|
+
"type": "address"
|
|
1438
1438
|
},
|
|
1439
1439
|
{
|
|
1440
|
-
name:
|
|
1441
|
-
type:
|
|
1442
|
-
}
|
|
1443
|
-
]
|
|
1440
|
+
"name": "targetRepayAmount",
|
|
1441
|
+
"type": "uint256"
|
|
1442
|
+
}
|
|
1443
|
+
]
|
|
1444
1444
|
},
|
|
1445
1445
|
{
|
|
1446
|
-
name:
|
|
1447
|
-
type:
|
|
1448
|
-
components: [
|
|
1446
|
+
"name": "_removeCollateral",
|
|
1447
|
+
"type": "tuple[]",
|
|
1448
|
+
"components": [
|
|
1449
1449
|
{
|
|
1450
|
-
name:
|
|
1451
|
-
type:
|
|
1450
|
+
"name": "positionType",
|
|
1451
|
+
"type": "uint8"
|
|
1452
1452
|
},
|
|
1453
1453
|
{
|
|
1454
|
-
name:
|
|
1455
|
-
type:
|
|
1456
|
-
}
|
|
1457
|
-
]
|
|
1454
|
+
"name": "amount",
|
|
1455
|
+
"type": "uint256"
|
|
1456
|
+
}
|
|
1457
|
+
]
|
|
1458
1458
|
},
|
|
1459
1459
|
{
|
|
1460
|
-
name:
|
|
1461
|
-
type:
|
|
1462
|
-
components: [
|
|
1460
|
+
"name": "_withdrawPositions",
|
|
1461
|
+
"type": "tuple[]",
|
|
1462
|
+
"components": [
|
|
1463
1463
|
{
|
|
1464
|
-
name:
|
|
1465
|
-
type:
|
|
1464
|
+
"name": "positionType",
|
|
1465
|
+
"type": "uint8"
|
|
1466
1466
|
},
|
|
1467
1467
|
{
|
|
1468
|
-
name:
|
|
1469
|
-
type:
|
|
1470
|
-
}
|
|
1471
|
-
]
|
|
1468
|
+
"name": "amount",
|
|
1469
|
+
"type": "uint256"
|
|
1470
|
+
}
|
|
1471
|
+
]
|
|
1472
1472
|
},
|
|
1473
1473
|
{
|
|
1474
|
-
name:
|
|
1475
|
-
type:
|
|
1476
|
-
components: [
|
|
1474
|
+
"name": "_swapInstruction",
|
|
1475
|
+
"type": "tuple",
|
|
1476
|
+
"components": [
|
|
1477
1477
|
{
|
|
1478
|
-
name:
|
|
1479
|
-
type:
|
|
1478
|
+
"name": "legoId",
|
|
1479
|
+
"type": "uint256"
|
|
1480
1480
|
},
|
|
1481
1481
|
{
|
|
1482
|
-
name:
|
|
1483
|
-
type:
|
|
1482
|
+
"name": "amountIn",
|
|
1483
|
+
"type": "uint256"
|
|
1484
1484
|
},
|
|
1485
1485
|
{
|
|
1486
|
-
name:
|
|
1487
|
-
type:
|
|
1486
|
+
"name": "minAmountOut",
|
|
1487
|
+
"type": "uint256"
|
|
1488
1488
|
},
|
|
1489
1489
|
{
|
|
1490
|
-
name:
|
|
1491
|
-
type:
|
|
1490
|
+
"name": "tokenPath",
|
|
1491
|
+
"type": "address[]"
|
|
1492
1492
|
},
|
|
1493
1493
|
{
|
|
1494
|
-
name:
|
|
1495
|
-
type:
|
|
1496
|
-
}
|
|
1497
|
-
]
|
|
1494
|
+
"name": "poolPath",
|
|
1495
|
+
"type": "address[]"
|
|
1496
|
+
}
|
|
1497
|
+
]
|
|
1498
1498
|
},
|
|
1499
1499
|
{
|
|
1500
|
-
name:
|
|
1501
|
-
type:
|
|
1502
|
-
}
|
|
1500
|
+
"name": "_repayAsset",
|
|
1501
|
+
"type": "address"
|
|
1502
|
+
}
|
|
1503
1503
|
],
|
|
1504
|
-
outputs: []
|
|
1504
|
+
"outputs": []
|
|
1505
1505
|
},
|
|
1506
1506
|
{
|
|
1507
|
-
stateMutability:
|
|
1508
|
-
type:
|
|
1509
|
-
name:
|
|
1510
|
-
inputs: [
|
|
1507
|
+
"stateMutability": "nonpayable",
|
|
1508
|
+
"type": "function",
|
|
1509
|
+
"name": "deleverage",
|
|
1510
|
+
"inputs": [
|
|
1511
1511
|
{
|
|
1512
|
-
name:
|
|
1513
|
-
type:
|
|
1512
|
+
"name": "_levgWallet",
|
|
1513
|
+
"type": "address"
|
|
1514
1514
|
},
|
|
1515
1515
|
{
|
|
1516
|
-
name:
|
|
1517
|
-
type:
|
|
1516
|
+
"name": "_mode",
|
|
1517
|
+
"type": "uint8"
|
|
1518
1518
|
},
|
|
1519
1519
|
{
|
|
1520
|
-
name:
|
|
1521
|
-
type:
|
|
1520
|
+
"name": "_autoDeleverageAmount",
|
|
1521
|
+
"type": "uint256"
|
|
1522
1522
|
},
|
|
1523
1523
|
{
|
|
1524
|
-
name:
|
|
1525
|
-
type:
|
|
1526
|
-
components: [
|
|
1524
|
+
"name": "_deleverageAssets",
|
|
1525
|
+
"type": "tuple[]",
|
|
1526
|
+
"components": [
|
|
1527
1527
|
{
|
|
1528
|
-
name:
|
|
1529
|
-
type:
|
|
1528
|
+
"name": "vaultId",
|
|
1529
|
+
"type": "uint256"
|
|
1530
1530
|
},
|
|
1531
1531
|
{
|
|
1532
|
-
name:
|
|
1533
|
-
type:
|
|
1532
|
+
"name": "asset",
|
|
1533
|
+
"type": "address"
|
|
1534
1534
|
},
|
|
1535
1535
|
{
|
|
1536
|
-
name:
|
|
1537
|
-
type:
|
|
1538
|
-
}
|
|
1539
|
-
]
|
|
1536
|
+
"name": "targetRepayAmount",
|
|
1537
|
+
"type": "uint256"
|
|
1538
|
+
}
|
|
1539
|
+
]
|
|
1540
1540
|
},
|
|
1541
1541
|
{
|
|
1542
|
-
name:
|
|
1543
|
-
type:
|
|
1544
|
-
components: [
|
|
1542
|
+
"name": "_removeCollateral",
|
|
1543
|
+
"type": "tuple[]",
|
|
1544
|
+
"components": [
|
|
1545
1545
|
{
|
|
1546
|
-
name:
|
|
1547
|
-
type:
|
|
1546
|
+
"name": "positionType",
|
|
1547
|
+
"type": "uint8"
|
|
1548
1548
|
},
|
|
1549
1549
|
{
|
|
1550
|
-
name:
|
|
1551
|
-
type:
|
|
1552
|
-
}
|
|
1553
|
-
]
|
|
1550
|
+
"name": "amount",
|
|
1551
|
+
"type": "uint256"
|
|
1552
|
+
}
|
|
1553
|
+
]
|
|
1554
1554
|
},
|
|
1555
1555
|
{
|
|
1556
|
-
name:
|
|
1557
|
-
type:
|
|
1558
|
-
components: [
|
|
1556
|
+
"name": "_withdrawPositions",
|
|
1557
|
+
"type": "tuple[]",
|
|
1558
|
+
"components": [
|
|
1559
1559
|
{
|
|
1560
|
-
name:
|
|
1561
|
-
type:
|
|
1560
|
+
"name": "positionType",
|
|
1561
|
+
"type": "uint8"
|
|
1562
1562
|
},
|
|
1563
1563
|
{
|
|
1564
|
-
name:
|
|
1565
|
-
type:
|
|
1566
|
-
}
|
|
1567
|
-
]
|
|
1564
|
+
"name": "amount",
|
|
1565
|
+
"type": "uint256"
|
|
1566
|
+
}
|
|
1567
|
+
]
|
|
1568
1568
|
},
|
|
1569
1569
|
{
|
|
1570
|
-
name:
|
|
1571
|
-
type:
|
|
1572
|
-
components: [
|
|
1570
|
+
"name": "_swapInstruction",
|
|
1571
|
+
"type": "tuple",
|
|
1572
|
+
"components": [
|
|
1573
1573
|
{
|
|
1574
|
-
name:
|
|
1575
|
-
type:
|
|
1574
|
+
"name": "legoId",
|
|
1575
|
+
"type": "uint256"
|
|
1576
1576
|
},
|
|
1577
1577
|
{
|
|
1578
|
-
name:
|
|
1579
|
-
type:
|
|
1578
|
+
"name": "amountIn",
|
|
1579
|
+
"type": "uint256"
|
|
1580
1580
|
},
|
|
1581
1581
|
{
|
|
1582
|
-
name:
|
|
1583
|
-
type:
|
|
1582
|
+
"name": "minAmountOut",
|
|
1583
|
+
"type": "uint256"
|
|
1584
1584
|
},
|
|
1585
1585
|
{
|
|
1586
|
-
name:
|
|
1587
|
-
type:
|
|
1586
|
+
"name": "tokenPath",
|
|
1587
|
+
"type": "address[]"
|
|
1588
1588
|
},
|
|
1589
1589
|
{
|
|
1590
|
-
name:
|
|
1591
|
-
type:
|
|
1592
|
-
}
|
|
1593
|
-
]
|
|
1590
|
+
"name": "poolPath",
|
|
1591
|
+
"type": "address[]"
|
|
1592
|
+
}
|
|
1593
|
+
]
|
|
1594
1594
|
},
|
|
1595
1595
|
{
|
|
1596
|
-
name:
|
|
1597
|
-
type:
|
|
1596
|
+
"name": "_repayAsset",
|
|
1597
|
+
"type": "address"
|
|
1598
1598
|
},
|
|
1599
1599
|
{
|
|
1600
|
-
name:
|
|
1601
|
-
type:
|
|
1602
|
-
}
|
|
1600
|
+
"name": "_repayAmount",
|
|
1601
|
+
"type": "uint256"
|
|
1602
|
+
}
|
|
1603
1603
|
],
|
|
1604
|
-
outputs: []
|
|
1604
|
+
"outputs": []
|
|
1605
1605
|
},
|
|
1606
1606
|
{
|
|
1607
|
-
stateMutability:
|
|
1608
|
-
type:
|
|
1609
|
-
name:
|
|
1610
|
-
inputs: [
|
|
1607
|
+
"stateMutability": "nonpayable",
|
|
1608
|
+
"type": "function",
|
|
1609
|
+
"name": "deleverage",
|
|
1610
|
+
"inputs": [
|
|
1611
1611
|
{
|
|
1612
|
-
name:
|
|
1613
|
-
type:
|
|
1612
|
+
"name": "_levgWallet",
|
|
1613
|
+
"type": "address"
|
|
1614
1614
|
},
|
|
1615
1615
|
{
|
|
1616
|
-
name:
|
|
1617
|
-
type:
|
|
1616
|
+
"name": "_mode",
|
|
1617
|
+
"type": "uint8"
|
|
1618
1618
|
},
|
|
1619
1619
|
{
|
|
1620
|
-
name:
|
|
1621
|
-
type:
|
|
1620
|
+
"name": "_autoDeleverageAmount",
|
|
1621
|
+
"type": "uint256"
|
|
1622
1622
|
},
|
|
1623
1623
|
{
|
|
1624
|
-
name:
|
|
1625
|
-
type:
|
|
1626
|
-
components: [
|
|
1624
|
+
"name": "_deleverageAssets",
|
|
1625
|
+
"type": "tuple[]",
|
|
1626
|
+
"components": [
|
|
1627
1627
|
{
|
|
1628
|
-
name:
|
|
1629
|
-
type:
|
|
1628
|
+
"name": "vaultId",
|
|
1629
|
+
"type": "uint256"
|
|
1630
1630
|
},
|
|
1631
1631
|
{
|
|
1632
|
-
name:
|
|
1633
|
-
type:
|
|
1632
|
+
"name": "asset",
|
|
1633
|
+
"type": "address"
|
|
1634
1634
|
},
|
|
1635
1635
|
{
|
|
1636
|
-
name:
|
|
1637
|
-
type:
|
|
1638
|
-
}
|
|
1639
|
-
]
|
|
1636
|
+
"name": "targetRepayAmount",
|
|
1637
|
+
"type": "uint256"
|
|
1638
|
+
}
|
|
1639
|
+
]
|
|
1640
1640
|
},
|
|
1641
1641
|
{
|
|
1642
|
-
name:
|
|
1643
|
-
type:
|
|
1644
|
-
components: [
|
|
1642
|
+
"name": "_removeCollateral",
|
|
1643
|
+
"type": "tuple[]",
|
|
1644
|
+
"components": [
|
|
1645
1645
|
{
|
|
1646
|
-
name:
|
|
1647
|
-
type:
|
|
1646
|
+
"name": "positionType",
|
|
1647
|
+
"type": "uint8"
|
|
1648
1648
|
},
|
|
1649
1649
|
{
|
|
1650
|
-
name:
|
|
1651
|
-
type:
|
|
1652
|
-
}
|
|
1653
|
-
]
|
|
1650
|
+
"name": "amount",
|
|
1651
|
+
"type": "uint256"
|
|
1652
|
+
}
|
|
1653
|
+
]
|
|
1654
1654
|
},
|
|
1655
1655
|
{
|
|
1656
|
-
name:
|
|
1657
|
-
type:
|
|
1658
|
-
components: [
|
|
1656
|
+
"name": "_withdrawPositions",
|
|
1657
|
+
"type": "tuple[]",
|
|
1658
|
+
"components": [
|
|
1659
1659
|
{
|
|
1660
|
-
name:
|
|
1661
|
-
type:
|
|
1660
|
+
"name": "positionType",
|
|
1661
|
+
"type": "uint8"
|
|
1662
1662
|
},
|
|
1663
1663
|
{
|
|
1664
|
-
name:
|
|
1665
|
-
type:
|
|
1666
|
-
}
|
|
1667
|
-
]
|
|
1664
|
+
"name": "amount",
|
|
1665
|
+
"type": "uint256"
|
|
1666
|
+
}
|
|
1667
|
+
]
|
|
1668
1668
|
},
|
|
1669
1669
|
{
|
|
1670
|
-
name:
|
|
1671
|
-
type:
|
|
1672
|
-
components: [
|
|
1670
|
+
"name": "_swapInstruction",
|
|
1671
|
+
"type": "tuple",
|
|
1672
|
+
"components": [
|
|
1673
1673
|
{
|
|
1674
|
-
name:
|
|
1675
|
-
type:
|
|
1674
|
+
"name": "legoId",
|
|
1675
|
+
"type": "uint256"
|
|
1676
1676
|
},
|
|
1677
1677
|
{
|
|
1678
|
-
name:
|
|
1679
|
-
type:
|
|
1678
|
+
"name": "amountIn",
|
|
1679
|
+
"type": "uint256"
|
|
1680
1680
|
},
|
|
1681
1681
|
{
|
|
1682
|
-
name:
|
|
1683
|
-
type:
|
|
1682
|
+
"name": "minAmountOut",
|
|
1683
|
+
"type": "uint256"
|
|
1684
1684
|
},
|
|
1685
1685
|
{
|
|
1686
|
-
name:
|
|
1687
|
-
type:
|
|
1686
|
+
"name": "tokenPath",
|
|
1687
|
+
"type": "address[]"
|
|
1688
1688
|
},
|
|
1689
1689
|
{
|
|
1690
|
-
name:
|
|
1691
|
-
type:
|
|
1692
|
-
}
|
|
1693
|
-
]
|
|
1690
|
+
"name": "poolPath",
|
|
1691
|
+
"type": "address[]"
|
|
1692
|
+
}
|
|
1693
|
+
]
|
|
1694
1694
|
},
|
|
1695
1695
|
{
|
|
1696
|
-
name:
|
|
1697
|
-
type:
|
|
1696
|
+
"name": "_repayAsset",
|
|
1697
|
+
"type": "address"
|
|
1698
1698
|
},
|
|
1699
1699
|
{
|
|
1700
|
-
name:
|
|
1701
|
-
type:
|
|
1700
|
+
"name": "_repayAmount",
|
|
1701
|
+
"type": "uint256"
|
|
1702
1702
|
},
|
|
1703
1703
|
{
|
|
1704
|
-
name:
|
|
1705
|
-
type:
|
|
1706
|
-
}
|
|
1704
|
+
"name": "_shouldSweepAllForRepay",
|
|
1705
|
+
"type": "bool"
|
|
1706
|
+
}
|
|
1707
1707
|
],
|
|
1708
|
-
outputs: []
|
|
1708
|
+
"outputs": []
|
|
1709
1709
|
},
|
|
1710
1710
|
{
|
|
1711
|
-
stateMutability:
|
|
1712
|
-
type:
|
|
1713
|
-
name:
|
|
1714
|
-
inputs: [
|
|
1711
|
+
"stateMutability": "nonpayable",
|
|
1712
|
+
"type": "function",
|
|
1713
|
+
"name": "deleverage",
|
|
1714
|
+
"inputs": [
|
|
1715
1715
|
{
|
|
1716
|
-
name:
|
|
1717
|
-
type:
|
|
1716
|
+
"name": "_levgWallet",
|
|
1717
|
+
"type": "address"
|
|
1718
1718
|
},
|
|
1719
1719
|
{
|
|
1720
|
-
name:
|
|
1721
|
-
type:
|
|
1720
|
+
"name": "_mode",
|
|
1721
|
+
"type": "uint8"
|
|
1722
1722
|
},
|
|
1723
1723
|
{
|
|
1724
|
-
name:
|
|
1725
|
-
type:
|
|
1724
|
+
"name": "_autoDeleverageAmount",
|
|
1725
|
+
"type": "uint256"
|
|
1726
1726
|
},
|
|
1727
1727
|
{
|
|
1728
|
-
name:
|
|
1729
|
-
type:
|
|
1730
|
-
components: [
|
|
1728
|
+
"name": "_deleverageAssets",
|
|
1729
|
+
"type": "tuple[]",
|
|
1730
|
+
"components": [
|
|
1731
1731
|
{
|
|
1732
|
-
name:
|
|
1733
|
-
type:
|
|
1732
|
+
"name": "vaultId",
|
|
1733
|
+
"type": "uint256"
|
|
1734
1734
|
},
|
|
1735
1735
|
{
|
|
1736
|
-
name:
|
|
1737
|
-
type:
|
|
1736
|
+
"name": "asset",
|
|
1737
|
+
"type": "address"
|
|
1738
1738
|
},
|
|
1739
1739
|
{
|
|
1740
|
-
name:
|
|
1741
|
-
type:
|
|
1742
|
-
}
|
|
1743
|
-
]
|
|
1740
|
+
"name": "targetRepayAmount",
|
|
1741
|
+
"type": "uint256"
|
|
1742
|
+
}
|
|
1743
|
+
]
|
|
1744
1744
|
},
|
|
1745
1745
|
{
|
|
1746
|
-
name:
|
|
1747
|
-
type:
|
|
1748
|
-
components: [
|
|
1746
|
+
"name": "_removeCollateral",
|
|
1747
|
+
"type": "tuple[]",
|
|
1748
|
+
"components": [
|
|
1749
1749
|
{
|
|
1750
|
-
name:
|
|
1751
|
-
type:
|
|
1750
|
+
"name": "positionType",
|
|
1751
|
+
"type": "uint8"
|
|
1752
1752
|
},
|
|
1753
1753
|
{
|
|
1754
|
-
name:
|
|
1755
|
-
type:
|
|
1756
|
-
}
|
|
1757
|
-
]
|
|
1754
|
+
"name": "amount",
|
|
1755
|
+
"type": "uint256"
|
|
1756
|
+
}
|
|
1757
|
+
]
|
|
1758
1758
|
},
|
|
1759
1759
|
{
|
|
1760
|
-
name:
|
|
1761
|
-
type:
|
|
1762
|
-
components: [
|
|
1760
|
+
"name": "_withdrawPositions",
|
|
1761
|
+
"type": "tuple[]",
|
|
1762
|
+
"components": [
|
|
1763
1763
|
{
|
|
1764
|
-
name:
|
|
1765
|
-
type:
|
|
1764
|
+
"name": "positionType",
|
|
1765
|
+
"type": "uint8"
|
|
1766
1766
|
},
|
|
1767
1767
|
{
|
|
1768
|
-
name:
|
|
1769
|
-
type:
|
|
1770
|
-
}
|
|
1771
|
-
]
|
|
1768
|
+
"name": "amount",
|
|
1769
|
+
"type": "uint256"
|
|
1770
|
+
}
|
|
1771
|
+
]
|
|
1772
1772
|
},
|
|
1773
1773
|
{
|
|
1774
|
-
name:
|
|
1775
|
-
type:
|
|
1776
|
-
components: [
|
|
1774
|
+
"name": "_swapInstruction",
|
|
1775
|
+
"type": "tuple",
|
|
1776
|
+
"components": [
|
|
1777
1777
|
{
|
|
1778
|
-
name:
|
|
1779
|
-
type:
|
|
1778
|
+
"name": "legoId",
|
|
1779
|
+
"type": "uint256"
|
|
1780
1780
|
},
|
|
1781
1781
|
{
|
|
1782
|
-
name:
|
|
1783
|
-
type:
|
|
1782
|
+
"name": "amountIn",
|
|
1783
|
+
"type": "uint256"
|
|
1784
1784
|
},
|
|
1785
1785
|
{
|
|
1786
|
-
name:
|
|
1787
|
-
type:
|
|
1786
|
+
"name": "minAmountOut",
|
|
1787
|
+
"type": "uint256"
|
|
1788
1788
|
},
|
|
1789
1789
|
{
|
|
1790
|
-
name:
|
|
1791
|
-
type:
|
|
1790
|
+
"name": "tokenPath",
|
|
1791
|
+
"type": "address[]"
|
|
1792
1792
|
},
|
|
1793
1793
|
{
|
|
1794
|
-
name:
|
|
1795
|
-
type:
|
|
1796
|
-
}
|
|
1797
|
-
]
|
|
1794
|
+
"name": "poolPath",
|
|
1795
|
+
"type": "address[]"
|
|
1796
|
+
}
|
|
1797
|
+
]
|
|
1798
1798
|
},
|
|
1799
1799
|
{
|
|
1800
|
-
name:
|
|
1801
|
-
type:
|
|
1800
|
+
"name": "_repayAsset",
|
|
1801
|
+
"type": "address"
|
|
1802
1802
|
},
|
|
1803
1803
|
{
|
|
1804
|
-
name:
|
|
1805
|
-
type:
|
|
1804
|
+
"name": "_repayAmount",
|
|
1805
|
+
"type": "uint256"
|
|
1806
1806
|
},
|
|
1807
1807
|
{
|
|
1808
|
-
name:
|
|
1809
|
-
type:
|
|
1808
|
+
"name": "_shouldSweepAllForRepay",
|
|
1809
|
+
"type": "bool"
|
|
1810
1810
|
},
|
|
1811
1811
|
{
|
|
1812
|
-
name:
|
|
1813
|
-
type:
|
|
1814
|
-
components: [
|
|
1812
|
+
"name": "_sig",
|
|
1813
|
+
"type": "tuple",
|
|
1814
|
+
"components": [
|
|
1815
1815
|
{
|
|
1816
|
-
name:
|
|
1817
|
-
type:
|
|
1816
|
+
"name": "signature",
|
|
1817
|
+
"type": "bytes"
|
|
1818
1818
|
},
|
|
1819
1819
|
{
|
|
1820
|
-
name:
|
|
1821
|
-
type:
|
|
1820
|
+
"name": "nonce",
|
|
1821
|
+
"type": "uint256"
|
|
1822
1822
|
},
|
|
1823
1823
|
{
|
|
1824
|
-
name:
|
|
1825
|
-
type:
|
|
1826
|
-
}
|
|
1827
|
-
]
|
|
1828
|
-
}
|
|
1824
|
+
"name": "expiration",
|
|
1825
|
+
"type": "uint256"
|
|
1826
|
+
}
|
|
1827
|
+
]
|
|
1828
|
+
}
|
|
1829
1829
|
],
|
|
1830
|
-
outputs: []
|
|
1830
|
+
"outputs": []
|
|
1831
1831
|
},
|
|
1832
1832
|
{
|
|
1833
|
-
stateMutability:
|
|
1834
|
-
type:
|
|
1835
|
-
name:
|
|
1836
|
-
inputs: [
|
|
1837
|
-
{
|
|
1838
|
-
name:
|
|
1839
|
-
type:
|
|
1840
|
-
}
|
|
1833
|
+
"stateMutability": "nonpayable",
|
|
1834
|
+
"type": "function",
|
|
1835
|
+
"name": "compoundYieldGains",
|
|
1836
|
+
"inputs": [
|
|
1837
|
+
{
|
|
1838
|
+
"name": "_levgWallet",
|
|
1839
|
+
"type": "address"
|
|
1840
|
+
}
|
|
1841
1841
|
],
|
|
1842
|
-
outputs: []
|
|
1842
|
+
"outputs": []
|
|
1843
1843
|
},
|
|
1844
1844
|
{
|
|
1845
|
-
stateMutability:
|
|
1846
|
-
type:
|
|
1847
|
-
name:
|
|
1848
|
-
inputs: [
|
|
1845
|
+
"stateMutability": "nonpayable",
|
|
1846
|
+
"type": "function",
|
|
1847
|
+
"name": "compoundYieldGains",
|
|
1848
|
+
"inputs": [
|
|
1849
1849
|
{
|
|
1850
|
-
name:
|
|
1851
|
-
type:
|
|
1850
|
+
"name": "_levgWallet",
|
|
1851
|
+
"type": "address"
|
|
1852
1852
|
},
|
|
1853
1853
|
{
|
|
1854
|
-
name:
|
|
1855
|
-
type:
|
|
1856
|
-
components: [
|
|
1854
|
+
"name": "_removeCollateral",
|
|
1855
|
+
"type": "tuple[]",
|
|
1856
|
+
"components": [
|
|
1857
1857
|
{
|
|
1858
|
-
name:
|
|
1859
|
-
type:
|
|
1858
|
+
"name": "positionType",
|
|
1859
|
+
"type": "uint8"
|
|
1860
1860
|
},
|
|
1861
1861
|
{
|
|
1862
|
-
name:
|
|
1863
|
-
type:
|
|
1864
|
-
}
|
|
1865
|
-
]
|
|
1866
|
-
}
|
|
1862
|
+
"name": "amount",
|
|
1863
|
+
"type": "uint256"
|
|
1864
|
+
}
|
|
1865
|
+
]
|
|
1866
|
+
}
|
|
1867
1867
|
],
|
|
1868
|
-
outputs: []
|
|
1868
|
+
"outputs": []
|
|
1869
1869
|
},
|
|
1870
1870
|
{
|
|
1871
|
-
stateMutability:
|
|
1872
|
-
type:
|
|
1873
|
-
name:
|
|
1874
|
-
inputs: [
|
|
1871
|
+
"stateMutability": "nonpayable",
|
|
1872
|
+
"type": "function",
|
|
1873
|
+
"name": "compoundYieldGains",
|
|
1874
|
+
"inputs": [
|
|
1875
1875
|
{
|
|
1876
|
-
name:
|
|
1877
|
-
type:
|
|
1876
|
+
"name": "_levgWallet",
|
|
1877
|
+
"type": "address"
|
|
1878
1878
|
},
|
|
1879
1879
|
{
|
|
1880
|
-
name:
|
|
1881
|
-
type:
|
|
1882
|
-
components: [
|
|
1880
|
+
"name": "_removeCollateral",
|
|
1881
|
+
"type": "tuple[]",
|
|
1882
|
+
"components": [
|
|
1883
1883
|
{
|
|
1884
|
-
name:
|
|
1885
|
-
type:
|
|
1884
|
+
"name": "positionType",
|
|
1885
|
+
"type": "uint8"
|
|
1886
1886
|
},
|
|
1887
1887
|
{
|
|
1888
|
-
name:
|
|
1889
|
-
type:
|
|
1890
|
-
}
|
|
1891
|
-
]
|
|
1888
|
+
"name": "amount",
|
|
1889
|
+
"type": "uint256"
|
|
1890
|
+
}
|
|
1891
|
+
]
|
|
1892
1892
|
},
|
|
1893
1893
|
{
|
|
1894
|
-
name:
|
|
1895
|
-
type:
|
|
1896
|
-
components: [
|
|
1894
|
+
"name": "_withdrawPositions",
|
|
1895
|
+
"type": "tuple[]",
|
|
1896
|
+
"components": [
|
|
1897
1897
|
{
|
|
1898
|
-
name:
|
|
1899
|
-
type:
|
|
1898
|
+
"name": "positionType",
|
|
1899
|
+
"type": "uint8"
|
|
1900
1900
|
},
|
|
1901
1901
|
{
|
|
1902
|
-
name:
|
|
1903
|
-
type:
|
|
1904
|
-
}
|
|
1905
|
-
]
|
|
1906
|
-
}
|
|
1902
|
+
"name": "amount",
|
|
1903
|
+
"type": "uint256"
|
|
1904
|
+
}
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
1907
|
],
|
|
1908
|
-
outputs: []
|
|
1908
|
+
"outputs": []
|
|
1909
1909
|
},
|
|
1910
1910
|
{
|
|
1911
|
-
stateMutability:
|
|
1912
|
-
type:
|
|
1913
|
-
name:
|
|
1914
|
-
inputs: [
|
|
1911
|
+
"stateMutability": "nonpayable",
|
|
1912
|
+
"type": "function",
|
|
1913
|
+
"name": "compoundYieldGains",
|
|
1914
|
+
"inputs": [
|
|
1915
1915
|
{
|
|
1916
|
-
name:
|
|
1917
|
-
type:
|
|
1916
|
+
"name": "_levgWallet",
|
|
1917
|
+
"type": "address"
|
|
1918
1918
|
},
|
|
1919
1919
|
{
|
|
1920
|
-
name:
|
|
1921
|
-
type:
|
|
1922
|
-
components: [
|
|
1920
|
+
"name": "_removeCollateral",
|
|
1921
|
+
"type": "tuple[]",
|
|
1922
|
+
"components": [
|
|
1923
1923
|
{
|
|
1924
|
-
name:
|
|
1925
|
-
type:
|
|
1924
|
+
"name": "positionType",
|
|
1925
|
+
"type": "uint8"
|
|
1926
1926
|
},
|
|
1927
1927
|
{
|
|
1928
|
-
name:
|
|
1929
|
-
type:
|
|
1930
|
-
}
|
|
1931
|
-
]
|
|
1928
|
+
"name": "amount",
|
|
1929
|
+
"type": "uint256"
|
|
1930
|
+
}
|
|
1931
|
+
]
|
|
1932
1932
|
},
|
|
1933
1933
|
{
|
|
1934
|
-
name:
|
|
1935
|
-
type:
|
|
1936
|
-
components: [
|
|
1934
|
+
"name": "_withdrawPositions",
|
|
1935
|
+
"type": "tuple[]",
|
|
1936
|
+
"components": [
|
|
1937
1937
|
{
|
|
1938
|
-
name:
|
|
1939
|
-
type:
|
|
1938
|
+
"name": "positionType",
|
|
1939
|
+
"type": "uint8"
|
|
1940
1940
|
},
|
|
1941
1941
|
{
|
|
1942
|
-
name:
|
|
1943
|
-
type:
|
|
1944
|
-
}
|
|
1945
|
-
]
|
|
1942
|
+
"name": "amount",
|
|
1943
|
+
"type": "uint256"
|
|
1944
|
+
}
|
|
1945
|
+
]
|
|
1946
1946
|
},
|
|
1947
1947
|
{
|
|
1948
|
-
name:
|
|
1949
|
-
type:
|
|
1950
|
-
components: [
|
|
1948
|
+
"name": "_swapInstruction",
|
|
1949
|
+
"type": "tuple",
|
|
1950
|
+
"components": [
|
|
1951
1951
|
{
|
|
1952
|
-
name:
|
|
1953
|
-
type:
|
|
1952
|
+
"name": "legoId",
|
|
1953
|
+
"type": "uint256"
|
|
1954
1954
|
},
|
|
1955
1955
|
{
|
|
1956
|
-
name:
|
|
1957
|
-
type:
|
|
1956
|
+
"name": "amountIn",
|
|
1957
|
+
"type": "uint256"
|
|
1958
1958
|
},
|
|
1959
1959
|
{
|
|
1960
|
-
name:
|
|
1961
|
-
type:
|
|
1960
|
+
"name": "minAmountOut",
|
|
1961
|
+
"type": "uint256"
|
|
1962
1962
|
},
|
|
1963
1963
|
{
|
|
1964
|
-
name:
|
|
1965
|
-
type:
|
|
1964
|
+
"name": "tokenPath",
|
|
1965
|
+
"type": "address[]"
|
|
1966
1966
|
},
|
|
1967
1967
|
{
|
|
1968
|
-
name:
|
|
1969
|
-
type:
|
|
1970
|
-
}
|
|
1971
|
-
]
|
|
1972
|
-
}
|
|
1968
|
+
"name": "poolPath",
|
|
1969
|
+
"type": "address[]"
|
|
1970
|
+
}
|
|
1971
|
+
]
|
|
1972
|
+
}
|
|
1973
1973
|
],
|
|
1974
|
-
outputs: []
|
|
1974
|
+
"outputs": []
|
|
1975
1975
|
},
|
|
1976
1976
|
{
|
|
1977
|
-
stateMutability:
|
|
1978
|
-
type:
|
|
1979
|
-
name:
|
|
1980
|
-
inputs: [
|
|
1977
|
+
"stateMutability": "nonpayable",
|
|
1978
|
+
"type": "function",
|
|
1979
|
+
"name": "compoundYieldGains",
|
|
1980
|
+
"inputs": [
|
|
1981
1981
|
{
|
|
1982
|
-
name:
|
|
1983
|
-
type:
|
|
1982
|
+
"name": "_levgWallet",
|
|
1983
|
+
"type": "address"
|
|
1984
1984
|
},
|
|
1985
1985
|
{
|
|
1986
|
-
name:
|
|
1987
|
-
type:
|
|
1988
|
-
components: [
|
|
1986
|
+
"name": "_removeCollateral",
|
|
1987
|
+
"type": "tuple[]",
|
|
1988
|
+
"components": [
|
|
1989
1989
|
{
|
|
1990
|
-
name:
|
|
1991
|
-
type:
|
|
1990
|
+
"name": "positionType",
|
|
1991
|
+
"type": "uint8"
|
|
1992
1992
|
},
|
|
1993
1993
|
{
|
|
1994
|
-
name:
|
|
1995
|
-
type:
|
|
1996
|
-
}
|
|
1997
|
-
]
|
|
1994
|
+
"name": "amount",
|
|
1995
|
+
"type": "uint256"
|
|
1996
|
+
}
|
|
1997
|
+
]
|
|
1998
1998
|
},
|
|
1999
1999
|
{
|
|
2000
|
-
name:
|
|
2001
|
-
type:
|
|
2002
|
-
components: [
|
|
2000
|
+
"name": "_withdrawPositions",
|
|
2001
|
+
"type": "tuple[]",
|
|
2002
|
+
"components": [
|
|
2003
2003
|
{
|
|
2004
|
-
name:
|
|
2005
|
-
type:
|
|
2004
|
+
"name": "positionType",
|
|
2005
|
+
"type": "uint8"
|
|
2006
2006
|
},
|
|
2007
2007
|
{
|
|
2008
|
-
name:
|
|
2009
|
-
type:
|
|
2010
|
-
}
|
|
2011
|
-
]
|
|
2008
|
+
"name": "amount",
|
|
2009
|
+
"type": "uint256"
|
|
2010
|
+
}
|
|
2011
|
+
]
|
|
2012
2012
|
},
|
|
2013
2013
|
{
|
|
2014
|
-
name:
|
|
2015
|
-
type:
|
|
2016
|
-
components: [
|
|
2014
|
+
"name": "_swapInstruction",
|
|
2015
|
+
"type": "tuple",
|
|
2016
|
+
"components": [
|
|
2017
2017
|
{
|
|
2018
|
-
name:
|
|
2019
|
-
type:
|
|
2018
|
+
"name": "legoId",
|
|
2019
|
+
"type": "uint256"
|
|
2020
2020
|
},
|
|
2021
2021
|
{
|
|
2022
|
-
name:
|
|
2023
|
-
type:
|
|
2022
|
+
"name": "amountIn",
|
|
2023
|
+
"type": "uint256"
|
|
2024
2024
|
},
|
|
2025
2025
|
{
|
|
2026
|
-
name:
|
|
2027
|
-
type:
|
|
2026
|
+
"name": "minAmountOut",
|
|
2027
|
+
"type": "uint256"
|
|
2028
2028
|
},
|
|
2029
2029
|
{
|
|
2030
|
-
name:
|
|
2031
|
-
type:
|
|
2030
|
+
"name": "tokenPath",
|
|
2031
|
+
"type": "address[]"
|
|
2032
2032
|
},
|
|
2033
2033
|
{
|
|
2034
|
-
name:
|
|
2035
|
-
type:
|
|
2036
|
-
}
|
|
2037
|
-
]
|
|
2034
|
+
"name": "poolPath",
|
|
2035
|
+
"type": "address[]"
|
|
2036
|
+
}
|
|
2037
|
+
]
|
|
2038
2038
|
},
|
|
2039
2039
|
{
|
|
2040
|
-
name:
|
|
2041
|
-
type:
|
|
2042
|
-
components: [
|
|
2040
|
+
"name": "_postSwapDeposits",
|
|
2041
|
+
"type": "tuple[]",
|
|
2042
|
+
"components": [
|
|
2043
2043
|
{
|
|
2044
|
-
name:
|
|
2045
|
-
type:
|
|
2044
|
+
"name": "positionType",
|
|
2045
|
+
"type": "uint8"
|
|
2046
2046
|
},
|
|
2047
2047
|
{
|
|
2048
|
-
name:
|
|
2049
|
-
type:
|
|
2048
|
+
"name": "amount",
|
|
2049
|
+
"type": "uint256"
|
|
2050
2050
|
},
|
|
2051
2051
|
{
|
|
2052
|
-
name:
|
|
2053
|
-
type:
|
|
2052
|
+
"name": "shouldAddToRipeCollateral",
|
|
2053
|
+
"type": "bool"
|
|
2054
2054
|
},
|
|
2055
2055
|
{
|
|
2056
|
-
name:
|
|
2057
|
-
type:
|
|
2058
|
-
}
|
|
2059
|
-
]
|
|
2060
|
-
}
|
|
2056
|
+
"name": "shouldSweepAll",
|
|
2057
|
+
"type": "bool"
|
|
2058
|
+
}
|
|
2059
|
+
]
|
|
2060
|
+
}
|
|
2061
2061
|
],
|
|
2062
|
-
outputs: []
|
|
2062
|
+
"outputs": []
|
|
2063
2063
|
},
|
|
2064
2064
|
{
|
|
2065
|
-
stateMutability:
|
|
2066
|
-
type:
|
|
2067
|
-
name:
|
|
2068
|
-
inputs: [
|
|
2065
|
+
"stateMutability": "nonpayable",
|
|
2066
|
+
"type": "function",
|
|
2067
|
+
"name": "compoundYieldGains",
|
|
2068
|
+
"inputs": [
|
|
2069
2069
|
{
|
|
2070
|
-
name:
|
|
2071
|
-
type:
|
|
2070
|
+
"name": "_levgWallet",
|
|
2071
|
+
"type": "address"
|
|
2072
2072
|
},
|
|
2073
2073
|
{
|
|
2074
|
-
name:
|
|
2075
|
-
type:
|
|
2076
|
-
components: [
|
|
2074
|
+
"name": "_removeCollateral",
|
|
2075
|
+
"type": "tuple[]",
|
|
2076
|
+
"components": [
|
|
2077
2077
|
{
|
|
2078
|
-
name:
|
|
2079
|
-
type:
|
|
2078
|
+
"name": "positionType",
|
|
2079
|
+
"type": "uint8"
|
|
2080
2080
|
},
|
|
2081
2081
|
{
|
|
2082
|
-
name:
|
|
2083
|
-
type:
|
|
2084
|
-
}
|
|
2085
|
-
]
|
|
2082
|
+
"name": "amount",
|
|
2083
|
+
"type": "uint256"
|
|
2084
|
+
}
|
|
2085
|
+
]
|
|
2086
2086
|
},
|
|
2087
2087
|
{
|
|
2088
|
-
name:
|
|
2089
|
-
type:
|
|
2090
|
-
components: [
|
|
2088
|
+
"name": "_withdrawPositions",
|
|
2089
|
+
"type": "tuple[]",
|
|
2090
|
+
"components": [
|
|
2091
2091
|
{
|
|
2092
|
-
name:
|
|
2093
|
-
type:
|
|
2092
|
+
"name": "positionType",
|
|
2093
|
+
"type": "uint8"
|
|
2094
2094
|
},
|
|
2095
2095
|
{
|
|
2096
|
-
name:
|
|
2097
|
-
type:
|
|
2098
|
-
}
|
|
2099
|
-
]
|
|
2096
|
+
"name": "amount",
|
|
2097
|
+
"type": "uint256"
|
|
2098
|
+
}
|
|
2099
|
+
]
|
|
2100
2100
|
},
|
|
2101
2101
|
{
|
|
2102
|
-
name:
|
|
2103
|
-
type:
|
|
2104
|
-
components: [
|
|
2102
|
+
"name": "_swapInstruction",
|
|
2103
|
+
"type": "tuple",
|
|
2104
|
+
"components": [
|
|
2105
2105
|
{
|
|
2106
|
-
name:
|
|
2107
|
-
type:
|
|
2106
|
+
"name": "legoId",
|
|
2107
|
+
"type": "uint256"
|
|
2108
2108
|
},
|
|
2109
2109
|
{
|
|
2110
|
-
name:
|
|
2111
|
-
type:
|
|
2110
|
+
"name": "amountIn",
|
|
2111
|
+
"type": "uint256"
|
|
2112
2112
|
},
|
|
2113
2113
|
{
|
|
2114
|
-
name:
|
|
2115
|
-
type:
|
|
2114
|
+
"name": "minAmountOut",
|
|
2115
|
+
"type": "uint256"
|
|
2116
2116
|
},
|
|
2117
2117
|
{
|
|
2118
|
-
name:
|
|
2119
|
-
type:
|
|
2118
|
+
"name": "tokenPath",
|
|
2119
|
+
"type": "address[]"
|
|
2120
2120
|
},
|
|
2121
2121
|
{
|
|
2122
|
-
name:
|
|
2123
|
-
type:
|
|
2124
|
-
}
|
|
2125
|
-
]
|
|
2122
|
+
"name": "poolPath",
|
|
2123
|
+
"type": "address[]"
|
|
2124
|
+
}
|
|
2125
|
+
]
|
|
2126
2126
|
},
|
|
2127
2127
|
{
|
|
2128
|
-
name:
|
|
2129
|
-
type:
|
|
2130
|
-
components: [
|
|
2128
|
+
"name": "_postSwapDeposits",
|
|
2129
|
+
"type": "tuple[]",
|
|
2130
|
+
"components": [
|
|
2131
2131
|
{
|
|
2132
|
-
name:
|
|
2133
|
-
type:
|
|
2132
|
+
"name": "positionType",
|
|
2133
|
+
"type": "uint8"
|
|
2134
2134
|
},
|
|
2135
2135
|
{
|
|
2136
|
-
name:
|
|
2137
|
-
type:
|
|
2136
|
+
"name": "amount",
|
|
2137
|
+
"type": "uint256"
|
|
2138
2138
|
},
|
|
2139
2139
|
{
|
|
2140
|
-
name:
|
|
2141
|
-
type:
|
|
2140
|
+
"name": "shouldAddToRipeCollateral",
|
|
2141
|
+
"type": "bool"
|
|
2142
2142
|
},
|
|
2143
2143
|
{
|
|
2144
|
-
name:
|
|
2145
|
-
type:
|
|
2146
|
-
}
|
|
2147
|
-
]
|
|
2144
|
+
"name": "shouldSweepAll",
|
|
2145
|
+
"type": "bool"
|
|
2146
|
+
}
|
|
2147
|
+
]
|
|
2148
2148
|
},
|
|
2149
2149
|
{
|
|
2150
|
-
name:
|
|
2151
|
-
type:
|
|
2152
|
-
components: [
|
|
2150
|
+
"name": "_addCollateral",
|
|
2151
|
+
"type": "tuple[]",
|
|
2152
|
+
"components": [
|
|
2153
2153
|
{
|
|
2154
|
-
name:
|
|
2155
|
-
type:
|
|
2154
|
+
"name": "positionType",
|
|
2155
|
+
"type": "uint8"
|
|
2156
2156
|
},
|
|
2157
2157
|
{
|
|
2158
|
-
name:
|
|
2159
|
-
type:
|
|
2160
|
-
}
|
|
2161
|
-
]
|
|
2162
|
-
}
|
|
2158
|
+
"name": "amount",
|
|
2159
|
+
"type": "uint256"
|
|
2160
|
+
}
|
|
2161
|
+
]
|
|
2162
|
+
}
|
|
2163
2163
|
],
|
|
2164
|
-
outputs: []
|
|
2164
|
+
"outputs": []
|
|
2165
2165
|
},
|
|
2166
2166
|
{
|
|
2167
|
-
stateMutability:
|
|
2168
|
-
type:
|
|
2169
|
-
name:
|
|
2170
|
-
inputs: [
|
|
2167
|
+
"stateMutability": "nonpayable",
|
|
2168
|
+
"type": "function",
|
|
2169
|
+
"name": "compoundYieldGains",
|
|
2170
|
+
"inputs": [
|
|
2171
2171
|
{
|
|
2172
|
-
name:
|
|
2173
|
-
type:
|
|
2172
|
+
"name": "_levgWallet",
|
|
2173
|
+
"type": "address"
|
|
2174
2174
|
},
|
|
2175
2175
|
{
|
|
2176
|
-
name:
|
|
2177
|
-
type:
|
|
2178
|
-
components: [
|
|
2176
|
+
"name": "_removeCollateral",
|
|
2177
|
+
"type": "tuple[]",
|
|
2178
|
+
"components": [
|
|
2179
2179
|
{
|
|
2180
|
-
name:
|
|
2181
|
-
type:
|
|
2180
|
+
"name": "positionType",
|
|
2181
|
+
"type": "uint8"
|
|
2182
2182
|
},
|
|
2183
2183
|
{
|
|
2184
|
-
name:
|
|
2185
|
-
type:
|
|
2186
|
-
}
|
|
2187
|
-
]
|
|
2184
|
+
"name": "amount",
|
|
2185
|
+
"type": "uint256"
|
|
2186
|
+
}
|
|
2187
|
+
]
|
|
2188
2188
|
},
|
|
2189
2189
|
{
|
|
2190
|
-
name:
|
|
2191
|
-
type:
|
|
2192
|
-
components: [
|
|
2190
|
+
"name": "_withdrawPositions",
|
|
2191
|
+
"type": "tuple[]",
|
|
2192
|
+
"components": [
|
|
2193
2193
|
{
|
|
2194
|
-
name:
|
|
2195
|
-
type:
|
|
2194
|
+
"name": "positionType",
|
|
2195
|
+
"type": "uint8"
|
|
2196
2196
|
},
|
|
2197
2197
|
{
|
|
2198
|
-
name:
|
|
2199
|
-
type:
|
|
2200
|
-
}
|
|
2201
|
-
]
|
|
2198
|
+
"name": "amount",
|
|
2199
|
+
"type": "uint256"
|
|
2200
|
+
}
|
|
2201
|
+
]
|
|
2202
2202
|
},
|
|
2203
2203
|
{
|
|
2204
|
-
name:
|
|
2205
|
-
type:
|
|
2206
|
-
components: [
|
|
2204
|
+
"name": "_swapInstruction",
|
|
2205
|
+
"type": "tuple",
|
|
2206
|
+
"components": [
|
|
2207
2207
|
{
|
|
2208
|
-
name:
|
|
2209
|
-
type:
|
|
2208
|
+
"name": "legoId",
|
|
2209
|
+
"type": "uint256"
|
|
2210
2210
|
},
|
|
2211
2211
|
{
|
|
2212
|
-
name:
|
|
2213
|
-
type:
|
|
2212
|
+
"name": "amountIn",
|
|
2213
|
+
"type": "uint256"
|
|
2214
2214
|
},
|
|
2215
2215
|
{
|
|
2216
|
-
name:
|
|
2217
|
-
type:
|
|
2216
|
+
"name": "minAmountOut",
|
|
2217
|
+
"type": "uint256"
|
|
2218
2218
|
},
|
|
2219
2219
|
{
|
|
2220
|
-
name:
|
|
2221
|
-
type:
|
|
2220
|
+
"name": "tokenPath",
|
|
2221
|
+
"type": "address[]"
|
|
2222
2222
|
},
|
|
2223
2223
|
{
|
|
2224
|
-
name:
|
|
2225
|
-
type:
|
|
2226
|
-
}
|
|
2227
|
-
]
|
|
2224
|
+
"name": "poolPath",
|
|
2225
|
+
"type": "address[]"
|
|
2226
|
+
}
|
|
2227
|
+
]
|
|
2228
2228
|
},
|
|
2229
2229
|
{
|
|
2230
|
-
name:
|
|
2231
|
-
type:
|
|
2232
|
-
components: [
|
|
2230
|
+
"name": "_postSwapDeposits",
|
|
2231
|
+
"type": "tuple[]",
|
|
2232
|
+
"components": [
|
|
2233
2233
|
{
|
|
2234
|
-
name:
|
|
2235
|
-
type:
|
|
2234
|
+
"name": "positionType",
|
|
2235
|
+
"type": "uint8"
|
|
2236
2236
|
},
|
|
2237
2237
|
{
|
|
2238
|
-
name:
|
|
2239
|
-
type:
|
|
2238
|
+
"name": "amount",
|
|
2239
|
+
"type": "uint256"
|
|
2240
2240
|
},
|
|
2241
2241
|
{
|
|
2242
|
-
name:
|
|
2243
|
-
type:
|
|
2242
|
+
"name": "shouldAddToRipeCollateral",
|
|
2243
|
+
"type": "bool"
|
|
2244
2244
|
},
|
|
2245
2245
|
{
|
|
2246
|
-
name:
|
|
2247
|
-
type:
|
|
2248
|
-
}
|
|
2249
|
-
]
|
|
2246
|
+
"name": "shouldSweepAll",
|
|
2247
|
+
"type": "bool"
|
|
2248
|
+
}
|
|
2249
|
+
]
|
|
2250
2250
|
},
|
|
2251
2251
|
{
|
|
2252
|
-
name:
|
|
2253
|
-
type:
|
|
2254
|
-
components: [
|
|
2252
|
+
"name": "_addCollateral",
|
|
2253
|
+
"type": "tuple[]",
|
|
2254
|
+
"components": [
|
|
2255
2255
|
{
|
|
2256
|
-
name:
|
|
2257
|
-
type:
|
|
2256
|
+
"name": "positionType",
|
|
2257
|
+
"type": "uint8"
|
|
2258
2258
|
},
|
|
2259
2259
|
{
|
|
2260
|
-
name:
|
|
2261
|
-
type:
|
|
2262
|
-
}
|
|
2263
|
-
]
|
|
2260
|
+
"name": "amount",
|
|
2261
|
+
"type": "uint256"
|
|
2262
|
+
}
|
|
2263
|
+
]
|
|
2264
2264
|
},
|
|
2265
2265
|
{
|
|
2266
|
-
name:
|
|
2267
|
-
type:
|
|
2268
|
-
components: [
|
|
2266
|
+
"name": "_sig",
|
|
2267
|
+
"type": "tuple",
|
|
2268
|
+
"components": [
|
|
2269
2269
|
{
|
|
2270
|
-
name:
|
|
2271
|
-
type:
|
|
2270
|
+
"name": "signature",
|
|
2271
|
+
"type": "bytes"
|
|
2272
2272
|
},
|
|
2273
2273
|
{
|
|
2274
|
-
name:
|
|
2275
|
-
type:
|
|
2274
|
+
"name": "nonce",
|
|
2275
|
+
"type": "uint256"
|
|
2276
2276
|
},
|
|
2277
2277
|
{
|
|
2278
|
-
name:
|
|
2279
|
-
type:
|
|
2280
|
-
}
|
|
2281
|
-
]
|
|
2282
|
-
}
|
|
2278
|
+
"name": "expiration",
|
|
2279
|
+
"type": "uint256"
|
|
2280
|
+
}
|
|
2281
|
+
]
|
|
2282
|
+
}
|
|
2283
2283
|
],
|
|
2284
|
-
outputs: []
|
|
2284
|
+
"outputs": []
|
|
2285
2285
|
},
|
|
2286
2286
|
{
|
|
2287
|
-
stateMutability:
|
|
2288
|
-
type:
|
|
2289
|
-
name:
|
|
2290
|
-
inputs: [
|
|
2291
|
-
{
|
|
2292
|
-
name:
|
|
2293
|
-
type:
|
|
2294
|
-
}
|
|
2287
|
+
"stateMutability": "nonpayable",
|
|
2288
|
+
"type": "function",
|
|
2289
|
+
"name": "incrementNonce",
|
|
2290
|
+
"inputs": [
|
|
2291
|
+
{
|
|
2292
|
+
"name": "_levgWallet",
|
|
2293
|
+
"type": "address"
|
|
2294
|
+
}
|
|
2295
2295
|
],
|
|
2296
|
-
outputs: []
|
|
2296
|
+
"outputs": []
|
|
2297
2297
|
},
|
|
2298
2298
|
{
|
|
2299
|
-
stateMutability:
|
|
2300
|
-
type:
|
|
2301
|
-
name:
|
|
2302
|
-
inputs: [
|
|
2303
|
-
{
|
|
2304
|
-
name:
|
|
2305
|
-
type:
|
|
2306
|
-
}
|
|
2299
|
+
"stateMutability": "view",
|
|
2300
|
+
"type": "function",
|
|
2301
|
+
"name": "getNonce",
|
|
2302
|
+
"inputs": [
|
|
2303
|
+
{
|
|
2304
|
+
"name": "_levgWallet",
|
|
2305
|
+
"type": "address"
|
|
2306
|
+
}
|
|
2307
2307
|
],
|
|
2308
|
-
outputs: [
|
|
2308
|
+
"outputs": [
|
|
2309
2309
|
{
|
|
2310
|
-
name:
|
|
2311
|
-
type:
|
|
2312
|
-
}
|
|
2313
|
-
]
|
|
2310
|
+
"name": "",
|
|
2311
|
+
"type": "uint256"
|
|
2312
|
+
}
|
|
2313
|
+
]
|
|
2314
2314
|
},
|
|
2315
2315
|
{
|
|
2316
|
-
stateMutability:
|
|
2317
|
-
type:
|
|
2318
|
-
name:
|
|
2319
|
-
inputs: [],
|
|
2320
|
-
outputs: [
|
|
2321
|
-
{
|
|
2322
|
-
name:
|
|
2323
|
-
type:
|
|
2324
|
-
}
|
|
2325
|
-
]
|
|
2316
|
+
"stateMutability": "view",
|
|
2317
|
+
"type": "function",
|
|
2318
|
+
"name": "UNDY_HQ",
|
|
2319
|
+
"inputs": [],
|
|
2320
|
+
"outputs": [
|
|
2321
|
+
{
|
|
2322
|
+
"name": "",
|
|
2323
|
+
"type": "address"
|
|
2324
|
+
}
|
|
2325
|
+
]
|
|
2326
2326
|
},
|
|
2327
2327
|
{
|
|
2328
|
-
stateMutability:
|
|
2329
|
-
type:
|
|
2330
|
-
name:
|
|
2331
|
-
inputs: [],
|
|
2332
|
-
outputs: [
|
|
2333
|
-
{
|
|
2334
|
-
name:
|
|
2335
|
-
type:
|
|
2336
|
-
}
|
|
2337
|
-
]
|
|
2328
|
+
"stateMutability": "view",
|
|
2329
|
+
"type": "function",
|
|
2330
|
+
"name": "GREEN",
|
|
2331
|
+
"inputs": [],
|
|
2332
|
+
"outputs": [
|
|
2333
|
+
{
|
|
2334
|
+
"name": "",
|
|
2335
|
+
"type": "address"
|
|
2336
|
+
}
|
|
2337
|
+
]
|
|
2338
2338
|
},
|
|
2339
2339
|
{
|
|
2340
|
-
stateMutability:
|
|
2341
|
-
type:
|
|
2342
|
-
name:
|
|
2343
|
-
inputs: [],
|
|
2344
|
-
outputs: [
|
|
2345
|
-
{
|
|
2346
|
-
name:
|
|
2347
|
-
type:
|
|
2348
|
-
}
|
|
2349
|
-
]
|
|
2340
|
+
"stateMutability": "view",
|
|
2341
|
+
"type": "function",
|
|
2342
|
+
"name": "SAVINGS_GREEN",
|
|
2343
|
+
"inputs": [],
|
|
2344
|
+
"outputs": [
|
|
2345
|
+
{
|
|
2346
|
+
"name": "",
|
|
2347
|
+
"type": "address"
|
|
2348
|
+
}
|
|
2349
|
+
]
|
|
2350
2350
|
},
|
|
2351
2351
|
{
|
|
2352
|
-
stateMutability:
|
|
2353
|
-
type:
|
|
2354
|
-
name:
|
|
2355
|
-
inputs: [
|
|
2356
|
-
{
|
|
2357
|
-
name:
|
|
2358
|
-
type:
|
|
2359
|
-
}
|
|
2352
|
+
"stateMutability": "view",
|
|
2353
|
+
"type": "function",
|
|
2354
|
+
"name": "currentNonce",
|
|
2355
|
+
"inputs": [
|
|
2356
|
+
{
|
|
2357
|
+
"name": "arg0",
|
|
2358
|
+
"type": "address"
|
|
2359
|
+
}
|
|
2360
2360
|
],
|
|
2361
|
-
outputs: [
|
|
2361
|
+
"outputs": [
|
|
2362
2362
|
{
|
|
2363
|
-
name:
|
|
2364
|
-
type:
|
|
2365
|
-
}
|
|
2366
|
-
]
|
|
2363
|
+
"name": "",
|
|
2364
|
+
"type": "uint256"
|
|
2365
|
+
}
|
|
2366
|
+
]
|
|
2367
2367
|
},
|
|
2368
2368
|
{
|
|
2369
|
-
stateMutability:
|
|
2370
|
-
type:
|
|
2371
|
-
inputs: [
|
|
2369
|
+
"stateMutability": "nonpayable",
|
|
2370
|
+
"type": "constructor",
|
|
2371
|
+
"inputs": [
|
|
2372
2372
|
{
|
|
2373
|
-
name:
|
|
2374
|
-
type:
|
|
2373
|
+
"name": "_undyHq",
|
|
2374
|
+
"type": "address"
|
|
2375
2375
|
},
|
|
2376
2376
|
{
|
|
2377
|
-
name:
|
|
2378
|
-
type:
|
|
2377
|
+
"name": "_owner",
|
|
2378
|
+
"type": "address"
|
|
2379
2379
|
},
|
|
2380
2380
|
{
|
|
2381
|
-
name:
|
|
2382
|
-
type:
|
|
2381
|
+
"name": "_minTimeLock",
|
|
2382
|
+
"type": "uint256"
|
|
2383
2383
|
},
|
|
2384
2384
|
{
|
|
2385
|
-
name:
|
|
2386
|
-
type:
|
|
2385
|
+
"name": "_maxTimeLock",
|
|
2386
|
+
"type": "uint256"
|
|
2387
2387
|
},
|
|
2388
2388
|
{
|
|
2389
|
-
name:
|
|
2390
|
-
type:
|
|
2389
|
+
"name": "_greenToken",
|
|
2390
|
+
"type": "address"
|
|
2391
2391
|
},
|
|
2392
2392
|
{
|
|
2393
|
-
name:
|
|
2394
|
-
type:
|
|
2395
|
-
}
|
|
2393
|
+
"name": "_savingsGreen",
|
|
2394
|
+
"type": "address"
|
|
2395
|
+
}
|
|
2396
2396
|
],
|
|
2397
|
-
outputs: []
|
|
2398
|
-
}
|
|
2397
|
+
"outputs": []
|
|
2398
|
+
}
|
|
2399
2399
|
];
|
|
2400
2400
|
export const deployAddress = '0x476A8e3A57860A6C5Bc75328c98f2e55F5b9997C';
|
|
2401
2401
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
@@ -2477,26 +2477,11 @@ export function toSdk(publicClient, walletClient, addressResolver) {
|
|
|
2477
2477
|
deployAddress,
|
|
2478
2478
|
abi,
|
|
2479
2479
|
events: {
|
|
2480
|
-
NonceIncremented: {
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
},
|
|
2484
|
-
|
|
2485
|
-
topic: getEventTopic('OwnershipChangeInitiated'),
|
|
2486
|
-
parse: (events) => parseEvents('OwnershipChangeInitiated', events),
|
|
2487
|
-
},
|
|
2488
|
-
OwnershipChangeConfirmed: {
|
|
2489
|
-
topic: getEventTopic('OwnershipChangeConfirmed'),
|
|
2490
|
-
parse: (events) => parseEvents('OwnershipChangeConfirmed', events),
|
|
2491
|
-
},
|
|
2492
|
-
OwnershipChangeCancelled: {
|
|
2493
|
-
topic: getEventTopic('OwnershipChangeCancelled'),
|
|
2494
|
-
parse: (events) => parseEvents('OwnershipChangeCancelled', events),
|
|
2495
|
-
},
|
|
2496
|
-
OwnershipTimeLockSet: {
|
|
2497
|
-
topic: getEventTopic('OwnershipTimeLockSet'),
|
|
2498
|
-
parse: (events) => parseEvents('OwnershipTimeLockSet', events),
|
|
2499
|
-
},
|
|
2480
|
+
NonceIncremented: { topic: getEventTopic('NonceIncremented'), parse: (events) => parseEvents('NonceIncremented', events) },
|
|
2481
|
+
OwnershipChangeInitiated: { topic: getEventTopic('OwnershipChangeInitiated'), parse: (events) => parseEvents('OwnershipChangeInitiated', events) },
|
|
2482
|
+
OwnershipChangeConfirmed: { topic: getEventTopic('OwnershipChangeConfirmed'), parse: (events) => parseEvents('OwnershipChangeConfirmed', events) },
|
|
2483
|
+
OwnershipChangeCancelled: { topic: getEventTopic('OwnershipChangeCancelled'), parse: (events) => parseEvents('OwnershipChangeCancelled', events) },
|
|
2484
|
+
OwnershipTimeLockSet: { topic: getEventTopic('OwnershipTimeLockSet'), parse: (events) => parseEvents('OwnershipTimeLockSet', events) },
|
|
2500
2485
|
},
|
|
2501
2486
|
// Queries
|
|
2502
2487
|
hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args), {}, addressResolver),
|