@paraswap/dex-lib 4.7.11 → 4.7.12-multi-wrapper-non-zero-sender.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/abi/{apex-defi/ApexDefiRouter.abi.json → BProtocol.json} +573 -538
- package/build/abi/Jarvis.json +1172 -0
- package/build/abi/{apex-defi/ApexDefiFactory.abi.json → MStableAsset.json} +781 -985
- package/build/abi/{apex-defi/ApexDefiWrapperFactory.abi.json → OneInchLp.json} +766 -569
- package/build/abi/Onebit.json +736 -0
- package/build/abi/Shell.json +1294 -0
- package/build/abi/TraderJoeV2Router.json +50 -0
- package/build/abi/wUSDM.json +757 -0
- package/build/abi/zrx.v2.json +1967 -0
- package/build/abi/zrx.v3.json +3454 -0
- package/build/abi/zrx.v4.json +2193 -0
- package/build/dex/OneInchLp.d.ts +24 -0
- package/build/dex/OneInchLp.js +43 -0
- package/build/dex/OneInchLp.js.map +1 -0
- package/build/dex/bProtocol/bProtocol.d.ts +15 -0
- package/build/dex/bProtocol/bProtocol.js +56 -0
- package/build/dex/bProtocol/bProtocol.js.map +1 -0
- package/build/dex/bProtocol/types.d.ts +11 -0
- package/build/dex/bProtocol/types.js +8 -0
- package/build/dex/bProtocol/types.js.map +1 -0
- package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js +1 -1
- package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js.map +1 -1
- package/build/dex/jarvis.d.ts +56 -0
- package/build/dex/jarvis.js +163 -0
- package/build/dex/jarvis.js.map +1 -0
- package/build/dex/mStable.d.ts +44 -0
- package/build/dex/mStable.js +75 -0
- package/build/dex/mStable.js.map +1 -0
- package/build/dex/onebit/onebit.d.ts +16 -0
- package/build/dex/onebit/onebit.js +61 -0
- package/build/dex/onebit/onebit.js.map +1 -0
- package/build/dex/onebit/types.d.ts +14 -0
- package/build/dex/onebit/types.js +8 -0
- package/build/dex/onebit/types.js.map +1 -0
- package/build/dex/{yo → se-vlr}/config.d.ts +1 -1
- package/build/dex/se-vlr/config.js +24 -0
- package/build/dex/se-vlr/config.js.map +1 -0
- package/build/dex/{stabull/stabull-pool.d.ts → se-vlr/se-vlr-pool.d.ts} +6 -13
- package/build/dex/se-vlr/se-vlr-pool.js +70 -0
- package/build/dex/se-vlr/se-vlr-pool.js.map +1 -0
- package/build/dex/se-vlr/se-vlr.d.ts +35 -0
- package/build/dex/se-vlr/se-vlr.js +131 -0
- package/build/dex/se-vlr/se-vlr.js.map +1 -0
- package/build/dex/se-vlr/types.d.ts +6 -0
- package/build/dex/{yo → se-vlr}/types.js.map +1 -1
- package/build/dex/shell.d.ts +25 -0
- package/build/dex/shell.js +41 -0
- package/build/dex/shell.js.map +1 -0
- package/build/dex/trader-joe-v2.d.ts +40 -0
- package/build/dex/trader-joe-v2.js +74 -0
- package/build/dex/trader-joe-v2.js.map +1 -0
- package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
- package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
- package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
- package/build/dex/uniswap-v4/contract-math/Position.d.ts +0 -6
- package/build/dex/uniswap-v4/contract-math/Position.js +0 -29
- package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
- package/build/dex/{stabull → usual-bond}/config.d.ts +1 -1
- package/build/dex/usual-bond/config.js +13 -0
- package/build/dex/usual-bond/config.js.map +1 -0
- package/build/dex/usual-bond/types.d.ts +7 -0
- package/build/dex/{apex-defi → usual-bond}/types.js.map +1 -1
- package/build/dex/{aave-pt-to-underlying/aave-pt-to-underlying.d.ts → usual-bond/usual-bond.d.ts} +18 -23
- package/build/dex/usual-bond/usual-bond.js +176 -0
- package/build/dex/usual-bond/usual-bond.js.map +1 -0
- package/build/dex/wusdm/config.d.ts +3 -0
- package/build/dex/wusdm/config.js +43 -0
- package/build/dex/wusdm/config.js.map +1 -0
- package/build/dex/wusdm/constants.d.ts +2 -0
- package/build/dex/wusdm/constants.js +6 -0
- package/build/dex/wusdm/constants.js.map +1 -0
- package/build/dex/wusdm/types.d.ts +18 -0
- package/build/dex/wusdm/types.js +11 -0
- package/build/dex/wusdm/types.js.map +1 -0
- package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
- package/build/dex/wusdm/wusdm-pool.js +74 -0
- package/build/dex/wusdm/wusdm-pool.js.map +1 -0
- package/build/dex/wusdm/wusdm.d.ts +46 -0
- package/build/dex/wusdm/wusdm.js +243 -0
- package/build/dex/wusdm/wusdm.js.map +1 -0
- package/build/dex/zerox/config.d.ts +2 -0
- package/build/dex/zerox/config.js +33 -0
- package/build/dex/zerox/config.js.map +1 -0
- package/build/dex/zerox/index.d.ts +22 -0
- package/build/dex/zerox/index.js +225 -0
- package/build/dex/zerox/index.js.map +1 -0
- package/build/dex/zerox/order.d.ts +88 -0
- package/build/dex/zerox/order.js +53 -0
- package/build/dex/zerox/order.js.map +1 -0
- package/build/dex/zerox/types.d.ts +73 -0
- package/build/dex/zerox/types.js +21 -0
- package/build/dex/zerox/types.js.map +1 -0
- package/build/dex-helper/dummy-dex-helper.d.ts +2 -0
- package/build/dex-helper/dummy-dex-helper.js +4 -0
- package/build/dex-helper/dummy-dex-helper.js.map +1 -1
- package/build/dex-helper/idex-helper.d.ts +2 -0
- package/package.json +1 -1
- package/build/abi/PendleRouterStatic.json +0 -19
- package/build/abi/apex-defi/ApexDefiToken.abi.json +0 -229
- package/build/abi/apex-defi/ApexDefiWrapper.abi.json +0 -92
- package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +0 -796
- package/build/abi/pendle/pendle-deployer.abi.json +0 -520
- package/build/abi/pendle/pendle-oracle.abi.json +0 -413
- package/build/abi/ring-v2/few-wrapped-token.json +0 -587
- package/build/abi/ring-v2/ring-v2-factory.json +0 -125
- package/build/abi/ring-v2/ring-v2-pool.json +0 -461
- package/build/abi/ring-v2/ring-v2-router.json +0 -332
- package/build/abi/stabull/stabull-curve.json +0 -738
- package/build/abi/stabull/stabull-router.json +0 -76
- package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +0 -26
- package/build/abi/uniswap-v4/hooks/SpotHook.json +0 -54
- package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +0 -45
- package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +0 -682
- package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +0 -1335
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +0 -29
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +0 -153
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +0 -1
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +0 -323
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +0 -1
- package/build/dex/aave-pt-to-underlying/config.d.ts +0 -3
- package/build/dex/aave-pt-to-underlying/config.js +0 -24
- package/build/dex/aave-pt-to-underlying/config.js.map +0 -1
- package/build/dex/aave-pt-to-underlying/constants.d.ts +0 -2
- package/build/dex/aave-pt-to-underlying/constants.js +0 -6
- package/build/dex/aave-pt-to-underlying/constants.js.map +0 -1
- package/build/dex/aave-pt-to-underlying/types.d.ts +0 -24
- package/build/dex/aave-pt-to-underlying/types.js.map +0 -1
- package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +0 -39
- package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +0 -244
- package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +0 -1
- package/build/dex/aave-pt-to-usdc/config.d.ts +0 -3
- package/build/dex/aave-pt-to-usdc/config.js +0 -47
- package/build/dex/aave-pt-to-usdc/config.js.map +0 -1
- package/build/dex/aave-pt-to-usdc/constants.d.ts +0 -2
- package/build/dex/aave-pt-to-usdc/constants.js +0 -6
- package/build/dex/aave-pt-to-usdc/constants.js.map +0 -1
- package/build/dex/aave-pt-to-usdc/types.d.ts +0 -22
- package/build/dex/aave-pt-to-usdc/types.js.map +0 -1
- package/build/dex/apex-defi/apex-defi-factory.d.ts +0 -26
- package/build/dex/apex-defi/apex-defi-factory.js +0 -53
- package/build/dex/apex-defi/apex-defi-factory.js.map +0 -1
- package/build/dex/apex-defi/apex-defi-pool.d.ts +0 -55
- package/build/dex/apex-defi/apex-defi-pool.js +0 -247
- package/build/dex/apex-defi/apex-defi-pool.js.map +0 -1
- package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +0 -57
- package/build/dex/apex-defi/apex-defi-wrapper-factory.js +0 -250
- package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +0 -1
- package/build/dex/apex-defi/apex-defi.d.ts +0 -97
- package/build/dex/apex-defi/apex-defi.js +0 -1021
- package/build/dex/apex-defi/apex-defi.js.map +0 -1
- package/build/dex/apex-defi/config.d.ts +0 -4
- package/build/dex/apex-defi/config.js +0 -138
- package/build/dex/apex-defi/config.js.map +0 -1
- package/build/dex/apex-defi/types.d.ts +0 -32
- package/build/dex/apex-defi/types.js +0 -3
- package/build/dex/apex-defi/utils.d.ts +0 -46
- package/build/dex/apex-defi/utils.js +0 -133
- package/build/dex/apex-defi/utils.js.map +0 -1
- package/build/dex/maker-psm/maker-psm-event-pool.d.ts +0 -43
- package/build/dex/maker-psm/maker-psm-event-pool.js +0 -132
- package/build/dex/maker-psm/maker-psm-event-pool.js.map +0 -1
- package/build/dex/miro-migrator/miro-migrator-state.d.ts +0 -27
- package/build/dex/miro-migrator/miro-migrator-state.js +0 -89
- package/build/dex/miro-migrator/miro-migrator-state.js.map +0 -1
- package/build/dex/stabull/config.js +0 -177
- package/build/dex/stabull/config.js.map +0 -1
- package/build/dex/stabull/stabull-pool.js +0 -113
- package/build/dex/stabull/stabull-pool.js.map +0 -1
- package/build/dex/stabull/stabull.d.ts +0 -55
- package/build/dex/stabull/stabull.js +0 -286
- package/build/dex/stabull/stabull.js.map +0 -1
- package/build/dex/stabull/types.d.ts +0 -21
- package/build/dex/stabull/types.js +0 -3
- package/build/dex/stabull/types.js.map +0 -1
- package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +0 -4
- package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +0 -56
- package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +0 -1
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +0 -7
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +0 -28
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +0 -1
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +0 -2
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +0 -1
- package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +0 -7
- package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +0 -28
- package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +0 -1
- package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
- package/build/dex/uniswap-v4/hooks/fee-hook/types.js +0 -2
- package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +0 -1
- package/build/dex/uniswap-v4/hooks/index.d.ts +0 -1
- package/build/dex/uniswap-v4/hooks/index.js +0 -9
- package/build/dex/uniswap-v4/hooks/index.js.map +0 -1
- package/build/dex/uniswap-v4/hooks/spot.d.ts +0 -15
- package/build/dex/uniswap-v4/hooks/spot.js +0 -109
- package/build/dex/uniswap-v4/hooks/spot.js.map +0 -1
- package/build/dex/uniswap-v4/hooks/template.d.ts +0 -150
- package/build/dex/uniswap-v4/hooks/template.js +0 -104
- package/build/dex/uniswap-v4/hooks/template.js.map +0 -1
- package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +0 -26
- package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +0 -75
- package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +0 -1
- package/build/dex/usual/usual-usdc-usdc.d.ts +0 -17
- package/build/dex/usual/usual-usdc-usdc.js +0 -59
- package/build/dex/usual/usual-usdc-usdc.js.map +0 -1
- package/build/dex/yo/config.js +0 -21
- package/build/dex/yo/config.js.map +0 -1
- package/build/dex/yo/types.d.ts +0 -13
- package/build/dex/yo/types.js +0 -3
- package/build/dex/yo/yo-pool.d.ts +0 -13
- package/build/dex/yo/yo-pool.js +0 -26
- package/build/dex/yo/yo-pool.js.map +0 -1
- package/build/dex/yo/yo.d.ts +0 -39
- package/build/dex/yo/yo.js +0 -248
- package/build/dex/yo/yo.js.map +0 -1
- package/build/implementations/api-paraswap-sdk.d.ts +0 -25
- package/build/implementations/api-paraswap-sdk.js +0 -102
- package/build/implementations/api-paraswap-sdk.js.map +0 -1
- /package/build/dex/{aave-pt-to-underlying → se-vlr}/types.js +0 -0
- /package/build/dex/{aave-pt-to-usdc → usual-bond}/types.js +0 -0
|
@@ -3,17 +3,37 @@
|
|
|
3
3
|
"inputs": [
|
|
4
4
|
{
|
|
5
5
|
"internalType": "address",
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "_priceAggregator",
|
|
7
|
+
"type": "address"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "address payable",
|
|
11
|
+
"name": "_SP",
|
|
12
|
+
"type": "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "address",
|
|
16
|
+
"name": "_LUSD",
|
|
7
17
|
"type": "address"
|
|
8
18
|
},
|
|
9
19
|
{
|
|
10
20
|
"internalType": "address",
|
|
11
|
-
"name": "
|
|
21
|
+
"name": "_LQTY",
|
|
22
|
+
"type": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"internalType": "uint256",
|
|
26
|
+
"name": "_maxDiscount",
|
|
27
|
+
"type": "uint256"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"internalType": "address payable",
|
|
31
|
+
"name": "_feePool",
|
|
12
32
|
"type": "address"
|
|
13
33
|
},
|
|
14
34
|
{
|
|
15
35
|
"internalType": "address",
|
|
16
|
-
"name": "
|
|
36
|
+
"name": "_fronEndTag",
|
|
17
37
|
"type": "address"
|
|
18
38
|
}
|
|
19
39
|
],
|
|
@@ -21,343 +41,352 @@
|
|
|
21
41
|
"type": "constructor"
|
|
22
42
|
},
|
|
23
43
|
{
|
|
44
|
+
"anonymous": false,
|
|
45
|
+
"inputs": [
|
|
46
|
+
{
|
|
47
|
+
"indexed": false,
|
|
48
|
+
"internalType": "uint256",
|
|
49
|
+
"name": "val",
|
|
50
|
+
"type": "uint256"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"name": "Exit",
|
|
54
|
+
"type": "event"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"anonymous": false,
|
|
24
58
|
"inputs": [],
|
|
25
|
-
"name": "
|
|
26
|
-
"type": "
|
|
59
|
+
"name": "Flee",
|
|
60
|
+
"type": "event"
|
|
27
61
|
},
|
|
28
62
|
{
|
|
63
|
+
"anonymous": false,
|
|
29
64
|
"inputs": [
|
|
30
65
|
{
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
66
|
+
"indexed": false,
|
|
67
|
+
"internalType": "uint256",
|
|
68
|
+
"name": "val",
|
|
69
|
+
"type": "uint256"
|
|
34
70
|
}
|
|
35
71
|
],
|
|
36
|
-
"name": "
|
|
37
|
-
"type": "
|
|
72
|
+
"name": "Join",
|
|
73
|
+
"type": "event"
|
|
38
74
|
},
|
|
39
75
|
{
|
|
76
|
+
"anonymous": false,
|
|
40
77
|
"inputs": [
|
|
41
78
|
{
|
|
79
|
+
"indexed": true,
|
|
80
|
+
"internalType": "address",
|
|
81
|
+
"name": "previousOwner",
|
|
82
|
+
"type": "address"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"indexed": true,
|
|
42
86
|
"internalType": "address",
|
|
43
|
-
"name": "
|
|
87
|
+
"name": "newOwner",
|
|
44
88
|
"type": "address"
|
|
45
89
|
}
|
|
46
90
|
],
|
|
47
|
-
"name": "
|
|
48
|
-
"type": "
|
|
91
|
+
"name": "OwnershipTransferred",
|
|
92
|
+
"type": "event"
|
|
49
93
|
},
|
|
50
94
|
{
|
|
95
|
+
"anonymous": false,
|
|
51
96
|
"inputs": [
|
|
52
97
|
{
|
|
98
|
+
"indexed": false,
|
|
53
99
|
"internalType": "uint256",
|
|
54
|
-
"name": "
|
|
100
|
+
"name": "A",
|
|
55
101
|
"type": "uint256"
|
|
56
102
|
},
|
|
57
103
|
{
|
|
104
|
+
"indexed": false,
|
|
58
105
|
"internalType": "uint256",
|
|
59
|
-
"name": "
|
|
106
|
+
"name": "fee",
|
|
60
107
|
"type": "uint256"
|
|
61
108
|
}
|
|
62
109
|
],
|
|
63
|
-
"name": "
|
|
64
|
-
"type": "
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"inputs": [],
|
|
68
|
-
"name": "FailedInnerCall",
|
|
69
|
-
"type": "error"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"inputs": [],
|
|
73
|
-
"name": "InputCannotBeAVAX",
|
|
74
|
-
"type": "error"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"inputs": [],
|
|
78
|
-
"name": "InputMustBeAVAX",
|
|
79
|
-
"type": "error"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"inputs": [],
|
|
83
|
-
"name": "InsufficientAVAXAmount",
|
|
84
|
-
"type": "error"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"inputs": [],
|
|
88
|
-
"name": "InsufficientAmount",
|
|
89
|
-
"type": "error"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"inputs": [],
|
|
93
|
-
"name": "InsufficientLiquidity",
|
|
94
|
-
"type": "error"
|
|
110
|
+
"name": "ParamsSet",
|
|
111
|
+
"type": "event"
|
|
95
112
|
},
|
|
96
113
|
{
|
|
114
|
+
"anonymous": false,
|
|
97
115
|
"inputs": [
|
|
98
116
|
{
|
|
117
|
+
"indexed": true,
|
|
118
|
+
"internalType": "address",
|
|
119
|
+
"name": "user",
|
|
120
|
+
"type": "address"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"indexed": false,
|
|
99
124
|
"internalType": "uint256",
|
|
100
|
-
"name": "
|
|
125
|
+
"name": "lusdAmount",
|
|
101
126
|
"type": "uint256"
|
|
102
127
|
},
|
|
103
128
|
{
|
|
129
|
+
"indexed": false,
|
|
104
130
|
"internalType": "uint256",
|
|
105
|
-
"name": "
|
|
131
|
+
"name": "ethAmount",
|
|
106
132
|
"type": "uint256"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"name": "InsufficientOutputAmount",
|
|
110
|
-
"type": "error"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"inputs": [],
|
|
114
|
-
"name": "InsufficientTokenAmount",
|
|
115
|
-
"type": "error"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"inputs": [],
|
|
119
|
-
"name": "InvalidFactory",
|
|
120
|
-
"type": "error"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"inputs": [],
|
|
124
|
-
"name": "InvalidPath",
|
|
125
|
-
"type": "error"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"inputs": [],
|
|
129
|
-
"name": "InvalidPathLength",
|
|
130
|
-
"type": "error"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"inputs": [
|
|
133
|
+
},
|
|
134
134
|
{
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
135
|
+
"indexed": false,
|
|
136
|
+
"internalType": "uint256",
|
|
137
|
+
"name": "timestamp",
|
|
138
|
+
"type": "uint256"
|
|
138
139
|
}
|
|
139
140
|
],
|
|
140
|
-
"name": "
|
|
141
|
-
"type": "
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"inputs": [],
|
|
145
|
-
"name": "InvalidWrapperFactory",
|
|
146
|
-
"type": "error"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"inputs": [],
|
|
150
|
-
"name": "NoAVAXSent",
|
|
151
|
-
"type": "error"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"inputs": [],
|
|
155
|
-
"name": "NoTokensProvided",
|
|
156
|
-
"type": "error"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"inputs": [],
|
|
160
|
-
"name": "NoWrappersProvided",
|
|
161
|
-
"type": "error"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"inputs": [],
|
|
165
|
-
"name": "OutputCannotBeAVAX",
|
|
166
|
-
"type": "error"
|
|
141
|
+
"name": "RebalanceSwap",
|
|
142
|
+
"type": "event"
|
|
167
143
|
},
|
|
168
144
|
{
|
|
145
|
+
"anonymous": false,
|
|
169
146
|
"inputs": [
|
|
170
147
|
{
|
|
148
|
+
"indexed": true,
|
|
171
149
|
"internalType": "address",
|
|
172
|
-
"name": "
|
|
150
|
+
"name": "src",
|
|
173
151
|
"type": "address"
|
|
174
152
|
},
|
|
175
153
|
{
|
|
154
|
+
"indexed": true,
|
|
176
155
|
"internalType": "address",
|
|
177
|
-
"name": "
|
|
156
|
+
"name": "dst",
|
|
178
157
|
"type": "address"
|
|
179
158
|
},
|
|
180
159
|
{
|
|
160
|
+
"indexed": false,
|
|
181
161
|
"internalType": "uint256",
|
|
182
|
-
"name": "
|
|
162
|
+
"name": "wad",
|
|
183
163
|
"type": "uint256"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"internalType": "address",
|
|
187
|
-
"name": "to",
|
|
188
|
-
"type": "address"
|
|
189
164
|
}
|
|
190
165
|
],
|
|
191
|
-
"name": "
|
|
192
|
-
"type": "
|
|
166
|
+
"name": "Tack",
|
|
167
|
+
"type": "event"
|
|
193
168
|
},
|
|
194
169
|
{
|
|
170
|
+
"anonymous": false,
|
|
195
171
|
"inputs": [
|
|
196
172
|
{
|
|
173
|
+
"indexed": true,
|
|
197
174
|
"internalType": "address",
|
|
198
|
-
"name": "
|
|
175
|
+
"name": "_from",
|
|
199
176
|
"type": "address"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"name": "OwnableInvalidOwner",
|
|
203
|
-
"type": "error"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"inputs": [
|
|
177
|
+
},
|
|
207
178
|
{
|
|
179
|
+
"indexed": true,
|
|
208
180
|
"internalType": "address",
|
|
209
|
-
"name": "
|
|
181
|
+
"name": "_to",
|
|
210
182
|
"type": "address"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"indexed": false,
|
|
186
|
+
"internalType": "uint256",
|
|
187
|
+
"name": "_value",
|
|
188
|
+
"type": "uint256"
|
|
211
189
|
}
|
|
212
190
|
],
|
|
213
|
-
"name": "
|
|
214
|
-
"type": "
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"inputs": [],
|
|
218
|
-
"name": "PathMustEndWithAVAX",
|
|
219
|
-
"type": "error"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"inputs": [],
|
|
223
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
224
|
-
"type": "error"
|
|
191
|
+
"name": "Transfer",
|
|
192
|
+
"type": "event"
|
|
225
193
|
},
|
|
226
194
|
{
|
|
195
|
+
"anonymous": false,
|
|
227
196
|
"inputs": [
|
|
228
197
|
{
|
|
198
|
+
"indexed": true,
|
|
229
199
|
"internalType": "address",
|
|
230
|
-
"name": "
|
|
200
|
+
"name": "user",
|
|
231
201
|
"type": "address"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"indexed": false,
|
|
205
|
+
"internalType": "uint256",
|
|
206
|
+
"name": "lusdAmount",
|
|
207
|
+
"type": "uint256"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"indexed": false,
|
|
211
|
+
"internalType": "uint256",
|
|
212
|
+
"name": "numShares",
|
|
213
|
+
"type": "uint256"
|
|
232
214
|
}
|
|
233
215
|
],
|
|
234
|
-
"name": "
|
|
235
|
-
"type": "
|
|
216
|
+
"name": "UserDeposit",
|
|
217
|
+
"type": "event"
|
|
236
218
|
},
|
|
237
219
|
{
|
|
220
|
+
"anonymous": false,
|
|
238
221
|
"inputs": [
|
|
239
222
|
{
|
|
223
|
+
"indexed": true,
|
|
240
224
|
"internalType": "address",
|
|
241
|
-
"name": "
|
|
225
|
+
"name": "user",
|
|
242
226
|
"type": "address"
|
|
243
227
|
},
|
|
244
228
|
{
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
229
|
+
"indexed": false,
|
|
230
|
+
"internalType": "uint256",
|
|
231
|
+
"name": "lusdAmount",
|
|
232
|
+
"type": "uint256"
|
|
248
233
|
},
|
|
249
234
|
{
|
|
235
|
+
"indexed": false,
|
|
250
236
|
"internalType": "uint256",
|
|
251
|
-
"name": "
|
|
237
|
+
"name": "ethAmount",
|
|
252
238
|
"type": "uint256"
|
|
253
239
|
},
|
|
254
240
|
{
|
|
241
|
+
"indexed": false,
|
|
255
242
|
"internalType": "uint256",
|
|
256
|
-
"name": "
|
|
243
|
+
"name": "numShares",
|
|
257
244
|
"type": "uint256"
|
|
258
245
|
}
|
|
259
246
|
],
|
|
260
|
-
"name": "
|
|
261
|
-
"type": "
|
|
247
|
+
"name": "UserWithdraw",
|
|
248
|
+
"type": "event"
|
|
262
249
|
},
|
|
263
250
|
{
|
|
264
|
-
"inputs": [
|
|
251
|
+
"inputs": [],
|
|
252
|
+
"name": "A",
|
|
253
|
+
"outputs": [
|
|
265
254
|
{
|
|
266
|
-
"internalType": "
|
|
267
|
-
"name": "
|
|
268
|
-
"type": "
|
|
269
|
-
}
|
|
255
|
+
"internalType": "uint256",
|
|
256
|
+
"name": "",
|
|
257
|
+
"type": "uint256"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"stateMutability": "view",
|
|
261
|
+
"type": "function"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"inputs": [],
|
|
265
|
+
"name": "LUSD",
|
|
266
|
+
"outputs": [
|
|
270
267
|
{
|
|
271
|
-
"internalType": "
|
|
272
|
-
"name": "
|
|
268
|
+
"internalType": "contract IERC20",
|
|
269
|
+
"name": "",
|
|
273
270
|
"type": "address"
|
|
274
|
-
}
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"stateMutability": "view",
|
|
274
|
+
"type": "function"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"inputs": [],
|
|
278
|
+
"name": "MAX_A",
|
|
279
|
+
"outputs": [
|
|
275
280
|
{
|
|
276
281
|
"internalType": "uint256",
|
|
277
|
-
"name": "
|
|
282
|
+
"name": "",
|
|
278
283
|
"type": "uint256"
|
|
279
284
|
}
|
|
280
285
|
],
|
|
281
|
-
"
|
|
282
|
-
"type": "
|
|
286
|
+
"stateMutability": "view",
|
|
287
|
+
"type": "function"
|
|
283
288
|
},
|
|
284
289
|
{
|
|
285
290
|
"inputs": [],
|
|
286
|
-
"name": "
|
|
287
|
-
"
|
|
291
|
+
"name": "MAX_FEE",
|
|
292
|
+
"outputs": [
|
|
293
|
+
{
|
|
294
|
+
"internalType": "uint256",
|
|
295
|
+
"name": "",
|
|
296
|
+
"type": "uint256"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"stateMutability": "view",
|
|
300
|
+
"type": "function"
|
|
288
301
|
},
|
|
289
302
|
{
|
|
290
303
|
"inputs": [],
|
|
291
|
-
"name": "
|
|
292
|
-
"
|
|
304
|
+
"name": "MIN_A",
|
|
305
|
+
"outputs": [
|
|
306
|
+
{
|
|
307
|
+
"internalType": "uint256",
|
|
308
|
+
"name": "",
|
|
309
|
+
"type": "uint256"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"stateMutability": "view",
|
|
313
|
+
"type": "function"
|
|
293
314
|
},
|
|
294
315
|
{
|
|
295
|
-
"inputs": [
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
"name": "token",
|
|
299
|
-
"type": "address"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"internalType": "address",
|
|
303
|
-
"name": "wrapper",
|
|
304
|
-
"type": "address"
|
|
305
|
-
},
|
|
316
|
+
"inputs": [],
|
|
317
|
+
"name": "PRECISION",
|
|
318
|
+
"outputs": [
|
|
306
319
|
{
|
|
307
320
|
"internalType": "uint256",
|
|
308
|
-
"name": "
|
|
321
|
+
"name": "",
|
|
309
322
|
"type": "uint256"
|
|
310
323
|
}
|
|
311
324
|
],
|
|
312
|
-
"
|
|
313
|
-
"type": "
|
|
325
|
+
"stateMutability": "view",
|
|
326
|
+
"type": "function"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"inputs": [],
|
|
330
|
+
"name": "SP",
|
|
331
|
+
"outputs": [
|
|
332
|
+
{
|
|
333
|
+
"internalType": "contract StabilityPool",
|
|
334
|
+
"name": "",
|
|
335
|
+
"type": "address"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"stateMutability": "view",
|
|
339
|
+
"type": "function"
|
|
314
340
|
},
|
|
315
341
|
{
|
|
316
342
|
"inputs": [
|
|
317
343
|
{
|
|
318
|
-
"internalType": "
|
|
319
|
-
"name": "
|
|
320
|
-
"type": "
|
|
344
|
+
"internalType": "uint256",
|
|
345
|
+
"name": "x",
|
|
346
|
+
"type": "uint256"
|
|
321
347
|
},
|
|
322
348
|
{
|
|
323
|
-
"internalType": "
|
|
324
|
-
"name": "
|
|
325
|
-
"type": "
|
|
326
|
-
}
|
|
349
|
+
"internalType": "uint256",
|
|
350
|
+
"name": "y",
|
|
351
|
+
"type": "uint256"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
"name": "add",
|
|
355
|
+
"outputs": [
|
|
327
356
|
{
|
|
328
357
|
"internalType": "uint256",
|
|
329
|
-
"name": "
|
|
358
|
+
"name": "z",
|
|
330
359
|
"type": "uint256"
|
|
331
360
|
}
|
|
332
361
|
],
|
|
333
|
-
"
|
|
334
|
-
"type": "
|
|
362
|
+
"stateMutability": "pure",
|
|
363
|
+
"type": "function"
|
|
335
364
|
},
|
|
336
365
|
{
|
|
337
|
-
"anonymous": false,
|
|
338
366
|
"inputs": [
|
|
339
367
|
{
|
|
340
|
-
"indexed": true,
|
|
341
368
|
"internalType": "address",
|
|
342
|
-
"name": "
|
|
369
|
+
"name": "owner",
|
|
343
370
|
"type": "address"
|
|
344
|
-
}
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"name": "balanceOf",
|
|
374
|
+
"outputs": [
|
|
345
375
|
{
|
|
346
|
-
"
|
|
347
|
-
"
|
|
348
|
-
"
|
|
349
|
-
"type": "address"
|
|
376
|
+
"internalType": "uint256",
|
|
377
|
+
"name": "balance",
|
|
378
|
+
"type": "uint256"
|
|
350
379
|
}
|
|
351
380
|
],
|
|
352
|
-
"
|
|
353
|
-
"type": "
|
|
381
|
+
"stateMutability": "view",
|
|
382
|
+
"type": "function"
|
|
354
383
|
},
|
|
355
384
|
{
|
|
356
385
|
"inputs": [],
|
|
357
|
-
"name": "
|
|
386
|
+
"name": "bonus",
|
|
358
387
|
"outputs": [
|
|
359
388
|
{
|
|
360
|
-
"internalType": "
|
|
389
|
+
"internalType": "contract ERC20",
|
|
361
390
|
"name": "",
|
|
362
391
|
"type": "address"
|
|
363
392
|
}
|
|
@@ -367,88 +396,107 @@
|
|
|
367
396
|
},
|
|
368
397
|
{
|
|
369
398
|
"inputs": [
|
|
370
|
-
{
|
|
371
|
-
"internalType": "address",
|
|
372
|
-
"name": "",
|
|
373
|
-
"type": "address"
|
|
374
|
-
},
|
|
375
399
|
{
|
|
376
400
|
"internalType": "address",
|
|
377
401
|
"name": "",
|
|
378
402
|
"type": "address"
|
|
379
403
|
}
|
|
380
404
|
],
|
|
381
|
-
"name": "
|
|
405
|
+
"name": "crops",
|
|
382
406
|
"outputs": [
|
|
383
407
|
{
|
|
384
|
-
"internalType": "
|
|
408
|
+
"internalType": "uint256",
|
|
385
409
|
"name": "",
|
|
386
|
-
"type": "
|
|
410
|
+
"type": "uint256"
|
|
387
411
|
}
|
|
388
412
|
],
|
|
389
413
|
"stateMutability": "view",
|
|
390
414
|
"type": "function"
|
|
391
415
|
},
|
|
392
416
|
{
|
|
393
|
-
"inputs": [
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
"name": "token",
|
|
397
|
-
"type": "address"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"internalType": "uint256",
|
|
401
|
-
"name": "amountTokenDesired",
|
|
402
|
-
"type": "uint256"
|
|
403
|
-
},
|
|
417
|
+
"inputs": [],
|
|
418
|
+
"name": "dec",
|
|
419
|
+
"outputs": [
|
|
404
420
|
{
|
|
405
421
|
"internalType": "uint256",
|
|
406
|
-
"name": "
|
|
422
|
+
"name": "",
|
|
407
423
|
"type": "uint256"
|
|
408
|
-
}
|
|
424
|
+
}
|
|
425
|
+
],
|
|
426
|
+
"stateMutability": "view",
|
|
427
|
+
"type": "function"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"inputs": [],
|
|
431
|
+
"name": "decimals",
|
|
432
|
+
"outputs": [
|
|
409
433
|
{
|
|
410
434
|
"internalType": "uint256",
|
|
411
|
-
"name": "
|
|
435
|
+
"name": "",
|
|
412
436
|
"type": "uint256"
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"stateMutability": "view",
|
|
440
|
+
"type": "function"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"inputs": [
|
|
419
444
|
{
|
|
420
445
|
"internalType": "uint256",
|
|
421
|
-
"name": "
|
|
446
|
+
"name": "lusdAmount",
|
|
422
447
|
"type": "uint256"
|
|
423
448
|
}
|
|
424
449
|
],
|
|
425
|
-
"name": "
|
|
450
|
+
"name": "deposit",
|
|
451
|
+
"outputs": [],
|
|
452
|
+
"stateMutability": "nonpayable",
|
|
453
|
+
"type": "function"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"inputs": [],
|
|
457
|
+
"name": "fee",
|
|
426
458
|
"outputs": [
|
|
427
459
|
{
|
|
428
460
|
"internalType": "uint256",
|
|
429
|
-
"name": "
|
|
461
|
+
"name": "",
|
|
430
462
|
"type": "uint256"
|
|
431
|
-
}
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"stateMutability": "view",
|
|
466
|
+
"type": "function"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"inputs": [],
|
|
470
|
+
"name": "feePool",
|
|
471
|
+
"outputs": [
|
|
432
472
|
{
|
|
433
|
-
"internalType": "
|
|
434
|
-
"name": "
|
|
435
|
-
"type": "
|
|
436
|
-
}
|
|
473
|
+
"internalType": "address payable",
|
|
474
|
+
"name": "",
|
|
475
|
+
"type": "address"
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"stateMutability": "view",
|
|
479
|
+
"type": "function"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"inputs": [],
|
|
483
|
+
"name": "fetchPrice",
|
|
484
|
+
"outputs": [
|
|
437
485
|
{
|
|
438
486
|
"internalType": "uint256",
|
|
439
|
-
"name": "
|
|
487
|
+
"name": "",
|
|
440
488
|
"type": "uint256"
|
|
441
489
|
}
|
|
442
490
|
],
|
|
443
|
-
"stateMutability": "
|
|
491
|
+
"stateMutability": "view",
|
|
444
492
|
"type": "function"
|
|
445
493
|
},
|
|
446
494
|
{
|
|
447
495
|
"inputs": [],
|
|
448
|
-
"name": "
|
|
496
|
+
"name": "frontEndTag",
|
|
449
497
|
"outputs": [
|
|
450
498
|
{
|
|
451
|
-
"internalType": "
|
|
499
|
+
"internalType": "address",
|
|
452
500
|
"name": "",
|
|
453
501
|
"type": "address"
|
|
454
502
|
}
|
|
@@ -458,12 +506,12 @@
|
|
|
458
506
|
},
|
|
459
507
|
{
|
|
460
508
|
"inputs": [],
|
|
461
|
-
"name": "
|
|
509
|
+
"name": "gem",
|
|
462
510
|
"outputs": [
|
|
463
511
|
{
|
|
464
|
-
"internalType": "
|
|
465
|
-
"name": "
|
|
466
|
-
"type": "address
|
|
512
|
+
"internalType": "contract ERC20",
|
|
513
|
+
"name": "",
|
|
514
|
+
"type": "address"
|
|
467
515
|
}
|
|
468
516
|
],
|
|
469
517
|
"stateMutability": "view",
|
|
@@ -472,31 +520,31 @@
|
|
|
472
520
|
{
|
|
473
521
|
"inputs": [
|
|
474
522
|
{
|
|
475
|
-
"internalType": "
|
|
476
|
-
"name": "
|
|
523
|
+
"internalType": "contract IERC20",
|
|
524
|
+
"name": "",
|
|
477
525
|
"type": "address"
|
|
478
526
|
},
|
|
479
527
|
{
|
|
480
|
-
"internalType": "
|
|
481
|
-
"name": "
|
|
482
|
-
"type": "
|
|
528
|
+
"internalType": "contract IERC20",
|
|
529
|
+
"name": "",
|
|
530
|
+
"type": "address"
|
|
483
531
|
},
|
|
484
532
|
{
|
|
485
533
|
"internalType": "uint256",
|
|
486
|
-
"name": "
|
|
534
|
+
"name": "srcQty",
|
|
487
535
|
"type": "uint256"
|
|
488
536
|
},
|
|
489
537
|
{
|
|
490
538
|
"internalType": "uint256",
|
|
491
|
-
"name": "
|
|
539
|
+
"name": "",
|
|
492
540
|
"type": "uint256"
|
|
493
541
|
}
|
|
494
542
|
],
|
|
495
|
-
"name": "
|
|
543
|
+
"name": "getConversionRate",
|
|
496
544
|
"outputs": [
|
|
497
545
|
{
|
|
498
546
|
"internalType": "uint256",
|
|
499
|
-
"name": "
|
|
547
|
+
"name": "",
|
|
500
548
|
"type": "uint256"
|
|
501
549
|
}
|
|
502
550
|
],
|
|
@@ -506,127 +554,123 @@
|
|
|
506
554
|
{
|
|
507
555
|
"inputs": [
|
|
508
556
|
{
|
|
509
|
-
"internalType": "
|
|
510
|
-
"name": "
|
|
511
|
-
"type": "
|
|
557
|
+
"internalType": "uint256",
|
|
558
|
+
"name": "xQty",
|
|
559
|
+
"type": "uint256"
|
|
512
560
|
},
|
|
513
561
|
{
|
|
514
562
|
"internalType": "uint256",
|
|
515
|
-
"name": "
|
|
563
|
+
"name": "xBalance",
|
|
516
564
|
"type": "uint256"
|
|
517
565
|
},
|
|
518
566
|
{
|
|
519
567
|
"internalType": "uint256",
|
|
520
|
-
"name": "
|
|
568
|
+
"name": "yBalance",
|
|
521
569
|
"type": "uint256"
|
|
522
570
|
},
|
|
523
571
|
{
|
|
524
572
|
"internalType": "uint256",
|
|
525
|
-
"name": "
|
|
573
|
+
"name": "A",
|
|
526
574
|
"type": "uint256"
|
|
527
575
|
}
|
|
528
576
|
],
|
|
529
|
-
"name": "
|
|
577
|
+
"name": "getReturn",
|
|
530
578
|
"outputs": [
|
|
531
579
|
{
|
|
532
580
|
"internalType": "uint256",
|
|
533
|
-
"name": "
|
|
581
|
+
"name": "",
|
|
534
582
|
"type": "uint256"
|
|
535
583
|
}
|
|
536
584
|
],
|
|
537
|
-
"stateMutability": "
|
|
585
|
+
"stateMutability": "pure",
|
|
538
586
|
"type": "function"
|
|
539
587
|
},
|
|
540
588
|
{
|
|
541
589
|
"inputs": [
|
|
542
590
|
{
|
|
543
591
|
"internalType": "uint256",
|
|
544
|
-
"name": "
|
|
592
|
+
"name": "x",
|
|
545
593
|
"type": "uint256"
|
|
546
594
|
},
|
|
547
595
|
{
|
|
548
|
-
"internalType": "
|
|
549
|
-
"name": "
|
|
550
|
-
"type": "
|
|
596
|
+
"internalType": "uint256",
|
|
597
|
+
"name": "y",
|
|
598
|
+
"type": "uint256"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"internalType": "uint256",
|
|
602
|
+
"name": "A",
|
|
603
|
+
"type": "uint256"
|
|
551
604
|
}
|
|
552
605
|
],
|
|
553
|
-
"name": "
|
|
606
|
+
"name": "getSumFixedPoint",
|
|
554
607
|
"outputs": [
|
|
555
608
|
{
|
|
556
|
-
"internalType": "uint256
|
|
557
|
-
"name": "
|
|
558
|
-
"type": "uint256
|
|
609
|
+
"internalType": "uint256",
|
|
610
|
+
"name": "",
|
|
611
|
+
"type": "uint256"
|
|
559
612
|
}
|
|
560
613
|
],
|
|
561
|
-
"stateMutability": "
|
|
614
|
+
"stateMutability": "pure",
|
|
562
615
|
"type": "function"
|
|
563
616
|
},
|
|
564
617
|
{
|
|
565
618
|
"inputs": [
|
|
566
619
|
{
|
|
567
620
|
"internalType": "uint256",
|
|
568
|
-
"name": "
|
|
621
|
+
"name": "lusdQty",
|
|
569
622
|
"type": "uint256"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"internalType": "address[]",
|
|
573
|
-
"name": "path",
|
|
574
|
-
"type": "address[]"
|
|
575
623
|
}
|
|
576
624
|
],
|
|
577
|
-
"name": "
|
|
625
|
+
"name": "getSwapEthAmount",
|
|
578
626
|
"outputs": [
|
|
579
627
|
{
|
|
580
|
-
"internalType": "uint256
|
|
581
|
-
"name": "
|
|
582
|
-
"type": "uint256
|
|
628
|
+
"internalType": "uint256",
|
|
629
|
+
"name": "ethAmount",
|
|
630
|
+
"type": "uint256"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"internalType": "uint256",
|
|
634
|
+
"name": "feeEthAmount",
|
|
635
|
+
"type": "uint256"
|
|
583
636
|
}
|
|
584
637
|
],
|
|
585
638
|
"stateMutability": "view",
|
|
586
639
|
"type": "function"
|
|
587
640
|
},
|
|
588
641
|
{
|
|
589
|
-
"inputs": [
|
|
590
|
-
|
|
591
|
-
"internalType": "address",
|
|
592
|
-
"name": "tokenA",
|
|
593
|
-
"type": "address"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"internalType": "address",
|
|
597
|
-
"name": "tokenB",
|
|
598
|
-
"type": "address"
|
|
599
|
-
}
|
|
600
|
-
],
|
|
601
|
-
"name": "getPair",
|
|
642
|
+
"inputs": [],
|
|
643
|
+
"name": "ilk",
|
|
602
644
|
"outputs": [
|
|
603
645
|
{
|
|
604
|
-
"internalType": "
|
|
646
|
+
"internalType": "bytes32",
|
|
605
647
|
"name": "",
|
|
606
|
-
"type": "
|
|
648
|
+
"type": "bytes32"
|
|
607
649
|
}
|
|
608
650
|
],
|
|
609
651
|
"stateMutability": "view",
|
|
610
652
|
"type": "function"
|
|
611
653
|
},
|
|
612
654
|
{
|
|
613
|
-
"inputs": [
|
|
655
|
+
"inputs": [],
|
|
656
|
+
"name": "isOwner",
|
|
657
|
+
"outputs": [
|
|
614
658
|
{
|
|
615
|
-
"internalType": "
|
|
616
|
-
"name": "
|
|
617
|
-
"type": "
|
|
659
|
+
"internalType": "bool",
|
|
660
|
+
"name": "",
|
|
661
|
+
"type": "bool"
|
|
618
662
|
}
|
|
619
663
|
],
|
|
620
|
-
"
|
|
664
|
+
"stateMutability": "view",
|
|
665
|
+
"type": "function"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"inputs": [],
|
|
669
|
+
"name": "maxDiscount",
|
|
621
670
|
"outputs": [
|
|
622
671
|
{
|
|
623
672
|
"internalType": "uint256",
|
|
624
|
-
"name": "
|
|
625
|
-
"type": "uint256"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"internalType": "uint256",
|
|
629
|
-
"name": "tokenReserve",
|
|
673
|
+
"name": "",
|
|
630
674
|
"type": "uint256"
|
|
631
675
|
}
|
|
632
676
|
],
|
|
@@ -636,55 +680,74 @@
|
|
|
636
680
|
{
|
|
637
681
|
"inputs": [
|
|
638
682
|
{
|
|
639
|
-
"internalType": "
|
|
640
|
-
"name": "",
|
|
641
|
-
"type": "
|
|
683
|
+
"internalType": "uint256",
|
|
684
|
+
"name": "x",
|
|
685
|
+
"type": "uint256"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"internalType": "uint256",
|
|
689
|
+
"name": "y",
|
|
690
|
+
"type": "uint256"
|
|
642
691
|
}
|
|
643
692
|
],
|
|
644
|
-
"name": "
|
|
693
|
+
"name": "mul",
|
|
645
694
|
"outputs": [
|
|
646
695
|
{
|
|
647
|
-
"internalType": "
|
|
648
|
-
"name": "",
|
|
649
|
-
"type": "
|
|
696
|
+
"internalType": "uint256",
|
|
697
|
+
"name": "z",
|
|
698
|
+
"type": "uint256"
|
|
650
699
|
}
|
|
651
700
|
],
|
|
652
|
-
"stateMutability": "
|
|
701
|
+
"stateMutability": "pure",
|
|
653
702
|
"type": "function"
|
|
654
703
|
},
|
|
655
704
|
{
|
|
656
|
-
"inputs": [
|
|
705
|
+
"inputs": [],
|
|
706
|
+
"name": "name",
|
|
707
|
+
"outputs": [
|
|
657
708
|
{
|
|
658
|
-
"internalType": "
|
|
709
|
+
"internalType": "string",
|
|
659
710
|
"name": "",
|
|
660
|
-
"type": "
|
|
711
|
+
"type": "string"
|
|
661
712
|
}
|
|
662
713
|
],
|
|
663
|
-
"
|
|
714
|
+
"stateMutability": "view",
|
|
715
|
+
"type": "function"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"inputs": [],
|
|
719
|
+
"name": "nav",
|
|
664
720
|
"outputs": [
|
|
665
721
|
{
|
|
666
|
-
"internalType": "
|
|
722
|
+
"internalType": "uint256",
|
|
667
723
|
"name": "",
|
|
668
|
-
"type": "
|
|
724
|
+
"type": "uint256"
|
|
669
725
|
}
|
|
670
726
|
],
|
|
671
|
-
"stateMutability": "
|
|
727
|
+
"stateMutability": "nonpayable",
|
|
672
728
|
"type": "function"
|
|
673
729
|
},
|
|
674
730
|
{
|
|
675
|
-
"inputs": [
|
|
731
|
+
"inputs": [],
|
|
732
|
+
"name": "nps",
|
|
733
|
+
"outputs": [
|
|
676
734
|
{
|
|
677
|
-
"internalType": "
|
|
678
|
-
"name": "
|
|
679
|
-
"type": "
|
|
735
|
+
"internalType": "uint256",
|
|
736
|
+
"name": "",
|
|
737
|
+
"type": "uint256"
|
|
680
738
|
}
|
|
681
739
|
],
|
|
682
|
-
"
|
|
740
|
+
"stateMutability": "nonpayable",
|
|
741
|
+
"type": "function"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"inputs": [],
|
|
745
|
+
"name": "owner",
|
|
683
746
|
"outputs": [
|
|
684
747
|
{
|
|
685
|
-
"internalType": "address
|
|
748
|
+
"internalType": "address",
|
|
686
749
|
"name": "",
|
|
687
|
-
"type": "address
|
|
750
|
+
"type": "address"
|
|
688
751
|
}
|
|
689
752
|
],
|
|
690
753
|
"stateMutability": "view",
|
|
@@ -692,10 +755,10 @@
|
|
|
692
755
|
},
|
|
693
756
|
{
|
|
694
757
|
"inputs": [],
|
|
695
|
-
"name": "
|
|
758
|
+
"name": "priceAggregator",
|
|
696
759
|
"outputs": [
|
|
697
760
|
{
|
|
698
|
-
"internalType": "
|
|
761
|
+
"internalType": "contract AggregatorV3Interface",
|
|
699
762
|
"name": "",
|
|
700
763
|
"type": "address"
|
|
701
764
|
}
|
|
@@ -707,25 +770,20 @@
|
|
|
707
770
|
"inputs": [
|
|
708
771
|
{
|
|
709
772
|
"internalType": "uint256",
|
|
710
|
-
"name": "
|
|
711
|
-
"type": "uint256"
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"internalType": "uint256",
|
|
715
|
-
"name": "reserveA",
|
|
773
|
+
"name": "x",
|
|
716
774
|
"type": "uint256"
|
|
717
775
|
},
|
|
718
776
|
{
|
|
719
777
|
"internalType": "uint256",
|
|
720
|
-
"name": "
|
|
778
|
+
"name": "y",
|
|
721
779
|
"type": "uint256"
|
|
722
780
|
}
|
|
723
781
|
],
|
|
724
|
-
"name": "
|
|
782
|
+
"name": "rdiv",
|
|
725
783
|
"outputs": [
|
|
726
784
|
{
|
|
727
785
|
"internalType": "uint256",
|
|
728
|
-
"name": "
|
|
786
|
+
"name": "z",
|
|
729
787
|
"type": "uint256"
|
|
730
788
|
}
|
|
731
789
|
],
|
|
@@ -734,383 +792,360 @@
|
|
|
734
792
|
},
|
|
735
793
|
{
|
|
736
794
|
"inputs": [
|
|
737
|
-
{
|
|
738
|
-
"internalType": "address",
|
|
739
|
-
"name": "token",
|
|
740
|
-
"type": "address"
|
|
741
|
-
},
|
|
742
795
|
{
|
|
743
796
|
"internalType": "uint256",
|
|
744
|
-
"name": "
|
|
797
|
+
"name": "x",
|
|
745
798
|
"type": "uint256"
|
|
746
799
|
},
|
|
747
800
|
{
|
|
748
801
|
"internalType": "uint256",
|
|
749
|
-
"name": "
|
|
802
|
+
"name": "y",
|
|
750
803
|
"type": "uint256"
|
|
751
|
-
}
|
|
804
|
+
}
|
|
805
|
+
],
|
|
806
|
+
"name": "rmul",
|
|
807
|
+
"outputs": [
|
|
752
808
|
{
|
|
753
809
|
"internalType": "uint256",
|
|
754
|
-
"name": "
|
|
810
|
+
"name": "z",
|
|
755
811
|
"type": "uint256"
|
|
756
|
-
}
|
|
812
|
+
}
|
|
813
|
+
],
|
|
814
|
+
"stateMutability": "pure",
|
|
815
|
+
"type": "function"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"inputs": [
|
|
757
819
|
{
|
|
758
|
-
"internalType": "
|
|
759
|
-
"name": "
|
|
760
|
-
"type": "
|
|
820
|
+
"internalType": "uint256",
|
|
821
|
+
"name": "x",
|
|
822
|
+
"type": "uint256"
|
|
761
823
|
},
|
|
762
824
|
{
|
|
763
825
|
"internalType": "uint256",
|
|
764
|
-
"name": "
|
|
826
|
+
"name": "y",
|
|
765
827
|
"type": "uint256"
|
|
766
828
|
}
|
|
767
829
|
],
|
|
768
|
-
"name": "
|
|
830
|
+
"name": "rmulup",
|
|
769
831
|
"outputs": [
|
|
770
832
|
{
|
|
771
833
|
"internalType": "uint256",
|
|
772
|
-
"name": "
|
|
773
|
-
"type": "uint256"
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
"internalType": "uint256",
|
|
777
|
-
"name": "amountAVAX",
|
|
834
|
+
"name": "z",
|
|
778
835
|
"type": "uint256"
|
|
779
836
|
}
|
|
780
837
|
],
|
|
781
|
-
"stateMutability": "
|
|
782
|
-
"type": "function"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
"inputs": [],
|
|
786
|
-
"name": "renounceOwnership",
|
|
787
|
-
"outputs": [],
|
|
788
|
-
"stateMutability": "nonpayable",
|
|
838
|
+
"stateMutability": "pure",
|
|
789
839
|
"type": "function"
|
|
790
840
|
},
|
|
791
841
|
{
|
|
792
842
|
"inputs": [
|
|
793
843
|
{
|
|
794
|
-
"internalType": "
|
|
795
|
-
"name": "
|
|
796
|
-
"type": "
|
|
844
|
+
"internalType": "uint256",
|
|
845
|
+
"name": "_A",
|
|
846
|
+
"type": "uint256"
|
|
797
847
|
},
|
|
798
848
|
{
|
|
799
|
-
"internalType": "
|
|
800
|
-
"name": "
|
|
801
|
-
"type": "
|
|
849
|
+
"internalType": "uint256",
|
|
850
|
+
"name": "_fee",
|
|
851
|
+
"type": "uint256"
|
|
802
852
|
}
|
|
803
853
|
],
|
|
804
|
-
"name": "
|
|
854
|
+
"name": "setParams",
|
|
805
855
|
"outputs": [],
|
|
806
856
|
"stateMutability": "nonpayable",
|
|
807
857
|
"type": "function"
|
|
808
858
|
},
|
|
809
859
|
{
|
|
810
|
-
"inputs": [
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
"name": "wrappers",
|
|
814
|
-
"type": "address[]"
|
|
815
|
-
},
|
|
860
|
+
"inputs": [],
|
|
861
|
+
"name": "share",
|
|
862
|
+
"outputs": [
|
|
816
863
|
{
|
|
817
|
-
"internalType": "
|
|
818
|
-
"name": "
|
|
819
|
-
"type": "
|
|
864
|
+
"internalType": "uint256",
|
|
865
|
+
"name": "",
|
|
866
|
+
"type": "uint256"
|
|
820
867
|
}
|
|
821
868
|
],
|
|
822
|
-
"
|
|
823
|
-
"outputs": [],
|
|
824
|
-
"stateMutability": "nonpayable",
|
|
869
|
+
"stateMutability": "view",
|
|
825
870
|
"type": "function"
|
|
826
871
|
},
|
|
827
872
|
{
|
|
828
873
|
"inputs": [
|
|
829
|
-
{
|
|
830
|
-
"internalType": "uint256",
|
|
831
|
-
"name": "amountOutDesired",
|
|
832
|
-
"type": "uint256"
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
"internalType": "uint256",
|
|
836
|
-
"name": "amountOutMin",
|
|
837
|
-
"type": "uint256"
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
"internalType": "uint256",
|
|
841
|
-
"name": "amountInMax",
|
|
842
|
-
"type": "uint256"
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
"internalType": "address[]",
|
|
846
|
-
"name": "path",
|
|
847
|
-
"type": "address[]"
|
|
848
|
-
},
|
|
849
874
|
{
|
|
850
875
|
"internalType": "address",
|
|
851
|
-
"name": "
|
|
876
|
+
"name": "",
|
|
852
877
|
"type": "address"
|
|
853
|
-
}
|
|
878
|
+
}
|
|
879
|
+
],
|
|
880
|
+
"name": "stake",
|
|
881
|
+
"outputs": [
|
|
854
882
|
{
|
|
855
883
|
"internalType": "uint256",
|
|
856
|
-
"name": "
|
|
884
|
+
"name": "",
|
|
857
885
|
"type": "uint256"
|
|
858
886
|
}
|
|
859
887
|
],
|
|
860
|
-
"
|
|
888
|
+
"stateMutability": "view",
|
|
889
|
+
"type": "function"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"inputs": [],
|
|
893
|
+
"name": "stock",
|
|
861
894
|
"outputs": [
|
|
862
895
|
{
|
|
863
|
-
"internalType": "uint256
|
|
864
|
-
"name": "
|
|
865
|
-
"type": "uint256
|
|
896
|
+
"internalType": "uint256",
|
|
897
|
+
"name": "",
|
|
898
|
+
"type": "uint256"
|
|
866
899
|
}
|
|
867
900
|
],
|
|
868
|
-
"stateMutability": "
|
|
901
|
+
"stateMutability": "view",
|
|
869
902
|
"type": "function"
|
|
870
903
|
},
|
|
871
904
|
{
|
|
872
905
|
"inputs": [
|
|
873
906
|
{
|
|
874
907
|
"internalType": "uint256",
|
|
875
|
-
"name": "
|
|
908
|
+
"name": "x",
|
|
876
909
|
"type": "uint256"
|
|
877
910
|
},
|
|
878
|
-
{
|
|
879
|
-
"internalType": "address[]",
|
|
880
|
-
"name": "path",
|
|
881
|
-
"type": "address[]"
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"internalType": "address",
|
|
885
|
-
"name": "to",
|
|
886
|
-
"type": "address"
|
|
887
|
-
},
|
|
888
911
|
{
|
|
889
912
|
"internalType": "uint256",
|
|
890
|
-
"name": "
|
|
913
|
+
"name": "y",
|
|
891
914
|
"type": "uint256"
|
|
892
915
|
}
|
|
893
916
|
],
|
|
894
|
-
"name": "
|
|
917
|
+
"name": "sub",
|
|
895
918
|
"outputs": [
|
|
896
919
|
{
|
|
897
|
-
"internalType": "uint256
|
|
898
|
-
"name": "
|
|
899
|
-
"type": "uint256
|
|
920
|
+
"internalType": "uint256",
|
|
921
|
+
"name": "z",
|
|
922
|
+
"type": "uint256"
|
|
900
923
|
}
|
|
901
924
|
],
|
|
902
|
-
"stateMutability": "
|
|
925
|
+
"stateMutability": "pure",
|
|
903
926
|
"type": "function"
|
|
904
927
|
},
|
|
905
928
|
{
|
|
906
929
|
"inputs": [
|
|
907
930
|
{
|
|
908
931
|
"internalType": "uint256",
|
|
909
|
-
"name": "
|
|
932
|
+
"name": "lusdAmount",
|
|
910
933
|
"type": "uint256"
|
|
911
934
|
},
|
|
912
935
|
{
|
|
913
936
|
"internalType": "uint256",
|
|
914
|
-
"name": "
|
|
937
|
+
"name": "minEthReturn",
|
|
915
938
|
"type": "uint256"
|
|
916
939
|
},
|
|
917
940
|
{
|
|
918
|
-
"internalType": "address
|
|
919
|
-
"name": "
|
|
920
|
-
"type": "address[]"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"internalType": "address",
|
|
924
|
-
"name": "to",
|
|
941
|
+
"internalType": "address payable",
|
|
942
|
+
"name": "dest",
|
|
925
943
|
"type": "address"
|
|
926
|
-
}
|
|
944
|
+
}
|
|
945
|
+
],
|
|
946
|
+
"name": "swap",
|
|
947
|
+
"outputs": [
|
|
927
948
|
{
|
|
928
949
|
"internalType": "uint256",
|
|
929
|
-
"name": "
|
|
950
|
+
"name": "",
|
|
930
951
|
"type": "uint256"
|
|
931
952
|
}
|
|
932
953
|
],
|
|
933
|
-
"
|
|
954
|
+
"stateMutability": "nonpayable",
|
|
955
|
+
"type": "function"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"inputs": [],
|
|
959
|
+
"name": "symbol",
|
|
934
960
|
"outputs": [
|
|
935
961
|
{
|
|
936
|
-
"internalType": "
|
|
937
|
-
"name": "
|
|
938
|
-
"type": "
|
|
962
|
+
"internalType": "string",
|
|
963
|
+
"name": "",
|
|
964
|
+
"type": "string"
|
|
939
965
|
}
|
|
940
966
|
],
|
|
941
|
-
"stateMutability": "
|
|
967
|
+
"stateMutability": "view",
|
|
942
968
|
"type": "function"
|
|
943
969
|
},
|
|
944
970
|
{
|
|
945
|
-
"inputs": [
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
"name": "amountIn",
|
|
949
|
-
"type": "uint256"
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"internalType": "uint256",
|
|
953
|
-
"name": "amountOutMin",
|
|
954
|
-
"type": "uint256"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"internalType": "address[]",
|
|
958
|
-
"name": "path",
|
|
959
|
-
"type": "address[]"
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
"internalType": "address",
|
|
963
|
-
"name": "to",
|
|
964
|
-
"type": "address"
|
|
965
|
-
},
|
|
971
|
+
"inputs": [],
|
|
972
|
+
"name": "total",
|
|
973
|
+
"outputs": [
|
|
966
974
|
{
|
|
967
975
|
"internalType": "uint256",
|
|
968
|
-
"name": "
|
|
976
|
+
"name": "",
|
|
969
977
|
"type": "uint256"
|
|
970
978
|
}
|
|
971
979
|
],
|
|
972
|
-
"
|
|
980
|
+
"stateMutability": "view",
|
|
981
|
+
"type": "function"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"inputs": [],
|
|
985
|
+
"name": "totalSupply",
|
|
973
986
|
"outputs": [
|
|
974
987
|
{
|
|
975
|
-
"internalType": "uint256
|
|
976
|
-
"name": "
|
|
977
|
-
"type": "uint256
|
|
988
|
+
"internalType": "uint256",
|
|
989
|
+
"name": "",
|
|
990
|
+
"type": "uint256"
|
|
978
991
|
}
|
|
979
992
|
],
|
|
980
|
-
"stateMutability": "
|
|
993
|
+
"stateMutability": "view",
|
|
981
994
|
"type": "function"
|
|
982
995
|
},
|
|
983
996
|
{
|
|
984
997
|
"inputs": [
|
|
985
998
|
{
|
|
986
|
-
"internalType": "
|
|
987
|
-
"name": "
|
|
988
|
-
"type": "
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
"internalType": "uint256",
|
|
992
|
-
"name": "amountOutMin",
|
|
993
|
-
"type": "uint256"
|
|
999
|
+
"internalType": "contract IERC20",
|
|
1000
|
+
"name": "",
|
|
1001
|
+
"type": "address"
|
|
994
1002
|
},
|
|
995
1003
|
{
|
|
996
1004
|
"internalType": "uint256",
|
|
997
|
-
"name": "
|
|
1005
|
+
"name": "srcAmount",
|
|
998
1006
|
"type": "uint256"
|
|
999
1007
|
},
|
|
1000
1008
|
{
|
|
1001
|
-
"internalType": "
|
|
1002
|
-
"name": "
|
|
1003
|
-
"type": "address
|
|
1009
|
+
"internalType": "contract IERC20",
|
|
1010
|
+
"name": "",
|
|
1011
|
+
"type": "address"
|
|
1004
1012
|
},
|
|
1005
1013
|
{
|
|
1006
|
-
"internalType": "address",
|
|
1007
|
-
"name": "
|
|
1014
|
+
"internalType": "address payable",
|
|
1015
|
+
"name": "destAddress",
|
|
1008
1016
|
"type": "address"
|
|
1009
1017
|
},
|
|
1010
1018
|
{
|
|
1011
1019
|
"internalType": "uint256",
|
|
1012
|
-
"name": "
|
|
1020
|
+
"name": "",
|
|
1013
1021
|
"type": "uint256"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"internalType": "bool",
|
|
1025
|
+
"name": "",
|
|
1026
|
+
"type": "bool"
|
|
1014
1027
|
}
|
|
1015
1028
|
],
|
|
1016
|
-
"name": "
|
|
1029
|
+
"name": "trade",
|
|
1017
1030
|
"outputs": [
|
|
1018
1031
|
{
|
|
1019
|
-
"internalType": "
|
|
1020
|
-
"name": "
|
|
1021
|
-
"type": "
|
|
1032
|
+
"internalType": "bool",
|
|
1033
|
+
"name": "",
|
|
1034
|
+
"type": "bool"
|
|
1022
1035
|
}
|
|
1023
1036
|
],
|
|
1024
|
-
"stateMutability": "
|
|
1037
|
+
"stateMutability": "payable",
|
|
1025
1038
|
"type": "function"
|
|
1026
1039
|
},
|
|
1027
1040
|
{
|
|
1028
1041
|
"inputs": [
|
|
1029
1042
|
{
|
|
1030
|
-
"internalType": "
|
|
1031
|
-
"name": "
|
|
1032
|
-
"type": "
|
|
1033
|
-
}
|
|
1043
|
+
"internalType": "address",
|
|
1044
|
+
"name": "newOwner",
|
|
1045
|
+
"type": "address"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"name": "transferOwnership",
|
|
1049
|
+
"outputs": [],
|
|
1050
|
+
"stateMutability": "nonpayable",
|
|
1051
|
+
"type": "function"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"inputs": [],
|
|
1055
|
+
"name": "vat",
|
|
1056
|
+
"outputs": [
|
|
1034
1057
|
{
|
|
1035
|
-
"internalType": "
|
|
1036
|
-
"name": "
|
|
1037
|
-
"type": "
|
|
1038
|
-
}
|
|
1058
|
+
"internalType": "contract VatLike",
|
|
1059
|
+
"name": "",
|
|
1060
|
+
"type": "address"
|
|
1061
|
+
}
|
|
1062
|
+
],
|
|
1063
|
+
"stateMutability": "view",
|
|
1064
|
+
"type": "function"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"inputs": [
|
|
1039
1068
|
{
|
|
1040
1069
|
"internalType": "uint256",
|
|
1041
|
-
"name": "
|
|
1070
|
+
"name": "x",
|
|
1042
1071
|
"type": "uint256"
|
|
1043
1072
|
},
|
|
1044
|
-
{
|
|
1045
|
-
"internalType": "address[]",
|
|
1046
|
-
"name": "path",
|
|
1047
|
-
"type": "address[]"
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"internalType": "address",
|
|
1051
|
-
"name": "to",
|
|
1052
|
-
"type": "address"
|
|
1053
|
-
},
|
|
1054
1073
|
{
|
|
1055
1074
|
"internalType": "uint256",
|
|
1056
|
-
"name": "
|
|
1075
|
+
"name": "y",
|
|
1057
1076
|
"type": "uint256"
|
|
1058
1077
|
}
|
|
1059
1078
|
],
|
|
1060
|
-
"name": "
|
|
1079
|
+
"name": "wdiv",
|
|
1061
1080
|
"outputs": [
|
|
1062
1081
|
{
|
|
1063
|
-
"internalType": "uint256
|
|
1064
|
-
"name": "
|
|
1065
|
-
"type": "uint256
|
|
1082
|
+
"internalType": "uint256",
|
|
1083
|
+
"name": "z",
|
|
1084
|
+
"type": "uint256"
|
|
1066
1085
|
}
|
|
1067
1086
|
],
|
|
1068
|
-
"stateMutability": "
|
|
1087
|
+
"stateMutability": "pure",
|
|
1069
1088
|
"type": "function"
|
|
1070
1089
|
},
|
|
1071
1090
|
{
|
|
1072
1091
|
"inputs": [
|
|
1073
1092
|
{
|
|
1074
|
-
"internalType": "
|
|
1075
|
-
"name": "",
|
|
1076
|
-
"type": "
|
|
1093
|
+
"internalType": "uint256",
|
|
1094
|
+
"name": "x",
|
|
1095
|
+
"type": "uint256"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"internalType": "uint256",
|
|
1099
|
+
"name": "y",
|
|
1100
|
+
"type": "uint256"
|
|
1077
1101
|
}
|
|
1078
1102
|
],
|
|
1079
|
-
"name": "
|
|
1103
|
+
"name": "wdivup",
|
|
1080
1104
|
"outputs": [
|
|
1081
1105
|
{
|
|
1082
|
-
"internalType": "
|
|
1083
|
-
"name": "",
|
|
1084
|
-
"type": "
|
|
1106
|
+
"internalType": "uint256",
|
|
1107
|
+
"name": "z",
|
|
1108
|
+
"type": "uint256"
|
|
1085
1109
|
}
|
|
1086
1110
|
],
|
|
1087
|
-
"stateMutability": "
|
|
1111
|
+
"stateMutability": "pure",
|
|
1088
1112
|
"type": "function"
|
|
1089
1113
|
},
|
|
1090
1114
|
{
|
|
1091
1115
|
"inputs": [
|
|
1092
1116
|
{
|
|
1093
|
-
"internalType": "
|
|
1094
|
-
"name": "
|
|
1095
|
-
"type": "
|
|
1117
|
+
"internalType": "uint256",
|
|
1118
|
+
"name": "numShares",
|
|
1119
|
+
"type": "uint256"
|
|
1096
1120
|
}
|
|
1097
1121
|
],
|
|
1098
|
-
"name": "
|
|
1122
|
+
"name": "withdraw",
|
|
1099
1123
|
"outputs": [],
|
|
1100
1124
|
"stateMutability": "nonpayable",
|
|
1101
1125
|
"type": "function"
|
|
1102
1126
|
},
|
|
1103
1127
|
{
|
|
1104
|
-
"inputs": [
|
|
1105
|
-
|
|
1128
|
+
"inputs": [
|
|
1129
|
+
{
|
|
1130
|
+
"internalType": "uint256",
|
|
1131
|
+
"name": "x",
|
|
1132
|
+
"type": "uint256"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"internalType": "uint256",
|
|
1136
|
+
"name": "y",
|
|
1137
|
+
"type": "uint256"
|
|
1138
|
+
}
|
|
1139
|
+
],
|
|
1140
|
+
"name": "wmul",
|
|
1106
1141
|
"outputs": [
|
|
1107
1142
|
{
|
|
1108
|
-
"internalType": "
|
|
1109
|
-
"name": "",
|
|
1110
|
-
"type": "
|
|
1143
|
+
"internalType": "uint256",
|
|
1144
|
+
"name": "z",
|
|
1145
|
+
"type": "uint256"
|
|
1111
1146
|
}
|
|
1112
1147
|
],
|
|
1113
|
-
"stateMutability": "
|
|
1148
|
+
"stateMutability": "pure",
|
|
1114
1149
|
"type": "function"
|
|
1115
1150
|
},
|
|
1116
1151
|
{
|