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