@paraswap/dex-lib 3.8.13 → 3.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +53 -0
- package/.vscode/settings.json +2 -0
- package/.vscode/tasks.json +15 -0
- package/build/abi/maverick-v2/MaverickV2Router.json +778 -0
- package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
- package/build/abi/{fx-protocol/FxUSD.json → wombat/pool.json} +604 -542
- package/build/dex/aave-v1/aave-v1.js +1 -0
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/aave-v2/tokens-avalanche.json +44 -0
- package/build/dex/aave-v2/tokens-mainnet.json +188 -0
- package/build/dex/aave-v2/tokens-polygon.json +44 -0
- package/build/dex/bProtocol.d.ts +18 -0
- package/build/dex/bProtocol.js +39 -0
- package/build/dex/bProtocol.js.map +1 -0
- package/build/dex/bancor.d.ts +26 -0
- package/build/dex/bancor.js +58 -0
- package/build/dex/bancor.js.map +1 -0
- package/build/dex/compound.d.ts +18 -0
- package/build/dex/compound.js +46 -0
- package/build/dex/compound.js.map +1 -0
- package/build/dex/curve-v2.d.ts +58 -0
- package/build/dex/curve-v2.js +180 -0
- package/build/dex/curve-v2.js.map +1 -0
- package/build/dex/dodo-v1.d.ts +33 -0
- package/build/dex/dodo-v1.js +63 -0
- package/build/dex/dodo-v1.js.map +1 -0
- package/build/dex/lido.d.ts +19 -0
- package/build/dex/lido.js +42 -0
- package/build/dex/lido.js.map +1 -0
- package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
- package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
- package/build/dex/maker-psm/scripts/validate-state.js +185 -0
- package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
- package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
- package/build/dex/onebit.d.ts +25 -0
- package/build/dex/onebit.js +42 -0
- package/build/dex/onebit.js.map +1 -0
- package/build/dex/platypus/platypus.js +17 -3
- package/build/dex/platypus/platypus.js.map +1 -1
- package/build/dex/smoothy.d.ts +26 -0
- package/build/dex/smoothy.js +48 -0
- package/build/dex/smoothy.js.map +1 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
- package/build/dex/stable-pool.d.ts +28 -0
- package/build/dex/stable-pool.js +55 -0
- package/build/dex/stable-pool.js.map +1 -0
- package/build/dex/swaap-v1/swaap-v1.js +4 -0
- package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
- package/build/dex/trader-joe-v2.1/base.d.ts +18 -0
- package/build/dex/trader-joe-v2.1/base.js +99 -0
- package/build/dex/trader-joe-v2.1/base.js.map +1 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.2.d.ts +7 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js +20 -0
- package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js.map +1 -0
- package/build/dex/trader-joe-v2.1.d.ts +43 -0
- package/build/dex/trader-joe-v2.1.js +79 -0
- package/build/dex/trader-joe-v2.1.js.map +1 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
- package/build/executor/Executor01BytecodeBuilder.js +4 -5
- package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
- package/build/executor/Executor02BytecodeBuilder.js +2 -3
- package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
- package/build/executor/Executor03BytecodeBuilder.js +24 -14
- package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
- package/build/generic-swap-transaction-builder.d.ts +1 -1
- package/build/generic-swap-transaction-builder.js +10 -10
- package/build/generic-swap-transaction-builder.js.map +1 -1
- package/config.ts +1946 -0
- package/package.json +1 -1
- package/src/dex/dexs.txt +58 -0
- package/src/executor/Executor01BytecodeBuilder.ts +4 -8
- package/src/executor/Executor02BytecodeBuilder.ts +2 -7
- package/src/executor/Executor03BytecodeBuilder.ts +34 -19
- package/src/generic-swap-transaction-builder.ts +3 -5
- package/build/abi/concentrator/arUSD.json +0 -568
- package/build/abi/inception/inception-ineth-pool.json +0 -1062
- package/build/abi/inception/inception-ineth.json +0 -609
- package/build/abi/inception/inception-ratio-feed.json +0 -93
- package/build/abi/inception/inception-vault.json +0 -991
- package/build/abi/infusion/InfusionFactory.json +0 -147
- package/build/abi/infusion/InfusionPair.json +0 -658
- package/build/abi/infusion/InfusionRouter.json +0 -442
- package/build/abi/oswap/oswap.abi.json +0 -452
- package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +0 -38
- package/build/dex/concentrator-arusd/concentrator-arusd.js +0 -184
- package/build/dex/concentrator-arusd/concentrator-arusd.js.map +0 -1
- package/build/dex/concentrator-arusd/config.d.ts +0 -4
- package/build/dex/concentrator-arusd/config.js +0 -18
- package/build/dex/concentrator-arusd/config.js.map +0 -1
- package/build/dex/concentrator-arusd/types.d.ts +0 -10
- package/build/dex/concentrator-arusd/types.js +0 -3
- package/build/dex/concentrator-arusd/types.js.map +0 -1
- package/build/dex/fx-protocol-rusd/config.d.ts +0 -4
- package/build/dex/fx-protocol-rusd/config.js +0 -18
- package/build/dex/fx-protocol-rusd/config.js.map +0 -1
- package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +0 -39
- package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +0 -196
- package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +0 -1
- package/build/dex/fx-protocol-rusd/types.d.ts +0 -10
- package/build/dex/fx-protocol-rusd/types.js +0 -3
- package/build/dex/fx-protocol-rusd/types.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
- package/build/dex/idle-dao/idle-dao-pool.js +0 -176
- package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
- package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
- package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
- package/build/dex/idle-dao/scripts.d.ts +0 -9
- package/build/dex/idle-dao/scripts.js +0 -552
- package/build/dex/idle-dao/scripts.js.map +0 -1
- package/build/dex/inception/config.d.ts +0 -5
- package/build/dex/inception/config.js +0 -112
- package/build/dex/inception/config.js.map +0 -1
- package/build/dex/inception/inception-event-pool.d.ts +0 -23
- package/build/dex/inception/inception-event-pool.js +0 -34
- package/build/dex/inception/inception-event-pool.js.map +0 -1
- package/build/dex/inception/inception-native.d.ts +0 -43
- package/build/dex/inception/inception-native.js +0 -131
- package/build/dex/inception/inception-native.js.map +0 -1
- package/build/dex/inception/inception-pool.d.ts +0 -18
- package/build/dex/inception/inception-pool.js +0 -32
- package/build/dex/inception/inception-pool.js.map +0 -1
- package/build/dex/inception/inception-price-feed.d.ts +0 -19
- package/build/dex/inception/inception-price-feed.js +0 -51
- package/build/dex/inception/inception-price-feed.js.map +0 -1
- package/build/dex/inception/inception.d.ts +0 -44
- package/build/dex/inception/inception.js +0 -162
- package/build/dex/inception/inception.js.map +0 -1
- package/build/dex/inception/tokens.d.ts +0 -9
- package/build/dex/inception/tokens.js +0 -28
- package/build/dex/inception/tokens.js.map +0 -1
- package/build/dex/inception/types.d.ts +0 -22
- package/build/dex/inception/types.js +0 -3
- package/build/dex/inception/types.js.map +0 -1
- package/build/dex/inception/utils.d.ts +0 -7
- package/build/dex/inception/utils.js +0 -58
- package/build/dex/inception/utils.js.map +0 -1
- package/build/dex/infusion/config.d.ts +0 -4
- package/build/dex/infusion/config.js +0 -25
- package/build/dex/infusion/config.js.map +0 -1
- package/build/dex/infusion/infusion-stable-pool.d.ts +0 -4
- package/build/dex/infusion/infusion-stable-pool.js +0 -74
- package/build/dex/infusion/infusion-stable-pool.js.map +0 -1
- package/build/dex/infusion/infusion.d.ts +0 -54
- package/build/dex/infusion/infusion.js +0 -532
- package/build/dex/infusion/infusion.js.map +0 -1
- package/build/dex/infusion/types.d.ts +0 -47
- package/build/dex/infusion/types.js +0 -3
- package/build/dex/infusion/types.js.map +0 -1
- package/build/dex/infusion/utils/isStablePair.d.ts +0 -2
- package/build/dex/infusion/utils/isStablePair.js +0 -18
- package/build/dex/infusion/utils/isStablePair.js.map +0 -1
- package/build/dex/oswap/config.d.ts +0 -5
- package/build/dex/oswap/config.js +0 -31
- package/build/dex/oswap/config.js.map +0 -1
- package/build/dex/oswap/oswap-pool.d.ts +0 -51
- package/build/dex/oswap/oswap-pool.js +0 -150
- package/build/dex/oswap/oswap-pool.js.map +0 -1
- package/build/dex/oswap/oswap.d.ts +0 -46
- package/build/dex/oswap/oswap.js +0 -263
- package/build/dex/oswap/oswap.js.map +0 -1
- package/build/dex/oswap/types.d.ts +0 -20
- package/build/dex/oswap/types.js +0 -3
- package/build/dex/oswap/types.js.map +0 -1
|
@@ -1,66 +1,21 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [],
|
|
4
|
-
"name": "ErrorExceedMintCap",
|
|
5
|
-
"type": "error"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"inputs": [],
|
|
9
|
-
"name": "ErrorInsufficientLiquidity",
|
|
10
|
-
"type": "error"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"inputs": [],
|
|
14
|
-
"name": "ErrorLengthMismatch",
|
|
15
|
-
"type": "error"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"name": "ErrorMarketAlreadySupported",
|
|
20
|
-
"type": "error"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"inputs": [],
|
|
24
|
-
"name": "ErrorMarketInStabilityMode",
|
|
25
|
-
"type": "error"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"inputs": [],
|
|
29
|
-
"name": "ErrorMarketWithInvalidPrice",
|
|
30
|
-
"type": "error"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"inputs": [],
|
|
34
|
-
"name": "ErrorUnderCollateral",
|
|
35
|
-
"type": "error"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"inputs": [],
|
|
39
|
-
"name": "ErrorUnsupportedMarket",
|
|
40
|
-
"type": "error"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"inputs": [],
|
|
44
|
-
"name": "ErrorUnsupportedRebalancePool",
|
|
45
|
-
"type": "error"
|
|
46
|
-
},
|
|
47
2
|
{
|
|
48
3
|
"anonymous": false,
|
|
49
4
|
"inputs": [
|
|
50
5
|
{
|
|
51
6
|
"indexed": true,
|
|
52
7
|
"internalType": "address",
|
|
53
|
-
"name": "
|
|
8
|
+
"name": "token",
|
|
54
9
|
"type": "address"
|
|
55
10
|
},
|
|
56
11
|
{
|
|
57
|
-
"indexed":
|
|
58
|
-
"internalType": "
|
|
59
|
-
"name": "
|
|
60
|
-
"type": "
|
|
12
|
+
"indexed": true,
|
|
13
|
+
"internalType": "address",
|
|
14
|
+
"name": "asset",
|
|
15
|
+
"type": "address"
|
|
61
16
|
}
|
|
62
17
|
],
|
|
63
|
-
"name": "
|
|
18
|
+
"name": "AssetAdded",
|
|
64
19
|
"type": "event"
|
|
65
20
|
},
|
|
66
21
|
{
|
|
@@ -69,17 +24,17 @@
|
|
|
69
24
|
{
|
|
70
25
|
"indexed": true,
|
|
71
26
|
"internalType": "address",
|
|
72
|
-
"name": "
|
|
27
|
+
"name": "token",
|
|
73
28
|
"type": "address"
|
|
74
29
|
},
|
|
75
30
|
{
|
|
76
31
|
"indexed": true,
|
|
77
32
|
"internalType": "address",
|
|
78
|
-
"name": "
|
|
33
|
+
"name": "asset",
|
|
79
34
|
"type": "address"
|
|
80
35
|
}
|
|
81
36
|
],
|
|
82
|
-
"name": "
|
|
37
|
+
"name": "AssetRemoved",
|
|
83
38
|
"type": "event"
|
|
84
39
|
},
|
|
85
40
|
{
|
|
@@ -88,29 +43,54 @@
|
|
|
88
43
|
{
|
|
89
44
|
"indexed": true,
|
|
90
45
|
"internalType": "address",
|
|
91
|
-
"name": "
|
|
46
|
+
"name": "sender",
|
|
92
47
|
"type": "address"
|
|
93
48
|
},
|
|
94
49
|
{
|
|
95
|
-
"indexed":
|
|
50
|
+
"indexed": false,
|
|
96
51
|
"internalType": "address",
|
|
97
|
-
"name": "
|
|
52
|
+
"name": "token",
|
|
98
53
|
"type": "address"
|
|
99
54
|
},
|
|
100
55
|
{
|
|
101
56
|
"indexed": false,
|
|
102
57
|
"internalType": "uint256",
|
|
103
|
-
"name": "
|
|
58
|
+
"name": "amount",
|
|
59
|
+
"type": "uint256"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"indexed": false,
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "liquidity",
|
|
104
65
|
"type": "uint256"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"indexed": true,
|
|
69
|
+
"internalType": "address",
|
|
70
|
+
"name": "to",
|
|
71
|
+
"type": "address"
|
|
105
72
|
}
|
|
106
73
|
],
|
|
107
|
-
"name": "
|
|
74
|
+
"name": "Deposit",
|
|
108
75
|
"type": "event"
|
|
109
76
|
},
|
|
110
77
|
{
|
|
111
78
|
"anonymous": false,
|
|
112
|
-
"inputs": [
|
|
113
|
-
|
|
79
|
+
"inputs": [
|
|
80
|
+
{
|
|
81
|
+
"indexed": false,
|
|
82
|
+
"internalType": "address",
|
|
83
|
+
"name": "token",
|
|
84
|
+
"type": "address"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"indexed": false,
|
|
88
|
+
"internalType": "uint256",
|
|
89
|
+
"name": "amount",
|
|
90
|
+
"type": "uint256"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"name": "FillPool",
|
|
114
94
|
"type": "event"
|
|
115
95
|
},
|
|
116
96
|
{
|
|
@@ -132,173 +112,146 @@
|
|
|
132
112
|
{
|
|
133
113
|
"indexed": true,
|
|
134
114
|
"internalType": "address",
|
|
135
|
-
"name": "
|
|
115
|
+
"name": "previousOwner",
|
|
136
116
|
"type": "address"
|
|
137
117
|
},
|
|
138
118
|
{
|
|
139
119
|
"indexed": true,
|
|
140
120
|
"internalType": "address",
|
|
141
|
-
"name": "
|
|
121
|
+
"name": "newOwner",
|
|
142
122
|
"type": "address"
|
|
143
123
|
}
|
|
144
124
|
],
|
|
145
|
-
"name": "
|
|
125
|
+
"name": "OwnershipTransferred",
|
|
146
126
|
"type": "event"
|
|
147
127
|
},
|
|
148
128
|
{
|
|
149
129
|
"anonymous": false,
|
|
150
130
|
"inputs": [
|
|
151
131
|
{
|
|
152
|
-
"indexed":
|
|
153
|
-
"internalType": "
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"indexed": true,
|
|
159
|
-
"internalType": "bytes32",
|
|
160
|
-
"name": "previousAdminRole",
|
|
161
|
-
"type": "bytes32"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"indexed": true,
|
|
165
|
-
"internalType": "bytes32",
|
|
166
|
-
"name": "newAdminRole",
|
|
167
|
-
"type": "bytes32"
|
|
132
|
+
"indexed": false,
|
|
133
|
+
"internalType": "address",
|
|
134
|
+
"name": "account",
|
|
135
|
+
"type": "address"
|
|
168
136
|
}
|
|
169
137
|
],
|
|
170
|
-
"name": "
|
|
138
|
+
"name": "Paused",
|
|
171
139
|
"type": "event"
|
|
172
140
|
},
|
|
173
141
|
{
|
|
174
142
|
"anonymous": false,
|
|
175
143
|
"inputs": [
|
|
176
144
|
{
|
|
177
|
-
"indexed":
|
|
178
|
-
"internalType": "bytes32",
|
|
179
|
-
"name": "role",
|
|
180
|
-
"type": "bytes32"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"indexed": true,
|
|
145
|
+
"indexed": false,
|
|
184
146
|
"internalType": "address",
|
|
185
|
-
"name": "
|
|
147
|
+
"name": "token",
|
|
186
148
|
"type": "address"
|
|
187
149
|
},
|
|
188
150
|
{
|
|
189
|
-
"indexed":
|
|
151
|
+
"indexed": false,
|
|
190
152
|
"internalType": "address",
|
|
191
|
-
"name": "
|
|
153
|
+
"name": "account",
|
|
192
154
|
"type": "address"
|
|
193
155
|
}
|
|
194
156
|
],
|
|
195
|
-
"name": "
|
|
157
|
+
"name": "PausedAsset",
|
|
196
158
|
"type": "event"
|
|
197
159
|
},
|
|
198
160
|
{
|
|
199
161
|
"anonymous": false,
|
|
200
162
|
"inputs": [
|
|
201
163
|
{
|
|
202
|
-
"indexed":
|
|
203
|
-
"internalType": "
|
|
204
|
-
"name": "
|
|
205
|
-
"type": "
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"indexed": true,
|
|
209
|
-
"internalType": "address",
|
|
210
|
-
"name": "account",
|
|
211
|
-
"type": "address"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"indexed": true,
|
|
215
|
-
"internalType": "address",
|
|
216
|
-
"name": "sender",
|
|
217
|
-
"type": "address"
|
|
164
|
+
"indexed": false,
|
|
165
|
+
"internalType": "uint256",
|
|
166
|
+
"name": "value",
|
|
167
|
+
"type": "uint256"
|
|
218
168
|
}
|
|
219
169
|
],
|
|
220
|
-
"name": "
|
|
170
|
+
"name": "SetAmpFactor",
|
|
221
171
|
"type": "event"
|
|
222
172
|
},
|
|
223
173
|
{
|
|
224
174
|
"anonymous": false,
|
|
225
175
|
"inputs": [
|
|
226
176
|
{
|
|
227
|
-
"indexed":
|
|
177
|
+
"indexed": false,
|
|
228
178
|
"internalType": "address",
|
|
229
|
-
"name": "
|
|
179
|
+
"name": "addr",
|
|
230
180
|
"type": "address"
|
|
231
|
-
}
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"name": "SetDev",
|
|
184
|
+
"type": "event"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"anonymous": false,
|
|
188
|
+
"inputs": [
|
|
232
189
|
{
|
|
233
|
-
"indexed":
|
|
234
|
-
"internalType": "
|
|
235
|
-
"name": "
|
|
236
|
-
"type": "
|
|
190
|
+
"indexed": false,
|
|
191
|
+
"internalType": "uint256",
|
|
192
|
+
"name": "lpDividendRatio",
|
|
193
|
+
"type": "uint256"
|
|
237
194
|
},
|
|
238
195
|
{
|
|
239
196
|
"indexed": false,
|
|
240
197
|
"internalType": "uint256",
|
|
241
|
-
"name": "
|
|
198
|
+
"name": "retentionRatio",
|
|
242
199
|
"type": "uint256"
|
|
243
200
|
}
|
|
244
201
|
],
|
|
245
|
-
"name": "
|
|
202
|
+
"name": "SetFee",
|
|
246
203
|
"type": "event"
|
|
247
204
|
},
|
|
248
205
|
{
|
|
249
206
|
"anonymous": false,
|
|
250
207
|
"inputs": [
|
|
251
208
|
{
|
|
252
|
-
"indexed":
|
|
253
|
-
"internalType": "address",
|
|
254
|
-
"name": "baseToken",
|
|
255
|
-
"type": "address"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"indexed": true,
|
|
259
|
-
"internalType": "address",
|
|
260
|
-
"name": "owner",
|
|
261
|
-
"type": "address"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"indexed": true,
|
|
209
|
+
"indexed": false,
|
|
265
210
|
"internalType": "address",
|
|
266
|
-
"name": "
|
|
211
|
+
"name": "addr",
|
|
267
212
|
"type": "address"
|
|
268
|
-
}
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"name": "SetFeeTo",
|
|
216
|
+
"type": "event"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"anonymous": false,
|
|
220
|
+
"inputs": [
|
|
269
221
|
{
|
|
270
222
|
"indexed": false,
|
|
271
223
|
"internalType": "uint256",
|
|
272
|
-
"name": "
|
|
224
|
+
"name": "value",
|
|
273
225
|
"type": "uint256"
|
|
274
226
|
}
|
|
275
227
|
],
|
|
276
|
-
"name": "
|
|
228
|
+
"name": "SetHaircutRate",
|
|
277
229
|
"type": "event"
|
|
278
230
|
},
|
|
279
231
|
{
|
|
280
232
|
"anonymous": false,
|
|
281
233
|
"inputs": [
|
|
282
234
|
{
|
|
283
|
-
"indexed":
|
|
235
|
+
"indexed": false,
|
|
284
236
|
"internalType": "address",
|
|
285
|
-
"name": "
|
|
237
|
+
"name": "addr",
|
|
286
238
|
"type": "address"
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"name": "SetMasterWombat",
|
|
242
|
+
"type": "event"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"anonymous": false,
|
|
246
|
+
"inputs": [
|
|
294
247
|
{
|
|
295
248
|
"indexed": false,
|
|
296
249
|
"internalType": "uint256",
|
|
297
|
-
"name": "
|
|
250
|
+
"name": "value",
|
|
298
251
|
"type": "uint256"
|
|
299
252
|
}
|
|
300
253
|
],
|
|
301
|
-
"name": "
|
|
254
|
+
"name": "SetMintFeeThreshold",
|
|
302
255
|
"type": "event"
|
|
303
256
|
},
|
|
304
257
|
{
|
|
@@ -307,172 +260,152 @@
|
|
|
307
260
|
{
|
|
308
261
|
"indexed": true,
|
|
309
262
|
"internalType": "address",
|
|
310
|
-
"name": "
|
|
263
|
+
"name": "sender",
|
|
311
264
|
"type": "address"
|
|
312
265
|
},
|
|
313
266
|
{
|
|
314
|
-
"indexed":
|
|
267
|
+
"indexed": false,
|
|
315
268
|
"internalType": "address",
|
|
316
|
-
"name": "
|
|
269
|
+
"name": "fromToken",
|
|
317
270
|
"type": "address"
|
|
318
271
|
},
|
|
319
272
|
{
|
|
320
|
-
"indexed":
|
|
273
|
+
"indexed": false,
|
|
321
274
|
"internalType": "address",
|
|
322
|
-
"name": "
|
|
275
|
+
"name": "toToken",
|
|
323
276
|
"type": "address"
|
|
324
277
|
},
|
|
325
278
|
{
|
|
326
279
|
"indexed": false,
|
|
327
280
|
"internalType": "uint256",
|
|
328
|
-
"name": "
|
|
281
|
+
"name": "fromAmount",
|
|
329
282
|
"type": "uint256"
|
|
330
|
-
}
|
|
331
|
-
],
|
|
332
|
-
"name": "Wrap",
|
|
333
|
-
"type": "event"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"inputs": [],
|
|
337
|
-
"name": "DEFAULT_ADMIN_ROLE",
|
|
338
|
-
"outputs": [
|
|
283
|
+
},
|
|
339
284
|
{
|
|
340
|
-
"
|
|
341
|
-
"
|
|
342
|
-
"
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
"stateMutability": "view",
|
|
346
|
-
"type": "function"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"inputs": [],
|
|
350
|
-
"name": "DOMAIN_SEPARATOR",
|
|
351
|
-
"outputs": [
|
|
285
|
+
"indexed": false,
|
|
286
|
+
"internalType": "uint256",
|
|
287
|
+
"name": "toAmount",
|
|
288
|
+
"type": "uint256"
|
|
289
|
+
},
|
|
352
290
|
{
|
|
353
|
-
"
|
|
354
|
-
"
|
|
355
|
-
"
|
|
291
|
+
"indexed": true,
|
|
292
|
+
"internalType": "address",
|
|
293
|
+
"name": "to",
|
|
294
|
+
"type": "address"
|
|
356
295
|
}
|
|
357
296
|
],
|
|
358
|
-
"
|
|
359
|
-
"type": "
|
|
297
|
+
"name": "Swap",
|
|
298
|
+
"type": "event"
|
|
360
299
|
},
|
|
361
300
|
{
|
|
301
|
+
"anonymous": false,
|
|
362
302
|
"inputs": [
|
|
363
303
|
{
|
|
304
|
+
"indexed": false,
|
|
364
305
|
"internalType": "address",
|
|
365
|
-
"name": "
|
|
306
|
+
"name": "token",
|
|
366
307
|
"type": "address"
|
|
367
308
|
},
|
|
368
309
|
{
|
|
310
|
+
"indexed": false,
|
|
369
311
|
"internalType": "uint256",
|
|
370
|
-
"name": "
|
|
312
|
+
"name": "amount",
|
|
371
313
|
"type": "uint256"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"indexed": false,
|
|
317
|
+
"internalType": "address",
|
|
318
|
+
"name": "to",
|
|
319
|
+
"type": "address"
|
|
372
320
|
}
|
|
373
321
|
],
|
|
374
|
-
"name": "
|
|
375
|
-
"
|
|
376
|
-
"stateMutability": "nonpayable",
|
|
377
|
-
"type": "function"
|
|
322
|
+
"name": "TransferTipBucket",
|
|
323
|
+
"type": "event"
|
|
378
324
|
},
|
|
379
325
|
{
|
|
326
|
+
"anonymous": false,
|
|
380
327
|
"inputs": [
|
|
381
328
|
{
|
|
382
|
-
"
|
|
383
|
-
"
|
|
384
|
-
"
|
|
329
|
+
"indexed": false,
|
|
330
|
+
"internalType": "address",
|
|
331
|
+
"name": "account",
|
|
332
|
+
"type": "address"
|
|
385
333
|
}
|
|
386
334
|
],
|
|
387
|
-
"name": "
|
|
388
|
-
"
|
|
389
|
-
"stateMutability": "nonpayable",
|
|
390
|
-
"type": "function"
|
|
335
|
+
"name": "Unpaused",
|
|
336
|
+
"type": "event"
|
|
391
337
|
},
|
|
392
338
|
{
|
|
339
|
+
"anonymous": false,
|
|
393
340
|
"inputs": [
|
|
394
341
|
{
|
|
342
|
+
"indexed": false,
|
|
395
343
|
"internalType": "address",
|
|
396
|
-
"name": "
|
|
344
|
+
"name": "token",
|
|
397
345
|
"type": "address"
|
|
398
346
|
},
|
|
399
347
|
{
|
|
348
|
+
"indexed": false,
|
|
400
349
|
"internalType": "address",
|
|
401
|
-
"name": "
|
|
350
|
+
"name": "account",
|
|
402
351
|
"type": "address"
|
|
403
352
|
}
|
|
404
353
|
],
|
|
405
|
-
"name": "
|
|
406
|
-
"
|
|
407
|
-
{
|
|
408
|
-
"internalType": "uint256",
|
|
409
|
-
"name": "",
|
|
410
|
-
"type": "uint256"
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
"stateMutability": "view",
|
|
414
|
-
"type": "function"
|
|
354
|
+
"name": "UnpausedAsset",
|
|
355
|
+
"type": "event"
|
|
415
356
|
},
|
|
416
357
|
{
|
|
358
|
+
"anonymous": false,
|
|
417
359
|
"inputs": [
|
|
418
360
|
{
|
|
361
|
+
"indexed": true,
|
|
362
|
+
"internalType": "address",
|
|
363
|
+
"name": "sender",
|
|
364
|
+
"type": "address"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"indexed": false,
|
|
419
368
|
"internalType": "address",
|
|
420
|
-
"name": "
|
|
369
|
+
"name": "token",
|
|
421
370
|
"type": "address"
|
|
422
371
|
},
|
|
423
372
|
{
|
|
373
|
+
"indexed": false,
|
|
424
374
|
"internalType": "uint256",
|
|
425
375
|
"name": "amount",
|
|
426
376
|
"type": "uint256"
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
"name": "approve",
|
|
430
|
-
"outputs": [
|
|
431
|
-
{
|
|
432
|
-
"internalType": "bool",
|
|
433
|
-
"name": "",
|
|
434
|
-
"type": "bool"
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
"stateMutability": "nonpayable",
|
|
438
|
-
"type": "function"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"inputs": [
|
|
377
|
+
},
|
|
442
378
|
{
|
|
379
|
+
"indexed": false,
|
|
443
380
|
"internalType": "uint256",
|
|
444
|
-
"name": "
|
|
381
|
+
"name": "liquidity",
|
|
445
382
|
"type": "uint256"
|
|
446
383
|
},
|
|
447
384
|
{
|
|
385
|
+
"indexed": true,
|
|
448
386
|
"internalType": "address",
|
|
449
|
-
"name": "
|
|
387
|
+
"name": "to",
|
|
450
388
|
"type": "address"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"internalType": "uint256[]",
|
|
454
|
-
"name": "_minOuts",
|
|
455
|
-
"type": "uint256[]"
|
|
456
389
|
}
|
|
457
390
|
],
|
|
458
|
-
"name": "
|
|
459
|
-
"
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
"type": "address[]"
|
|
464
|
-
},
|
|
391
|
+
"name": "Withdraw",
|
|
392
|
+
"type": "event"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"inputs": [
|
|
465
396
|
{
|
|
466
|
-
"internalType": "
|
|
467
|
-
"name": "
|
|
468
|
-
"type": "
|
|
397
|
+
"internalType": "address",
|
|
398
|
+
"name": "token",
|
|
399
|
+
"type": "address"
|
|
469
400
|
},
|
|
470
401
|
{
|
|
471
|
-
"internalType": "
|
|
472
|
-
"name": "
|
|
473
|
-
"type": "
|
|
402
|
+
"internalType": "address",
|
|
403
|
+
"name": "asset",
|
|
404
|
+
"type": "address"
|
|
474
405
|
}
|
|
475
406
|
],
|
|
407
|
+
"name": "addAsset",
|
|
408
|
+
"outputs": [],
|
|
476
409
|
"stateMutability": "nonpayable",
|
|
477
410
|
"type": "function"
|
|
478
411
|
},
|
|
@@ -480,16 +413,16 @@
|
|
|
480
413
|
"inputs": [
|
|
481
414
|
{
|
|
482
415
|
"internalType": "address",
|
|
483
|
-
"name": "
|
|
416
|
+
"name": "token",
|
|
484
417
|
"type": "address"
|
|
485
418
|
}
|
|
486
419
|
],
|
|
487
|
-
"name": "
|
|
420
|
+
"name": "addressOfAsset",
|
|
488
421
|
"outputs": [
|
|
489
422
|
{
|
|
490
|
-
"internalType": "
|
|
423
|
+
"internalType": "address",
|
|
491
424
|
"name": "",
|
|
492
|
-
"type": "
|
|
425
|
+
"type": "address"
|
|
493
426
|
}
|
|
494
427
|
],
|
|
495
428
|
"stateMutability": "view",
|
|
@@ -497,12 +430,12 @@
|
|
|
497
430
|
},
|
|
498
431
|
{
|
|
499
432
|
"inputs": [],
|
|
500
|
-
"name": "
|
|
433
|
+
"name": "ampFactor",
|
|
501
434
|
"outputs": [
|
|
502
435
|
{
|
|
503
|
-
"internalType": "
|
|
436
|
+
"internalType": "uint256",
|
|
504
437
|
"name": "",
|
|
505
|
-
"type": "
|
|
438
|
+
"type": "uint256"
|
|
506
439
|
}
|
|
507
440
|
],
|
|
508
441
|
"stateMutability": "view",
|
|
@@ -512,100 +445,54 @@
|
|
|
512
445
|
"inputs": [
|
|
513
446
|
{
|
|
514
447
|
"internalType": "address",
|
|
515
|
-
"name": "
|
|
448
|
+
"name": "token",
|
|
516
449
|
"type": "address"
|
|
517
450
|
},
|
|
518
451
|
{
|
|
519
452
|
"internalType": "uint256",
|
|
520
|
-
"name": "
|
|
453
|
+
"name": "amount",
|
|
521
454
|
"type": "uint256"
|
|
522
|
-
}
|
|
523
|
-
],
|
|
524
|
-
"name": "decreaseAllowance",
|
|
525
|
-
"outputs": [
|
|
455
|
+
},
|
|
526
456
|
{
|
|
527
|
-
"internalType": "
|
|
528
|
-
"name": "",
|
|
529
|
-
"type": "
|
|
530
|
-
}
|
|
531
|
-
],
|
|
532
|
-
"stateMutability": "nonpayable",
|
|
533
|
-
"type": "function"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"inputs": [
|
|
457
|
+
"internalType": "uint256",
|
|
458
|
+
"name": "minimumLiquidity",
|
|
459
|
+
"type": "uint256"
|
|
460
|
+
},
|
|
537
461
|
{
|
|
538
462
|
"internalType": "address",
|
|
539
|
-
"name": "
|
|
463
|
+
"name": "to",
|
|
540
464
|
"type": "address"
|
|
541
465
|
},
|
|
542
466
|
{
|
|
543
467
|
"internalType": "uint256",
|
|
544
|
-
"name": "
|
|
468
|
+
"name": "deadline",
|
|
545
469
|
"type": "uint256"
|
|
546
470
|
},
|
|
547
471
|
{
|
|
548
|
-
"internalType": "
|
|
549
|
-
"name": "
|
|
550
|
-
"type": "
|
|
472
|
+
"internalType": "bool",
|
|
473
|
+
"name": "shouldStake",
|
|
474
|
+
"type": "bool"
|
|
551
475
|
}
|
|
552
476
|
],
|
|
553
|
-
"name": "
|
|
554
|
-
"outputs": [],
|
|
555
|
-
"stateMutability": "nonpayable",
|
|
556
|
-
"type": "function"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"inputs": [],
|
|
560
|
-
"name": "eip712Domain",
|
|
477
|
+
"name": "deposit",
|
|
561
478
|
"outputs": [
|
|
562
|
-
{
|
|
563
|
-
"internalType": "bytes1",
|
|
564
|
-
"name": "fields",
|
|
565
|
-
"type": "bytes1"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"internalType": "string",
|
|
569
|
-
"name": "name",
|
|
570
|
-
"type": "string"
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
"internalType": "string",
|
|
574
|
-
"name": "version",
|
|
575
|
-
"type": "string"
|
|
576
|
-
},
|
|
577
479
|
{
|
|
578
480
|
"internalType": "uint256",
|
|
579
|
-
"name": "
|
|
481
|
+
"name": "liquidity",
|
|
580
482
|
"type": "uint256"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
"internalType": "address",
|
|
584
|
-
"name": "verifyingContract",
|
|
585
|
-
"type": "address"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
"internalType": "bytes32",
|
|
589
|
-
"name": "salt",
|
|
590
|
-
"type": "bytes32"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"internalType": "uint256[]",
|
|
594
|
-
"name": "extensions",
|
|
595
|
-
"type": "uint256[]"
|
|
596
483
|
}
|
|
597
484
|
],
|
|
598
|
-
"stateMutability": "
|
|
485
|
+
"stateMutability": "nonpayable",
|
|
599
486
|
"type": "function"
|
|
600
487
|
},
|
|
601
488
|
{
|
|
602
489
|
"inputs": [],
|
|
603
|
-
"name": "
|
|
490
|
+
"name": "dev",
|
|
604
491
|
"outputs": [
|
|
605
492
|
{
|
|
606
|
-
"internalType": "address
|
|
607
|
-
"name": "
|
|
608
|
-
"type": "address
|
|
493
|
+
"internalType": "address",
|
|
494
|
+
"name": "",
|
|
495
|
+
"type": "address"
|
|
609
496
|
}
|
|
610
497
|
],
|
|
611
498
|
"stateMutability": "view",
|
|
@@ -613,12 +500,12 @@
|
|
|
613
500
|
},
|
|
614
501
|
{
|
|
615
502
|
"inputs": [],
|
|
616
|
-
"name": "
|
|
503
|
+
"name": "endCovRatio",
|
|
617
504
|
"outputs": [
|
|
618
505
|
{
|
|
619
|
-
"internalType": "
|
|
620
|
-
"name": "
|
|
621
|
-
"type": "
|
|
506
|
+
"internalType": "uint128",
|
|
507
|
+
"name": "",
|
|
508
|
+
"type": "uint128"
|
|
622
509
|
}
|
|
623
510
|
],
|
|
624
511
|
"stateMutability": "view",
|
|
@@ -627,99 +514,108 @@
|
|
|
627
514
|
{
|
|
628
515
|
"inputs": [
|
|
629
516
|
{
|
|
630
|
-
"internalType": "
|
|
631
|
-
"name": "
|
|
632
|
-
"type": "
|
|
517
|
+
"internalType": "address",
|
|
518
|
+
"name": "token",
|
|
519
|
+
"type": "address"
|
|
633
520
|
}
|
|
634
521
|
],
|
|
635
|
-
"name": "
|
|
522
|
+
"name": "exchangeRate",
|
|
636
523
|
"outputs": [
|
|
637
524
|
{
|
|
638
|
-
"internalType": "
|
|
639
|
-
"name": "",
|
|
640
|
-
"type": "
|
|
525
|
+
"internalType": "uint256",
|
|
526
|
+
"name": "xr",
|
|
527
|
+
"type": "uint256"
|
|
641
528
|
}
|
|
642
529
|
],
|
|
643
530
|
"stateMutability": "view",
|
|
644
531
|
"type": "function"
|
|
645
532
|
},
|
|
646
533
|
{
|
|
647
|
-
"inputs": [
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
"name": "role",
|
|
651
|
-
"type": "bytes32"
|
|
652
|
-
},
|
|
534
|
+
"inputs": [],
|
|
535
|
+
"name": "feeTo",
|
|
536
|
+
"outputs": [
|
|
653
537
|
{
|
|
654
538
|
"internalType": "address",
|
|
655
|
-
"name": "
|
|
539
|
+
"name": "",
|
|
656
540
|
"type": "address"
|
|
657
541
|
}
|
|
658
542
|
],
|
|
659
|
-
"
|
|
660
|
-
"outputs": [],
|
|
661
|
-
"stateMutability": "nonpayable",
|
|
543
|
+
"stateMutability": "view",
|
|
662
544
|
"type": "function"
|
|
663
545
|
},
|
|
664
546
|
{
|
|
665
547
|
"inputs": [
|
|
666
|
-
{
|
|
667
|
-
"internalType": "bytes32",
|
|
668
|
-
"name": "role",
|
|
669
|
-
"type": "bytes32"
|
|
670
|
-
},
|
|
671
548
|
{
|
|
672
549
|
"internalType": "address",
|
|
673
|
-
"name": "
|
|
550
|
+
"name": "token",
|
|
674
551
|
"type": "address"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"internalType": "uint256",
|
|
555
|
+
"name": "amount",
|
|
556
|
+
"type": "uint256"
|
|
675
557
|
}
|
|
676
558
|
],
|
|
677
|
-
"name": "
|
|
559
|
+
"name": "fillPool",
|
|
560
|
+
"outputs": [],
|
|
561
|
+
"stateMutability": "nonpayable",
|
|
562
|
+
"type": "function"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"inputs": [],
|
|
566
|
+
"name": "getTokens",
|
|
678
567
|
"outputs": [
|
|
679
568
|
{
|
|
680
|
-
"internalType": "
|
|
569
|
+
"internalType": "address[]",
|
|
681
570
|
"name": "",
|
|
682
|
-
"type": "
|
|
571
|
+
"type": "address[]"
|
|
683
572
|
}
|
|
684
573
|
],
|
|
685
574
|
"stateMutability": "view",
|
|
686
575
|
"type": "function"
|
|
687
576
|
},
|
|
688
577
|
{
|
|
689
|
-
"inputs": [
|
|
578
|
+
"inputs": [],
|
|
579
|
+
"name": "globalEquilCovRatio",
|
|
580
|
+
"outputs": [
|
|
690
581
|
{
|
|
691
|
-
"internalType": "
|
|
692
|
-
"name": "
|
|
693
|
-
"type": "
|
|
582
|
+
"internalType": "uint256",
|
|
583
|
+
"name": "equilCovRatio",
|
|
584
|
+
"type": "uint256"
|
|
694
585
|
},
|
|
695
586
|
{
|
|
696
587
|
"internalType": "uint256",
|
|
697
|
-
"name": "
|
|
588
|
+
"name": "invariantInUint",
|
|
698
589
|
"type": "uint256"
|
|
699
590
|
}
|
|
700
591
|
],
|
|
701
|
-
"
|
|
592
|
+
"stateMutability": "view",
|
|
593
|
+
"type": "function"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"inputs": [],
|
|
597
|
+
"name": "haircutRate",
|
|
702
598
|
"outputs": [
|
|
703
599
|
{
|
|
704
|
-
"internalType": "
|
|
600
|
+
"internalType": "uint256",
|
|
705
601
|
"name": "",
|
|
706
|
-
"type": "
|
|
602
|
+
"type": "uint256"
|
|
707
603
|
}
|
|
708
604
|
],
|
|
709
|
-
"stateMutability": "
|
|
605
|
+
"stateMutability": "view",
|
|
710
606
|
"type": "function"
|
|
711
607
|
},
|
|
712
608
|
{
|
|
713
609
|
"inputs": [
|
|
714
610
|
{
|
|
715
|
-
"internalType": "
|
|
716
|
-
"name": "
|
|
717
|
-
"type": "
|
|
611
|
+
"internalType": "uint256",
|
|
612
|
+
"name": "ampFactor_",
|
|
613
|
+
"type": "uint256"
|
|
718
614
|
},
|
|
719
615
|
{
|
|
720
|
-
"internalType": "
|
|
721
|
-
"name": "
|
|
722
|
-
"type": "
|
|
616
|
+
"internalType": "uint256",
|
|
617
|
+
"name": "haircutRate_",
|
|
618
|
+
"type": "uint256"
|
|
723
619
|
}
|
|
724
620
|
],
|
|
725
621
|
"name": "initialize",
|
|
@@ -728,8 +624,14 @@
|
|
|
728
624
|
"type": "function"
|
|
729
625
|
},
|
|
730
626
|
{
|
|
731
|
-
"inputs": [
|
|
732
|
-
|
|
627
|
+
"inputs": [
|
|
628
|
+
{
|
|
629
|
+
"internalType": "address",
|
|
630
|
+
"name": "token",
|
|
631
|
+
"type": "address"
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"name": "isPaused",
|
|
733
635
|
"outputs": [
|
|
734
636
|
{
|
|
735
637
|
"internalType": "bool",
|
|
@@ -741,39 +643,26 @@
|
|
|
741
643
|
"type": "function"
|
|
742
644
|
},
|
|
743
645
|
{
|
|
744
|
-
"inputs": [
|
|
646
|
+
"inputs": [],
|
|
647
|
+
"name": "lpDividendRatio",
|
|
648
|
+
"outputs": [
|
|
745
649
|
{
|
|
746
|
-
"internalType": "
|
|
650
|
+
"internalType": "uint256",
|
|
747
651
|
"name": "",
|
|
748
|
-
"type": "
|
|
652
|
+
"type": "uint256"
|
|
749
653
|
}
|
|
750
654
|
],
|
|
751
|
-
"
|
|
655
|
+
"stateMutability": "view",
|
|
656
|
+
"type": "function"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"inputs": [],
|
|
660
|
+
"name": "masterWombat",
|
|
752
661
|
"outputs": [
|
|
753
662
|
{
|
|
754
663
|
"internalType": "address",
|
|
755
|
-
"name": "
|
|
756
|
-
"type": "address"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"internalType": "address",
|
|
760
|
-
"name": "treasury",
|
|
761
|
-
"type": "address"
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"internalType": "address",
|
|
765
|
-
"name": "market",
|
|
664
|
+
"name": "",
|
|
766
665
|
"type": "address"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"internalType": "uint256",
|
|
770
|
-
"name": "mintCap",
|
|
771
|
-
"type": "uint256"
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
"internalType": "uint256",
|
|
775
|
-
"name": "managed",
|
|
776
|
-
"type": "uint256"
|
|
777
666
|
}
|
|
778
667
|
],
|
|
779
668
|
"stateMutability": "view",
|
|
@@ -783,30 +672,15 @@
|
|
|
783
672
|
"inputs": [
|
|
784
673
|
{
|
|
785
674
|
"internalType": "address",
|
|
786
|
-
"name": "
|
|
675
|
+
"name": "token",
|
|
787
676
|
"type": "address"
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
"internalType": "uint256",
|
|
791
|
-
"name": "_amountIn",
|
|
792
|
-
"type": "uint256"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"internalType": "address",
|
|
796
|
-
"name": "_receiver",
|
|
797
|
-
"type": "address"
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
"internalType": "uint256",
|
|
801
|
-
"name": "_minOut",
|
|
802
|
-
"type": "uint256"
|
|
803
677
|
}
|
|
804
678
|
],
|
|
805
|
-
"name": "
|
|
679
|
+
"name": "mintFee",
|
|
806
680
|
"outputs": [
|
|
807
681
|
{
|
|
808
682
|
"internalType": "uint256",
|
|
809
|
-
"name": "
|
|
683
|
+
"name": "feeCollected",
|
|
810
684
|
"type": "uint256"
|
|
811
685
|
}
|
|
812
686
|
],
|
|
@@ -814,59 +688,92 @@
|
|
|
814
688
|
"type": "function"
|
|
815
689
|
},
|
|
816
690
|
{
|
|
817
|
-
"inputs": [
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
"name": "_pool",
|
|
821
|
-
"type": "address"
|
|
822
|
-
},
|
|
691
|
+
"inputs": [],
|
|
692
|
+
"name": "mintFeeThreshold",
|
|
693
|
+
"outputs": [
|
|
823
694
|
{
|
|
824
695
|
"internalType": "uint256",
|
|
825
|
-
"name": "
|
|
696
|
+
"name": "",
|
|
826
697
|
"type": "uint256"
|
|
827
|
-
}
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"stateMutability": "view",
|
|
701
|
+
"type": "function"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"inputs": [],
|
|
705
|
+
"name": "owner",
|
|
706
|
+
"outputs": [
|
|
828
707
|
{
|
|
829
708
|
"internalType": "address",
|
|
830
|
-
"name": "
|
|
709
|
+
"name": "",
|
|
831
710
|
"type": "address"
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
"internalType": "uint256",
|
|
835
|
-
"name": "_minOut",
|
|
836
|
-
"type": "uint256"
|
|
837
711
|
}
|
|
838
712
|
],
|
|
839
|
-
"
|
|
840
|
-
"
|
|
713
|
+
"stateMutability": "view",
|
|
714
|
+
"type": "function"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"inputs": [],
|
|
718
|
+
"name": "pause",
|
|
719
|
+
"outputs": [],
|
|
720
|
+
"stateMutability": "nonpayable",
|
|
721
|
+
"type": "function"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"inputs": [
|
|
841
725
|
{
|
|
842
|
-
"internalType": "
|
|
843
|
-
"name": "
|
|
844
|
-
"type": "
|
|
726
|
+
"internalType": "address",
|
|
727
|
+
"name": "token",
|
|
728
|
+
"type": "address"
|
|
845
729
|
}
|
|
846
730
|
],
|
|
731
|
+
"name": "pauseAsset",
|
|
732
|
+
"outputs": [],
|
|
847
733
|
"stateMutability": "nonpayable",
|
|
848
734
|
"type": "function"
|
|
849
735
|
},
|
|
850
736
|
{
|
|
851
737
|
"inputs": [],
|
|
852
|
-
"name": "
|
|
738
|
+
"name": "paused",
|
|
853
739
|
"outputs": [
|
|
854
740
|
{
|
|
855
|
-
"internalType": "
|
|
741
|
+
"internalType": "bool",
|
|
856
742
|
"name": "",
|
|
857
|
-
"type": "
|
|
743
|
+
"type": "bool"
|
|
858
744
|
}
|
|
859
745
|
],
|
|
860
746
|
"stateMutability": "view",
|
|
861
747
|
"type": "function"
|
|
862
748
|
},
|
|
863
749
|
{
|
|
864
|
-
"inputs": [
|
|
865
|
-
|
|
750
|
+
"inputs": [
|
|
751
|
+
{
|
|
752
|
+
"internalType": "address",
|
|
753
|
+
"name": "fromToken",
|
|
754
|
+
"type": "address"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"internalType": "address",
|
|
758
|
+
"name": "toToken",
|
|
759
|
+
"type": "address"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"internalType": "int256",
|
|
763
|
+
"name": "toAmount",
|
|
764
|
+
"type": "int256"
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"name": "quoteAmountIn",
|
|
866
768
|
"outputs": [
|
|
867
769
|
{
|
|
868
770
|
"internalType": "uint256",
|
|
869
|
-
"name": "
|
|
771
|
+
"name": "amountIn",
|
|
772
|
+
"type": "uint256"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"internalType": "uint256",
|
|
776
|
+
"name": "haircut",
|
|
870
777
|
"type": "uint256"
|
|
871
778
|
}
|
|
872
779
|
],
|
|
@@ -877,15 +784,25 @@
|
|
|
877
784
|
"inputs": [
|
|
878
785
|
{
|
|
879
786
|
"internalType": "address",
|
|
880
|
-
"name": "
|
|
787
|
+
"name": "token",
|
|
881
788
|
"type": "address"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"internalType": "uint256",
|
|
792
|
+
"name": "amount",
|
|
793
|
+
"type": "uint256"
|
|
882
794
|
}
|
|
883
795
|
],
|
|
884
|
-
"name": "
|
|
796
|
+
"name": "quotePotentialDeposit",
|
|
885
797
|
"outputs": [
|
|
886
798
|
{
|
|
887
799
|
"internalType": "uint256",
|
|
888
|
-
"name": "",
|
|
800
|
+
"name": "liquidity",
|
|
801
|
+
"type": "uint256"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"internalType": "uint256",
|
|
805
|
+
"name": "reward",
|
|
889
806
|
"type": "uint256"
|
|
890
807
|
}
|
|
891
808
|
],
|
|
@@ -896,132 +813,141 @@
|
|
|
896
813
|
"inputs": [
|
|
897
814
|
{
|
|
898
815
|
"internalType": "address",
|
|
899
|
-
"name": "
|
|
816
|
+
"name": "fromToken",
|
|
900
817
|
"type": "address"
|
|
901
818
|
},
|
|
902
819
|
{
|
|
903
820
|
"internalType": "address",
|
|
904
|
-
"name": "
|
|
821
|
+
"name": "toToken",
|
|
905
822
|
"type": "address"
|
|
906
823
|
},
|
|
824
|
+
{
|
|
825
|
+
"internalType": "int256",
|
|
826
|
+
"name": "fromAmount",
|
|
827
|
+
"type": "int256"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"name": "quotePotentialSwap",
|
|
831
|
+
"outputs": [
|
|
907
832
|
{
|
|
908
833
|
"internalType": "uint256",
|
|
909
|
-
"name": "
|
|
834
|
+
"name": "potentialOutcome",
|
|
910
835
|
"type": "uint256"
|
|
911
836
|
},
|
|
912
837
|
{
|
|
913
838
|
"internalType": "uint256",
|
|
914
|
-
"name": "
|
|
839
|
+
"name": "haircut",
|
|
915
840
|
"type": "uint256"
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
"internalType": "uint8",
|
|
919
|
-
"name": "v",
|
|
920
|
-
"type": "uint8"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"internalType": "bytes32",
|
|
924
|
-
"name": "r",
|
|
925
|
-
"type": "bytes32"
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
"internalType": "bytes32",
|
|
929
|
-
"name": "s",
|
|
930
|
-
"type": "bytes32"
|
|
931
841
|
}
|
|
932
842
|
],
|
|
933
|
-
"
|
|
934
|
-
"outputs": [],
|
|
935
|
-
"stateMutability": "nonpayable",
|
|
843
|
+
"stateMutability": "view",
|
|
936
844
|
"type": "function"
|
|
937
845
|
},
|
|
938
846
|
{
|
|
939
847
|
"inputs": [
|
|
940
848
|
{
|
|
941
849
|
"internalType": "address",
|
|
942
|
-
"name": "
|
|
943
|
-
"type": "address"
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
"internalType": "uint256",
|
|
947
|
-
"name": "_amountIn",
|
|
948
|
-
"type": "uint256"
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
"internalType": "address",
|
|
952
|
-
"name": "_receiver",
|
|
850
|
+
"name": "token",
|
|
953
851
|
"type": "address"
|
|
954
852
|
},
|
|
955
853
|
{
|
|
956
854
|
"internalType": "uint256",
|
|
957
|
-
"name": "
|
|
855
|
+
"name": "liquidity",
|
|
958
856
|
"type": "uint256"
|
|
959
857
|
}
|
|
960
858
|
],
|
|
961
|
-
"name": "
|
|
859
|
+
"name": "quotePotentialWithdraw",
|
|
962
860
|
"outputs": [
|
|
963
861
|
{
|
|
964
862
|
"internalType": "uint256",
|
|
965
|
-
"name": "
|
|
863
|
+
"name": "amount",
|
|
966
864
|
"type": "uint256"
|
|
967
865
|
},
|
|
968
866
|
{
|
|
969
867
|
"internalType": "uint256",
|
|
970
|
-
"name": "
|
|
868
|
+
"name": "fee",
|
|
971
869
|
"type": "uint256"
|
|
972
870
|
}
|
|
973
871
|
],
|
|
974
|
-
"stateMutability": "
|
|
872
|
+
"stateMutability": "view",
|
|
975
873
|
"type": "function"
|
|
976
874
|
},
|
|
977
875
|
{
|
|
978
876
|
"inputs": [
|
|
979
877
|
{
|
|
980
878
|
"internalType": "address",
|
|
981
|
-
"name": "
|
|
879
|
+
"name": "fromToken",
|
|
982
880
|
"type": "address"
|
|
983
881
|
},
|
|
984
|
-
{
|
|
985
|
-
"internalType": "uint256",
|
|
986
|
-
"name": "_amountIn",
|
|
987
|
-
"type": "uint256"
|
|
988
|
-
},
|
|
989
882
|
{
|
|
990
883
|
"internalType": "address",
|
|
991
|
-
"name": "
|
|
884
|
+
"name": "toToken",
|
|
992
885
|
"type": "address"
|
|
993
886
|
},
|
|
994
887
|
{
|
|
995
888
|
"internalType": "uint256",
|
|
996
|
-
"name": "
|
|
889
|
+
"name": "liquidity",
|
|
997
890
|
"type": "uint256"
|
|
998
891
|
}
|
|
999
892
|
],
|
|
1000
|
-
"name": "
|
|
893
|
+
"name": "quotePotentialWithdrawFromOtherAsset",
|
|
1001
894
|
"outputs": [
|
|
1002
895
|
{
|
|
1003
896
|
"internalType": "uint256",
|
|
1004
|
-
"name": "
|
|
897
|
+
"name": "amount",
|
|
1005
898
|
"type": "uint256"
|
|
1006
899
|
},
|
|
1007
900
|
{
|
|
1008
901
|
"internalType": "uint256",
|
|
1009
|
-
"name": "
|
|
902
|
+
"name": "withdrewAmount",
|
|
1010
903
|
"type": "uint256"
|
|
1011
904
|
}
|
|
1012
905
|
],
|
|
906
|
+
"stateMutability": "view",
|
|
907
|
+
"type": "function"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"inputs": [
|
|
911
|
+
{
|
|
912
|
+
"internalType": "address",
|
|
913
|
+
"name": "token",
|
|
914
|
+
"type": "address"
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"name": "removeAsset",
|
|
918
|
+
"outputs": [],
|
|
919
|
+
"stateMutability": "nonpayable",
|
|
920
|
+
"type": "function"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"inputs": [],
|
|
924
|
+
"name": "renounceOwnership",
|
|
925
|
+
"outputs": [],
|
|
1013
926
|
"stateMutability": "nonpayable",
|
|
1014
927
|
"type": "function"
|
|
1015
928
|
},
|
|
929
|
+
{
|
|
930
|
+
"inputs": [],
|
|
931
|
+
"name": "retentionRatio",
|
|
932
|
+
"outputs": [
|
|
933
|
+
{
|
|
934
|
+
"internalType": "uint256",
|
|
935
|
+
"name": "",
|
|
936
|
+
"type": "uint256"
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"stateMutability": "view",
|
|
940
|
+
"type": "function"
|
|
941
|
+
},
|
|
1016
942
|
{
|
|
1017
943
|
"inputs": [
|
|
1018
944
|
{
|
|
1019
|
-
"internalType": "
|
|
1020
|
-
"name": "
|
|
1021
|
-
"type": "
|
|
945
|
+
"internalType": "uint256",
|
|
946
|
+
"name": "ampFactor_",
|
|
947
|
+
"type": "uint256"
|
|
1022
948
|
}
|
|
1023
949
|
],
|
|
1024
|
-
"name": "
|
|
950
|
+
"name": "setAmpFactor",
|
|
1025
951
|
"outputs": [],
|
|
1026
952
|
"stateMutability": "nonpayable",
|
|
1027
953
|
"type": "function"
|
|
@@ -1029,17 +955,30 @@
|
|
|
1029
955
|
{
|
|
1030
956
|
"inputs": [
|
|
1031
957
|
{
|
|
1032
|
-
"internalType": "
|
|
1033
|
-
"name": "
|
|
1034
|
-
"type": "
|
|
958
|
+
"internalType": "uint128",
|
|
959
|
+
"name": "startCovRatio_",
|
|
960
|
+
"type": "uint128"
|
|
1035
961
|
},
|
|
962
|
+
{
|
|
963
|
+
"internalType": "uint128",
|
|
964
|
+
"name": "endCovRatio_",
|
|
965
|
+
"type": "uint128"
|
|
966
|
+
}
|
|
967
|
+
],
|
|
968
|
+
"name": "setCovRatioFeeParam",
|
|
969
|
+
"outputs": [],
|
|
970
|
+
"stateMutability": "nonpayable",
|
|
971
|
+
"type": "function"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"inputs": [
|
|
1036
975
|
{
|
|
1037
976
|
"internalType": "address",
|
|
1038
|
-
"name": "
|
|
977
|
+
"name": "dev_",
|
|
1039
978
|
"type": "address"
|
|
1040
979
|
}
|
|
1041
980
|
],
|
|
1042
|
-
"name": "
|
|
981
|
+
"name": "setDev",
|
|
1043
982
|
"outputs": [],
|
|
1044
983
|
"stateMutability": "nonpayable",
|
|
1045
984
|
"type": "function"
|
|
@@ -1047,17 +986,30 @@
|
|
|
1047
986
|
{
|
|
1048
987
|
"inputs": [
|
|
1049
988
|
{
|
|
1050
|
-
"internalType": "
|
|
1051
|
-
"name": "
|
|
1052
|
-
"type": "
|
|
989
|
+
"internalType": "uint256",
|
|
990
|
+
"name": "lpDividendRatio_",
|
|
991
|
+
"type": "uint256"
|
|
1053
992
|
},
|
|
993
|
+
{
|
|
994
|
+
"internalType": "uint256",
|
|
995
|
+
"name": "retentionRatio_",
|
|
996
|
+
"type": "uint256"
|
|
997
|
+
}
|
|
998
|
+
],
|
|
999
|
+
"name": "setFee",
|
|
1000
|
+
"outputs": [],
|
|
1001
|
+
"stateMutability": "nonpayable",
|
|
1002
|
+
"type": "function"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"inputs": [
|
|
1054
1006
|
{
|
|
1055
1007
|
"internalType": "address",
|
|
1056
|
-
"name": "
|
|
1008
|
+
"name": "feeTo_",
|
|
1057
1009
|
"type": "address"
|
|
1058
1010
|
}
|
|
1059
1011
|
],
|
|
1060
|
-
"name": "
|
|
1012
|
+
"name": "setFeeTo",
|
|
1061
1013
|
"outputs": [],
|
|
1062
1014
|
"stateMutability": "nonpayable",
|
|
1063
1015
|
"type": "function"
|
|
@@ -1065,43 +1017,50 @@
|
|
|
1065
1017
|
{
|
|
1066
1018
|
"inputs": [
|
|
1067
1019
|
{
|
|
1068
|
-
"internalType": "
|
|
1069
|
-
"name": "
|
|
1070
|
-
"type": "
|
|
1020
|
+
"internalType": "uint256",
|
|
1021
|
+
"name": "haircutRate_",
|
|
1022
|
+
"type": "uint256"
|
|
1071
1023
|
}
|
|
1072
1024
|
],
|
|
1073
|
-
"name": "
|
|
1074
|
-
"outputs": [
|
|
1025
|
+
"name": "setHaircutRate",
|
|
1026
|
+
"outputs": [],
|
|
1027
|
+
"stateMutability": "nonpayable",
|
|
1028
|
+
"type": "function"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"inputs": [
|
|
1075
1032
|
{
|
|
1076
|
-
"internalType": "
|
|
1077
|
-
"name": "",
|
|
1078
|
-
"type": "
|
|
1033
|
+
"internalType": "address",
|
|
1034
|
+
"name": "masterWombat_",
|
|
1035
|
+
"type": "address"
|
|
1079
1036
|
}
|
|
1080
1037
|
],
|
|
1081
|
-
"
|
|
1038
|
+
"name": "setMasterWombat",
|
|
1039
|
+
"outputs": [],
|
|
1040
|
+
"stateMutability": "nonpayable",
|
|
1082
1041
|
"type": "function"
|
|
1083
1042
|
},
|
|
1084
1043
|
{
|
|
1085
|
-
"inputs": [
|
|
1086
|
-
"name": "symbol",
|
|
1087
|
-
"outputs": [
|
|
1044
|
+
"inputs": [
|
|
1088
1045
|
{
|
|
1089
|
-
"internalType": "
|
|
1090
|
-
"name": "",
|
|
1091
|
-
"type": "
|
|
1046
|
+
"internalType": "uint256",
|
|
1047
|
+
"name": "mintFeeThreshold_",
|
|
1048
|
+
"type": "uint256"
|
|
1092
1049
|
}
|
|
1093
1050
|
],
|
|
1094
|
-
"
|
|
1051
|
+
"name": "setMintFeeThreshold",
|
|
1052
|
+
"outputs": [],
|
|
1053
|
+
"stateMutability": "nonpayable",
|
|
1095
1054
|
"type": "function"
|
|
1096
1055
|
},
|
|
1097
1056
|
{
|
|
1098
1057
|
"inputs": [],
|
|
1099
|
-
"name": "
|
|
1058
|
+
"name": "startCovRatio",
|
|
1100
1059
|
"outputs": [
|
|
1101
1060
|
{
|
|
1102
|
-
"internalType": "
|
|
1061
|
+
"internalType": "uint128",
|
|
1103
1062
|
"name": "",
|
|
1104
|
-
"type": "
|
|
1063
|
+
"type": "uint128"
|
|
1105
1064
|
}
|
|
1106
1065
|
],
|
|
1107
1066
|
"stateMutability": "view",
|
|
@@ -1109,6 +1068,26 @@
|
|
|
1109
1068
|
},
|
|
1110
1069
|
{
|
|
1111
1070
|
"inputs": [
|
|
1071
|
+
{
|
|
1072
|
+
"internalType": "address",
|
|
1073
|
+
"name": "fromToken",
|
|
1074
|
+
"type": "address"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"internalType": "address",
|
|
1078
|
+
"name": "toToken",
|
|
1079
|
+
"type": "address"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"internalType": "uint256",
|
|
1083
|
+
"name": "fromAmount",
|
|
1084
|
+
"type": "uint256"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"internalType": "uint256",
|
|
1088
|
+
"name": "minimumToAmount",
|
|
1089
|
+
"type": "uint256"
|
|
1090
|
+
},
|
|
1112
1091
|
{
|
|
1113
1092
|
"internalType": "address",
|
|
1114
1093
|
"name": "to",
|
|
@@ -1116,16 +1095,21 @@
|
|
|
1116
1095
|
},
|
|
1117
1096
|
{
|
|
1118
1097
|
"internalType": "uint256",
|
|
1119
|
-
"name": "
|
|
1098
|
+
"name": "deadline",
|
|
1120
1099
|
"type": "uint256"
|
|
1121
1100
|
}
|
|
1122
1101
|
],
|
|
1123
|
-
"name": "
|
|
1102
|
+
"name": "swap",
|
|
1124
1103
|
"outputs": [
|
|
1125
1104
|
{
|
|
1126
|
-
"internalType": "
|
|
1127
|
-
"name": "",
|
|
1128
|
-
"type": "
|
|
1105
|
+
"internalType": "uint256",
|
|
1106
|
+
"name": "actualToAmount",
|
|
1107
|
+
"type": "uint256"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"internalType": "uint256",
|
|
1111
|
+
"name": "haircut",
|
|
1112
|
+
"type": "uint256"
|
|
1129
1113
|
}
|
|
1130
1114
|
],
|
|
1131
1115
|
"stateMutability": "nonpayable",
|
|
@@ -1135,28 +1119,31 @@
|
|
|
1135
1119
|
"inputs": [
|
|
1136
1120
|
{
|
|
1137
1121
|
"internalType": "address",
|
|
1138
|
-
"name": "
|
|
1139
|
-
"type": "address"
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
"internalType": "address",
|
|
1143
|
-
"name": "to",
|
|
1122
|
+
"name": "token",
|
|
1144
1123
|
"type": "address"
|
|
1145
|
-
}
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
"name": "tipBucketBalance",
|
|
1127
|
+
"outputs": [
|
|
1146
1128
|
{
|
|
1147
1129
|
"internalType": "uint256",
|
|
1148
|
-
"name": "
|
|
1130
|
+
"name": "balance",
|
|
1149
1131
|
"type": "uint256"
|
|
1150
1132
|
}
|
|
1151
1133
|
],
|
|
1152
|
-
"
|
|
1153
|
-
"
|
|
1134
|
+
"stateMutability": "view",
|
|
1135
|
+
"type": "function"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"inputs": [
|
|
1154
1139
|
{
|
|
1155
|
-
"internalType": "
|
|
1156
|
-
"name": "",
|
|
1157
|
-
"type": "
|
|
1140
|
+
"internalType": "address",
|
|
1141
|
+
"name": "newOwner",
|
|
1142
|
+
"type": "address"
|
|
1158
1143
|
}
|
|
1159
1144
|
],
|
|
1145
|
+
"name": "transferOwnership",
|
|
1146
|
+
"outputs": [],
|
|
1160
1147
|
"stateMutability": "nonpayable",
|
|
1161
1148
|
"type": "function"
|
|
1162
1149
|
},
|
|
@@ -1164,16 +1151,41 @@
|
|
|
1164
1151
|
"inputs": [
|
|
1165
1152
|
{
|
|
1166
1153
|
"internalType": "address",
|
|
1167
|
-
"name": "
|
|
1154
|
+
"name": "token",
|
|
1168
1155
|
"type": "address"
|
|
1169
1156
|
},
|
|
1170
1157
|
{
|
|
1171
1158
|
"internalType": "uint256",
|
|
1172
|
-
"name": "
|
|
1159
|
+
"name": "amount",
|
|
1173
1160
|
"type": "uint256"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"internalType": "address",
|
|
1164
|
+
"name": "to",
|
|
1165
|
+
"type": "address"
|
|
1166
|
+
}
|
|
1167
|
+
],
|
|
1168
|
+
"name": "transferTipBucket",
|
|
1169
|
+
"outputs": [],
|
|
1170
|
+
"stateMutability": "nonpayable",
|
|
1171
|
+
"type": "function"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"inputs": [],
|
|
1175
|
+
"name": "unpause",
|
|
1176
|
+
"outputs": [],
|
|
1177
|
+
"stateMutability": "nonpayable",
|
|
1178
|
+
"type": "function"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"inputs": [
|
|
1182
|
+
{
|
|
1183
|
+
"internalType": "address",
|
|
1184
|
+
"name": "token",
|
|
1185
|
+
"type": "address"
|
|
1174
1186
|
}
|
|
1175
1187
|
],
|
|
1176
|
-
"name": "
|
|
1188
|
+
"name": "unpauseAsset",
|
|
1177
1189
|
"outputs": [],
|
|
1178
1190
|
"stateMutability": "nonpayable",
|
|
1179
1191
|
"type": "function"
|
|
@@ -1182,22 +1194,38 @@
|
|
|
1182
1194
|
"inputs": [
|
|
1183
1195
|
{
|
|
1184
1196
|
"internalType": "address",
|
|
1185
|
-
"name": "
|
|
1197
|
+
"name": "token",
|
|
1186
1198
|
"type": "address"
|
|
1187
1199
|
},
|
|
1188
1200
|
{
|
|
1189
1201
|
"internalType": "uint256",
|
|
1190
|
-
"name": "
|
|
1202
|
+
"name": "liquidity",
|
|
1203
|
+
"type": "uint256"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"internalType": "uint256",
|
|
1207
|
+
"name": "minimumAmount",
|
|
1191
1208
|
"type": "uint256"
|
|
1192
1209
|
},
|
|
1193
1210
|
{
|
|
1194
1211
|
"internalType": "address",
|
|
1195
|
-
"name": "
|
|
1212
|
+
"name": "to",
|
|
1196
1213
|
"type": "address"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"internalType": "uint256",
|
|
1217
|
+
"name": "deadline",
|
|
1218
|
+
"type": "uint256"
|
|
1219
|
+
}
|
|
1220
|
+
],
|
|
1221
|
+
"name": "withdraw",
|
|
1222
|
+
"outputs": [
|
|
1223
|
+
{
|
|
1224
|
+
"internalType": "uint256",
|
|
1225
|
+
"name": "amount",
|
|
1226
|
+
"type": "uint256"
|
|
1197
1227
|
}
|
|
1198
1228
|
],
|
|
1199
|
-
"name": "wrap",
|
|
1200
|
-
"outputs": [],
|
|
1201
1229
|
"stateMutability": "nonpayable",
|
|
1202
1230
|
"type": "function"
|
|
1203
1231
|
},
|
|
@@ -1205,23 +1233,57 @@
|
|
|
1205
1233
|
"inputs": [
|
|
1206
1234
|
{
|
|
1207
1235
|
"internalType": "address",
|
|
1208
|
-
"name": "
|
|
1236
|
+
"name": "fromToken",
|
|
1237
|
+
"type": "address"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"internalType": "address",
|
|
1241
|
+
"name": "toToken",
|
|
1209
1242
|
"type": "address"
|
|
1210
1243
|
},
|
|
1211
1244
|
{
|
|
1212
1245
|
"internalType": "uint256",
|
|
1213
|
-
"name": "
|
|
1246
|
+
"name": "liquidity",
|
|
1247
|
+
"type": "uint256"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"internalType": "uint256",
|
|
1251
|
+
"name": "minimumAmount",
|
|
1214
1252
|
"type": "uint256"
|
|
1215
1253
|
},
|
|
1216
1254
|
{
|
|
1217
1255
|
"internalType": "address",
|
|
1218
|
-
"name": "
|
|
1256
|
+
"name": "to",
|
|
1219
1257
|
"type": "address"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"internalType": "uint256",
|
|
1261
|
+
"name": "deadline",
|
|
1262
|
+
"type": "uint256"
|
|
1263
|
+
}
|
|
1264
|
+
],
|
|
1265
|
+
"name": "withdrawFromOtherAsset",
|
|
1266
|
+
"outputs": [
|
|
1267
|
+
{
|
|
1268
|
+
"internalType": "uint256",
|
|
1269
|
+
"name": "toAmount",
|
|
1270
|
+
"type": "uint256"
|
|
1220
1271
|
}
|
|
1221
1272
|
],
|
|
1222
|
-
"name": "wrapFrom",
|
|
1223
|
-
"outputs": [],
|
|
1224
1273
|
"stateMutability": "nonpayable",
|
|
1225
1274
|
"type": "function"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"inputs": [],
|
|
1278
|
+
"name": "creditForTokensHaircut",
|
|
1279
|
+
"outputs": [
|
|
1280
|
+
{
|
|
1281
|
+
"internalType": "uint128",
|
|
1282
|
+
"name": "",
|
|
1283
|
+
"type": "uint128"
|
|
1284
|
+
}
|
|
1285
|
+
],
|
|
1286
|
+
"stateMutability": "view",
|
|
1287
|
+
"type": "function"
|
|
1226
1288
|
}
|
|
1227
1289
|
]
|