avantis-trader-sdk 0.8.2__py3-none-any.whl → 0.8.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. avantis_trader_sdk/__init__.py +5 -5
  2. avantis_trader_sdk/abis/AggregatorV3Interface.json +606 -606
  3. avantis_trader_sdk/abis/IPyth.sol/IPyth.dbg.json +4 -4
  4. avantis_trader_sdk/abis/Referral.sol/ReferralStorage.json +7132 -7132
  5. avantis_trader_sdk/abis/Sanctions.json +190 -190
  6. avantis_trader_sdk/abis/Trading.sol/Trading.json +1 -1
  7. avantis_trader_sdk/abis/USDC.sol/USDC.dbg.json +4 -4
  8. avantis_trader_sdk/abis/interfaces/ICallbacks.sol/ICallbacks.json +2637 -2637
  9. avantis_trader_sdk/abis/interfaces/IExecute.sol/IExecute.json +1628 -1628
  10. avantis_trader_sdk/abis/interfaces/IPairInfos.sol/IPairInfos.json +2781 -2781
  11. avantis_trader_sdk/abis/interfaces/IPairStorage.sol/IPairStorage.json +3729 -3729
  12. avantis_trader_sdk/abis/interfaces/IPriceAggregator.sol/IPriceAggregator.json +2330 -2330
  13. avantis_trader_sdk/abis/interfaces/IReferral.sol/IReferral.json +1890 -1890
  14. avantis_trader_sdk/abis/interfaces/ITradingStorage.sol/ITradingStorage.json +7022 -7022
  15. avantis_trader_sdk/abis/interfaces/ITranche.sol/ITranche.json +1283 -1283
  16. avantis_trader_sdk/abis/interfaces/IVaultManager.sol/IVaultManager.json +2424 -2424
  17. avantis_trader_sdk/abis/interfaces/IVeTranche.sol/IVeTranche.json +855 -855
  18. avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.dbg.json +4 -4
  19. avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.json +10 -10
  20. avantis_trader_sdk/abis/testnet/USDC.sol/USDC.dbg.json +4 -4
  21. avantis_trader_sdk/abis/testnet/USDC.sol/USDC.json +320 -320
  22. avantis_trader_sdk/client.py +369 -367
  23. avantis_trader_sdk/config.py +14 -14
  24. avantis_trader_sdk/feed/feed_client.py +263 -261
  25. avantis_trader_sdk/rpc/asset_parameters.py +499 -499
  26. avantis_trader_sdk/rpc/blended.py +71 -71
  27. avantis_trader_sdk/rpc/category_parameters.py +216 -216
  28. avantis_trader_sdk/rpc/fee_parameters.py +237 -237
  29. avantis_trader_sdk/rpc/pairs_cache.py +130 -130
  30. avantis_trader_sdk/rpc/rpc_helpers.py +8 -8
  31. avantis_trader_sdk/rpc/snapshot.py +142 -142
  32. avantis_trader_sdk/rpc/trade.py +701 -710
  33. avantis_trader_sdk/rpc/trading_parameters.py +139 -139
  34. avantis_trader_sdk/types.py +462 -462
  35. avantis_trader_sdk/utils.py +78 -78
  36. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/METADATA +124 -113
  37. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/RECORD +39 -40
  38. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/WHEEL +1 -1
  39. avantis_trader_sdk/feed/feedIds.json +0 -214
  40. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/top_level.txt +0 -0
@@ -1,2424 +1,2424 @@
1
- {
2
- "abi": [
3
- {
4
- "type": "function",
5
- "name": "allocateRewards",
6
- "inputs": [
7
- { "name": "", "type": "uint256", "internalType": "uint256" },
8
- { "name": "", "type": "bool", "internalType": "bool" }
9
- ],
10
- "outputs": [],
11
- "stateMutability": "nonpayable"
12
- },
13
- {
14
- "type": "function",
15
- "name": "currentBalanceUSDC",
16
- "inputs": [],
17
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
18
- "stateMutability": "view"
19
- },
20
- {
21
- "type": "function",
22
- "name": "earlyWithdrawFee",
23
- "inputs": [],
24
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
25
- "stateMutability": "view"
26
- },
27
- {
28
- "type": "function",
29
- "name": "getBalancingFee",
30
- "inputs": [
31
- { "name": "", "type": "address", "internalType": "address" },
32
- { "name": "", "type": "bool", "internalType": "bool" },
33
- { "name": "", "type": "uint256", "internalType": "uint256" }
34
- ],
35
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
36
- "stateMutability": "view"
37
- },
38
- {
39
- "type": "function",
40
- "name": "getCollateralFee",
41
- "inputs": [],
42
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
43
- "stateMutability": "view"
44
- },
45
- {
46
- "type": "function",
47
- "name": "gov",
48
- "inputs": [],
49
- "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
50
- "stateMutability": "view"
51
- },
52
- {
53
- "type": "function",
54
- "name": "maxLockTime",
55
- "inputs": [],
56
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
57
- "stateMutability": "view"
58
- },
59
- {
60
- "type": "function",
61
- "name": "minLockTime",
62
- "inputs": [],
63
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
64
- "stateMutability": "view"
65
- },
66
- {
67
- "type": "function",
68
- "name": "receiveUSDCFromTrader",
69
- "inputs": [
70
- { "name": "", "type": "address", "internalType": "address" },
71
- { "name": "", "type": "uint256", "internalType": "uint256" }
72
- ],
73
- "outputs": [],
74
- "stateMutability": "nonpayable"
75
- },
76
- {
77
- "type": "function",
78
- "name": "releaseBalance",
79
- "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
80
- "outputs": [],
81
- "stateMutability": "nonpayable"
82
- },
83
- {
84
- "type": "function",
85
- "name": "reserveBalance",
86
- "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
87
- "outputs": [],
88
- "stateMutability": "nonpayable"
89
- },
90
- {
91
- "type": "function",
92
- "name": "sendReferrerRebateToStorage",
93
- "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
94
- "outputs": [],
95
- "stateMutability": "nonpayable"
96
- },
97
- {
98
- "type": "function",
99
- "name": "sendUSDCToTrader",
100
- "inputs": [
101
- { "name": "", "type": "address", "internalType": "address" },
102
- { "name": "", "type": "uint256", "internalType": "uint256" }
103
- ],
104
- "outputs": [],
105
- "stateMutability": "nonpayable"
106
- },
107
- {
108
- "type": "event",
109
- "name": "BalanceReleased",
110
- "inputs": [{ "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }],
111
- "anonymous": false
112
- },
113
- {
114
- "type": "event",
115
- "name": "BalanceReserved",
116
- "inputs": [{ "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }],
117
- "anonymous": false
118
- },
119
- {
120
- "type": "event",
121
- "name": "BalancingDeltaUpdated",
122
- "inputs": [
123
- { "name": "previousDelta", "type": "uint256", "indexed": false, "internalType": "uint256" },
124
- { "name": "newDelta", "type": "uint256", "indexed": false, "internalType": "uint256" }
125
- ],
126
- "anonymous": false
127
- },
128
- {
129
- "type": "event",
130
- "name": "ConstrainedLiquidityThresholdUpdated",
131
- "inputs": [
132
- { "name": "previousThreshold", "type": "uint256", "indexed": false, "internalType": "uint256" },
133
- { "name": "newThreshold", "type": "uint256", "indexed": false, "internalType": "uint256" }
134
- ],
135
- "anonymous": false
136
- },
137
- {
138
- "type": "event",
139
- "name": "CurrentOpenPnlUpdated",
140
- "inputs": [{ "name": "_newPnl", "type": "int256", "indexed": false, "internalType": "int256" }],
141
- "anonymous": false
142
- },
143
- {
144
- "type": "event",
145
- "name": "EarlyWithdrawFeeUpdated",
146
- "inputs": [
147
- { "name": "previousFee", "type": "uint256", "indexed": false, "internalType": "uint256" },
148
- { "name": "newFee", "type": "uint256", "indexed": false, "internalType": "uint256" }
149
- ],
150
- "anonymous": false
151
- },
152
- {
153
- "type": "event",
154
- "name": "GovChanged",
155
- "inputs": [
156
- { "name": "previousGov", "type": "address", "indexed": true, "internalType": "address" },
157
- { "name": "newGov", "type": "address", "indexed": true, "internalType": "address" }
158
- ],
159
- "anonymous": false
160
- },
161
- {
162
- "type": "event",
163
- "name": "JuniorTrancheChanged",
164
- "inputs": [
165
- { "name": "previousJunior", "type": "address", "indexed": true, "internalType": "address" },
166
- { "name": "newJunior", "type": "address", "indexed": true, "internalType": "address" }
167
- ],
168
- "anonymous": false
169
- },
170
- {
171
- "type": "event",
172
- "name": "NumberUpdated",
173
- "inputs": [
174
- { "name": "name", "type": "string", "indexed": false, "internalType": "string" },
175
- { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
176
- ],
177
- "anonymous": false
178
- },
179
- {
180
- "type": "event",
181
- "name": "PnlRewardsDistributed",
182
- "inputs": [
183
- { "name": "juniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" },
184
- { "name": "seniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" }
185
- ],
186
- "anonymous": false
187
- },
188
- {
189
- "type": "event",
190
- "name": "ReferralRebateAwarded",
191
- "inputs": [{ "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }],
192
- "anonymous": false
193
- },
194
- {
195
- "type": "event",
196
- "name": "ReserveRatioUpdated",
197
- "inputs": [
198
- { "name": "previousRatio", "type": "uint256", "indexed": false, "internalType": "uint256" },
199
- { "name": "newRatio", "type": "uint256", "indexed": false, "internalType": "uint256" }
200
- ],
201
- "anonymous": false
202
- },
203
- {
204
- "type": "event",
205
- "name": "RewardsAllocated",
206
- "inputs": [
207
- { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" },
208
- { "name": "isPnl", "type": "bool", "indexed": false, "internalType": "bool" }
209
- ],
210
- "anonymous": false
211
- },
212
- {
213
- "type": "event",
214
- "name": "RewardsDistributed",
215
- "inputs": [
216
- { "name": "juniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" },
217
- { "name": "seniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" }
218
- ],
219
- "anonymous": false
220
- },
221
- {
222
- "type": "event",
223
- "name": "SeniorTrancheChanged",
224
- "inputs": [
225
- { "name": "previousSenior", "type": "address", "indexed": true, "internalType": "address" },
226
- { "name": "newSenior", "type": "address", "indexed": true, "internalType": "address" }
227
- ],
228
- "anonymous": false
229
- },
230
- {
231
- "type": "event",
232
- "name": "StorageChanged",
233
- "inputs": [
234
- { "name": "previousStorage", "type": "address", "indexed": true, "internalType": "address" },
235
- { "name": "newStorage", "type": "address", "indexed": true, "internalType": "address" }
236
- ],
237
- "anonymous": false
238
- },
239
- {
240
- "type": "event",
241
- "name": "TradingContractAdded",
242
- "inputs": [{ "name": "a", "type": "address", "indexed": false, "internalType": "address" }],
243
- "anonymous": false
244
- },
245
- {
246
- "type": "event",
247
- "name": "TradingContractRemoved",
248
- "inputs": [{ "name": "a", "type": "address", "indexed": false, "internalType": "address" }],
249
- "anonymous": false
250
- },
251
- {
252
- "type": "event",
253
- "name": "USDCReceivedFromTrader",
254
- "inputs": [
255
- { "name": "trader", "type": "address", "indexed": true, "internalType": "address" },
256
- { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }
257
- ],
258
- "anonymous": false
259
- },
260
- {
261
- "type": "event",
262
- "name": "USDCSentToTrader",
263
- "inputs": [
264
- { "name": "trader", "type": "address", "indexed": true, "internalType": "address" },
265
- { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }
266
- ],
267
- "anonymous": false
268
- }
269
- ],
270
- "bytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
271
- "deployedBytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
272
- "methodIdentifiers": {
273
- "allocateRewards(uint256,bool)": "5b898b75",
274
- "currentBalanceUSDC()": "7b78d782",
275
- "earlyWithdrawFee()": "a80a7882",
276
- "getBalancingFee(address,bool,uint256)": "f85facea",
277
- "getCollateralFee()": "a9863448",
278
- "gov()": "12d43a51",
279
- "maxLockTime()": "d308e10e",
280
- "minLockTime()": "a60ff766",
281
- "receiveUSDCFromTrader(address,uint256)": "5a65ca91",
282
- "releaseBalance(uint256)": "76079be3",
283
- "reserveBalance(uint256)": "14269687",
284
- "sendReferrerRebateToStorage(uint256)": "a056d2bb",
285
- "sendUSDCToTrader(address,uint256)": "6a562b22"
286
- },
287
- "rawMetadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BalanceReleased\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BalanceReserved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousDelta\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDelta\",\"type\":\"uint256\"}],\"name\":\"BalancingDeltaUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousThreshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newThreshold\",\"type\":\"uint256\"}],\"name\":\"ConstrainedLiquidityThresholdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"_newPnl\",\"type\":\"int256\"}],\"name\":\"CurrentOpenPnlUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFee\",\"type\":\"uint256\"}],\"name\":\"EarlyWithdrawFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousGov\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newGov\",\"type\":\"address\"}],\"name\":\"GovChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousJunior\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newJunior\",\"type\":\"address\"}],\"name\":\"JuniorTrancheChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"NumberUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"juniorRewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"seniorRewards\",\"type\":\"uint256\"}],\"name\":\"PnlRewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ReferralRebateAwarded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousRatio\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRatio\",\"type\":\"uint256\"}],\"name\":\"ReserveRatioUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isPnl\",\"type\":\"bool\"}],\"name\":\"RewardsAllocated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"juniorRewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"seniorRewards\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousSenior\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newSenior\",\"type\":\"address\"}],\"name\":\"SeniorTrancheChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousStorage\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newStorage\",\"type\":\"address\"}],\"name\":\"StorageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"a\",\"type\":\"address\"}],\"name\":\"TradingContractAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"a\",\"type\":\"address\"}],\"name\":\"TradingContractRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"USDCReceivedFromTrader\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"USDCSentToTrader\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"name\":\"allocateRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentBalanceUSDC\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"earlyWithdrawFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getBalancingFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCollateralFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gov\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minLockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"receiveUSDCFromTrader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"releaseBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"reserveBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"sendReferrerRebateToStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"sendUSDCToTrader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/IVaultManager.sol\":\"IVaultManager\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@chainlink/=lib/chainlink/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":chainlink/=lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":pyth-sdk-solidity/=lib/pyth-sdk-solidity/\"]},\"sources\":{\"src/interfaces/IVaultManager.sol\":{\"keccak256\":\"0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05\",\"dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ\"]}},\"version\":1}",
288
- "metadata": {
289
- "compiler": { "version": "0.8.7+commit.e28d00a7" },
290
- "language": "Solidity",
291
- "output": {
292
- "abi": [
293
- {
294
- "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }],
295
- "type": "event",
296
- "name": "BalanceReleased",
297
- "anonymous": false
298
- },
299
- {
300
- "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }],
301
- "type": "event",
302
- "name": "BalanceReserved",
303
- "anonymous": false
304
- },
305
- {
306
- "inputs": [
307
- { "internalType": "uint256", "name": "previousDelta", "type": "uint256", "indexed": false },
308
- { "internalType": "uint256", "name": "newDelta", "type": "uint256", "indexed": false }
309
- ],
310
- "type": "event",
311
- "name": "BalancingDeltaUpdated",
312
- "anonymous": false
313
- },
314
- {
315
- "inputs": [
316
- { "internalType": "uint256", "name": "previousThreshold", "type": "uint256", "indexed": false },
317
- { "internalType": "uint256", "name": "newThreshold", "type": "uint256", "indexed": false }
318
- ],
319
- "type": "event",
320
- "name": "ConstrainedLiquidityThresholdUpdated",
321
- "anonymous": false
322
- },
323
- {
324
- "inputs": [{ "internalType": "int256", "name": "_newPnl", "type": "int256", "indexed": false }],
325
- "type": "event",
326
- "name": "CurrentOpenPnlUpdated",
327
- "anonymous": false
328
- },
329
- {
330
- "inputs": [
331
- { "internalType": "uint256", "name": "previousFee", "type": "uint256", "indexed": false },
332
- { "internalType": "uint256", "name": "newFee", "type": "uint256", "indexed": false }
333
- ],
334
- "type": "event",
335
- "name": "EarlyWithdrawFeeUpdated",
336
- "anonymous": false
337
- },
338
- {
339
- "inputs": [
340
- { "internalType": "address", "name": "previousGov", "type": "address", "indexed": true },
341
- { "internalType": "address", "name": "newGov", "type": "address", "indexed": true }
342
- ],
343
- "type": "event",
344
- "name": "GovChanged",
345
- "anonymous": false
346
- },
347
- {
348
- "inputs": [
349
- { "internalType": "address", "name": "previousJunior", "type": "address", "indexed": true },
350
- { "internalType": "address", "name": "newJunior", "type": "address", "indexed": true }
351
- ],
352
- "type": "event",
353
- "name": "JuniorTrancheChanged",
354
- "anonymous": false
355
- },
356
- {
357
- "inputs": [
358
- { "internalType": "string", "name": "name", "type": "string", "indexed": false },
359
- { "internalType": "uint256", "name": "value", "type": "uint256", "indexed": false }
360
- ],
361
- "type": "event",
362
- "name": "NumberUpdated",
363
- "anonymous": false
364
- },
365
- {
366
- "inputs": [
367
- { "internalType": "uint256", "name": "juniorRewards", "type": "uint256", "indexed": false },
368
- { "internalType": "uint256", "name": "seniorRewards", "type": "uint256", "indexed": false }
369
- ],
370
- "type": "event",
371
- "name": "PnlRewardsDistributed",
372
- "anonymous": false
373
- },
374
- {
375
- "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }],
376
- "type": "event",
377
- "name": "ReferralRebateAwarded",
378
- "anonymous": false
379
- },
380
- {
381
- "inputs": [
382
- { "internalType": "uint256", "name": "previousRatio", "type": "uint256", "indexed": false },
383
- { "internalType": "uint256", "name": "newRatio", "type": "uint256", "indexed": false }
384
- ],
385
- "type": "event",
386
- "name": "ReserveRatioUpdated",
387
- "anonymous": false
388
- },
389
- {
390
- "inputs": [
391
- { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false },
392
- { "internalType": "bool", "name": "isPnl", "type": "bool", "indexed": false }
393
- ],
394
- "type": "event",
395
- "name": "RewardsAllocated",
396
- "anonymous": false
397
- },
398
- {
399
- "inputs": [
400
- { "internalType": "uint256", "name": "juniorRewards", "type": "uint256", "indexed": false },
401
- { "internalType": "uint256", "name": "seniorRewards", "type": "uint256", "indexed": false }
402
- ],
403
- "type": "event",
404
- "name": "RewardsDistributed",
405
- "anonymous": false
406
- },
407
- {
408
- "inputs": [
409
- { "internalType": "address", "name": "previousSenior", "type": "address", "indexed": true },
410
- { "internalType": "address", "name": "newSenior", "type": "address", "indexed": true }
411
- ],
412
- "type": "event",
413
- "name": "SeniorTrancheChanged",
414
- "anonymous": false
415
- },
416
- {
417
- "inputs": [
418
- { "internalType": "address", "name": "previousStorage", "type": "address", "indexed": true },
419
- { "internalType": "address", "name": "newStorage", "type": "address", "indexed": true }
420
- ],
421
- "type": "event",
422
- "name": "StorageChanged",
423
- "anonymous": false
424
- },
425
- {
426
- "inputs": [{ "internalType": "address", "name": "a", "type": "address", "indexed": false }],
427
- "type": "event",
428
- "name": "TradingContractAdded",
429
- "anonymous": false
430
- },
431
- {
432
- "inputs": [{ "internalType": "address", "name": "a", "type": "address", "indexed": false }],
433
- "type": "event",
434
- "name": "TradingContractRemoved",
435
- "anonymous": false
436
- },
437
- {
438
- "inputs": [
439
- { "internalType": "address", "name": "trader", "type": "address", "indexed": true },
440
- { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }
441
- ],
442
- "type": "event",
443
- "name": "USDCReceivedFromTrader",
444
- "anonymous": false
445
- },
446
- {
447
- "inputs": [
448
- { "internalType": "address", "name": "trader", "type": "address", "indexed": true },
449
- { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }
450
- ],
451
- "type": "event",
452
- "name": "USDCSentToTrader",
453
- "anonymous": false
454
- },
455
- {
456
- "inputs": [
457
- { "internalType": "uint256", "name": "", "type": "uint256" },
458
- { "internalType": "bool", "name": "", "type": "bool" }
459
- ],
460
- "stateMutability": "nonpayable",
461
- "type": "function",
462
- "name": "allocateRewards"
463
- },
464
- {
465
- "inputs": [],
466
- "stateMutability": "view",
467
- "type": "function",
468
- "name": "currentBalanceUSDC",
469
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
470
- },
471
- {
472
- "inputs": [],
473
- "stateMutability": "view",
474
- "type": "function",
475
- "name": "earlyWithdrawFee",
476
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
477
- },
478
- {
479
- "inputs": [
480
- { "internalType": "address", "name": "", "type": "address" },
481
- { "internalType": "bool", "name": "", "type": "bool" },
482
- { "internalType": "uint256", "name": "", "type": "uint256" }
483
- ],
484
- "stateMutability": "view",
485
- "type": "function",
486
- "name": "getBalancingFee",
487
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
488
- },
489
- {
490
- "inputs": [],
491
- "stateMutability": "view",
492
- "type": "function",
493
- "name": "getCollateralFee",
494
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
495
- },
496
- {
497
- "inputs": [],
498
- "stateMutability": "view",
499
- "type": "function",
500
- "name": "gov",
501
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }]
502
- },
503
- {
504
- "inputs": [],
505
- "stateMutability": "view",
506
- "type": "function",
507
- "name": "maxLockTime",
508
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
509
- },
510
- {
511
- "inputs": [],
512
- "stateMutability": "view",
513
- "type": "function",
514
- "name": "minLockTime",
515
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
516
- },
517
- {
518
- "inputs": [
519
- { "internalType": "address", "name": "", "type": "address" },
520
- { "internalType": "uint256", "name": "", "type": "uint256" }
521
- ],
522
- "stateMutability": "nonpayable",
523
- "type": "function",
524
- "name": "receiveUSDCFromTrader"
525
- },
526
- {
527
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
528
- "stateMutability": "nonpayable",
529
- "type": "function",
530
- "name": "releaseBalance"
531
- },
532
- {
533
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
534
- "stateMutability": "nonpayable",
535
- "type": "function",
536
- "name": "reserveBalance"
537
- },
538
- {
539
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
540
- "stateMutability": "nonpayable",
541
- "type": "function",
542
- "name": "sendReferrerRebateToStorage"
543
- },
544
- {
545
- "inputs": [
546
- { "internalType": "address", "name": "", "type": "address" },
547
- { "internalType": "uint256", "name": "", "type": "uint256" }
548
- ],
549
- "stateMutability": "nonpayable",
550
- "type": "function",
551
- "name": "sendUSDCToTrader"
552
- }
553
- ],
554
- "devdoc": { "kind": "dev", "methods": {}, "version": 1 },
555
- "userdoc": { "kind": "user", "methods": {}, "version": 1 }
556
- },
557
- "settings": {
558
- "remappings": [
559
- "@chainlink/=lib/chainlink/",
560
- "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
561
- "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
562
- "chainlink/=lib/chainlink/",
563
- "ds-test/=lib/forge-std/lib/ds-test/src/",
564
- "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
565
- "forge-std/=lib/forge-std/src/",
566
- "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
567
- "openzeppelin-contracts/=lib/openzeppelin-contracts/",
568
- "openzeppelin/=lib/openzeppelin-contracts/contracts/",
569
- "pyth-sdk-solidity/=lib/pyth-sdk-solidity/"
570
- ],
571
- "optimizer": { "enabled": true, "runs": 200 },
572
- "metadata": { "bytecodeHash": "ipfs" },
573
- "compilationTarget": { "src/interfaces/IVaultManager.sol": "IVaultManager" },
574
- "libraries": {}
575
- },
576
- "sources": {
577
- "src/interfaces/IVaultManager.sol": {
578
- "keccak256": "0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4",
579
- "urls": [
580
- "bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05",
581
- "dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ"
582
- ],
583
- "license": "MIT"
584
- }
585
- },
586
- "version": 1
587
- },
588
- "ast": {
589
- "absolutePath": "src/interfaces/IVaultManager.sol",
590
- "id": 74773,
591
- "exportedSymbols": { "IVaultManager": [74772] },
592
- "nodeType": "SourceUnit",
593
- "src": "32:2185:96",
594
- "nodes": [
595
- {
596
- "id": 74586,
597
- "nodeType": "PragmaDirective",
598
- "src": "32:22:96",
599
- "nodes": [],
600
- "literals": ["solidity", "0.8", ".7"]
601
- },
602
- {
603
- "id": 74772,
604
- "nodeType": "ContractDefinition",
605
- "src": "56:2160:96",
606
- "nodes": [
607
- {
608
- "id": 74592,
609
- "nodeType": "EventDefinition",
610
- "src": "99:70:96",
611
- "nodes": [],
612
- "anonymous": false,
613
- "name": "GovChanged",
614
- "nameLocation": "105:10:96",
615
- "parameters": {
616
- "id": 74591,
617
- "nodeType": "ParameterList",
618
- "parameters": [
619
- {
620
- "constant": false,
621
- "id": 74588,
622
- "indexed": true,
623
- "mutability": "mutable",
624
- "name": "previousGov",
625
- "nameLocation": "132:11:96",
626
- "nodeType": "VariableDeclaration",
627
- "scope": 74592,
628
- "src": "116:27:96",
629
- "stateVariable": false,
630
- "storageLocation": "default",
631
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
632
- "typeName": {
633
- "id": 74587,
634
- "name": "address",
635
- "nodeType": "ElementaryTypeName",
636
- "src": "116:7:96",
637
- "stateMutability": "nonpayable",
638
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
639
- },
640
- "visibility": "internal"
641
- },
642
- {
643
- "constant": false,
644
- "id": 74590,
645
- "indexed": true,
646
- "mutability": "mutable",
647
- "name": "newGov",
648
- "nameLocation": "161:6:96",
649
- "nodeType": "VariableDeclaration",
650
- "scope": 74592,
651
- "src": "145:22:96",
652
- "stateVariable": false,
653
- "storageLocation": "default",
654
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
655
- "typeName": {
656
- "id": 74589,
657
- "name": "address",
658
- "nodeType": "ElementaryTypeName",
659
- "src": "145:7:96",
660
- "stateMutability": "nonpayable",
661
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
662
- },
663
- "visibility": "internal"
664
- }
665
- ],
666
- "src": "115:53:96"
667
- }
668
- },
669
- {
670
- "id": 74598,
671
- "nodeType": "EventDefinition",
672
- "src": "174:82:96",
673
- "nodes": [],
674
- "anonymous": false,
675
- "name": "StorageChanged",
676
- "nameLocation": "180:14:96",
677
- "parameters": {
678
- "id": 74597,
679
- "nodeType": "ParameterList",
680
- "parameters": [
681
- {
682
- "constant": false,
683
- "id": 74594,
684
- "indexed": true,
685
- "mutability": "mutable",
686
- "name": "previousStorage",
687
- "nameLocation": "211:15:96",
688
- "nodeType": "VariableDeclaration",
689
- "scope": 74598,
690
- "src": "195:31:96",
691
- "stateVariable": false,
692
- "storageLocation": "default",
693
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
694
- "typeName": {
695
- "id": 74593,
696
- "name": "address",
697
- "nodeType": "ElementaryTypeName",
698
- "src": "195:7:96",
699
- "stateMutability": "nonpayable",
700
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
701
- },
702
- "visibility": "internal"
703
- },
704
- {
705
- "constant": false,
706
- "id": 74596,
707
- "indexed": true,
708
- "mutability": "mutable",
709
- "name": "newStorage",
710
- "nameLocation": "244:10:96",
711
- "nodeType": "VariableDeclaration",
712
- "scope": 74598,
713
- "src": "228:26:96",
714
- "stateVariable": false,
715
- "storageLocation": "default",
716
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
717
- "typeName": {
718
- "id": 74595,
719
- "name": "address",
720
- "nodeType": "ElementaryTypeName",
721
- "src": "228:7:96",
722
- "stateMutability": "nonpayable",
723
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
724
- },
725
- "visibility": "internal"
726
- }
727
- ],
728
- "src": "194:61:96"
729
- }
730
- },
731
- {
732
- "id": 74604,
733
- "nodeType": "EventDefinition",
734
- "src": "261:86:96",
735
- "nodes": [],
736
- "anonymous": false,
737
- "name": "JuniorTrancheChanged",
738
- "nameLocation": "267:20:96",
739
- "parameters": {
740
- "id": 74603,
741
- "nodeType": "ParameterList",
742
- "parameters": [
743
- {
744
- "constant": false,
745
- "id": 74600,
746
- "indexed": true,
747
- "mutability": "mutable",
748
- "name": "previousJunior",
749
- "nameLocation": "304:14:96",
750
- "nodeType": "VariableDeclaration",
751
- "scope": 74604,
752
- "src": "288:30:96",
753
- "stateVariable": false,
754
- "storageLocation": "default",
755
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
756
- "typeName": {
757
- "id": 74599,
758
- "name": "address",
759
- "nodeType": "ElementaryTypeName",
760
- "src": "288:7:96",
761
- "stateMutability": "nonpayable",
762
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
763
- },
764
- "visibility": "internal"
765
- },
766
- {
767
- "constant": false,
768
- "id": 74602,
769
- "indexed": true,
770
- "mutability": "mutable",
771
- "name": "newJunior",
772
- "nameLocation": "336:9:96",
773
- "nodeType": "VariableDeclaration",
774
- "scope": 74604,
775
- "src": "320:25:96",
776
- "stateVariable": false,
777
- "storageLocation": "default",
778
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
779
- "typeName": {
780
- "id": 74601,
781
- "name": "address",
782
- "nodeType": "ElementaryTypeName",
783
- "src": "320:7:96",
784
- "stateMutability": "nonpayable",
785
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
786
- },
787
- "visibility": "internal"
788
- }
789
- ],
790
- "src": "287:59:96"
791
- }
792
- },
793
- {
794
- "id": 74610,
795
- "nodeType": "EventDefinition",
796
- "src": "352:86:96",
797
- "nodes": [],
798
- "anonymous": false,
799
- "name": "SeniorTrancheChanged",
800
- "nameLocation": "358:20:96",
801
- "parameters": {
802
- "id": 74609,
803
- "nodeType": "ParameterList",
804
- "parameters": [
805
- {
806
- "constant": false,
807
- "id": 74606,
808
- "indexed": true,
809
- "mutability": "mutable",
810
- "name": "previousSenior",
811
- "nameLocation": "395:14:96",
812
- "nodeType": "VariableDeclaration",
813
- "scope": 74610,
814
- "src": "379:30:96",
815
- "stateVariable": false,
816
- "storageLocation": "default",
817
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
818
- "typeName": {
819
- "id": 74605,
820
- "name": "address",
821
- "nodeType": "ElementaryTypeName",
822
- "src": "379:7:96",
823
- "stateMutability": "nonpayable",
824
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
825
- },
826
- "visibility": "internal"
827
- },
828
- {
829
- "constant": false,
830
- "id": 74608,
831
- "indexed": true,
832
- "mutability": "mutable",
833
- "name": "newSenior",
834
- "nameLocation": "427:9:96",
835
- "nodeType": "VariableDeclaration",
836
- "scope": 74610,
837
- "src": "411:25:96",
838
- "stateVariable": false,
839
- "storageLocation": "default",
840
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
841
- "typeName": {
842
- "id": 74607,
843
- "name": "address",
844
- "nodeType": "ElementaryTypeName",
845
- "src": "411:7:96",
846
- "stateMutability": "nonpayable",
847
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
848
- },
849
- "visibility": "internal"
850
- }
851
- ],
852
- "src": "378:59:96"
853
- }
854
- },
855
- {
856
- "id": 74616,
857
- "nodeType": "EventDefinition",
858
- "src": "443:67:96",
859
- "nodes": [],
860
- "anonymous": false,
861
- "name": "ReserveRatioUpdated",
862
- "nameLocation": "449:19:96",
863
- "parameters": {
864
- "id": 74615,
865
- "nodeType": "ParameterList",
866
- "parameters": [
867
- {
868
- "constant": false,
869
- "id": 74612,
870
- "indexed": false,
871
- "mutability": "mutable",
872
- "name": "previousRatio",
873
- "nameLocation": "477:13:96",
874
- "nodeType": "VariableDeclaration",
875
- "scope": 74616,
876
- "src": "469:21:96",
877
- "stateVariable": false,
878
- "storageLocation": "default",
879
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
880
- "typeName": {
881
- "id": 74611,
882
- "name": "uint256",
883
- "nodeType": "ElementaryTypeName",
884
- "src": "469:7:96",
885
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
886
- },
887
- "visibility": "internal"
888
- },
889
- {
890
- "constant": false,
891
- "id": 74614,
892
- "indexed": false,
893
- "mutability": "mutable",
894
- "name": "newRatio",
895
- "nameLocation": "500:8:96",
896
- "nodeType": "VariableDeclaration",
897
- "scope": 74616,
898
- "src": "492:16:96",
899
- "stateVariable": false,
900
- "storageLocation": "default",
901
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
902
- "typeName": {
903
- "id": 74613,
904
- "name": "uint256",
905
- "nodeType": "ElementaryTypeName",
906
- "src": "492:7:96",
907
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
908
- },
909
- "visibility": "internal"
910
- }
911
- ],
912
- "src": "468:41:96"
913
- }
914
- },
915
- {
916
- "id": 74622,
917
- "nodeType": "EventDefinition",
918
- "src": "515:69:96",
919
- "nodes": [],
920
- "anonymous": false,
921
- "name": "BalancingDeltaUpdated",
922
- "nameLocation": "521:21:96",
923
- "parameters": {
924
- "id": 74621,
925
- "nodeType": "ParameterList",
926
- "parameters": [
927
- {
928
- "constant": false,
929
- "id": 74618,
930
- "indexed": false,
931
- "mutability": "mutable",
932
- "name": "previousDelta",
933
- "nameLocation": "551:13:96",
934
- "nodeType": "VariableDeclaration",
935
- "scope": 74622,
936
- "src": "543:21:96",
937
- "stateVariable": false,
938
- "storageLocation": "default",
939
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
940
- "typeName": {
941
- "id": 74617,
942
- "name": "uint256",
943
- "nodeType": "ElementaryTypeName",
944
- "src": "543:7:96",
945
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
946
- },
947
- "visibility": "internal"
948
- },
949
- {
950
- "constant": false,
951
- "id": 74620,
952
- "indexed": false,
953
- "mutability": "mutable",
954
- "name": "newDelta",
955
- "nameLocation": "574:8:96",
956
- "nodeType": "VariableDeclaration",
957
- "scope": 74622,
958
- "src": "566:16:96",
959
- "stateVariable": false,
960
- "storageLocation": "default",
961
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
962
- "typeName": {
963
- "id": 74619,
964
- "name": "uint256",
965
- "nodeType": "ElementaryTypeName",
966
- "src": "566:7:96",
967
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
968
- },
969
- "visibility": "internal"
970
- }
971
- ],
972
- "src": "542:41:96"
973
- }
974
- },
975
- {
976
- "id": 74628,
977
- "nodeType": "EventDefinition",
978
- "src": "589:92:96",
979
- "nodes": [],
980
- "anonymous": false,
981
- "name": "ConstrainedLiquidityThresholdUpdated",
982
- "nameLocation": "595:36:96",
983
- "parameters": {
984
- "id": 74627,
985
- "nodeType": "ParameterList",
986
- "parameters": [
987
- {
988
- "constant": false,
989
- "id": 74624,
990
- "indexed": false,
991
- "mutability": "mutable",
992
- "name": "previousThreshold",
993
- "nameLocation": "640:17:96",
994
- "nodeType": "VariableDeclaration",
995
- "scope": 74628,
996
- "src": "632:25:96",
997
- "stateVariable": false,
998
- "storageLocation": "default",
999
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1000
- "typeName": {
1001
- "id": 74623,
1002
- "name": "uint256",
1003
- "nodeType": "ElementaryTypeName",
1004
- "src": "632:7:96",
1005
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1006
- },
1007
- "visibility": "internal"
1008
- },
1009
- {
1010
- "constant": false,
1011
- "id": 74626,
1012
- "indexed": false,
1013
- "mutability": "mutable",
1014
- "name": "newThreshold",
1015
- "nameLocation": "667:12:96",
1016
- "nodeType": "VariableDeclaration",
1017
- "scope": 74628,
1018
- "src": "659:20:96",
1019
- "stateVariable": false,
1020
- "storageLocation": "default",
1021
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1022
- "typeName": {
1023
- "id": 74625,
1024
- "name": "uint256",
1025
- "nodeType": "ElementaryTypeName",
1026
- "src": "659:7:96",
1027
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1028
- },
1029
- "visibility": "internal"
1030
- }
1031
- ],
1032
- "src": "631:49:96"
1033
- }
1034
- },
1035
- {
1036
- "id": 74634,
1037
- "nodeType": "EventDefinition",
1038
- "src": "686:67:96",
1039
- "nodes": [],
1040
- "anonymous": false,
1041
- "name": "EarlyWithdrawFeeUpdated",
1042
- "nameLocation": "692:23:96",
1043
- "parameters": {
1044
- "id": 74633,
1045
- "nodeType": "ParameterList",
1046
- "parameters": [
1047
- {
1048
- "constant": false,
1049
- "id": 74630,
1050
- "indexed": false,
1051
- "mutability": "mutable",
1052
- "name": "previousFee",
1053
- "nameLocation": "724:11:96",
1054
- "nodeType": "VariableDeclaration",
1055
- "scope": 74634,
1056
- "src": "716:19:96",
1057
- "stateVariable": false,
1058
- "storageLocation": "default",
1059
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1060
- "typeName": {
1061
- "id": 74629,
1062
- "name": "uint256",
1063
- "nodeType": "ElementaryTypeName",
1064
- "src": "716:7:96",
1065
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1066
- },
1067
- "visibility": "internal"
1068
- },
1069
- {
1070
- "constant": false,
1071
- "id": 74632,
1072
- "indexed": false,
1073
- "mutability": "mutable",
1074
- "name": "newFee",
1075
- "nameLocation": "745:6:96",
1076
- "nodeType": "VariableDeclaration",
1077
- "scope": 74634,
1078
- "src": "737:14:96",
1079
- "stateVariable": false,
1080
- "storageLocation": "default",
1081
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1082
- "typeName": {
1083
- "id": 74631,
1084
- "name": "uint256",
1085
- "nodeType": "ElementaryTypeName",
1086
- "src": "737:7:96",
1087
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1088
- },
1089
- "visibility": "internal"
1090
- }
1091
- ],
1092
- "src": "715:37:96"
1093
- }
1094
- },
1095
- {
1096
- "id": 74640,
1097
- "nodeType": "EventDefinition",
1098
- "src": "758:51:96",
1099
- "nodes": [],
1100
- "anonymous": false,
1101
- "name": "RewardsAllocated",
1102
- "nameLocation": "764:16:96",
1103
- "parameters": {
1104
- "id": 74639,
1105
- "nodeType": "ParameterList",
1106
- "parameters": [
1107
- {
1108
- "constant": false,
1109
- "id": 74636,
1110
- "indexed": false,
1111
- "mutability": "mutable",
1112
- "name": "amount",
1113
- "nameLocation": "789:6:96",
1114
- "nodeType": "VariableDeclaration",
1115
- "scope": 74640,
1116
- "src": "781:14:96",
1117
- "stateVariable": false,
1118
- "storageLocation": "default",
1119
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1120
- "typeName": {
1121
- "id": 74635,
1122
- "name": "uint256",
1123
- "nodeType": "ElementaryTypeName",
1124
- "src": "781:7:96",
1125
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1126
- },
1127
- "visibility": "internal"
1128
- },
1129
- {
1130
- "constant": false,
1131
- "id": 74638,
1132
- "indexed": false,
1133
- "mutability": "mutable",
1134
- "name": "isPnl",
1135
- "nameLocation": "802:5:96",
1136
- "nodeType": "VariableDeclaration",
1137
- "scope": 74640,
1138
- "src": "797:10:96",
1139
- "stateVariable": false,
1140
- "storageLocation": "default",
1141
- "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" },
1142
- "typeName": {
1143
- "id": 74637,
1144
- "name": "bool",
1145
- "nodeType": "ElementaryTypeName",
1146
- "src": "797:4:96",
1147
- "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }
1148
- },
1149
- "visibility": "internal"
1150
- }
1151
- ],
1152
- "src": "780:28:96"
1153
- }
1154
- },
1155
- {
1156
- "id": 74646,
1157
- "nodeType": "EventDefinition",
1158
- "src": "814:71:96",
1159
- "nodes": [],
1160
- "anonymous": false,
1161
- "name": "RewardsDistributed",
1162
- "nameLocation": "820:18:96",
1163
- "parameters": {
1164
- "id": 74645,
1165
- "nodeType": "ParameterList",
1166
- "parameters": [
1167
- {
1168
- "constant": false,
1169
- "id": 74642,
1170
- "indexed": false,
1171
- "mutability": "mutable",
1172
- "name": "juniorRewards",
1173
- "nameLocation": "847:13:96",
1174
- "nodeType": "VariableDeclaration",
1175
- "scope": 74646,
1176
- "src": "839:21:96",
1177
- "stateVariable": false,
1178
- "storageLocation": "default",
1179
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1180
- "typeName": {
1181
- "id": 74641,
1182
- "name": "uint256",
1183
- "nodeType": "ElementaryTypeName",
1184
- "src": "839:7:96",
1185
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1186
- },
1187
- "visibility": "internal"
1188
- },
1189
- {
1190
- "constant": false,
1191
- "id": 74644,
1192
- "indexed": false,
1193
- "mutability": "mutable",
1194
- "name": "seniorRewards",
1195
- "nameLocation": "870:13:96",
1196
- "nodeType": "VariableDeclaration",
1197
- "scope": 74646,
1198
- "src": "862:21:96",
1199
- "stateVariable": false,
1200
- "storageLocation": "default",
1201
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1202
- "typeName": {
1203
- "id": 74643,
1204
- "name": "uint256",
1205
- "nodeType": "ElementaryTypeName",
1206
- "src": "862:7:96",
1207
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1208
- },
1209
- "visibility": "internal"
1210
- }
1211
- ],
1212
- "src": "838:46:96"
1213
- }
1214
- },
1215
- {
1216
- "id": 74652,
1217
- "nodeType": "EventDefinition",
1218
- "src": "890:74:96",
1219
- "nodes": [],
1220
- "anonymous": false,
1221
- "name": "PnlRewardsDistributed",
1222
- "nameLocation": "896:21:96",
1223
- "parameters": {
1224
- "id": 74651,
1225
- "nodeType": "ParameterList",
1226
- "parameters": [
1227
- {
1228
- "constant": false,
1229
- "id": 74648,
1230
- "indexed": false,
1231
- "mutability": "mutable",
1232
- "name": "juniorRewards",
1233
- "nameLocation": "926:13:96",
1234
- "nodeType": "VariableDeclaration",
1235
- "scope": 74652,
1236
- "src": "918:21:96",
1237
- "stateVariable": false,
1238
- "storageLocation": "default",
1239
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1240
- "typeName": {
1241
- "id": 74647,
1242
- "name": "uint256",
1243
- "nodeType": "ElementaryTypeName",
1244
- "src": "918:7:96",
1245
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1246
- },
1247
- "visibility": "internal"
1248
- },
1249
- {
1250
- "constant": false,
1251
- "id": 74650,
1252
- "indexed": false,
1253
- "mutability": "mutable",
1254
- "name": "seniorRewards",
1255
- "nameLocation": "949:13:96",
1256
- "nodeType": "VariableDeclaration",
1257
- "scope": 74652,
1258
- "src": "941:21:96",
1259
- "stateVariable": false,
1260
- "storageLocation": "default",
1261
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1262
- "typeName": {
1263
- "id": 74649,
1264
- "name": "uint256",
1265
- "nodeType": "ElementaryTypeName",
1266
- "src": "941:7:96",
1267
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1268
- },
1269
- "visibility": "internal"
1270
- }
1271
- ],
1272
- "src": "917:46:96"
1273
- }
1274
- },
1275
- {
1276
- "id": 74658,
1277
- "nodeType": "EventDefinition",
1278
- "src": "969:63:96",
1279
- "nodes": [],
1280
- "anonymous": false,
1281
- "name": "USDCSentToTrader",
1282
- "nameLocation": "975:16:96",
1283
- "parameters": {
1284
- "id": 74657,
1285
- "nodeType": "ParameterList",
1286
- "parameters": [
1287
- {
1288
- "constant": false,
1289
- "id": 74654,
1290
- "indexed": true,
1291
- "mutability": "mutable",
1292
- "name": "trader",
1293
- "nameLocation": "1008:6:96",
1294
- "nodeType": "VariableDeclaration",
1295
- "scope": 74658,
1296
- "src": "992:22:96",
1297
- "stateVariable": false,
1298
- "storageLocation": "default",
1299
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1300
- "typeName": {
1301
- "id": 74653,
1302
- "name": "address",
1303
- "nodeType": "ElementaryTypeName",
1304
- "src": "992:7:96",
1305
- "stateMutability": "nonpayable",
1306
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1307
- },
1308
- "visibility": "internal"
1309
- },
1310
- {
1311
- "constant": false,
1312
- "id": 74656,
1313
- "indexed": false,
1314
- "mutability": "mutable",
1315
- "name": "amount",
1316
- "nameLocation": "1024:6:96",
1317
- "nodeType": "VariableDeclaration",
1318
- "scope": 74658,
1319
- "src": "1016:14:96",
1320
- "stateVariable": false,
1321
- "storageLocation": "default",
1322
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1323
- "typeName": {
1324
- "id": 74655,
1325
- "name": "uint256",
1326
- "nodeType": "ElementaryTypeName",
1327
- "src": "1016:7:96",
1328
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1329
- },
1330
- "visibility": "internal"
1331
- }
1332
- ],
1333
- "src": "991:40:96"
1334
- }
1335
- },
1336
- {
1337
- "id": 74664,
1338
- "nodeType": "EventDefinition",
1339
- "src": "1037:69:96",
1340
- "nodes": [],
1341
- "anonymous": false,
1342
- "name": "USDCReceivedFromTrader",
1343
- "nameLocation": "1043:22:96",
1344
- "parameters": {
1345
- "id": 74663,
1346
- "nodeType": "ParameterList",
1347
- "parameters": [
1348
- {
1349
- "constant": false,
1350
- "id": 74660,
1351
- "indexed": true,
1352
- "mutability": "mutable",
1353
- "name": "trader",
1354
- "nameLocation": "1082:6:96",
1355
- "nodeType": "VariableDeclaration",
1356
- "scope": 74664,
1357
- "src": "1066:22:96",
1358
- "stateVariable": false,
1359
- "storageLocation": "default",
1360
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1361
- "typeName": {
1362
- "id": 74659,
1363
- "name": "address",
1364
- "nodeType": "ElementaryTypeName",
1365
- "src": "1066:7:96",
1366
- "stateMutability": "nonpayable",
1367
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1368
- },
1369
- "visibility": "internal"
1370
- },
1371
- {
1372
- "constant": false,
1373
- "id": 74662,
1374
- "indexed": false,
1375
- "mutability": "mutable",
1376
- "name": "amount",
1377
- "nameLocation": "1098:6:96",
1378
- "nodeType": "VariableDeclaration",
1379
- "scope": 74664,
1380
- "src": "1090:14:96",
1381
- "stateVariable": false,
1382
- "storageLocation": "default",
1383
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1384
- "typeName": {
1385
- "id": 74661,
1386
- "name": "uint256",
1387
- "nodeType": "ElementaryTypeName",
1388
- "src": "1090:7:96",
1389
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1390
- },
1391
- "visibility": "internal"
1392
- }
1393
- ],
1394
- "src": "1065:40:96"
1395
- }
1396
- },
1397
- {
1398
- "id": 74668,
1399
- "nodeType": "EventDefinition",
1400
- "src": "1111:38:96",
1401
- "nodes": [],
1402
- "anonymous": false,
1403
- "name": "BalanceReserved",
1404
- "nameLocation": "1117:15:96",
1405
- "parameters": {
1406
- "id": 74667,
1407
- "nodeType": "ParameterList",
1408
- "parameters": [
1409
- {
1410
- "constant": false,
1411
- "id": 74666,
1412
- "indexed": false,
1413
- "mutability": "mutable",
1414
- "name": "amount",
1415
- "nameLocation": "1141:6:96",
1416
- "nodeType": "VariableDeclaration",
1417
- "scope": 74668,
1418
- "src": "1133:14:96",
1419
- "stateVariable": false,
1420
- "storageLocation": "default",
1421
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1422
- "typeName": {
1423
- "id": 74665,
1424
- "name": "uint256",
1425
- "nodeType": "ElementaryTypeName",
1426
- "src": "1133:7:96",
1427
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1428
- },
1429
- "visibility": "internal"
1430
- }
1431
- ],
1432
- "src": "1132:16:96"
1433
- }
1434
- },
1435
- {
1436
- "id": 74672,
1437
- "nodeType": "EventDefinition",
1438
- "src": "1154:38:96",
1439
- "nodes": [],
1440
- "anonymous": false,
1441
- "name": "BalanceReleased",
1442
- "nameLocation": "1160:15:96",
1443
- "parameters": {
1444
- "id": 74671,
1445
- "nodeType": "ParameterList",
1446
- "parameters": [
1447
- {
1448
- "constant": false,
1449
- "id": 74670,
1450
- "indexed": false,
1451
- "mutability": "mutable",
1452
- "name": "amount",
1453
- "nameLocation": "1184:6:96",
1454
- "nodeType": "VariableDeclaration",
1455
- "scope": 74672,
1456
- "src": "1176:14:96",
1457
- "stateVariable": false,
1458
- "storageLocation": "default",
1459
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1460
- "typeName": {
1461
- "id": 74669,
1462
- "name": "uint256",
1463
- "nodeType": "ElementaryTypeName",
1464
- "src": "1176:7:96",
1465
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1466
- },
1467
- "visibility": "internal"
1468
- }
1469
- ],
1470
- "src": "1175:16:96"
1471
- }
1472
- },
1473
- {
1474
- "id": 74676,
1475
- "nodeType": "EventDefinition",
1476
- "src": "1197:38:96",
1477
- "nodes": [],
1478
- "anonymous": false,
1479
- "name": "TradingContractAdded",
1480
- "nameLocation": "1203:20:96",
1481
- "parameters": {
1482
- "id": 74675,
1483
- "nodeType": "ParameterList",
1484
- "parameters": [
1485
- {
1486
- "constant": false,
1487
- "id": 74674,
1488
- "indexed": false,
1489
- "mutability": "mutable",
1490
- "name": "a",
1491
- "nameLocation": "1232:1:96",
1492
- "nodeType": "VariableDeclaration",
1493
- "scope": 74676,
1494
- "src": "1224:9:96",
1495
- "stateVariable": false,
1496
- "storageLocation": "default",
1497
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1498
- "typeName": {
1499
- "id": 74673,
1500
- "name": "address",
1501
- "nodeType": "ElementaryTypeName",
1502
- "src": "1224:7:96",
1503
- "stateMutability": "nonpayable",
1504
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1505
- },
1506
- "visibility": "internal"
1507
- }
1508
- ],
1509
- "src": "1223:11:96"
1510
- }
1511
- },
1512
- {
1513
- "id": 74680,
1514
- "nodeType": "EventDefinition",
1515
- "src": "1240:40:96",
1516
- "nodes": [],
1517
- "anonymous": false,
1518
- "name": "TradingContractRemoved",
1519
- "nameLocation": "1246:22:96",
1520
- "parameters": {
1521
- "id": 74679,
1522
- "nodeType": "ParameterList",
1523
- "parameters": [
1524
- {
1525
- "constant": false,
1526
- "id": 74678,
1527
- "indexed": false,
1528
- "mutability": "mutable",
1529
- "name": "a",
1530
- "nameLocation": "1277:1:96",
1531
- "nodeType": "VariableDeclaration",
1532
- "scope": 74680,
1533
- "src": "1269:9:96",
1534
- "stateVariable": false,
1535
- "storageLocation": "default",
1536
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1537
- "typeName": {
1538
- "id": 74677,
1539
- "name": "address",
1540
- "nodeType": "ElementaryTypeName",
1541
- "src": "1269:7:96",
1542
- "stateMutability": "nonpayable",
1543
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1544
- },
1545
- "visibility": "internal"
1546
- }
1547
- ],
1548
- "src": "1268:11:96"
1549
- }
1550
- },
1551
- {
1552
- "id": 74684,
1553
- "nodeType": "EventDefinition",
1554
- "src": "1285:41:96",
1555
- "nodes": [],
1556
- "anonymous": false,
1557
- "name": "ReferralRebateAwarded",
1558
- "nameLocation": "1291:21:96",
1559
- "parameters": {
1560
- "id": 74683,
1561
- "nodeType": "ParameterList",
1562
- "parameters": [
1563
- {
1564
- "constant": false,
1565
- "id": 74682,
1566
- "indexed": false,
1567
- "mutability": "mutable",
1568
- "name": "amount",
1569
- "nameLocation": "1318:6:96",
1570
- "nodeType": "VariableDeclaration",
1571
- "scope": 74684,
1572
- "src": "1313:11:96",
1573
- "stateVariable": false,
1574
- "storageLocation": "default",
1575
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1576
- "typeName": {
1577
- "id": 74681,
1578
- "name": "uint",
1579
- "nodeType": "ElementaryTypeName",
1580
- "src": "1313:4:96",
1581
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1582
- },
1583
- "visibility": "internal"
1584
- }
1585
- ],
1586
- "src": "1312:13:96"
1587
- }
1588
- },
1589
- {
1590
- "id": 74690,
1591
- "nodeType": "EventDefinition",
1592
- "src": "1331:45:96",
1593
- "nodes": [],
1594
- "anonymous": false,
1595
- "name": "NumberUpdated",
1596
- "nameLocation": "1337:13:96",
1597
- "parameters": {
1598
- "id": 74689,
1599
- "nodeType": "ParameterList",
1600
- "parameters": [
1601
- {
1602
- "constant": false,
1603
- "id": 74686,
1604
- "indexed": false,
1605
- "mutability": "mutable",
1606
- "name": "name",
1607
- "nameLocation": "1358:4:96",
1608
- "nodeType": "VariableDeclaration",
1609
- "scope": 74690,
1610
- "src": "1351:11:96",
1611
- "stateVariable": false,
1612
- "storageLocation": "default",
1613
- "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" },
1614
- "typeName": {
1615
- "id": 74685,
1616
- "name": "string",
1617
- "nodeType": "ElementaryTypeName",
1618
- "src": "1351:6:96",
1619
- "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" }
1620
- },
1621
- "visibility": "internal"
1622
- },
1623
- {
1624
- "constant": false,
1625
- "id": 74688,
1626
- "indexed": false,
1627
- "mutability": "mutable",
1628
- "name": "value",
1629
- "nameLocation": "1369:5:96",
1630
- "nodeType": "VariableDeclaration",
1631
- "scope": 74690,
1632
- "src": "1364:10:96",
1633
- "stateVariable": false,
1634
- "storageLocation": "default",
1635
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1636
- "typeName": {
1637
- "id": 74687,
1638
- "name": "uint",
1639
- "nodeType": "ElementaryTypeName",
1640
- "src": "1364:4:96",
1641
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1642
- },
1643
- "visibility": "internal"
1644
- }
1645
- ],
1646
- "src": "1350:25:96"
1647
- }
1648
- },
1649
- {
1650
- "id": 74694,
1651
- "nodeType": "EventDefinition",
1652
- "src": "1381:41:96",
1653
- "nodes": [],
1654
- "anonymous": false,
1655
- "name": "CurrentOpenPnlUpdated",
1656
- "nameLocation": "1387:21:96",
1657
- "parameters": {
1658
- "id": 74693,
1659
- "nodeType": "ParameterList",
1660
- "parameters": [
1661
- {
1662
- "constant": false,
1663
- "id": 74692,
1664
- "indexed": false,
1665
- "mutability": "mutable",
1666
- "name": "_newPnl",
1667
- "nameLocation": "1413:7:96",
1668
- "nodeType": "VariableDeclaration",
1669
- "scope": 74694,
1670
- "src": "1409:11:96",
1671
- "stateVariable": false,
1672
- "storageLocation": "default",
1673
- "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" },
1674
- "typeName": {
1675
- "id": 74691,
1676
- "name": "int",
1677
- "nodeType": "ElementaryTypeName",
1678
- "src": "1409:3:96",
1679
- "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }
1680
- },
1681
- "visibility": "internal"
1682
- }
1683
- ],
1684
- "src": "1408:13:96"
1685
- }
1686
- },
1687
- {
1688
- "id": 74699,
1689
- "nodeType": "FunctionDefinition",
1690
- "src": "1432:55:96",
1691
- "nodes": [],
1692
- "functionSelector": "d308e10e",
1693
- "implemented": false,
1694
- "kind": "function",
1695
- "modifiers": [],
1696
- "name": "maxLockTime",
1697
- "nameLocation": "1441:11:96",
1698
- "parameters": { "id": 74695, "nodeType": "ParameterList", "parameters": [], "src": "1452:2:96" },
1699
- "returnParameters": {
1700
- "id": 74698,
1701
- "nodeType": "ParameterList",
1702
- "parameters": [
1703
- {
1704
- "constant": false,
1705
- "id": 74697,
1706
- "mutability": "mutable",
1707
- "name": "",
1708
- "nameLocation": "-1:-1:-1",
1709
- "nodeType": "VariableDeclaration",
1710
- "scope": 74699,
1711
- "src": "1478:7:96",
1712
- "stateVariable": false,
1713
- "storageLocation": "default",
1714
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1715
- "typeName": {
1716
- "id": 74696,
1717
- "name": "uint256",
1718
- "nodeType": "ElementaryTypeName",
1719
- "src": "1478:7:96",
1720
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1721
- },
1722
- "visibility": "internal"
1723
- }
1724
- ],
1725
- "src": "1477:9:96"
1726
- },
1727
- "scope": 74772,
1728
- "stateMutability": "view",
1729
- "virtual": false,
1730
- "visibility": "external"
1731
- },
1732
- {
1733
- "id": 74704,
1734
- "nodeType": "FunctionDefinition",
1735
- "src": "1493:55:96",
1736
- "nodes": [],
1737
- "functionSelector": "a60ff766",
1738
- "implemented": false,
1739
- "kind": "function",
1740
- "modifiers": [],
1741
- "name": "minLockTime",
1742
- "nameLocation": "1502:11:96",
1743
- "parameters": { "id": 74700, "nodeType": "ParameterList", "parameters": [], "src": "1513:2:96" },
1744
- "returnParameters": {
1745
- "id": 74703,
1746
- "nodeType": "ParameterList",
1747
- "parameters": [
1748
- {
1749
- "constant": false,
1750
- "id": 74702,
1751
- "mutability": "mutable",
1752
- "name": "",
1753
- "nameLocation": "-1:-1:-1",
1754
- "nodeType": "VariableDeclaration",
1755
- "scope": 74704,
1756
- "src": "1539:7:96",
1757
- "stateVariable": false,
1758
- "storageLocation": "default",
1759
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1760
- "typeName": {
1761
- "id": 74701,
1762
- "name": "uint256",
1763
- "nodeType": "ElementaryTypeName",
1764
- "src": "1539:7:96",
1765
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1766
- },
1767
- "visibility": "internal"
1768
- }
1769
- ],
1770
- "src": "1538:9:96"
1771
- },
1772
- "scope": 74772,
1773
- "stateMutability": "view",
1774
- "virtual": false,
1775
- "visibility": "external"
1776
- },
1777
- {
1778
- "id": 74709,
1779
- "nodeType": "FunctionDefinition",
1780
- "src": "1554:60:96",
1781
- "nodes": [],
1782
- "functionSelector": "a80a7882",
1783
- "implemented": false,
1784
- "kind": "function",
1785
- "modifiers": [],
1786
- "name": "earlyWithdrawFee",
1787
- "nameLocation": "1563:16:96",
1788
- "parameters": { "id": 74705, "nodeType": "ParameterList", "parameters": [], "src": "1579:2:96" },
1789
- "returnParameters": {
1790
- "id": 74708,
1791
- "nodeType": "ParameterList",
1792
- "parameters": [
1793
- {
1794
- "constant": false,
1795
- "id": 74707,
1796
- "mutability": "mutable",
1797
- "name": "",
1798
- "nameLocation": "-1:-1:-1",
1799
- "nodeType": "VariableDeclaration",
1800
- "scope": 74709,
1801
- "src": "1605:7:96",
1802
- "stateVariable": false,
1803
- "storageLocation": "default",
1804
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1805
- "typeName": {
1806
- "id": 74706,
1807
- "name": "uint256",
1808
- "nodeType": "ElementaryTypeName",
1809
- "src": "1605:7:96",
1810
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1811
- },
1812
- "visibility": "internal"
1813
- }
1814
- ],
1815
- "src": "1604:9:96"
1816
- },
1817
- "scope": 74772,
1818
- "stateMutability": "view",
1819
- "virtual": false,
1820
- "visibility": "external"
1821
- },
1822
- {
1823
- "id": 74720,
1824
- "nodeType": "FunctionDefinition",
1825
- "src": "1620:81:96",
1826
- "nodes": [],
1827
- "functionSelector": "f85facea",
1828
- "implemented": false,
1829
- "kind": "function",
1830
- "modifiers": [],
1831
- "name": "getBalancingFee",
1832
- "nameLocation": "1629:15:96",
1833
- "parameters": {
1834
- "id": 74716,
1835
- "nodeType": "ParameterList",
1836
- "parameters": [
1837
- {
1838
- "constant": false,
1839
- "id": 74711,
1840
- "mutability": "mutable",
1841
- "name": "",
1842
- "nameLocation": "-1:-1:-1",
1843
- "nodeType": "VariableDeclaration",
1844
- "scope": 74720,
1845
- "src": "1645:7:96",
1846
- "stateVariable": false,
1847
- "storageLocation": "default",
1848
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1849
- "typeName": {
1850
- "id": 74710,
1851
- "name": "address",
1852
- "nodeType": "ElementaryTypeName",
1853
- "src": "1645:7:96",
1854
- "stateMutability": "nonpayable",
1855
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1856
- },
1857
- "visibility": "internal"
1858
- },
1859
- {
1860
- "constant": false,
1861
- "id": 74713,
1862
- "mutability": "mutable",
1863
- "name": "",
1864
- "nameLocation": "-1:-1:-1",
1865
- "nodeType": "VariableDeclaration",
1866
- "scope": 74720,
1867
- "src": "1654:4:96",
1868
- "stateVariable": false,
1869
- "storageLocation": "default",
1870
- "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" },
1871
- "typeName": {
1872
- "id": 74712,
1873
- "name": "bool",
1874
- "nodeType": "ElementaryTypeName",
1875
- "src": "1654:4:96",
1876
- "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }
1877
- },
1878
- "visibility": "internal"
1879
- },
1880
- {
1881
- "constant": false,
1882
- "id": 74715,
1883
- "mutability": "mutable",
1884
- "name": "",
1885
- "nameLocation": "-1:-1:-1",
1886
- "nodeType": "VariableDeclaration",
1887
- "scope": 74720,
1888
- "src": "1660:7:96",
1889
- "stateVariable": false,
1890
- "storageLocation": "default",
1891
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1892
- "typeName": {
1893
- "id": 74714,
1894
- "name": "uint256",
1895
- "nodeType": "ElementaryTypeName",
1896
- "src": "1660:7:96",
1897
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1898
- },
1899
- "visibility": "internal"
1900
- }
1901
- ],
1902
- "src": "1644:24:96"
1903
- },
1904
- "returnParameters": {
1905
- "id": 74719,
1906
- "nodeType": "ParameterList",
1907
- "parameters": [
1908
- {
1909
- "constant": false,
1910
- "id": 74718,
1911
- "mutability": "mutable",
1912
- "name": "",
1913
- "nameLocation": "-1:-1:-1",
1914
- "nodeType": "VariableDeclaration",
1915
- "scope": 74720,
1916
- "src": "1692:7:96",
1917
- "stateVariable": false,
1918
- "storageLocation": "default",
1919
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1920
- "typeName": {
1921
- "id": 74717,
1922
- "name": "uint256",
1923
- "nodeType": "ElementaryTypeName",
1924
- "src": "1692:7:96",
1925
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1926
- },
1927
- "visibility": "internal"
1928
- }
1929
- ],
1930
- "src": "1691:9:96"
1931
- },
1932
- "scope": 74772,
1933
- "stateMutability": "view",
1934
- "virtual": false,
1935
- "visibility": "external"
1936
- },
1937
- {
1938
- "id": 74725,
1939
- "nodeType": "FunctionDefinition",
1940
- "src": "1707:60:96",
1941
- "nodes": [],
1942
- "functionSelector": "a9863448",
1943
- "implemented": false,
1944
- "kind": "function",
1945
- "modifiers": [],
1946
- "name": "getCollateralFee",
1947
- "nameLocation": "1716:16:96",
1948
- "parameters": { "id": 74721, "nodeType": "ParameterList", "parameters": [], "src": "1732:2:96" },
1949
- "returnParameters": {
1950
- "id": 74724,
1951
- "nodeType": "ParameterList",
1952
- "parameters": [
1953
- {
1954
- "constant": false,
1955
- "id": 74723,
1956
- "mutability": "mutable",
1957
- "name": "",
1958
- "nameLocation": "-1:-1:-1",
1959
- "nodeType": "VariableDeclaration",
1960
- "scope": 74725,
1961
- "src": "1758:7:96",
1962
- "stateVariable": false,
1963
- "storageLocation": "default",
1964
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1965
- "typeName": {
1966
- "id": 74722,
1967
- "name": "uint256",
1968
- "nodeType": "ElementaryTypeName",
1969
- "src": "1758:7:96",
1970
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1971
- },
1972
- "visibility": "internal"
1973
- }
1974
- ],
1975
- "src": "1757:9:96"
1976
- },
1977
- "scope": 74772,
1978
- "stateMutability": "view",
1979
- "virtual": false,
1980
- "visibility": "external"
1981
- },
1982
- {
1983
- "id": 74730,
1984
- "nodeType": "FunctionDefinition",
1985
- "src": "1773:47:96",
1986
- "nodes": [],
1987
- "functionSelector": "12d43a51",
1988
- "implemented": false,
1989
- "kind": "function",
1990
- "modifiers": [],
1991
- "name": "gov",
1992
- "nameLocation": "1782:3:96",
1993
- "parameters": { "id": 74726, "nodeType": "ParameterList", "parameters": [], "src": "1785:2:96" },
1994
- "returnParameters": {
1995
- "id": 74729,
1996
- "nodeType": "ParameterList",
1997
- "parameters": [
1998
- {
1999
- "constant": false,
2000
- "id": 74728,
2001
- "mutability": "mutable",
2002
- "name": "",
2003
- "nameLocation": "-1:-1:-1",
2004
- "nodeType": "VariableDeclaration",
2005
- "scope": 74730,
2006
- "src": "1811:7:96",
2007
- "stateVariable": false,
2008
- "storageLocation": "default",
2009
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
2010
- "typeName": {
2011
- "id": 74727,
2012
- "name": "address",
2013
- "nodeType": "ElementaryTypeName",
2014
- "src": "1811:7:96",
2015
- "stateMutability": "nonpayable",
2016
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
2017
- },
2018
- "visibility": "internal"
2019
- }
2020
- ],
2021
- "src": "1810:9:96"
2022
- },
2023
- "scope": 74772,
2024
- "stateMutability": "view",
2025
- "virtual": false,
2026
- "visibility": "external"
2027
- },
2028
- {
2029
- "id": 74737,
2030
- "nodeType": "FunctionDefinition",
2031
- "src": "1826:50:96",
2032
- "nodes": [],
2033
- "functionSelector": "6a562b22",
2034
- "implemented": false,
2035
- "kind": "function",
2036
- "modifiers": [],
2037
- "name": "sendUSDCToTrader",
2038
- "nameLocation": "1835:16:96",
2039
- "parameters": {
2040
- "id": 74735,
2041
- "nodeType": "ParameterList",
2042
- "parameters": [
2043
- {
2044
- "constant": false,
2045
- "id": 74732,
2046
- "mutability": "mutable",
2047
- "name": "",
2048
- "nameLocation": "-1:-1:-1",
2049
- "nodeType": "VariableDeclaration",
2050
- "scope": 74737,
2051
- "src": "1852:7:96",
2052
- "stateVariable": false,
2053
- "storageLocation": "default",
2054
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
2055
- "typeName": {
2056
- "id": 74731,
2057
- "name": "address",
2058
- "nodeType": "ElementaryTypeName",
2059
- "src": "1852:7:96",
2060
- "stateMutability": "nonpayable",
2061
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
2062
- },
2063
- "visibility": "internal"
2064
- },
2065
- {
2066
- "constant": false,
2067
- "id": 74734,
2068
- "mutability": "mutable",
2069
- "name": "",
2070
- "nameLocation": "-1:-1:-1",
2071
- "nodeType": "VariableDeclaration",
2072
- "scope": 74737,
2073
- "src": "1861:4:96",
2074
- "stateVariable": false,
2075
- "storageLocation": "default",
2076
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2077
- "typeName": {
2078
- "id": 74733,
2079
- "name": "uint",
2080
- "nodeType": "ElementaryTypeName",
2081
- "src": "1861:4:96",
2082
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2083
- },
2084
- "visibility": "internal"
2085
- }
2086
- ],
2087
- "src": "1851:15:96"
2088
- },
2089
- "returnParameters": { "id": 74736, "nodeType": "ParameterList", "parameters": [], "src": "1875:0:96" },
2090
- "scope": 74772,
2091
- "stateMutability": "nonpayable",
2092
- "virtual": false,
2093
- "visibility": "external"
2094
- },
2095
- {
2096
- "id": 74744,
2097
- "nodeType": "FunctionDefinition",
2098
- "src": "1882:55:96",
2099
- "nodes": [],
2100
- "functionSelector": "5a65ca91",
2101
- "implemented": false,
2102
- "kind": "function",
2103
- "modifiers": [],
2104
- "name": "receiveUSDCFromTrader",
2105
- "nameLocation": "1891:21:96",
2106
- "parameters": {
2107
- "id": 74742,
2108
- "nodeType": "ParameterList",
2109
- "parameters": [
2110
- {
2111
- "constant": false,
2112
- "id": 74739,
2113
- "mutability": "mutable",
2114
- "name": "",
2115
- "nameLocation": "-1:-1:-1",
2116
- "nodeType": "VariableDeclaration",
2117
- "scope": 74744,
2118
- "src": "1913:7:96",
2119
- "stateVariable": false,
2120
- "storageLocation": "default",
2121
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
2122
- "typeName": {
2123
- "id": 74738,
2124
- "name": "address",
2125
- "nodeType": "ElementaryTypeName",
2126
- "src": "1913:7:96",
2127
- "stateMutability": "nonpayable",
2128
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
2129
- },
2130
- "visibility": "internal"
2131
- },
2132
- {
2133
- "constant": false,
2134
- "id": 74741,
2135
- "mutability": "mutable",
2136
- "name": "",
2137
- "nameLocation": "-1:-1:-1",
2138
- "nodeType": "VariableDeclaration",
2139
- "scope": 74744,
2140
- "src": "1922:4:96",
2141
- "stateVariable": false,
2142
- "storageLocation": "default",
2143
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2144
- "typeName": {
2145
- "id": 74740,
2146
- "name": "uint",
2147
- "nodeType": "ElementaryTypeName",
2148
- "src": "1922:4:96",
2149
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2150
- },
2151
- "visibility": "internal"
2152
- }
2153
- ],
2154
- "src": "1912:15:96"
2155
- },
2156
- "returnParameters": { "id": 74743, "nodeType": "ParameterList", "parameters": [], "src": "1936:0:96" },
2157
- "scope": 74772,
2158
- "stateMutability": "nonpayable",
2159
- "virtual": false,
2160
- "visibility": "external"
2161
- },
2162
- {
2163
- "id": 74749,
2164
- "nodeType": "FunctionDefinition",
2165
- "src": "1943:62:96",
2166
- "nodes": [],
2167
- "functionSelector": "7b78d782",
2168
- "implemented": false,
2169
- "kind": "function",
2170
- "modifiers": [],
2171
- "name": "currentBalanceUSDC",
2172
- "nameLocation": "1952:18:96",
2173
- "parameters": { "id": 74745, "nodeType": "ParameterList", "parameters": [], "src": "1970:2:96" },
2174
- "returnParameters": {
2175
- "id": 74748,
2176
- "nodeType": "ParameterList",
2177
- "parameters": [
2178
- {
2179
- "constant": false,
2180
- "id": 74747,
2181
- "mutability": "mutable",
2182
- "name": "",
2183
- "nameLocation": "-1:-1:-1",
2184
- "nodeType": "VariableDeclaration",
2185
- "scope": 74749,
2186
- "src": "1996:7:96",
2187
- "stateVariable": false,
2188
- "storageLocation": "default",
2189
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2190
- "typeName": {
2191
- "id": 74746,
2192
- "name": "uint256",
2193
- "nodeType": "ElementaryTypeName",
2194
- "src": "1996:7:96",
2195
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2196
- },
2197
- "visibility": "internal"
2198
- }
2199
- ],
2200
- "src": "1995:9:96"
2201
- },
2202
- "scope": 74772,
2203
- "stateMutability": "view",
2204
- "virtual": false,
2205
- "visibility": "external"
2206
- },
2207
- {
2208
- "id": 74756,
2209
- "nodeType": "FunctionDefinition",
2210
- "src": "2011:49:96",
2211
- "nodes": [],
2212
- "functionSelector": "5b898b75",
2213
- "implemented": false,
2214
- "kind": "function",
2215
- "modifiers": [],
2216
- "name": "allocateRewards",
2217
- "nameLocation": "2020:15:96",
2218
- "parameters": {
2219
- "id": 74754,
2220
- "nodeType": "ParameterList",
2221
- "parameters": [
2222
- {
2223
- "constant": false,
2224
- "id": 74751,
2225
- "mutability": "mutable",
2226
- "name": "",
2227
- "nameLocation": "-1:-1:-1",
2228
- "nodeType": "VariableDeclaration",
2229
- "scope": 74756,
2230
- "src": "2036:7:96",
2231
- "stateVariable": false,
2232
- "storageLocation": "default",
2233
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2234
- "typeName": {
2235
- "id": 74750,
2236
- "name": "uint256",
2237
- "nodeType": "ElementaryTypeName",
2238
- "src": "2036:7:96",
2239
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2240
- },
2241
- "visibility": "internal"
2242
- },
2243
- {
2244
- "constant": false,
2245
- "id": 74753,
2246
- "mutability": "mutable",
2247
- "name": "",
2248
- "nameLocation": "-1:-1:-1",
2249
- "nodeType": "VariableDeclaration",
2250
- "scope": 74756,
2251
- "src": "2045:4:96",
2252
- "stateVariable": false,
2253
- "storageLocation": "default",
2254
- "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" },
2255
- "typeName": {
2256
- "id": 74752,
2257
- "name": "bool",
2258
- "nodeType": "ElementaryTypeName",
2259
- "src": "2045:4:96",
2260
- "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }
2261
- },
2262
- "visibility": "internal"
2263
- }
2264
- ],
2265
- "src": "2035:15:96"
2266
- },
2267
- "returnParameters": { "id": 74755, "nodeType": "ParameterList", "parameters": [], "src": "2059:0:96" },
2268
- "scope": 74772,
2269
- "stateMutability": "nonpayable",
2270
- "virtual": false,
2271
- "visibility": "external"
2272
- },
2273
- {
2274
- "id": 74761,
2275
- "nodeType": "FunctionDefinition",
2276
- "src": "2066:42:96",
2277
- "nodes": [],
2278
- "functionSelector": "14269687",
2279
- "implemented": false,
2280
- "kind": "function",
2281
- "modifiers": [],
2282
- "name": "reserveBalance",
2283
- "nameLocation": "2075:14:96",
2284
- "parameters": {
2285
- "id": 74759,
2286
- "nodeType": "ParameterList",
2287
- "parameters": [
2288
- {
2289
- "constant": false,
2290
- "id": 74758,
2291
- "mutability": "mutable",
2292
- "name": "",
2293
- "nameLocation": "-1:-1:-1",
2294
- "nodeType": "VariableDeclaration",
2295
- "scope": 74761,
2296
- "src": "2090:7:96",
2297
- "stateVariable": false,
2298
- "storageLocation": "default",
2299
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2300
- "typeName": {
2301
- "id": 74757,
2302
- "name": "uint256",
2303
- "nodeType": "ElementaryTypeName",
2304
- "src": "2090:7:96",
2305
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2306
- },
2307
- "visibility": "internal"
2308
- }
2309
- ],
2310
- "src": "2089:9:96"
2311
- },
2312
- "returnParameters": { "id": 74760, "nodeType": "ParameterList", "parameters": [], "src": "2107:0:96" },
2313
- "scope": 74772,
2314
- "stateMutability": "nonpayable",
2315
- "virtual": false,
2316
- "visibility": "external"
2317
- },
2318
- {
2319
- "id": 74766,
2320
- "nodeType": "FunctionDefinition",
2321
- "src": "2114:42:96",
2322
- "nodes": [],
2323
- "functionSelector": "76079be3",
2324
- "implemented": false,
2325
- "kind": "function",
2326
- "modifiers": [],
2327
- "name": "releaseBalance",
2328
- "nameLocation": "2123:14:96",
2329
- "parameters": {
2330
- "id": 74764,
2331
- "nodeType": "ParameterList",
2332
- "parameters": [
2333
- {
2334
- "constant": false,
2335
- "id": 74763,
2336
- "mutability": "mutable",
2337
- "name": "",
2338
- "nameLocation": "-1:-1:-1",
2339
- "nodeType": "VariableDeclaration",
2340
- "scope": 74766,
2341
- "src": "2138:7:96",
2342
- "stateVariable": false,
2343
- "storageLocation": "default",
2344
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2345
- "typeName": {
2346
- "id": 74762,
2347
- "name": "uint256",
2348
- "nodeType": "ElementaryTypeName",
2349
- "src": "2138:7:96",
2350
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2351
- },
2352
- "visibility": "internal"
2353
- }
2354
- ],
2355
- "src": "2137:9:96"
2356
- },
2357
- "returnParameters": { "id": 74765, "nodeType": "ParameterList", "parameters": [], "src": "2155:0:96" },
2358
- "scope": 74772,
2359
- "stateMutability": "nonpayable",
2360
- "virtual": false,
2361
- "visibility": "external"
2362
- },
2363
- {
2364
- "id": 74771,
2365
- "nodeType": "FunctionDefinition",
2366
- "src": "2162:52:96",
2367
- "nodes": [],
2368
- "functionSelector": "a056d2bb",
2369
- "implemented": false,
2370
- "kind": "function",
2371
- "modifiers": [],
2372
- "name": "sendReferrerRebateToStorage",
2373
- "nameLocation": "2171:27:96",
2374
- "parameters": {
2375
- "id": 74769,
2376
- "nodeType": "ParameterList",
2377
- "parameters": [
2378
- {
2379
- "constant": false,
2380
- "id": 74768,
2381
- "mutability": "mutable",
2382
- "name": "",
2383
- "nameLocation": "-1:-1:-1",
2384
- "nodeType": "VariableDeclaration",
2385
- "scope": 74771,
2386
- "src": "2199:4:96",
2387
- "stateVariable": false,
2388
- "storageLocation": "default",
2389
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2390
- "typeName": {
2391
- "id": 74767,
2392
- "name": "uint",
2393
- "nodeType": "ElementaryTypeName",
2394
- "src": "2199:4:96",
2395
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2396
- },
2397
- "visibility": "internal"
2398
- }
2399
- ],
2400
- "src": "2198:6:96"
2401
- },
2402
- "returnParameters": { "id": 74770, "nodeType": "ParameterList", "parameters": [], "src": "2213:0:96" },
2403
- "scope": 74772,
2404
- "stateMutability": "nonpayable",
2405
- "virtual": false,
2406
- "visibility": "external"
2407
- }
2408
- ],
2409
- "abstract": false,
2410
- "baseContracts": [],
2411
- "contractDependencies": [],
2412
- "contractKind": "interface",
2413
- "fullyImplemented": false,
2414
- "linearizedBaseContracts": [74772],
2415
- "name": "IVaultManager",
2416
- "nameLocation": "66:13:96",
2417
- "scope": 74773,
2418
- "usedErrors": []
2419
- }
2420
- ],
2421
- "license": "MIT"
2422
- },
2423
- "id": 96
2424
- }
1
+ {
2
+ "abi": [
3
+ {
4
+ "type": "function",
5
+ "name": "allocateRewards",
6
+ "inputs": [
7
+ { "name": "", "type": "uint256", "internalType": "uint256" },
8
+ { "name": "", "type": "bool", "internalType": "bool" }
9
+ ],
10
+ "outputs": [],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "function",
15
+ "name": "currentBalanceUSDC",
16
+ "inputs": [],
17
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
18
+ "stateMutability": "view"
19
+ },
20
+ {
21
+ "type": "function",
22
+ "name": "earlyWithdrawFee",
23
+ "inputs": [],
24
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
25
+ "stateMutability": "view"
26
+ },
27
+ {
28
+ "type": "function",
29
+ "name": "getBalancingFee",
30
+ "inputs": [
31
+ { "name": "", "type": "address", "internalType": "address" },
32
+ { "name": "", "type": "bool", "internalType": "bool" },
33
+ { "name": "", "type": "uint256", "internalType": "uint256" }
34
+ ],
35
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
36
+ "stateMutability": "view"
37
+ },
38
+ {
39
+ "type": "function",
40
+ "name": "getCollateralFee",
41
+ "inputs": [],
42
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
43
+ "stateMutability": "view"
44
+ },
45
+ {
46
+ "type": "function",
47
+ "name": "gov",
48
+ "inputs": [],
49
+ "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
50
+ "stateMutability": "view"
51
+ },
52
+ {
53
+ "type": "function",
54
+ "name": "maxLockTime",
55
+ "inputs": [],
56
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
57
+ "stateMutability": "view"
58
+ },
59
+ {
60
+ "type": "function",
61
+ "name": "minLockTime",
62
+ "inputs": [],
63
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
64
+ "stateMutability": "view"
65
+ },
66
+ {
67
+ "type": "function",
68
+ "name": "receiveUSDCFromTrader",
69
+ "inputs": [
70
+ { "name": "", "type": "address", "internalType": "address" },
71
+ { "name": "", "type": "uint256", "internalType": "uint256" }
72
+ ],
73
+ "outputs": [],
74
+ "stateMutability": "nonpayable"
75
+ },
76
+ {
77
+ "type": "function",
78
+ "name": "releaseBalance",
79
+ "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
80
+ "outputs": [],
81
+ "stateMutability": "nonpayable"
82
+ },
83
+ {
84
+ "type": "function",
85
+ "name": "reserveBalance",
86
+ "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
87
+ "outputs": [],
88
+ "stateMutability": "nonpayable"
89
+ },
90
+ {
91
+ "type": "function",
92
+ "name": "sendReferrerRebateToStorage",
93
+ "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
94
+ "outputs": [],
95
+ "stateMutability": "nonpayable"
96
+ },
97
+ {
98
+ "type": "function",
99
+ "name": "sendUSDCToTrader",
100
+ "inputs": [
101
+ { "name": "", "type": "address", "internalType": "address" },
102
+ { "name": "", "type": "uint256", "internalType": "uint256" }
103
+ ],
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable"
106
+ },
107
+ {
108
+ "type": "event",
109
+ "name": "BalanceReleased",
110
+ "inputs": [{ "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }],
111
+ "anonymous": false
112
+ },
113
+ {
114
+ "type": "event",
115
+ "name": "BalanceReserved",
116
+ "inputs": [{ "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }],
117
+ "anonymous": false
118
+ },
119
+ {
120
+ "type": "event",
121
+ "name": "BalancingDeltaUpdated",
122
+ "inputs": [
123
+ { "name": "previousDelta", "type": "uint256", "indexed": false, "internalType": "uint256" },
124
+ { "name": "newDelta", "type": "uint256", "indexed": false, "internalType": "uint256" }
125
+ ],
126
+ "anonymous": false
127
+ },
128
+ {
129
+ "type": "event",
130
+ "name": "ConstrainedLiquidityThresholdUpdated",
131
+ "inputs": [
132
+ { "name": "previousThreshold", "type": "uint256", "indexed": false, "internalType": "uint256" },
133
+ { "name": "newThreshold", "type": "uint256", "indexed": false, "internalType": "uint256" }
134
+ ],
135
+ "anonymous": false
136
+ },
137
+ {
138
+ "type": "event",
139
+ "name": "CurrentOpenPnlUpdated",
140
+ "inputs": [{ "name": "_newPnl", "type": "int256", "indexed": false, "internalType": "int256" }],
141
+ "anonymous": false
142
+ },
143
+ {
144
+ "type": "event",
145
+ "name": "EarlyWithdrawFeeUpdated",
146
+ "inputs": [
147
+ { "name": "previousFee", "type": "uint256", "indexed": false, "internalType": "uint256" },
148
+ { "name": "newFee", "type": "uint256", "indexed": false, "internalType": "uint256" }
149
+ ],
150
+ "anonymous": false
151
+ },
152
+ {
153
+ "type": "event",
154
+ "name": "GovChanged",
155
+ "inputs": [
156
+ { "name": "previousGov", "type": "address", "indexed": true, "internalType": "address" },
157
+ { "name": "newGov", "type": "address", "indexed": true, "internalType": "address" }
158
+ ],
159
+ "anonymous": false
160
+ },
161
+ {
162
+ "type": "event",
163
+ "name": "JuniorTrancheChanged",
164
+ "inputs": [
165
+ { "name": "previousJunior", "type": "address", "indexed": true, "internalType": "address" },
166
+ { "name": "newJunior", "type": "address", "indexed": true, "internalType": "address" }
167
+ ],
168
+ "anonymous": false
169
+ },
170
+ {
171
+ "type": "event",
172
+ "name": "NumberUpdated",
173
+ "inputs": [
174
+ { "name": "name", "type": "string", "indexed": false, "internalType": "string" },
175
+ { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
176
+ ],
177
+ "anonymous": false
178
+ },
179
+ {
180
+ "type": "event",
181
+ "name": "PnlRewardsDistributed",
182
+ "inputs": [
183
+ { "name": "juniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" },
184
+ { "name": "seniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" }
185
+ ],
186
+ "anonymous": false
187
+ },
188
+ {
189
+ "type": "event",
190
+ "name": "ReferralRebateAwarded",
191
+ "inputs": [{ "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }],
192
+ "anonymous": false
193
+ },
194
+ {
195
+ "type": "event",
196
+ "name": "ReserveRatioUpdated",
197
+ "inputs": [
198
+ { "name": "previousRatio", "type": "uint256", "indexed": false, "internalType": "uint256" },
199
+ { "name": "newRatio", "type": "uint256", "indexed": false, "internalType": "uint256" }
200
+ ],
201
+ "anonymous": false
202
+ },
203
+ {
204
+ "type": "event",
205
+ "name": "RewardsAllocated",
206
+ "inputs": [
207
+ { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" },
208
+ { "name": "isPnl", "type": "bool", "indexed": false, "internalType": "bool" }
209
+ ],
210
+ "anonymous": false
211
+ },
212
+ {
213
+ "type": "event",
214
+ "name": "RewardsDistributed",
215
+ "inputs": [
216
+ { "name": "juniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" },
217
+ { "name": "seniorRewards", "type": "uint256", "indexed": false, "internalType": "uint256" }
218
+ ],
219
+ "anonymous": false
220
+ },
221
+ {
222
+ "type": "event",
223
+ "name": "SeniorTrancheChanged",
224
+ "inputs": [
225
+ { "name": "previousSenior", "type": "address", "indexed": true, "internalType": "address" },
226
+ { "name": "newSenior", "type": "address", "indexed": true, "internalType": "address" }
227
+ ],
228
+ "anonymous": false
229
+ },
230
+ {
231
+ "type": "event",
232
+ "name": "StorageChanged",
233
+ "inputs": [
234
+ { "name": "previousStorage", "type": "address", "indexed": true, "internalType": "address" },
235
+ { "name": "newStorage", "type": "address", "indexed": true, "internalType": "address" }
236
+ ],
237
+ "anonymous": false
238
+ },
239
+ {
240
+ "type": "event",
241
+ "name": "TradingContractAdded",
242
+ "inputs": [{ "name": "a", "type": "address", "indexed": false, "internalType": "address" }],
243
+ "anonymous": false
244
+ },
245
+ {
246
+ "type": "event",
247
+ "name": "TradingContractRemoved",
248
+ "inputs": [{ "name": "a", "type": "address", "indexed": false, "internalType": "address" }],
249
+ "anonymous": false
250
+ },
251
+ {
252
+ "type": "event",
253
+ "name": "USDCReceivedFromTrader",
254
+ "inputs": [
255
+ { "name": "trader", "type": "address", "indexed": true, "internalType": "address" },
256
+ { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }
257
+ ],
258
+ "anonymous": false
259
+ },
260
+ {
261
+ "type": "event",
262
+ "name": "USDCSentToTrader",
263
+ "inputs": [
264
+ { "name": "trader", "type": "address", "indexed": true, "internalType": "address" },
265
+ { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }
266
+ ],
267
+ "anonymous": false
268
+ }
269
+ ],
270
+ "bytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
271
+ "deployedBytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
272
+ "methodIdentifiers": {
273
+ "allocateRewards(uint256,bool)": "5b898b75",
274
+ "currentBalanceUSDC()": "7b78d782",
275
+ "earlyWithdrawFee()": "a80a7882",
276
+ "getBalancingFee(address,bool,uint256)": "f85facea",
277
+ "getCollateralFee()": "a9863448",
278
+ "gov()": "12d43a51",
279
+ "maxLockTime()": "d308e10e",
280
+ "minLockTime()": "a60ff766",
281
+ "receiveUSDCFromTrader(address,uint256)": "5a65ca91",
282
+ "releaseBalance(uint256)": "76079be3",
283
+ "reserveBalance(uint256)": "14269687",
284
+ "sendReferrerRebateToStorage(uint256)": "a056d2bb",
285
+ "sendUSDCToTrader(address,uint256)": "6a562b22"
286
+ },
287
+ "rawMetadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BalanceReleased\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BalanceReserved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousDelta\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDelta\",\"type\":\"uint256\"}],\"name\":\"BalancingDeltaUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousThreshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newThreshold\",\"type\":\"uint256\"}],\"name\":\"ConstrainedLiquidityThresholdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"_newPnl\",\"type\":\"int256\"}],\"name\":\"CurrentOpenPnlUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFee\",\"type\":\"uint256\"}],\"name\":\"EarlyWithdrawFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousGov\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newGov\",\"type\":\"address\"}],\"name\":\"GovChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousJunior\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newJunior\",\"type\":\"address\"}],\"name\":\"JuniorTrancheChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"NumberUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"juniorRewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"seniorRewards\",\"type\":\"uint256\"}],\"name\":\"PnlRewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ReferralRebateAwarded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousRatio\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRatio\",\"type\":\"uint256\"}],\"name\":\"ReserveRatioUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isPnl\",\"type\":\"bool\"}],\"name\":\"RewardsAllocated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"juniorRewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"seniorRewards\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousSenior\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newSenior\",\"type\":\"address\"}],\"name\":\"SeniorTrancheChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousStorage\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newStorage\",\"type\":\"address\"}],\"name\":\"StorageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"a\",\"type\":\"address\"}],\"name\":\"TradingContractAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"a\",\"type\":\"address\"}],\"name\":\"TradingContractRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"USDCReceivedFromTrader\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"USDCSentToTrader\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"name\":\"allocateRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentBalanceUSDC\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"earlyWithdrawFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getBalancingFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCollateralFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gov\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minLockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"receiveUSDCFromTrader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"releaseBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"reserveBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"sendReferrerRebateToStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"sendUSDCToTrader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/IVaultManager.sol\":\"IVaultManager\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@chainlink/=lib/chainlink/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":chainlink/=lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":pyth-sdk-solidity/=lib/pyth-sdk-solidity/\"]},\"sources\":{\"src/interfaces/IVaultManager.sol\":{\"keccak256\":\"0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05\",\"dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ\"]}},\"version\":1}",
288
+ "metadata": {
289
+ "compiler": { "version": "0.8.7+commit.e28d00a7" },
290
+ "language": "Solidity",
291
+ "output": {
292
+ "abi": [
293
+ {
294
+ "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }],
295
+ "type": "event",
296
+ "name": "BalanceReleased",
297
+ "anonymous": false
298
+ },
299
+ {
300
+ "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }],
301
+ "type": "event",
302
+ "name": "BalanceReserved",
303
+ "anonymous": false
304
+ },
305
+ {
306
+ "inputs": [
307
+ { "internalType": "uint256", "name": "previousDelta", "type": "uint256", "indexed": false },
308
+ { "internalType": "uint256", "name": "newDelta", "type": "uint256", "indexed": false }
309
+ ],
310
+ "type": "event",
311
+ "name": "BalancingDeltaUpdated",
312
+ "anonymous": false
313
+ },
314
+ {
315
+ "inputs": [
316
+ { "internalType": "uint256", "name": "previousThreshold", "type": "uint256", "indexed": false },
317
+ { "internalType": "uint256", "name": "newThreshold", "type": "uint256", "indexed": false }
318
+ ],
319
+ "type": "event",
320
+ "name": "ConstrainedLiquidityThresholdUpdated",
321
+ "anonymous": false
322
+ },
323
+ {
324
+ "inputs": [{ "internalType": "int256", "name": "_newPnl", "type": "int256", "indexed": false }],
325
+ "type": "event",
326
+ "name": "CurrentOpenPnlUpdated",
327
+ "anonymous": false
328
+ },
329
+ {
330
+ "inputs": [
331
+ { "internalType": "uint256", "name": "previousFee", "type": "uint256", "indexed": false },
332
+ { "internalType": "uint256", "name": "newFee", "type": "uint256", "indexed": false }
333
+ ],
334
+ "type": "event",
335
+ "name": "EarlyWithdrawFeeUpdated",
336
+ "anonymous": false
337
+ },
338
+ {
339
+ "inputs": [
340
+ { "internalType": "address", "name": "previousGov", "type": "address", "indexed": true },
341
+ { "internalType": "address", "name": "newGov", "type": "address", "indexed": true }
342
+ ],
343
+ "type": "event",
344
+ "name": "GovChanged",
345
+ "anonymous": false
346
+ },
347
+ {
348
+ "inputs": [
349
+ { "internalType": "address", "name": "previousJunior", "type": "address", "indexed": true },
350
+ { "internalType": "address", "name": "newJunior", "type": "address", "indexed": true }
351
+ ],
352
+ "type": "event",
353
+ "name": "JuniorTrancheChanged",
354
+ "anonymous": false
355
+ },
356
+ {
357
+ "inputs": [
358
+ { "internalType": "string", "name": "name", "type": "string", "indexed": false },
359
+ { "internalType": "uint256", "name": "value", "type": "uint256", "indexed": false }
360
+ ],
361
+ "type": "event",
362
+ "name": "NumberUpdated",
363
+ "anonymous": false
364
+ },
365
+ {
366
+ "inputs": [
367
+ { "internalType": "uint256", "name": "juniorRewards", "type": "uint256", "indexed": false },
368
+ { "internalType": "uint256", "name": "seniorRewards", "type": "uint256", "indexed": false }
369
+ ],
370
+ "type": "event",
371
+ "name": "PnlRewardsDistributed",
372
+ "anonymous": false
373
+ },
374
+ {
375
+ "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }],
376
+ "type": "event",
377
+ "name": "ReferralRebateAwarded",
378
+ "anonymous": false
379
+ },
380
+ {
381
+ "inputs": [
382
+ { "internalType": "uint256", "name": "previousRatio", "type": "uint256", "indexed": false },
383
+ { "internalType": "uint256", "name": "newRatio", "type": "uint256", "indexed": false }
384
+ ],
385
+ "type": "event",
386
+ "name": "ReserveRatioUpdated",
387
+ "anonymous": false
388
+ },
389
+ {
390
+ "inputs": [
391
+ { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false },
392
+ { "internalType": "bool", "name": "isPnl", "type": "bool", "indexed": false }
393
+ ],
394
+ "type": "event",
395
+ "name": "RewardsAllocated",
396
+ "anonymous": false
397
+ },
398
+ {
399
+ "inputs": [
400
+ { "internalType": "uint256", "name": "juniorRewards", "type": "uint256", "indexed": false },
401
+ { "internalType": "uint256", "name": "seniorRewards", "type": "uint256", "indexed": false }
402
+ ],
403
+ "type": "event",
404
+ "name": "RewardsDistributed",
405
+ "anonymous": false
406
+ },
407
+ {
408
+ "inputs": [
409
+ { "internalType": "address", "name": "previousSenior", "type": "address", "indexed": true },
410
+ { "internalType": "address", "name": "newSenior", "type": "address", "indexed": true }
411
+ ],
412
+ "type": "event",
413
+ "name": "SeniorTrancheChanged",
414
+ "anonymous": false
415
+ },
416
+ {
417
+ "inputs": [
418
+ { "internalType": "address", "name": "previousStorage", "type": "address", "indexed": true },
419
+ { "internalType": "address", "name": "newStorage", "type": "address", "indexed": true }
420
+ ],
421
+ "type": "event",
422
+ "name": "StorageChanged",
423
+ "anonymous": false
424
+ },
425
+ {
426
+ "inputs": [{ "internalType": "address", "name": "a", "type": "address", "indexed": false }],
427
+ "type": "event",
428
+ "name": "TradingContractAdded",
429
+ "anonymous": false
430
+ },
431
+ {
432
+ "inputs": [{ "internalType": "address", "name": "a", "type": "address", "indexed": false }],
433
+ "type": "event",
434
+ "name": "TradingContractRemoved",
435
+ "anonymous": false
436
+ },
437
+ {
438
+ "inputs": [
439
+ { "internalType": "address", "name": "trader", "type": "address", "indexed": true },
440
+ { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }
441
+ ],
442
+ "type": "event",
443
+ "name": "USDCReceivedFromTrader",
444
+ "anonymous": false
445
+ },
446
+ {
447
+ "inputs": [
448
+ { "internalType": "address", "name": "trader", "type": "address", "indexed": true },
449
+ { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }
450
+ ],
451
+ "type": "event",
452
+ "name": "USDCSentToTrader",
453
+ "anonymous": false
454
+ },
455
+ {
456
+ "inputs": [
457
+ { "internalType": "uint256", "name": "", "type": "uint256" },
458
+ { "internalType": "bool", "name": "", "type": "bool" }
459
+ ],
460
+ "stateMutability": "nonpayable",
461
+ "type": "function",
462
+ "name": "allocateRewards"
463
+ },
464
+ {
465
+ "inputs": [],
466
+ "stateMutability": "view",
467
+ "type": "function",
468
+ "name": "currentBalanceUSDC",
469
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
470
+ },
471
+ {
472
+ "inputs": [],
473
+ "stateMutability": "view",
474
+ "type": "function",
475
+ "name": "earlyWithdrawFee",
476
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
477
+ },
478
+ {
479
+ "inputs": [
480
+ { "internalType": "address", "name": "", "type": "address" },
481
+ { "internalType": "bool", "name": "", "type": "bool" },
482
+ { "internalType": "uint256", "name": "", "type": "uint256" }
483
+ ],
484
+ "stateMutability": "view",
485
+ "type": "function",
486
+ "name": "getBalancingFee",
487
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
488
+ },
489
+ {
490
+ "inputs": [],
491
+ "stateMutability": "view",
492
+ "type": "function",
493
+ "name": "getCollateralFee",
494
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
495
+ },
496
+ {
497
+ "inputs": [],
498
+ "stateMutability": "view",
499
+ "type": "function",
500
+ "name": "gov",
501
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }]
502
+ },
503
+ {
504
+ "inputs": [],
505
+ "stateMutability": "view",
506
+ "type": "function",
507
+ "name": "maxLockTime",
508
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
509
+ },
510
+ {
511
+ "inputs": [],
512
+ "stateMutability": "view",
513
+ "type": "function",
514
+ "name": "minLockTime",
515
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
516
+ },
517
+ {
518
+ "inputs": [
519
+ { "internalType": "address", "name": "", "type": "address" },
520
+ { "internalType": "uint256", "name": "", "type": "uint256" }
521
+ ],
522
+ "stateMutability": "nonpayable",
523
+ "type": "function",
524
+ "name": "receiveUSDCFromTrader"
525
+ },
526
+ {
527
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
528
+ "stateMutability": "nonpayable",
529
+ "type": "function",
530
+ "name": "releaseBalance"
531
+ },
532
+ {
533
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
534
+ "stateMutability": "nonpayable",
535
+ "type": "function",
536
+ "name": "reserveBalance"
537
+ },
538
+ {
539
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
540
+ "stateMutability": "nonpayable",
541
+ "type": "function",
542
+ "name": "sendReferrerRebateToStorage"
543
+ },
544
+ {
545
+ "inputs": [
546
+ { "internalType": "address", "name": "", "type": "address" },
547
+ { "internalType": "uint256", "name": "", "type": "uint256" }
548
+ ],
549
+ "stateMutability": "nonpayable",
550
+ "type": "function",
551
+ "name": "sendUSDCToTrader"
552
+ }
553
+ ],
554
+ "devdoc": { "kind": "dev", "methods": {}, "version": 1 },
555
+ "userdoc": { "kind": "user", "methods": {}, "version": 1 }
556
+ },
557
+ "settings": {
558
+ "remappings": [
559
+ "@chainlink/=lib/chainlink/",
560
+ "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
561
+ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
562
+ "chainlink/=lib/chainlink/",
563
+ "ds-test/=lib/forge-std/lib/ds-test/src/",
564
+ "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
565
+ "forge-std/=lib/forge-std/src/",
566
+ "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
567
+ "openzeppelin-contracts/=lib/openzeppelin-contracts/",
568
+ "openzeppelin/=lib/openzeppelin-contracts/contracts/",
569
+ "pyth-sdk-solidity/=lib/pyth-sdk-solidity/"
570
+ ],
571
+ "optimizer": { "enabled": true, "runs": 200 },
572
+ "metadata": { "bytecodeHash": "ipfs" },
573
+ "compilationTarget": { "src/interfaces/IVaultManager.sol": "IVaultManager" },
574
+ "libraries": {}
575
+ },
576
+ "sources": {
577
+ "src/interfaces/IVaultManager.sol": {
578
+ "keccak256": "0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4",
579
+ "urls": [
580
+ "bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05",
581
+ "dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ"
582
+ ],
583
+ "license": "MIT"
584
+ }
585
+ },
586
+ "version": 1
587
+ },
588
+ "ast": {
589
+ "absolutePath": "src/interfaces/IVaultManager.sol",
590
+ "id": 74773,
591
+ "exportedSymbols": { "IVaultManager": [74772] },
592
+ "nodeType": "SourceUnit",
593
+ "src": "32:2185:96",
594
+ "nodes": [
595
+ {
596
+ "id": 74586,
597
+ "nodeType": "PragmaDirective",
598
+ "src": "32:22:96",
599
+ "nodes": [],
600
+ "literals": ["solidity", "0.8", ".7"]
601
+ },
602
+ {
603
+ "id": 74772,
604
+ "nodeType": "ContractDefinition",
605
+ "src": "56:2160:96",
606
+ "nodes": [
607
+ {
608
+ "id": 74592,
609
+ "nodeType": "EventDefinition",
610
+ "src": "99:70:96",
611
+ "nodes": [],
612
+ "anonymous": false,
613
+ "name": "GovChanged",
614
+ "nameLocation": "105:10:96",
615
+ "parameters": {
616
+ "id": 74591,
617
+ "nodeType": "ParameterList",
618
+ "parameters": [
619
+ {
620
+ "constant": false,
621
+ "id": 74588,
622
+ "indexed": true,
623
+ "mutability": "mutable",
624
+ "name": "previousGov",
625
+ "nameLocation": "132:11:96",
626
+ "nodeType": "VariableDeclaration",
627
+ "scope": 74592,
628
+ "src": "116:27:96",
629
+ "stateVariable": false,
630
+ "storageLocation": "default",
631
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
632
+ "typeName": {
633
+ "id": 74587,
634
+ "name": "address",
635
+ "nodeType": "ElementaryTypeName",
636
+ "src": "116:7:96",
637
+ "stateMutability": "nonpayable",
638
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
639
+ },
640
+ "visibility": "internal"
641
+ },
642
+ {
643
+ "constant": false,
644
+ "id": 74590,
645
+ "indexed": true,
646
+ "mutability": "mutable",
647
+ "name": "newGov",
648
+ "nameLocation": "161:6:96",
649
+ "nodeType": "VariableDeclaration",
650
+ "scope": 74592,
651
+ "src": "145:22:96",
652
+ "stateVariable": false,
653
+ "storageLocation": "default",
654
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
655
+ "typeName": {
656
+ "id": 74589,
657
+ "name": "address",
658
+ "nodeType": "ElementaryTypeName",
659
+ "src": "145:7:96",
660
+ "stateMutability": "nonpayable",
661
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
662
+ },
663
+ "visibility": "internal"
664
+ }
665
+ ],
666
+ "src": "115:53:96"
667
+ }
668
+ },
669
+ {
670
+ "id": 74598,
671
+ "nodeType": "EventDefinition",
672
+ "src": "174:82:96",
673
+ "nodes": [],
674
+ "anonymous": false,
675
+ "name": "StorageChanged",
676
+ "nameLocation": "180:14:96",
677
+ "parameters": {
678
+ "id": 74597,
679
+ "nodeType": "ParameterList",
680
+ "parameters": [
681
+ {
682
+ "constant": false,
683
+ "id": 74594,
684
+ "indexed": true,
685
+ "mutability": "mutable",
686
+ "name": "previousStorage",
687
+ "nameLocation": "211:15:96",
688
+ "nodeType": "VariableDeclaration",
689
+ "scope": 74598,
690
+ "src": "195:31:96",
691
+ "stateVariable": false,
692
+ "storageLocation": "default",
693
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
694
+ "typeName": {
695
+ "id": 74593,
696
+ "name": "address",
697
+ "nodeType": "ElementaryTypeName",
698
+ "src": "195:7:96",
699
+ "stateMutability": "nonpayable",
700
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
701
+ },
702
+ "visibility": "internal"
703
+ },
704
+ {
705
+ "constant": false,
706
+ "id": 74596,
707
+ "indexed": true,
708
+ "mutability": "mutable",
709
+ "name": "newStorage",
710
+ "nameLocation": "244:10:96",
711
+ "nodeType": "VariableDeclaration",
712
+ "scope": 74598,
713
+ "src": "228:26:96",
714
+ "stateVariable": false,
715
+ "storageLocation": "default",
716
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
717
+ "typeName": {
718
+ "id": 74595,
719
+ "name": "address",
720
+ "nodeType": "ElementaryTypeName",
721
+ "src": "228:7:96",
722
+ "stateMutability": "nonpayable",
723
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
724
+ },
725
+ "visibility": "internal"
726
+ }
727
+ ],
728
+ "src": "194:61:96"
729
+ }
730
+ },
731
+ {
732
+ "id": 74604,
733
+ "nodeType": "EventDefinition",
734
+ "src": "261:86:96",
735
+ "nodes": [],
736
+ "anonymous": false,
737
+ "name": "JuniorTrancheChanged",
738
+ "nameLocation": "267:20:96",
739
+ "parameters": {
740
+ "id": 74603,
741
+ "nodeType": "ParameterList",
742
+ "parameters": [
743
+ {
744
+ "constant": false,
745
+ "id": 74600,
746
+ "indexed": true,
747
+ "mutability": "mutable",
748
+ "name": "previousJunior",
749
+ "nameLocation": "304:14:96",
750
+ "nodeType": "VariableDeclaration",
751
+ "scope": 74604,
752
+ "src": "288:30:96",
753
+ "stateVariable": false,
754
+ "storageLocation": "default",
755
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
756
+ "typeName": {
757
+ "id": 74599,
758
+ "name": "address",
759
+ "nodeType": "ElementaryTypeName",
760
+ "src": "288:7:96",
761
+ "stateMutability": "nonpayable",
762
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
763
+ },
764
+ "visibility": "internal"
765
+ },
766
+ {
767
+ "constant": false,
768
+ "id": 74602,
769
+ "indexed": true,
770
+ "mutability": "mutable",
771
+ "name": "newJunior",
772
+ "nameLocation": "336:9:96",
773
+ "nodeType": "VariableDeclaration",
774
+ "scope": 74604,
775
+ "src": "320:25:96",
776
+ "stateVariable": false,
777
+ "storageLocation": "default",
778
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
779
+ "typeName": {
780
+ "id": 74601,
781
+ "name": "address",
782
+ "nodeType": "ElementaryTypeName",
783
+ "src": "320:7:96",
784
+ "stateMutability": "nonpayable",
785
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
786
+ },
787
+ "visibility": "internal"
788
+ }
789
+ ],
790
+ "src": "287:59:96"
791
+ }
792
+ },
793
+ {
794
+ "id": 74610,
795
+ "nodeType": "EventDefinition",
796
+ "src": "352:86:96",
797
+ "nodes": [],
798
+ "anonymous": false,
799
+ "name": "SeniorTrancheChanged",
800
+ "nameLocation": "358:20:96",
801
+ "parameters": {
802
+ "id": 74609,
803
+ "nodeType": "ParameterList",
804
+ "parameters": [
805
+ {
806
+ "constant": false,
807
+ "id": 74606,
808
+ "indexed": true,
809
+ "mutability": "mutable",
810
+ "name": "previousSenior",
811
+ "nameLocation": "395:14:96",
812
+ "nodeType": "VariableDeclaration",
813
+ "scope": 74610,
814
+ "src": "379:30:96",
815
+ "stateVariable": false,
816
+ "storageLocation": "default",
817
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
818
+ "typeName": {
819
+ "id": 74605,
820
+ "name": "address",
821
+ "nodeType": "ElementaryTypeName",
822
+ "src": "379:7:96",
823
+ "stateMutability": "nonpayable",
824
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
825
+ },
826
+ "visibility": "internal"
827
+ },
828
+ {
829
+ "constant": false,
830
+ "id": 74608,
831
+ "indexed": true,
832
+ "mutability": "mutable",
833
+ "name": "newSenior",
834
+ "nameLocation": "427:9:96",
835
+ "nodeType": "VariableDeclaration",
836
+ "scope": 74610,
837
+ "src": "411:25:96",
838
+ "stateVariable": false,
839
+ "storageLocation": "default",
840
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
841
+ "typeName": {
842
+ "id": 74607,
843
+ "name": "address",
844
+ "nodeType": "ElementaryTypeName",
845
+ "src": "411:7:96",
846
+ "stateMutability": "nonpayable",
847
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
848
+ },
849
+ "visibility": "internal"
850
+ }
851
+ ],
852
+ "src": "378:59:96"
853
+ }
854
+ },
855
+ {
856
+ "id": 74616,
857
+ "nodeType": "EventDefinition",
858
+ "src": "443:67:96",
859
+ "nodes": [],
860
+ "anonymous": false,
861
+ "name": "ReserveRatioUpdated",
862
+ "nameLocation": "449:19:96",
863
+ "parameters": {
864
+ "id": 74615,
865
+ "nodeType": "ParameterList",
866
+ "parameters": [
867
+ {
868
+ "constant": false,
869
+ "id": 74612,
870
+ "indexed": false,
871
+ "mutability": "mutable",
872
+ "name": "previousRatio",
873
+ "nameLocation": "477:13:96",
874
+ "nodeType": "VariableDeclaration",
875
+ "scope": 74616,
876
+ "src": "469:21:96",
877
+ "stateVariable": false,
878
+ "storageLocation": "default",
879
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
880
+ "typeName": {
881
+ "id": 74611,
882
+ "name": "uint256",
883
+ "nodeType": "ElementaryTypeName",
884
+ "src": "469:7:96",
885
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
886
+ },
887
+ "visibility": "internal"
888
+ },
889
+ {
890
+ "constant": false,
891
+ "id": 74614,
892
+ "indexed": false,
893
+ "mutability": "mutable",
894
+ "name": "newRatio",
895
+ "nameLocation": "500:8:96",
896
+ "nodeType": "VariableDeclaration",
897
+ "scope": 74616,
898
+ "src": "492:16:96",
899
+ "stateVariable": false,
900
+ "storageLocation": "default",
901
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
902
+ "typeName": {
903
+ "id": 74613,
904
+ "name": "uint256",
905
+ "nodeType": "ElementaryTypeName",
906
+ "src": "492:7:96",
907
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
908
+ },
909
+ "visibility": "internal"
910
+ }
911
+ ],
912
+ "src": "468:41:96"
913
+ }
914
+ },
915
+ {
916
+ "id": 74622,
917
+ "nodeType": "EventDefinition",
918
+ "src": "515:69:96",
919
+ "nodes": [],
920
+ "anonymous": false,
921
+ "name": "BalancingDeltaUpdated",
922
+ "nameLocation": "521:21:96",
923
+ "parameters": {
924
+ "id": 74621,
925
+ "nodeType": "ParameterList",
926
+ "parameters": [
927
+ {
928
+ "constant": false,
929
+ "id": 74618,
930
+ "indexed": false,
931
+ "mutability": "mutable",
932
+ "name": "previousDelta",
933
+ "nameLocation": "551:13:96",
934
+ "nodeType": "VariableDeclaration",
935
+ "scope": 74622,
936
+ "src": "543:21:96",
937
+ "stateVariable": false,
938
+ "storageLocation": "default",
939
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
940
+ "typeName": {
941
+ "id": 74617,
942
+ "name": "uint256",
943
+ "nodeType": "ElementaryTypeName",
944
+ "src": "543:7:96",
945
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
946
+ },
947
+ "visibility": "internal"
948
+ },
949
+ {
950
+ "constant": false,
951
+ "id": 74620,
952
+ "indexed": false,
953
+ "mutability": "mutable",
954
+ "name": "newDelta",
955
+ "nameLocation": "574:8:96",
956
+ "nodeType": "VariableDeclaration",
957
+ "scope": 74622,
958
+ "src": "566:16:96",
959
+ "stateVariable": false,
960
+ "storageLocation": "default",
961
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
962
+ "typeName": {
963
+ "id": 74619,
964
+ "name": "uint256",
965
+ "nodeType": "ElementaryTypeName",
966
+ "src": "566:7:96",
967
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
968
+ },
969
+ "visibility": "internal"
970
+ }
971
+ ],
972
+ "src": "542:41:96"
973
+ }
974
+ },
975
+ {
976
+ "id": 74628,
977
+ "nodeType": "EventDefinition",
978
+ "src": "589:92:96",
979
+ "nodes": [],
980
+ "anonymous": false,
981
+ "name": "ConstrainedLiquidityThresholdUpdated",
982
+ "nameLocation": "595:36:96",
983
+ "parameters": {
984
+ "id": 74627,
985
+ "nodeType": "ParameterList",
986
+ "parameters": [
987
+ {
988
+ "constant": false,
989
+ "id": 74624,
990
+ "indexed": false,
991
+ "mutability": "mutable",
992
+ "name": "previousThreshold",
993
+ "nameLocation": "640:17:96",
994
+ "nodeType": "VariableDeclaration",
995
+ "scope": 74628,
996
+ "src": "632:25:96",
997
+ "stateVariable": false,
998
+ "storageLocation": "default",
999
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1000
+ "typeName": {
1001
+ "id": 74623,
1002
+ "name": "uint256",
1003
+ "nodeType": "ElementaryTypeName",
1004
+ "src": "632:7:96",
1005
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1006
+ },
1007
+ "visibility": "internal"
1008
+ },
1009
+ {
1010
+ "constant": false,
1011
+ "id": 74626,
1012
+ "indexed": false,
1013
+ "mutability": "mutable",
1014
+ "name": "newThreshold",
1015
+ "nameLocation": "667:12:96",
1016
+ "nodeType": "VariableDeclaration",
1017
+ "scope": 74628,
1018
+ "src": "659:20:96",
1019
+ "stateVariable": false,
1020
+ "storageLocation": "default",
1021
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1022
+ "typeName": {
1023
+ "id": 74625,
1024
+ "name": "uint256",
1025
+ "nodeType": "ElementaryTypeName",
1026
+ "src": "659:7:96",
1027
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1028
+ },
1029
+ "visibility": "internal"
1030
+ }
1031
+ ],
1032
+ "src": "631:49:96"
1033
+ }
1034
+ },
1035
+ {
1036
+ "id": 74634,
1037
+ "nodeType": "EventDefinition",
1038
+ "src": "686:67:96",
1039
+ "nodes": [],
1040
+ "anonymous": false,
1041
+ "name": "EarlyWithdrawFeeUpdated",
1042
+ "nameLocation": "692:23:96",
1043
+ "parameters": {
1044
+ "id": 74633,
1045
+ "nodeType": "ParameterList",
1046
+ "parameters": [
1047
+ {
1048
+ "constant": false,
1049
+ "id": 74630,
1050
+ "indexed": false,
1051
+ "mutability": "mutable",
1052
+ "name": "previousFee",
1053
+ "nameLocation": "724:11:96",
1054
+ "nodeType": "VariableDeclaration",
1055
+ "scope": 74634,
1056
+ "src": "716:19:96",
1057
+ "stateVariable": false,
1058
+ "storageLocation": "default",
1059
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1060
+ "typeName": {
1061
+ "id": 74629,
1062
+ "name": "uint256",
1063
+ "nodeType": "ElementaryTypeName",
1064
+ "src": "716:7:96",
1065
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1066
+ },
1067
+ "visibility": "internal"
1068
+ },
1069
+ {
1070
+ "constant": false,
1071
+ "id": 74632,
1072
+ "indexed": false,
1073
+ "mutability": "mutable",
1074
+ "name": "newFee",
1075
+ "nameLocation": "745:6:96",
1076
+ "nodeType": "VariableDeclaration",
1077
+ "scope": 74634,
1078
+ "src": "737:14:96",
1079
+ "stateVariable": false,
1080
+ "storageLocation": "default",
1081
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1082
+ "typeName": {
1083
+ "id": 74631,
1084
+ "name": "uint256",
1085
+ "nodeType": "ElementaryTypeName",
1086
+ "src": "737:7:96",
1087
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1088
+ },
1089
+ "visibility": "internal"
1090
+ }
1091
+ ],
1092
+ "src": "715:37:96"
1093
+ }
1094
+ },
1095
+ {
1096
+ "id": 74640,
1097
+ "nodeType": "EventDefinition",
1098
+ "src": "758:51:96",
1099
+ "nodes": [],
1100
+ "anonymous": false,
1101
+ "name": "RewardsAllocated",
1102
+ "nameLocation": "764:16:96",
1103
+ "parameters": {
1104
+ "id": 74639,
1105
+ "nodeType": "ParameterList",
1106
+ "parameters": [
1107
+ {
1108
+ "constant": false,
1109
+ "id": 74636,
1110
+ "indexed": false,
1111
+ "mutability": "mutable",
1112
+ "name": "amount",
1113
+ "nameLocation": "789:6:96",
1114
+ "nodeType": "VariableDeclaration",
1115
+ "scope": 74640,
1116
+ "src": "781:14:96",
1117
+ "stateVariable": false,
1118
+ "storageLocation": "default",
1119
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1120
+ "typeName": {
1121
+ "id": 74635,
1122
+ "name": "uint256",
1123
+ "nodeType": "ElementaryTypeName",
1124
+ "src": "781:7:96",
1125
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1126
+ },
1127
+ "visibility": "internal"
1128
+ },
1129
+ {
1130
+ "constant": false,
1131
+ "id": 74638,
1132
+ "indexed": false,
1133
+ "mutability": "mutable",
1134
+ "name": "isPnl",
1135
+ "nameLocation": "802:5:96",
1136
+ "nodeType": "VariableDeclaration",
1137
+ "scope": 74640,
1138
+ "src": "797:10:96",
1139
+ "stateVariable": false,
1140
+ "storageLocation": "default",
1141
+ "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" },
1142
+ "typeName": {
1143
+ "id": 74637,
1144
+ "name": "bool",
1145
+ "nodeType": "ElementaryTypeName",
1146
+ "src": "797:4:96",
1147
+ "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }
1148
+ },
1149
+ "visibility": "internal"
1150
+ }
1151
+ ],
1152
+ "src": "780:28:96"
1153
+ }
1154
+ },
1155
+ {
1156
+ "id": 74646,
1157
+ "nodeType": "EventDefinition",
1158
+ "src": "814:71:96",
1159
+ "nodes": [],
1160
+ "anonymous": false,
1161
+ "name": "RewardsDistributed",
1162
+ "nameLocation": "820:18:96",
1163
+ "parameters": {
1164
+ "id": 74645,
1165
+ "nodeType": "ParameterList",
1166
+ "parameters": [
1167
+ {
1168
+ "constant": false,
1169
+ "id": 74642,
1170
+ "indexed": false,
1171
+ "mutability": "mutable",
1172
+ "name": "juniorRewards",
1173
+ "nameLocation": "847:13:96",
1174
+ "nodeType": "VariableDeclaration",
1175
+ "scope": 74646,
1176
+ "src": "839:21:96",
1177
+ "stateVariable": false,
1178
+ "storageLocation": "default",
1179
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1180
+ "typeName": {
1181
+ "id": 74641,
1182
+ "name": "uint256",
1183
+ "nodeType": "ElementaryTypeName",
1184
+ "src": "839:7:96",
1185
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1186
+ },
1187
+ "visibility": "internal"
1188
+ },
1189
+ {
1190
+ "constant": false,
1191
+ "id": 74644,
1192
+ "indexed": false,
1193
+ "mutability": "mutable",
1194
+ "name": "seniorRewards",
1195
+ "nameLocation": "870:13:96",
1196
+ "nodeType": "VariableDeclaration",
1197
+ "scope": 74646,
1198
+ "src": "862:21:96",
1199
+ "stateVariable": false,
1200
+ "storageLocation": "default",
1201
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1202
+ "typeName": {
1203
+ "id": 74643,
1204
+ "name": "uint256",
1205
+ "nodeType": "ElementaryTypeName",
1206
+ "src": "862:7:96",
1207
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1208
+ },
1209
+ "visibility": "internal"
1210
+ }
1211
+ ],
1212
+ "src": "838:46:96"
1213
+ }
1214
+ },
1215
+ {
1216
+ "id": 74652,
1217
+ "nodeType": "EventDefinition",
1218
+ "src": "890:74:96",
1219
+ "nodes": [],
1220
+ "anonymous": false,
1221
+ "name": "PnlRewardsDistributed",
1222
+ "nameLocation": "896:21:96",
1223
+ "parameters": {
1224
+ "id": 74651,
1225
+ "nodeType": "ParameterList",
1226
+ "parameters": [
1227
+ {
1228
+ "constant": false,
1229
+ "id": 74648,
1230
+ "indexed": false,
1231
+ "mutability": "mutable",
1232
+ "name": "juniorRewards",
1233
+ "nameLocation": "926:13:96",
1234
+ "nodeType": "VariableDeclaration",
1235
+ "scope": 74652,
1236
+ "src": "918:21:96",
1237
+ "stateVariable": false,
1238
+ "storageLocation": "default",
1239
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1240
+ "typeName": {
1241
+ "id": 74647,
1242
+ "name": "uint256",
1243
+ "nodeType": "ElementaryTypeName",
1244
+ "src": "918:7:96",
1245
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1246
+ },
1247
+ "visibility": "internal"
1248
+ },
1249
+ {
1250
+ "constant": false,
1251
+ "id": 74650,
1252
+ "indexed": false,
1253
+ "mutability": "mutable",
1254
+ "name": "seniorRewards",
1255
+ "nameLocation": "949:13:96",
1256
+ "nodeType": "VariableDeclaration",
1257
+ "scope": 74652,
1258
+ "src": "941:21:96",
1259
+ "stateVariable": false,
1260
+ "storageLocation": "default",
1261
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1262
+ "typeName": {
1263
+ "id": 74649,
1264
+ "name": "uint256",
1265
+ "nodeType": "ElementaryTypeName",
1266
+ "src": "941:7:96",
1267
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1268
+ },
1269
+ "visibility": "internal"
1270
+ }
1271
+ ],
1272
+ "src": "917:46:96"
1273
+ }
1274
+ },
1275
+ {
1276
+ "id": 74658,
1277
+ "nodeType": "EventDefinition",
1278
+ "src": "969:63:96",
1279
+ "nodes": [],
1280
+ "anonymous": false,
1281
+ "name": "USDCSentToTrader",
1282
+ "nameLocation": "975:16:96",
1283
+ "parameters": {
1284
+ "id": 74657,
1285
+ "nodeType": "ParameterList",
1286
+ "parameters": [
1287
+ {
1288
+ "constant": false,
1289
+ "id": 74654,
1290
+ "indexed": true,
1291
+ "mutability": "mutable",
1292
+ "name": "trader",
1293
+ "nameLocation": "1008:6:96",
1294
+ "nodeType": "VariableDeclaration",
1295
+ "scope": 74658,
1296
+ "src": "992:22:96",
1297
+ "stateVariable": false,
1298
+ "storageLocation": "default",
1299
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1300
+ "typeName": {
1301
+ "id": 74653,
1302
+ "name": "address",
1303
+ "nodeType": "ElementaryTypeName",
1304
+ "src": "992:7:96",
1305
+ "stateMutability": "nonpayable",
1306
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1307
+ },
1308
+ "visibility": "internal"
1309
+ },
1310
+ {
1311
+ "constant": false,
1312
+ "id": 74656,
1313
+ "indexed": false,
1314
+ "mutability": "mutable",
1315
+ "name": "amount",
1316
+ "nameLocation": "1024:6:96",
1317
+ "nodeType": "VariableDeclaration",
1318
+ "scope": 74658,
1319
+ "src": "1016:14:96",
1320
+ "stateVariable": false,
1321
+ "storageLocation": "default",
1322
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1323
+ "typeName": {
1324
+ "id": 74655,
1325
+ "name": "uint256",
1326
+ "nodeType": "ElementaryTypeName",
1327
+ "src": "1016:7:96",
1328
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1329
+ },
1330
+ "visibility": "internal"
1331
+ }
1332
+ ],
1333
+ "src": "991:40:96"
1334
+ }
1335
+ },
1336
+ {
1337
+ "id": 74664,
1338
+ "nodeType": "EventDefinition",
1339
+ "src": "1037:69:96",
1340
+ "nodes": [],
1341
+ "anonymous": false,
1342
+ "name": "USDCReceivedFromTrader",
1343
+ "nameLocation": "1043:22:96",
1344
+ "parameters": {
1345
+ "id": 74663,
1346
+ "nodeType": "ParameterList",
1347
+ "parameters": [
1348
+ {
1349
+ "constant": false,
1350
+ "id": 74660,
1351
+ "indexed": true,
1352
+ "mutability": "mutable",
1353
+ "name": "trader",
1354
+ "nameLocation": "1082:6:96",
1355
+ "nodeType": "VariableDeclaration",
1356
+ "scope": 74664,
1357
+ "src": "1066:22:96",
1358
+ "stateVariable": false,
1359
+ "storageLocation": "default",
1360
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1361
+ "typeName": {
1362
+ "id": 74659,
1363
+ "name": "address",
1364
+ "nodeType": "ElementaryTypeName",
1365
+ "src": "1066:7:96",
1366
+ "stateMutability": "nonpayable",
1367
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1368
+ },
1369
+ "visibility": "internal"
1370
+ },
1371
+ {
1372
+ "constant": false,
1373
+ "id": 74662,
1374
+ "indexed": false,
1375
+ "mutability": "mutable",
1376
+ "name": "amount",
1377
+ "nameLocation": "1098:6:96",
1378
+ "nodeType": "VariableDeclaration",
1379
+ "scope": 74664,
1380
+ "src": "1090:14:96",
1381
+ "stateVariable": false,
1382
+ "storageLocation": "default",
1383
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1384
+ "typeName": {
1385
+ "id": 74661,
1386
+ "name": "uint256",
1387
+ "nodeType": "ElementaryTypeName",
1388
+ "src": "1090:7:96",
1389
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1390
+ },
1391
+ "visibility": "internal"
1392
+ }
1393
+ ],
1394
+ "src": "1065:40:96"
1395
+ }
1396
+ },
1397
+ {
1398
+ "id": 74668,
1399
+ "nodeType": "EventDefinition",
1400
+ "src": "1111:38:96",
1401
+ "nodes": [],
1402
+ "anonymous": false,
1403
+ "name": "BalanceReserved",
1404
+ "nameLocation": "1117:15:96",
1405
+ "parameters": {
1406
+ "id": 74667,
1407
+ "nodeType": "ParameterList",
1408
+ "parameters": [
1409
+ {
1410
+ "constant": false,
1411
+ "id": 74666,
1412
+ "indexed": false,
1413
+ "mutability": "mutable",
1414
+ "name": "amount",
1415
+ "nameLocation": "1141:6:96",
1416
+ "nodeType": "VariableDeclaration",
1417
+ "scope": 74668,
1418
+ "src": "1133:14:96",
1419
+ "stateVariable": false,
1420
+ "storageLocation": "default",
1421
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1422
+ "typeName": {
1423
+ "id": 74665,
1424
+ "name": "uint256",
1425
+ "nodeType": "ElementaryTypeName",
1426
+ "src": "1133:7:96",
1427
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1428
+ },
1429
+ "visibility": "internal"
1430
+ }
1431
+ ],
1432
+ "src": "1132:16:96"
1433
+ }
1434
+ },
1435
+ {
1436
+ "id": 74672,
1437
+ "nodeType": "EventDefinition",
1438
+ "src": "1154:38:96",
1439
+ "nodes": [],
1440
+ "anonymous": false,
1441
+ "name": "BalanceReleased",
1442
+ "nameLocation": "1160:15:96",
1443
+ "parameters": {
1444
+ "id": 74671,
1445
+ "nodeType": "ParameterList",
1446
+ "parameters": [
1447
+ {
1448
+ "constant": false,
1449
+ "id": 74670,
1450
+ "indexed": false,
1451
+ "mutability": "mutable",
1452
+ "name": "amount",
1453
+ "nameLocation": "1184:6:96",
1454
+ "nodeType": "VariableDeclaration",
1455
+ "scope": 74672,
1456
+ "src": "1176:14:96",
1457
+ "stateVariable": false,
1458
+ "storageLocation": "default",
1459
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1460
+ "typeName": {
1461
+ "id": 74669,
1462
+ "name": "uint256",
1463
+ "nodeType": "ElementaryTypeName",
1464
+ "src": "1176:7:96",
1465
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1466
+ },
1467
+ "visibility": "internal"
1468
+ }
1469
+ ],
1470
+ "src": "1175:16:96"
1471
+ }
1472
+ },
1473
+ {
1474
+ "id": 74676,
1475
+ "nodeType": "EventDefinition",
1476
+ "src": "1197:38:96",
1477
+ "nodes": [],
1478
+ "anonymous": false,
1479
+ "name": "TradingContractAdded",
1480
+ "nameLocation": "1203:20:96",
1481
+ "parameters": {
1482
+ "id": 74675,
1483
+ "nodeType": "ParameterList",
1484
+ "parameters": [
1485
+ {
1486
+ "constant": false,
1487
+ "id": 74674,
1488
+ "indexed": false,
1489
+ "mutability": "mutable",
1490
+ "name": "a",
1491
+ "nameLocation": "1232:1:96",
1492
+ "nodeType": "VariableDeclaration",
1493
+ "scope": 74676,
1494
+ "src": "1224:9:96",
1495
+ "stateVariable": false,
1496
+ "storageLocation": "default",
1497
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1498
+ "typeName": {
1499
+ "id": 74673,
1500
+ "name": "address",
1501
+ "nodeType": "ElementaryTypeName",
1502
+ "src": "1224:7:96",
1503
+ "stateMutability": "nonpayable",
1504
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1505
+ },
1506
+ "visibility": "internal"
1507
+ }
1508
+ ],
1509
+ "src": "1223:11:96"
1510
+ }
1511
+ },
1512
+ {
1513
+ "id": 74680,
1514
+ "nodeType": "EventDefinition",
1515
+ "src": "1240:40:96",
1516
+ "nodes": [],
1517
+ "anonymous": false,
1518
+ "name": "TradingContractRemoved",
1519
+ "nameLocation": "1246:22:96",
1520
+ "parameters": {
1521
+ "id": 74679,
1522
+ "nodeType": "ParameterList",
1523
+ "parameters": [
1524
+ {
1525
+ "constant": false,
1526
+ "id": 74678,
1527
+ "indexed": false,
1528
+ "mutability": "mutable",
1529
+ "name": "a",
1530
+ "nameLocation": "1277:1:96",
1531
+ "nodeType": "VariableDeclaration",
1532
+ "scope": 74680,
1533
+ "src": "1269:9:96",
1534
+ "stateVariable": false,
1535
+ "storageLocation": "default",
1536
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1537
+ "typeName": {
1538
+ "id": 74677,
1539
+ "name": "address",
1540
+ "nodeType": "ElementaryTypeName",
1541
+ "src": "1269:7:96",
1542
+ "stateMutability": "nonpayable",
1543
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1544
+ },
1545
+ "visibility": "internal"
1546
+ }
1547
+ ],
1548
+ "src": "1268:11:96"
1549
+ }
1550
+ },
1551
+ {
1552
+ "id": 74684,
1553
+ "nodeType": "EventDefinition",
1554
+ "src": "1285:41:96",
1555
+ "nodes": [],
1556
+ "anonymous": false,
1557
+ "name": "ReferralRebateAwarded",
1558
+ "nameLocation": "1291:21:96",
1559
+ "parameters": {
1560
+ "id": 74683,
1561
+ "nodeType": "ParameterList",
1562
+ "parameters": [
1563
+ {
1564
+ "constant": false,
1565
+ "id": 74682,
1566
+ "indexed": false,
1567
+ "mutability": "mutable",
1568
+ "name": "amount",
1569
+ "nameLocation": "1318:6:96",
1570
+ "nodeType": "VariableDeclaration",
1571
+ "scope": 74684,
1572
+ "src": "1313:11:96",
1573
+ "stateVariable": false,
1574
+ "storageLocation": "default",
1575
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1576
+ "typeName": {
1577
+ "id": 74681,
1578
+ "name": "uint",
1579
+ "nodeType": "ElementaryTypeName",
1580
+ "src": "1313:4:96",
1581
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1582
+ },
1583
+ "visibility": "internal"
1584
+ }
1585
+ ],
1586
+ "src": "1312:13:96"
1587
+ }
1588
+ },
1589
+ {
1590
+ "id": 74690,
1591
+ "nodeType": "EventDefinition",
1592
+ "src": "1331:45:96",
1593
+ "nodes": [],
1594
+ "anonymous": false,
1595
+ "name": "NumberUpdated",
1596
+ "nameLocation": "1337:13:96",
1597
+ "parameters": {
1598
+ "id": 74689,
1599
+ "nodeType": "ParameterList",
1600
+ "parameters": [
1601
+ {
1602
+ "constant": false,
1603
+ "id": 74686,
1604
+ "indexed": false,
1605
+ "mutability": "mutable",
1606
+ "name": "name",
1607
+ "nameLocation": "1358:4:96",
1608
+ "nodeType": "VariableDeclaration",
1609
+ "scope": 74690,
1610
+ "src": "1351:11:96",
1611
+ "stateVariable": false,
1612
+ "storageLocation": "default",
1613
+ "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" },
1614
+ "typeName": {
1615
+ "id": 74685,
1616
+ "name": "string",
1617
+ "nodeType": "ElementaryTypeName",
1618
+ "src": "1351:6:96",
1619
+ "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" }
1620
+ },
1621
+ "visibility": "internal"
1622
+ },
1623
+ {
1624
+ "constant": false,
1625
+ "id": 74688,
1626
+ "indexed": false,
1627
+ "mutability": "mutable",
1628
+ "name": "value",
1629
+ "nameLocation": "1369:5:96",
1630
+ "nodeType": "VariableDeclaration",
1631
+ "scope": 74690,
1632
+ "src": "1364:10:96",
1633
+ "stateVariable": false,
1634
+ "storageLocation": "default",
1635
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1636
+ "typeName": {
1637
+ "id": 74687,
1638
+ "name": "uint",
1639
+ "nodeType": "ElementaryTypeName",
1640
+ "src": "1364:4:96",
1641
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1642
+ },
1643
+ "visibility": "internal"
1644
+ }
1645
+ ],
1646
+ "src": "1350:25:96"
1647
+ }
1648
+ },
1649
+ {
1650
+ "id": 74694,
1651
+ "nodeType": "EventDefinition",
1652
+ "src": "1381:41:96",
1653
+ "nodes": [],
1654
+ "anonymous": false,
1655
+ "name": "CurrentOpenPnlUpdated",
1656
+ "nameLocation": "1387:21:96",
1657
+ "parameters": {
1658
+ "id": 74693,
1659
+ "nodeType": "ParameterList",
1660
+ "parameters": [
1661
+ {
1662
+ "constant": false,
1663
+ "id": 74692,
1664
+ "indexed": false,
1665
+ "mutability": "mutable",
1666
+ "name": "_newPnl",
1667
+ "nameLocation": "1413:7:96",
1668
+ "nodeType": "VariableDeclaration",
1669
+ "scope": 74694,
1670
+ "src": "1409:11:96",
1671
+ "stateVariable": false,
1672
+ "storageLocation": "default",
1673
+ "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" },
1674
+ "typeName": {
1675
+ "id": 74691,
1676
+ "name": "int",
1677
+ "nodeType": "ElementaryTypeName",
1678
+ "src": "1409:3:96",
1679
+ "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }
1680
+ },
1681
+ "visibility": "internal"
1682
+ }
1683
+ ],
1684
+ "src": "1408:13:96"
1685
+ }
1686
+ },
1687
+ {
1688
+ "id": 74699,
1689
+ "nodeType": "FunctionDefinition",
1690
+ "src": "1432:55:96",
1691
+ "nodes": [],
1692
+ "functionSelector": "d308e10e",
1693
+ "implemented": false,
1694
+ "kind": "function",
1695
+ "modifiers": [],
1696
+ "name": "maxLockTime",
1697
+ "nameLocation": "1441:11:96",
1698
+ "parameters": { "id": 74695, "nodeType": "ParameterList", "parameters": [], "src": "1452:2:96" },
1699
+ "returnParameters": {
1700
+ "id": 74698,
1701
+ "nodeType": "ParameterList",
1702
+ "parameters": [
1703
+ {
1704
+ "constant": false,
1705
+ "id": 74697,
1706
+ "mutability": "mutable",
1707
+ "name": "",
1708
+ "nameLocation": "-1:-1:-1",
1709
+ "nodeType": "VariableDeclaration",
1710
+ "scope": 74699,
1711
+ "src": "1478:7:96",
1712
+ "stateVariable": false,
1713
+ "storageLocation": "default",
1714
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1715
+ "typeName": {
1716
+ "id": 74696,
1717
+ "name": "uint256",
1718
+ "nodeType": "ElementaryTypeName",
1719
+ "src": "1478:7:96",
1720
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1721
+ },
1722
+ "visibility": "internal"
1723
+ }
1724
+ ],
1725
+ "src": "1477:9:96"
1726
+ },
1727
+ "scope": 74772,
1728
+ "stateMutability": "view",
1729
+ "virtual": false,
1730
+ "visibility": "external"
1731
+ },
1732
+ {
1733
+ "id": 74704,
1734
+ "nodeType": "FunctionDefinition",
1735
+ "src": "1493:55:96",
1736
+ "nodes": [],
1737
+ "functionSelector": "a60ff766",
1738
+ "implemented": false,
1739
+ "kind": "function",
1740
+ "modifiers": [],
1741
+ "name": "minLockTime",
1742
+ "nameLocation": "1502:11:96",
1743
+ "parameters": { "id": 74700, "nodeType": "ParameterList", "parameters": [], "src": "1513:2:96" },
1744
+ "returnParameters": {
1745
+ "id": 74703,
1746
+ "nodeType": "ParameterList",
1747
+ "parameters": [
1748
+ {
1749
+ "constant": false,
1750
+ "id": 74702,
1751
+ "mutability": "mutable",
1752
+ "name": "",
1753
+ "nameLocation": "-1:-1:-1",
1754
+ "nodeType": "VariableDeclaration",
1755
+ "scope": 74704,
1756
+ "src": "1539:7:96",
1757
+ "stateVariable": false,
1758
+ "storageLocation": "default",
1759
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1760
+ "typeName": {
1761
+ "id": 74701,
1762
+ "name": "uint256",
1763
+ "nodeType": "ElementaryTypeName",
1764
+ "src": "1539:7:96",
1765
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1766
+ },
1767
+ "visibility": "internal"
1768
+ }
1769
+ ],
1770
+ "src": "1538:9:96"
1771
+ },
1772
+ "scope": 74772,
1773
+ "stateMutability": "view",
1774
+ "virtual": false,
1775
+ "visibility": "external"
1776
+ },
1777
+ {
1778
+ "id": 74709,
1779
+ "nodeType": "FunctionDefinition",
1780
+ "src": "1554:60:96",
1781
+ "nodes": [],
1782
+ "functionSelector": "a80a7882",
1783
+ "implemented": false,
1784
+ "kind": "function",
1785
+ "modifiers": [],
1786
+ "name": "earlyWithdrawFee",
1787
+ "nameLocation": "1563:16:96",
1788
+ "parameters": { "id": 74705, "nodeType": "ParameterList", "parameters": [], "src": "1579:2:96" },
1789
+ "returnParameters": {
1790
+ "id": 74708,
1791
+ "nodeType": "ParameterList",
1792
+ "parameters": [
1793
+ {
1794
+ "constant": false,
1795
+ "id": 74707,
1796
+ "mutability": "mutable",
1797
+ "name": "",
1798
+ "nameLocation": "-1:-1:-1",
1799
+ "nodeType": "VariableDeclaration",
1800
+ "scope": 74709,
1801
+ "src": "1605:7:96",
1802
+ "stateVariable": false,
1803
+ "storageLocation": "default",
1804
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1805
+ "typeName": {
1806
+ "id": 74706,
1807
+ "name": "uint256",
1808
+ "nodeType": "ElementaryTypeName",
1809
+ "src": "1605:7:96",
1810
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1811
+ },
1812
+ "visibility": "internal"
1813
+ }
1814
+ ],
1815
+ "src": "1604:9:96"
1816
+ },
1817
+ "scope": 74772,
1818
+ "stateMutability": "view",
1819
+ "virtual": false,
1820
+ "visibility": "external"
1821
+ },
1822
+ {
1823
+ "id": 74720,
1824
+ "nodeType": "FunctionDefinition",
1825
+ "src": "1620:81:96",
1826
+ "nodes": [],
1827
+ "functionSelector": "f85facea",
1828
+ "implemented": false,
1829
+ "kind": "function",
1830
+ "modifiers": [],
1831
+ "name": "getBalancingFee",
1832
+ "nameLocation": "1629:15:96",
1833
+ "parameters": {
1834
+ "id": 74716,
1835
+ "nodeType": "ParameterList",
1836
+ "parameters": [
1837
+ {
1838
+ "constant": false,
1839
+ "id": 74711,
1840
+ "mutability": "mutable",
1841
+ "name": "",
1842
+ "nameLocation": "-1:-1:-1",
1843
+ "nodeType": "VariableDeclaration",
1844
+ "scope": 74720,
1845
+ "src": "1645:7:96",
1846
+ "stateVariable": false,
1847
+ "storageLocation": "default",
1848
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
1849
+ "typeName": {
1850
+ "id": 74710,
1851
+ "name": "address",
1852
+ "nodeType": "ElementaryTypeName",
1853
+ "src": "1645:7:96",
1854
+ "stateMutability": "nonpayable",
1855
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
1856
+ },
1857
+ "visibility": "internal"
1858
+ },
1859
+ {
1860
+ "constant": false,
1861
+ "id": 74713,
1862
+ "mutability": "mutable",
1863
+ "name": "",
1864
+ "nameLocation": "-1:-1:-1",
1865
+ "nodeType": "VariableDeclaration",
1866
+ "scope": 74720,
1867
+ "src": "1654:4:96",
1868
+ "stateVariable": false,
1869
+ "storageLocation": "default",
1870
+ "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" },
1871
+ "typeName": {
1872
+ "id": 74712,
1873
+ "name": "bool",
1874
+ "nodeType": "ElementaryTypeName",
1875
+ "src": "1654:4:96",
1876
+ "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }
1877
+ },
1878
+ "visibility": "internal"
1879
+ },
1880
+ {
1881
+ "constant": false,
1882
+ "id": 74715,
1883
+ "mutability": "mutable",
1884
+ "name": "",
1885
+ "nameLocation": "-1:-1:-1",
1886
+ "nodeType": "VariableDeclaration",
1887
+ "scope": 74720,
1888
+ "src": "1660:7:96",
1889
+ "stateVariable": false,
1890
+ "storageLocation": "default",
1891
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1892
+ "typeName": {
1893
+ "id": 74714,
1894
+ "name": "uint256",
1895
+ "nodeType": "ElementaryTypeName",
1896
+ "src": "1660:7:96",
1897
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1898
+ },
1899
+ "visibility": "internal"
1900
+ }
1901
+ ],
1902
+ "src": "1644:24:96"
1903
+ },
1904
+ "returnParameters": {
1905
+ "id": 74719,
1906
+ "nodeType": "ParameterList",
1907
+ "parameters": [
1908
+ {
1909
+ "constant": false,
1910
+ "id": 74718,
1911
+ "mutability": "mutable",
1912
+ "name": "",
1913
+ "nameLocation": "-1:-1:-1",
1914
+ "nodeType": "VariableDeclaration",
1915
+ "scope": 74720,
1916
+ "src": "1692:7:96",
1917
+ "stateVariable": false,
1918
+ "storageLocation": "default",
1919
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1920
+ "typeName": {
1921
+ "id": 74717,
1922
+ "name": "uint256",
1923
+ "nodeType": "ElementaryTypeName",
1924
+ "src": "1692:7:96",
1925
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1926
+ },
1927
+ "visibility": "internal"
1928
+ }
1929
+ ],
1930
+ "src": "1691:9:96"
1931
+ },
1932
+ "scope": 74772,
1933
+ "stateMutability": "view",
1934
+ "virtual": false,
1935
+ "visibility": "external"
1936
+ },
1937
+ {
1938
+ "id": 74725,
1939
+ "nodeType": "FunctionDefinition",
1940
+ "src": "1707:60:96",
1941
+ "nodes": [],
1942
+ "functionSelector": "a9863448",
1943
+ "implemented": false,
1944
+ "kind": "function",
1945
+ "modifiers": [],
1946
+ "name": "getCollateralFee",
1947
+ "nameLocation": "1716:16:96",
1948
+ "parameters": { "id": 74721, "nodeType": "ParameterList", "parameters": [], "src": "1732:2:96" },
1949
+ "returnParameters": {
1950
+ "id": 74724,
1951
+ "nodeType": "ParameterList",
1952
+ "parameters": [
1953
+ {
1954
+ "constant": false,
1955
+ "id": 74723,
1956
+ "mutability": "mutable",
1957
+ "name": "",
1958
+ "nameLocation": "-1:-1:-1",
1959
+ "nodeType": "VariableDeclaration",
1960
+ "scope": 74725,
1961
+ "src": "1758:7:96",
1962
+ "stateVariable": false,
1963
+ "storageLocation": "default",
1964
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
1965
+ "typeName": {
1966
+ "id": 74722,
1967
+ "name": "uint256",
1968
+ "nodeType": "ElementaryTypeName",
1969
+ "src": "1758:7:96",
1970
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
1971
+ },
1972
+ "visibility": "internal"
1973
+ }
1974
+ ],
1975
+ "src": "1757:9:96"
1976
+ },
1977
+ "scope": 74772,
1978
+ "stateMutability": "view",
1979
+ "virtual": false,
1980
+ "visibility": "external"
1981
+ },
1982
+ {
1983
+ "id": 74730,
1984
+ "nodeType": "FunctionDefinition",
1985
+ "src": "1773:47:96",
1986
+ "nodes": [],
1987
+ "functionSelector": "12d43a51",
1988
+ "implemented": false,
1989
+ "kind": "function",
1990
+ "modifiers": [],
1991
+ "name": "gov",
1992
+ "nameLocation": "1782:3:96",
1993
+ "parameters": { "id": 74726, "nodeType": "ParameterList", "parameters": [], "src": "1785:2:96" },
1994
+ "returnParameters": {
1995
+ "id": 74729,
1996
+ "nodeType": "ParameterList",
1997
+ "parameters": [
1998
+ {
1999
+ "constant": false,
2000
+ "id": 74728,
2001
+ "mutability": "mutable",
2002
+ "name": "",
2003
+ "nameLocation": "-1:-1:-1",
2004
+ "nodeType": "VariableDeclaration",
2005
+ "scope": 74730,
2006
+ "src": "1811:7:96",
2007
+ "stateVariable": false,
2008
+ "storageLocation": "default",
2009
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
2010
+ "typeName": {
2011
+ "id": 74727,
2012
+ "name": "address",
2013
+ "nodeType": "ElementaryTypeName",
2014
+ "src": "1811:7:96",
2015
+ "stateMutability": "nonpayable",
2016
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
2017
+ },
2018
+ "visibility": "internal"
2019
+ }
2020
+ ],
2021
+ "src": "1810:9:96"
2022
+ },
2023
+ "scope": 74772,
2024
+ "stateMutability": "view",
2025
+ "virtual": false,
2026
+ "visibility": "external"
2027
+ },
2028
+ {
2029
+ "id": 74737,
2030
+ "nodeType": "FunctionDefinition",
2031
+ "src": "1826:50:96",
2032
+ "nodes": [],
2033
+ "functionSelector": "6a562b22",
2034
+ "implemented": false,
2035
+ "kind": "function",
2036
+ "modifiers": [],
2037
+ "name": "sendUSDCToTrader",
2038
+ "nameLocation": "1835:16:96",
2039
+ "parameters": {
2040
+ "id": 74735,
2041
+ "nodeType": "ParameterList",
2042
+ "parameters": [
2043
+ {
2044
+ "constant": false,
2045
+ "id": 74732,
2046
+ "mutability": "mutable",
2047
+ "name": "",
2048
+ "nameLocation": "-1:-1:-1",
2049
+ "nodeType": "VariableDeclaration",
2050
+ "scope": 74737,
2051
+ "src": "1852:7:96",
2052
+ "stateVariable": false,
2053
+ "storageLocation": "default",
2054
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
2055
+ "typeName": {
2056
+ "id": 74731,
2057
+ "name": "address",
2058
+ "nodeType": "ElementaryTypeName",
2059
+ "src": "1852:7:96",
2060
+ "stateMutability": "nonpayable",
2061
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
2062
+ },
2063
+ "visibility": "internal"
2064
+ },
2065
+ {
2066
+ "constant": false,
2067
+ "id": 74734,
2068
+ "mutability": "mutable",
2069
+ "name": "",
2070
+ "nameLocation": "-1:-1:-1",
2071
+ "nodeType": "VariableDeclaration",
2072
+ "scope": 74737,
2073
+ "src": "1861:4:96",
2074
+ "stateVariable": false,
2075
+ "storageLocation": "default",
2076
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2077
+ "typeName": {
2078
+ "id": 74733,
2079
+ "name": "uint",
2080
+ "nodeType": "ElementaryTypeName",
2081
+ "src": "1861:4:96",
2082
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2083
+ },
2084
+ "visibility": "internal"
2085
+ }
2086
+ ],
2087
+ "src": "1851:15:96"
2088
+ },
2089
+ "returnParameters": { "id": 74736, "nodeType": "ParameterList", "parameters": [], "src": "1875:0:96" },
2090
+ "scope": 74772,
2091
+ "stateMutability": "nonpayable",
2092
+ "virtual": false,
2093
+ "visibility": "external"
2094
+ },
2095
+ {
2096
+ "id": 74744,
2097
+ "nodeType": "FunctionDefinition",
2098
+ "src": "1882:55:96",
2099
+ "nodes": [],
2100
+ "functionSelector": "5a65ca91",
2101
+ "implemented": false,
2102
+ "kind": "function",
2103
+ "modifiers": [],
2104
+ "name": "receiveUSDCFromTrader",
2105
+ "nameLocation": "1891:21:96",
2106
+ "parameters": {
2107
+ "id": 74742,
2108
+ "nodeType": "ParameterList",
2109
+ "parameters": [
2110
+ {
2111
+ "constant": false,
2112
+ "id": 74739,
2113
+ "mutability": "mutable",
2114
+ "name": "",
2115
+ "nameLocation": "-1:-1:-1",
2116
+ "nodeType": "VariableDeclaration",
2117
+ "scope": 74744,
2118
+ "src": "1913:7:96",
2119
+ "stateVariable": false,
2120
+ "storageLocation": "default",
2121
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
2122
+ "typeName": {
2123
+ "id": 74738,
2124
+ "name": "address",
2125
+ "nodeType": "ElementaryTypeName",
2126
+ "src": "1913:7:96",
2127
+ "stateMutability": "nonpayable",
2128
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
2129
+ },
2130
+ "visibility": "internal"
2131
+ },
2132
+ {
2133
+ "constant": false,
2134
+ "id": 74741,
2135
+ "mutability": "mutable",
2136
+ "name": "",
2137
+ "nameLocation": "-1:-1:-1",
2138
+ "nodeType": "VariableDeclaration",
2139
+ "scope": 74744,
2140
+ "src": "1922:4:96",
2141
+ "stateVariable": false,
2142
+ "storageLocation": "default",
2143
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2144
+ "typeName": {
2145
+ "id": 74740,
2146
+ "name": "uint",
2147
+ "nodeType": "ElementaryTypeName",
2148
+ "src": "1922:4:96",
2149
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2150
+ },
2151
+ "visibility": "internal"
2152
+ }
2153
+ ],
2154
+ "src": "1912:15:96"
2155
+ },
2156
+ "returnParameters": { "id": 74743, "nodeType": "ParameterList", "parameters": [], "src": "1936:0:96" },
2157
+ "scope": 74772,
2158
+ "stateMutability": "nonpayable",
2159
+ "virtual": false,
2160
+ "visibility": "external"
2161
+ },
2162
+ {
2163
+ "id": 74749,
2164
+ "nodeType": "FunctionDefinition",
2165
+ "src": "1943:62:96",
2166
+ "nodes": [],
2167
+ "functionSelector": "7b78d782",
2168
+ "implemented": false,
2169
+ "kind": "function",
2170
+ "modifiers": [],
2171
+ "name": "currentBalanceUSDC",
2172
+ "nameLocation": "1952:18:96",
2173
+ "parameters": { "id": 74745, "nodeType": "ParameterList", "parameters": [], "src": "1970:2:96" },
2174
+ "returnParameters": {
2175
+ "id": 74748,
2176
+ "nodeType": "ParameterList",
2177
+ "parameters": [
2178
+ {
2179
+ "constant": false,
2180
+ "id": 74747,
2181
+ "mutability": "mutable",
2182
+ "name": "",
2183
+ "nameLocation": "-1:-1:-1",
2184
+ "nodeType": "VariableDeclaration",
2185
+ "scope": 74749,
2186
+ "src": "1996:7:96",
2187
+ "stateVariable": false,
2188
+ "storageLocation": "default",
2189
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2190
+ "typeName": {
2191
+ "id": 74746,
2192
+ "name": "uint256",
2193
+ "nodeType": "ElementaryTypeName",
2194
+ "src": "1996:7:96",
2195
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2196
+ },
2197
+ "visibility": "internal"
2198
+ }
2199
+ ],
2200
+ "src": "1995:9:96"
2201
+ },
2202
+ "scope": 74772,
2203
+ "stateMutability": "view",
2204
+ "virtual": false,
2205
+ "visibility": "external"
2206
+ },
2207
+ {
2208
+ "id": 74756,
2209
+ "nodeType": "FunctionDefinition",
2210
+ "src": "2011:49:96",
2211
+ "nodes": [],
2212
+ "functionSelector": "5b898b75",
2213
+ "implemented": false,
2214
+ "kind": "function",
2215
+ "modifiers": [],
2216
+ "name": "allocateRewards",
2217
+ "nameLocation": "2020:15:96",
2218
+ "parameters": {
2219
+ "id": 74754,
2220
+ "nodeType": "ParameterList",
2221
+ "parameters": [
2222
+ {
2223
+ "constant": false,
2224
+ "id": 74751,
2225
+ "mutability": "mutable",
2226
+ "name": "",
2227
+ "nameLocation": "-1:-1:-1",
2228
+ "nodeType": "VariableDeclaration",
2229
+ "scope": 74756,
2230
+ "src": "2036:7:96",
2231
+ "stateVariable": false,
2232
+ "storageLocation": "default",
2233
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2234
+ "typeName": {
2235
+ "id": 74750,
2236
+ "name": "uint256",
2237
+ "nodeType": "ElementaryTypeName",
2238
+ "src": "2036:7:96",
2239
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2240
+ },
2241
+ "visibility": "internal"
2242
+ },
2243
+ {
2244
+ "constant": false,
2245
+ "id": 74753,
2246
+ "mutability": "mutable",
2247
+ "name": "",
2248
+ "nameLocation": "-1:-1:-1",
2249
+ "nodeType": "VariableDeclaration",
2250
+ "scope": 74756,
2251
+ "src": "2045:4:96",
2252
+ "stateVariable": false,
2253
+ "storageLocation": "default",
2254
+ "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" },
2255
+ "typeName": {
2256
+ "id": 74752,
2257
+ "name": "bool",
2258
+ "nodeType": "ElementaryTypeName",
2259
+ "src": "2045:4:96",
2260
+ "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }
2261
+ },
2262
+ "visibility": "internal"
2263
+ }
2264
+ ],
2265
+ "src": "2035:15:96"
2266
+ },
2267
+ "returnParameters": { "id": 74755, "nodeType": "ParameterList", "parameters": [], "src": "2059:0:96" },
2268
+ "scope": 74772,
2269
+ "stateMutability": "nonpayable",
2270
+ "virtual": false,
2271
+ "visibility": "external"
2272
+ },
2273
+ {
2274
+ "id": 74761,
2275
+ "nodeType": "FunctionDefinition",
2276
+ "src": "2066:42:96",
2277
+ "nodes": [],
2278
+ "functionSelector": "14269687",
2279
+ "implemented": false,
2280
+ "kind": "function",
2281
+ "modifiers": [],
2282
+ "name": "reserveBalance",
2283
+ "nameLocation": "2075:14:96",
2284
+ "parameters": {
2285
+ "id": 74759,
2286
+ "nodeType": "ParameterList",
2287
+ "parameters": [
2288
+ {
2289
+ "constant": false,
2290
+ "id": 74758,
2291
+ "mutability": "mutable",
2292
+ "name": "",
2293
+ "nameLocation": "-1:-1:-1",
2294
+ "nodeType": "VariableDeclaration",
2295
+ "scope": 74761,
2296
+ "src": "2090:7:96",
2297
+ "stateVariable": false,
2298
+ "storageLocation": "default",
2299
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2300
+ "typeName": {
2301
+ "id": 74757,
2302
+ "name": "uint256",
2303
+ "nodeType": "ElementaryTypeName",
2304
+ "src": "2090:7:96",
2305
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2306
+ },
2307
+ "visibility": "internal"
2308
+ }
2309
+ ],
2310
+ "src": "2089:9:96"
2311
+ },
2312
+ "returnParameters": { "id": 74760, "nodeType": "ParameterList", "parameters": [], "src": "2107:0:96" },
2313
+ "scope": 74772,
2314
+ "stateMutability": "nonpayable",
2315
+ "virtual": false,
2316
+ "visibility": "external"
2317
+ },
2318
+ {
2319
+ "id": 74766,
2320
+ "nodeType": "FunctionDefinition",
2321
+ "src": "2114:42:96",
2322
+ "nodes": [],
2323
+ "functionSelector": "76079be3",
2324
+ "implemented": false,
2325
+ "kind": "function",
2326
+ "modifiers": [],
2327
+ "name": "releaseBalance",
2328
+ "nameLocation": "2123:14:96",
2329
+ "parameters": {
2330
+ "id": 74764,
2331
+ "nodeType": "ParameterList",
2332
+ "parameters": [
2333
+ {
2334
+ "constant": false,
2335
+ "id": 74763,
2336
+ "mutability": "mutable",
2337
+ "name": "",
2338
+ "nameLocation": "-1:-1:-1",
2339
+ "nodeType": "VariableDeclaration",
2340
+ "scope": 74766,
2341
+ "src": "2138:7:96",
2342
+ "stateVariable": false,
2343
+ "storageLocation": "default",
2344
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2345
+ "typeName": {
2346
+ "id": 74762,
2347
+ "name": "uint256",
2348
+ "nodeType": "ElementaryTypeName",
2349
+ "src": "2138:7:96",
2350
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2351
+ },
2352
+ "visibility": "internal"
2353
+ }
2354
+ ],
2355
+ "src": "2137:9:96"
2356
+ },
2357
+ "returnParameters": { "id": 74765, "nodeType": "ParameterList", "parameters": [], "src": "2155:0:96" },
2358
+ "scope": 74772,
2359
+ "stateMutability": "nonpayable",
2360
+ "virtual": false,
2361
+ "visibility": "external"
2362
+ },
2363
+ {
2364
+ "id": 74771,
2365
+ "nodeType": "FunctionDefinition",
2366
+ "src": "2162:52:96",
2367
+ "nodes": [],
2368
+ "functionSelector": "a056d2bb",
2369
+ "implemented": false,
2370
+ "kind": "function",
2371
+ "modifiers": [],
2372
+ "name": "sendReferrerRebateToStorage",
2373
+ "nameLocation": "2171:27:96",
2374
+ "parameters": {
2375
+ "id": 74769,
2376
+ "nodeType": "ParameterList",
2377
+ "parameters": [
2378
+ {
2379
+ "constant": false,
2380
+ "id": 74768,
2381
+ "mutability": "mutable",
2382
+ "name": "",
2383
+ "nameLocation": "-1:-1:-1",
2384
+ "nodeType": "VariableDeclaration",
2385
+ "scope": 74771,
2386
+ "src": "2199:4:96",
2387
+ "stateVariable": false,
2388
+ "storageLocation": "default",
2389
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
2390
+ "typeName": {
2391
+ "id": 74767,
2392
+ "name": "uint",
2393
+ "nodeType": "ElementaryTypeName",
2394
+ "src": "2199:4:96",
2395
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
2396
+ },
2397
+ "visibility": "internal"
2398
+ }
2399
+ ],
2400
+ "src": "2198:6:96"
2401
+ },
2402
+ "returnParameters": { "id": 74770, "nodeType": "ParameterList", "parameters": [], "src": "2213:0:96" },
2403
+ "scope": 74772,
2404
+ "stateMutability": "nonpayable",
2405
+ "virtual": false,
2406
+ "visibility": "external"
2407
+ }
2408
+ ],
2409
+ "abstract": false,
2410
+ "baseContracts": [],
2411
+ "contractDependencies": [],
2412
+ "contractKind": "interface",
2413
+ "fullyImplemented": false,
2414
+ "linearizedBaseContracts": [74772],
2415
+ "name": "IVaultManager",
2416
+ "nameLocation": "66:13:96",
2417
+ "scope": 74773,
2418
+ "usedErrors": []
2419
+ }
2420
+ ],
2421
+ "license": "MIT"
2422
+ },
2423
+ "id": 96
2424
+ }