@venusprotocol/venus-protocol 5.1.0-dev.2 → 5.1.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
  2. package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
  3. package/artifacts/@openzeppelin/contracts/access/Ownable2Step.sol/Ownable2Step.dbg.json +1 -1
  4. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  5. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol/SafeERC20.dbg.json +1 -1
  7. package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
  8. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  9. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
  10. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
  14. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol/IERC20MetadataUpgradeable.dbg.json +1 -1
  15. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
  16. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
  17. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  18. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  19. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
  20. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
  21. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
  22. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
  23. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
  24. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
  25. package/artifacts/build-info/bef6b5a62efc5de19d5510cf7f208c2e.json +1 -0
  26. package/artifacts/contracts/Admin/VBNBAdmin.sol/VBNBAdmin.dbg.json +1 -1
  27. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/IProtocolShareReserve.dbg.json +1 -1
  28. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/IWBNB.dbg.json +1 -1
  29. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/VBNBAdminStorage.dbg.json +1 -1
  30. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/VTokenInterface.dbg.json +1 -1
  31. package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/IComptroller.dbg.json +1 -1
  32. package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/IPriceOracle.dbg.json +1 -1
  33. package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/IVToken.dbg.json +1 -1
  34. package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/SwapDebtDelegate.dbg.json +1 -1
  35. package/artifacts/contracts/Liquidator/BUSDLiquidator.sol/BUSDLiquidator.dbg.json +4 -0
  36. package/artifacts/contracts/Liquidator/BUSDLiquidator.sol/BUSDLiquidator.json +324 -0
  37. package/artifacts/contracts/Liquidator/Interfaces.sol/IComptroller.dbg.json +1 -1
  38. package/artifacts/contracts/Liquidator/Interfaces.sol/IComptroller.json +36 -0
  39. package/artifacts/contracts/Liquidator/Interfaces.sol/ILiquidator.dbg.json +4 -0
  40. package/artifacts/contracts/Liquidator/Interfaces.sol/ILiquidator.json +127 -0
  41. package/artifacts/contracts/Liquidator/Interfaces.sol/IVAIController.dbg.json +1 -1
  42. package/artifacts/contracts/Liquidator/Interfaces.sol/IVBNB.dbg.json +1 -1
  43. package/artifacts/contracts/Liquidator/Interfaces.sol/IVBNB.json +20 -1
  44. package/artifacts/contracts/Liquidator/Interfaces.sol/IVBep20.dbg.json +1 -1
  45. package/artifacts/contracts/Liquidator/Interfaces.sol/IVBep20.json +20 -1
  46. package/artifacts/contracts/Liquidator/Interfaces.sol/IVToken.dbg.json +1 -1
  47. package/artifacts/contracts/Liquidator/Interfaces.sol/IVToken.json +20 -1
  48. package/artifacts/contracts/Liquidator/Liquidator.sol/Liquidator.dbg.json +1 -1
  49. package/artifacts/contracts/Liquidator/Liquidator.sol/Liquidator.json +2 -2
  50. package/artifacts/contracts/PegStability/IVAI.sol/IVAI.dbg.json +1 -1
  51. package/artifacts/contracts/PegStability/PegStability.sol/PegStability.dbg.json +1 -1
  52. package/artifacts/contracts/Swap/IRouterHelper.sol/IRouterHelper.dbg.json +1 -1
  53. package/artifacts/contracts/Swap/RouterHelper.sol/RouterHelper.dbg.json +1 -1
  54. package/artifacts/contracts/Swap/SwapRouter.sol/SwapRouter.dbg.json +1 -1
  55. package/artifacts/contracts/Swap/interfaces/IPancakePair.sol/IPancakePair.dbg.json +1 -1
  56. package/artifacts/contracts/Swap/interfaces/IPancakeSwapV2Factory.sol/IPancakeSwapV2Factory.dbg.json +1 -1
  57. package/artifacts/contracts/Swap/interfaces/IPancakeSwapV2Router.sol/IPancakeSwapV2Router.dbg.json +1 -1
  58. package/artifacts/contracts/Swap/interfaces/IVBNB.sol/IVBNB.dbg.json +1 -1
  59. package/artifacts/contracts/Swap/interfaces/IVtoken.sol/IVToken.dbg.json +1 -1
  60. package/artifacts/contracts/Swap/interfaces/IWBNB.sol/IWBNB.dbg.json +1 -1
  61. package/artifacts/contracts/Swap/interfaces/InterfaceComptroller.sol/InterfaceComptroller.dbg.json +1 -1
  62. package/artifacts/contracts/Swap/lib/PancakeLibrary.sol/PancakeLibrary.dbg.json +1 -1
  63. package/artifacts/contracts/Swap/lib/TransferHelper.sol/TransferHelper.dbg.json +1 -1
  64. package/artifacts/contracts/test/LiquidatorHarness.sol/LiquidatorHarness.dbg.json +1 -1
  65. package/artifacts/contracts/test/LiquidatorHarness.sol/LiquidatorHarness.json +2 -2
  66. package/contracts/Liquidator/BUSDLiquidator.sol +184 -0
  67. package/contracts/Liquidator/Interfaces.sol +43 -1
  68. package/contracts/Liquidator/Liquidator.sol +3 -11
  69. package/contracts/Liquidator/approveOrRevert.sol +28 -0
  70. package/contracts/Liquidator/constants.sol +5 -0
  71. package/contracts/Liquidator/zeroAddress.sol +11 -0
  72. package/dist/typechain/contracts/Liquidator/BUSDLiquidator.d.ts +264 -0
  73. package/dist/typechain/contracts/Liquidator/BUSDLiquidator.js +3 -0
  74. package/dist/typechain/contracts/Liquidator/Interfaces.sol/IComptroller.d.ts +31 -3
  75. package/dist/typechain/contracts/Liquidator/Interfaces.sol/ILiquidator.d.ts +143 -0
  76. package/dist/typechain/contracts/Liquidator/Interfaces.sol/ILiquidator.js +3 -0
  77. package/dist/typechain/contracts/Liquidator/Interfaces.sol/IVBNB.d.ts +22 -6
  78. package/dist/typechain/contracts/Liquidator/Interfaces.sol/IVBep20.d.ts +22 -6
  79. package/dist/typechain/contracts/Liquidator/Interfaces.sol/IVToken.d.ts +22 -6
  80. package/dist/typechain/contracts/Liquidator/Interfaces.sol/index.d.ts +1 -0
  81. package/dist/typechain/contracts/Liquidator/index.d.ts +1 -0
  82. package/dist/typechain/factories/contracts/Liquidator/BUSDLiquidator__factory.d.ts +264 -0
  83. package/dist/typechain/factories/contracts/Liquidator/BUSDLiquidator__factory.js +353 -0
  84. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IComptroller__factory.d.ts +28 -0
  85. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IComptroller__factory.js +36 -0
  86. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/ILiquidator__factory.d.ts +98 -0
  87. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/ILiquidator__factory.js +133 -0
  88. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IVBNB__factory.d.ts +15 -1
  89. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IVBNB__factory.js +20 -1
  90. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IVBep20__factory.d.ts +15 -1
  91. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IVBep20__factory.js +20 -1
  92. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IVToken__factory.d.ts +15 -1
  93. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/IVToken__factory.js +20 -1
  94. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/index.d.ts +1 -0
  95. package/dist/typechain/factories/contracts/Liquidator/Interfaces.sol/index.js +3 -1
  96. package/dist/typechain/factories/contracts/Liquidator/Liquidator__factory.d.ts +1 -1
  97. package/dist/typechain/factories/contracts/Liquidator/Liquidator__factory.js +1 -1
  98. package/dist/typechain/factories/contracts/Liquidator/index.d.ts +1 -0
  99. package/dist/typechain/factories/contracts/Liquidator/index.js +3 -1
  100. package/dist/typechain/factories/contracts/test/LiquidatorHarness__factory.d.ts +1 -1
  101. package/dist/typechain/factories/contracts/test/LiquidatorHarness__factory.js +1 -1
  102. package/dist/typechain/index.d.ts +4 -0
  103. package/dist/typechain/index.js +8 -4
  104. package/package.json +1 -1
  105. package/artifacts/build-info/6dd0842f1ff5cc6ec93b0e1b7e8d3053.json +0 -1
@@ -3,6 +3,24 @@ import type { Provider } from "@ethersproject/providers";
3
3
  import { Signer } from "ethers";
4
4
  export declare class IComptroller__factory {
5
5
  static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "address[]";
8
+ readonly name: "markets_";
9
+ readonly type: "address[]";
10
+ }, {
11
+ readonly internalType: "enum IComptroller.Action[]";
12
+ readonly name: "actions_";
13
+ readonly type: "uint8[]";
14
+ }, {
15
+ readonly internalType: "bool";
16
+ readonly name: "paused_";
17
+ readonly type: "bool";
18
+ }];
19
+ readonly name: "_setActionsPaused";
20
+ readonly outputs: readonly [];
21
+ readonly stateMutability: "nonpayable";
22
+ readonly type: "function";
23
+ }, {
6
24
  readonly inputs: readonly [];
7
25
  readonly name: "liquidationIncentiveMantissa";
8
26
  readonly outputs: readonly [{
@@ -12,6 +30,16 @@ export declare class IComptroller__factory {
12
30
  }];
13
31
  readonly stateMutability: "view";
14
32
  readonly type: "function";
33
+ }, {
34
+ readonly inputs: readonly [];
35
+ readonly name: "liquidatorContract";
36
+ readonly outputs: readonly [{
37
+ readonly internalType: "address";
38
+ readonly name: "";
39
+ readonly type: "address";
40
+ }];
41
+ readonly stateMutability: "view";
42
+ readonly type: "function";
15
43
  }, {
16
44
  readonly inputs: readonly [];
17
45
  readonly name: "vaiController";
@@ -4,6 +4,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.IComptroller__factory = void 0;
5
5
  const ethers_1 = require("ethers");
6
6
  const _abi = [
7
+ {
8
+ inputs: [
9
+ {
10
+ internalType: "address[]",
11
+ name: "markets_",
12
+ type: "address[]",
13
+ },
14
+ {
15
+ internalType: "enum IComptroller.Action[]",
16
+ name: "actions_",
17
+ type: "uint8[]",
18
+ },
19
+ {
20
+ internalType: "bool",
21
+ name: "paused_",
22
+ type: "bool",
23
+ },
24
+ ],
25
+ name: "_setActionsPaused",
26
+ outputs: [],
27
+ stateMutability: "nonpayable",
28
+ type: "function",
29
+ },
7
30
  {
8
31
  inputs: [],
9
32
  name: "liquidationIncentiveMantissa",
@@ -17,6 +40,19 @@ const _abi = [
17
40
  stateMutability: "view",
18
41
  type: "function",
19
42
  },
43
+ {
44
+ inputs: [],
45
+ name: "liquidatorContract",
46
+ outputs: [
47
+ {
48
+ internalType: "address",
49
+ name: "",
50
+ type: "address",
51
+ },
52
+ ],
53
+ stateMutability: "view",
54
+ type: "function",
55
+ },
20
56
  {
21
57
  inputs: [],
22
58
  name: "vaiController",
@@ -0,0 +1,98 @@
1
+ import type { ILiquidator, ILiquidatorInterface } from "../../../../contracts/Liquidator/Interfaces.sol/ILiquidator";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import { Signer } from "ethers";
4
+ export declare class ILiquidator__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "address";
8
+ readonly name: "borrower";
9
+ readonly type: "address";
10
+ }, {
11
+ readonly internalType: "address";
12
+ readonly name: "liquidator";
13
+ readonly type: "address";
14
+ }];
15
+ readonly name: "addToAllowlist";
16
+ readonly outputs: readonly [];
17
+ readonly stateMutability: "nonpayable";
18
+ readonly type: "function";
19
+ }, {
20
+ readonly inputs: readonly [{
21
+ readonly internalType: "address";
22
+ readonly name: "vToken";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly internalType: "address";
26
+ readonly name: "borrower";
27
+ readonly type: "address";
28
+ }, {
29
+ readonly internalType: "uint256";
30
+ readonly name: "repayAmount";
31
+ readonly type: "uint256";
32
+ }, {
33
+ readonly internalType: "contract IVToken";
34
+ readonly name: "vTokenCollateral";
35
+ readonly type: "address";
36
+ }];
37
+ readonly name: "liquidateBorrow";
38
+ readonly outputs: readonly [];
39
+ readonly stateMutability: "payable";
40
+ readonly type: "function";
41
+ }, {
42
+ readonly inputs: readonly [{
43
+ readonly internalType: "address";
44
+ readonly name: "borrower";
45
+ readonly type: "address";
46
+ }, {
47
+ readonly internalType: "address";
48
+ readonly name: "liquidator";
49
+ readonly type: "address";
50
+ }];
51
+ readonly name: "removeFromAllowlist";
52
+ readonly outputs: readonly [];
53
+ readonly stateMutability: "nonpayable";
54
+ readonly type: "function";
55
+ }, {
56
+ readonly inputs: readonly [{
57
+ readonly internalType: "address";
58
+ readonly name: "borrower";
59
+ readonly type: "address";
60
+ }];
61
+ readonly name: "restrictLiquidation";
62
+ readonly outputs: readonly [];
63
+ readonly stateMutability: "nonpayable";
64
+ readonly type: "function";
65
+ }, {
66
+ readonly inputs: readonly [{
67
+ readonly internalType: "uint256";
68
+ readonly name: "newTreasuryPercentMantissa";
69
+ readonly type: "uint256";
70
+ }];
71
+ readonly name: "setTreasuryPercent";
72
+ readonly outputs: readonly [];
73
+ readonly stateMutability: "nonpayable";
74
+ readonly type: "function";
75
+ }, {
76
+ readonly inputs: readonly [];
77
+ readonly name: "treasuryPercentMantissa";
78
+ readonly outputs: readonly [{
79
+ readonly internalType: "uint256";
80
+ readonly name: "";
81
+ readonly type: "uint256";
82
+ }];
83
+ readonly stateMutability: "view";
84
+ readonly type: "function";
85
+ }, {
86
+ readonly inputs: readonly [{
87
+ readonly internalType: "address";
88
+ readonly name: "borrower";
89
+ readonly type: "address";
90
+ }];
91
+ readonly name: "unrestrictLiquidation";
92
+ readonly outputs: readonly [];
93
+ readonly stateMutability: "nonpayable";
94
+ readonly type: "function";
95
+ }];
96
+ static createInterface(): ILiquidatorInterface;
97
+ static connect(address: string, signerOrProvider: Signer | Provider): ILiquidator;
98
+ }
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ILiquidator__factory = void 0;
5
+ const ethers_1 = require("ethers");
6
+ const _abi = [
7
+ {
8
+ inputs: [
9
+ {
10
+ internalType: "address",
11
+ name: "borrower",
12
+ type: "address",
13
+ },
14
+ {
15
+ internalType: "address",
16
+ name: "liquidator",
17
+ type: "address",
18
+ },
19
+ ],
20
+ name: "addToAllowlist",
21
+ outputs: [],
22
+ stateMutability: "nonpayable",
23
+ type: "function",
24
+ },
25
+ {
26
+ inputs: [
27
+ {
28
+ internalType: "address",
29
+ name: "vToken",
30
+ type: "address",
31
+ },
32
+ {
33
+ internalType: "address",
34
+ name: "borrower",
35
+ type: "address",
36
+ },
37
+ {
38
+ internalType: "uint256",
39
+ name: "repayAmount",
40
+ type: "uint256",
41
+ },
42
+ {
43
+ internalType: "contract IVToken",
44
+ name: "vTokenCollateral",
45
+ type: "address",
46
+ },
47
+ ],
48
+ name: "liquidateBorrow",
49
+ outputs: [],
50
+ stateMutability: "payable",
51
+ type: "function",
52
+ },
53
+ {
54
+ inputs: [
55
+ {
56
+ internalType: "address",
57
+ name: "borrower",
58
+ type: "address",
59
+ },
60
+ {
61
+ internalType: "address",
62
+ name: "liquidator",
63
+ type: "address",
64
+ },
65
+ ],
66
+ name: "removeFromAllowlist",
67
+ outputs: [],
68
+ stateMutability: "nonpayable",
69
+ type: "function",
70
+ },
71
+ {
72
+ inputs: [
73
+ {
74
+ internalType: "address",
75
+ name: "borrower",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "restrictLiquidation",
80
+ outputs: [],
81
+ stateMutability: "nonpayable",
82
+ type: "function",
83
+ },
84
+ {
85
+ inputs: [
86
+ {
87
+ internalType: "uint256",
88
+ name: "newTreasuryPercentMantissa",
89
+ type: "uint256",
90
+ },
91
+ ],
92
+ name: "setTreasuryPercent",
93
+ outputs: [],
94
+ stateMutability: "nonpayable",
95
+ type: "function",
96
+ },
97
+ {
98
+ inputs: [],
99
+ name: "treasuryPercentMantissa",
100
+ outputs: [
101
+ {
102
+ internalType: "uint256",
103
+ name: "",
104
+ type: "uint256",
105
+ },
106
+ ],
107
+ stateMutability: "view",
108
+ type: "function",
109
+ },
110
+ {
111
+ inputs: [
112
+ {
113
+ internalType: "address",
114
+ name: "borrower",
115
+ type: "address",
116
+ },
117
+ ],
118
+ name: "unrestrictLiquidation",
119
+ outputs: [],
120
+ stateMutability: "nonpayable",
121
+ type: "function",
122
+ },
123
+ ];
124
+ class ILiquidator__factory {
125
+ static createInterface() {
126
+ return new ethers_1.utils.Interface(_abi);
127
+ }
128
+ static connect(address, signerOrProvider) {
129
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
130
+ }
131
+ }
132
+ exports.ILiquidator__factory = ILiquidator__factory;
133
+ ILiquidator__factory.abi = _abi;
@@ -92,6 +92,20 @@ export declare class IVBNB__factory {
92
92
  }];
93
93
  readonly stateMutability: "view";
94
94
  readonly type: "function";
95
+ }, {
96
+ readonly inputs: readonly [{
97
+ readonly internalType: "address";
98
+ readonly name: "borrower";
99
+ readonly type: "address";
100
+ }];
101
+ readonly name: "borrowBalanceCurrent";
102
+ readonly outputs: readonly [{
103
+ readonly internalType: "uint256";
104
+ readonly name: "";
105
+ readonly type: "uint256";
106
+ }];
107
+ readonly stateMutability: "nonpayable";
108
+ readonly type: "function";
95
109
  }, {
96
110
  readonly inputs: readonly [{
97
111
  readonly internalType: "address";
@@ -119,7 +133,7 @@ export declare class IVBNB__factory {
119
133
  }, {
120
134
  readonly inputs: readonly [{
121
135
  readonly internalType: "address";
122
- readonly name: "to";
136
+ readonly name: "dst";
123
137
  readonly type: "address";
124
138
  }, {
125
139
  readonly internalType: "uint256";
@@ -121,6 +121,25 @@ const _abi = [
121
121
  stateMutability: "view",
122
122
  type: "function",
123
123
  },
124
+ {
125
+ inputs: [
126
+ {
127
+ internalType: "address",
128
+ name: "borrower",
129
+ type: "address",
130
+ },
131
+ ],
132
+ name: "borrowBalanceCurrent",
133
+ outputs: [
134
+ {
135
+ internalType: "uint256",
136
+ name: "",
137
+ type: "uint256",
138
+ },
139
+ ],
140
+ stateMutability: "nonpayable",
141
+ type: "function",
142
+ },
124
143
  {
125
144
  inputs: [
126
145
  {
@@ -156,7 +175,7 @@ const _abi = [
156
175
  inputs: [
157
176
  {
158
177
  internalType: "address",
159
- name: "to",
178
+ name: "dst",
160
179
  type: "address",
161
180
  },
162
181
  {
@@ -92,6 +92,20 @@ export declare class IVBep20__factory {
92
92
  }];
93
93
  readonly stateMutability: "view";
94
94
  readonly type: "function";
95
+ }, {
96
+ readonly inputs: readonly [{
97
+ readonly internalType: "address";
98
+ readonly name: "borrower";
99
+ readonly type: "address";
100
+ }];
101
+ readonly name: "borrowBalanceCurrent";
102
+ readonly outputs: readonly [{
103
+ readonly internalType: "uint256";
104
+ readonly name: "";
105
+ readonly type: "uint256";
106
+ }];
107
+ readonly stateMutability: "nonpayable";
108
+ readonly type: "function";
95
109
  }, {
96
110
  readonly inputs: readonly [{
97
111
  readonly internalType: "address";
@@ -127,7 +141,7 @@ export declare class IVBep20__factory {
127
141
  }, {
128
142
  readonly inputs: readonly [{
129
143
  readonly internalType: "address";
130
- readonly name: "to";
144
+ readonly name: "dst";
131
145
  readonly type: "address";
132
146
  }, {
133
147
  readonly internalType: "uint256";
@@ -121,6 +121,25 @@ const _abi = [
121
121
  stateMutability: "view",
122
122
  type: "function",
123
123
  },
124
+ {
125
+ inputs: [
126
+ {
127
+ internalType: "address",
128
+ name: "borrower",
129
+ type: "address",
130
+ },
131
+ ],
132
+ name: "borrowBalanceCurrent",
133
+ outputs: [
134
+ {
135
+ internalType: "uint256",
136
+ name: "",
137
+ type: "uint256",
138
+ },
139
+ ],
140
+ stateMutability: "nonpayable",
141
+ type: "function",
142
+ },
124
143
  {
125
144
  inputs: [
126
145
  {
@@ -167,7 +186,7 @@ const _abi = [
167
186
  inputs: [
168
187
  {
169
188
  internalType: "address",
170
- name: "to",
189
+ name: "dst",
171
190
  type: "address",
172
191
  },
173
192
  {
@@ -92,6 +92,20 @@ export declare class IVToken__factory {
92
92
  }];
93
93
  readonly stateMutability: "view";
94
94
  readonly type: "function";
95
+ }, {
96
+ readonly inputs: readonly [{
97
+ readonly internalType: "address";
98
+ readonly name: "borrower";
99
+ readonly type: "address";
100
+ }];
101
+ readonly name: "borrowBalanceCurrent";
102
+ readonly outputs: readonly [{
103
+ readonly internalType: "uint256";
104
+ readonly name: "";
105
+ readonly type: "uint256";
106
+ }];
107
+ readonly stateMutability: "nonpayable";
108
+ readonly type: "function";
95
109
  }, {
96
110
  readonly inputs: readonly [];
97
111
  readonly name: "totalSupply";
@@ -105,7 +119,7 @@ export declare class IVToken__factory {
105
119
  }, {
106
120
  readonly inputs: readonly [{
107
121
  readonly internalType: "address";
108
- readonly name: "to";
122
+ readonly name: "dst";
109
123
  readonly type: "address";
110
124
  }, {
111
125
  readonly internalType: "uint256";
@@ -121,6 +121,25 @@ const _abi = [
121
121
  stateMutability: "view",
122
122
  type: "function",
123
123
  },
124
+ {
125
+ inputs: [
126
+ {
127
+ internalType: "address",
128
+ name: "borrower",
129
+ type: "address",
130
+ },
131
+ ],
132
+ name: "borrowBalanceCurrent",
133
+ outputs: [
134
+ {
135
+ internalType: "uint256",
136
+ name: "",
137
+ type: "uint256",
138
+ },
139
+ ],
140
+ stateMutability: "nonpayable",
141
+ type: "function",
142
+ },
124
143
  {
125
144
  inputs: [],
126
145
  name: "totalSupply",
@@ -138,7 +157,7 @@ const _abi = [
138
157
  inputs: [
139
158
  {
140
159
  internalType: "address",
141
- name: "to",
160
+ name: "dst",
142
161
  type: "address",
143
162
  },
144
163
  {
@@ -1,4 +1,5 @@
1
1
  export { IComptroller__factory } from "./IComptroller__factory";
2
+ export { ILiquidator__factory } from "./ILiquidator__factory";
2
3
  export { IVAIController__factory } from "./IVAIController__factory";
3
4
  export { IVBNB__factory } from "./IVBNB__factory";
4
5
  export { IVBep20__factory } from "./IVBep20__factory";
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IVToken__factory = exports.IVBep20__factory = exports.IVBNB__factory = exports.IVAIController__factory = exports.IComptroller__factory = void 0;
3
+ exports.IVToken__factory = exports.IVBep20__factory = exports.IVBNB__factory = exports.IVAIController__factory = exports.ILiquidator__factory = exports.IComptroller__factory = void 0;
4
4
  /* Autogenerated file. Do not edit manually. */
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
7
7
  var IComptroller__factory_1 = require("./IComptroller__factory");
8
8
  Object.defineProperty(exports, "IComptroller__factory", { enumerable: true, get: function () { return IComptroller__factory_1.IComptroller__factory; } });
9
+ var ILiquidator__factory_1 = require("./ILiquidator__factory");
10
+ Object.defineProperty(exports, "ILiquidator__factory", { enumerable: true, get: function () { return ILiquidator__factory_1.ILiquidator__factory; } });
9
11
  var IVAIController__factory_1 = require("./IVAIController__factory");
10
12
  Object.defineProperty(exports, "IVAIController__factory", { enumerable: true, get: function () { return IVAIController__factory_1.IVAIController__factory; } });
11
13
  var IVBNB__factory_1 = require("./IVBNB__factory");
@@ -13,7 +13,7 @@ export declare class Liquidator__factory extends ContractFactory {
13
13
  }): TransactionRequest;
14
14
  attach(address: string): Liquidator;
15
15
  connect(signer: Signer): Liquidator__factory;
16
- static readonly bytecode = "0x6101006040523480156200001257600080fd5b5060405162001f5338038062001f538339810160408190526200003591620001f5565b6200004082620000f3565b6200004b83620000f3565b6200005681620000f3565b6001600160a01b03808316608052831660a081905260408051639254f5e560e01b81529051639254f5e5916004808201926020929091908290030181865afa158015620000a7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000cd919062000249565b6001600160a01b0390811660c052811660e052620000ea6200011e565b50505062000270565b6001600160a01b0381166200011b5760405163f5bf603960e01b815260040160405180910390fd5b50565b600054610100900460ff16156200018b5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620001dd576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6001600160a01b03811681146200011b57600080fd5b6000806000606084860312156200020b57600080fd5b83516200021881620001df565b60208501519093506200022b81620001df565b60408501519092506200023e81620001df565b809150509250925092565b6000602082840312156200025c57600080fd5b81516200026981620001df565b9392505050565b60805160a05160c05160e051611c5c620002f76000396000818161023d01528181611100015261119d015260008181610350015281816106f701528181610d5d01528181610e0301528181610e380152610e8e0152600081816102090152818161120501526115b50152600081816101bd015281816105e3015261066a0152611c5c6000f3fe6080604052600436106101145760003560e01c80637debe3fe116100a05780639254f5e5116100645780639254f5e51461033e578063b26461de14610372578063e30c3978146103a2578063f2fde38b146103c0578063fe4b84df146103e057600080fd5b80637debe3fe1461029c5780638765adcb146102bc57806389a2bc25146102dc5780638da5cb5b146102fc5780638e3525fc1461031a57600080fd5b80635fe3b567116100e75780635fe3b567146101f757806361d027b31461022b57806364fd70781461025f578063715018a61461027257806379ba50971461028757600080fd5b806311ec4b7a1461011957806344b3716a1461013b57806347a6a9711461018b5780635ba3792d146101ab575b600080fd5b34801561012557600080fd5b506101396101343660046119ad565b610400565b005b34801561014757600080fd5b506101766101563660046119d1565b60ca60209081526000928352604080842090915290825290205460ff1681565b60405190151581526020015b60405180910390f35b34801561019757600080fd5b506101396101a63660046119d1565b61049e565b3480156101b757600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610182565b34801561020357600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b34801561023757600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b61013961026d366004611a0a565b610559565b34801561027e57600080fd5b50610139610848565b34801561029357600080fd5b5061013961085c565b3480156102a857600080fd5b506101396102b73660046119d1565b6108d6565b3480156102c857600080fd5b506101396102d73660046119ad565b610995565b3480156102e857600080fd5b506101396102f7366004611a5d565b610a2a565b34801561030857600080fd5b506033546001600160a01b03166101df565b34801561032657600080fd5b5061033060c95481565b604051908152602001610182565b34801561034a57600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b34801561037e57600080fd5b5061017661038d3660046119ad565b60cb6020526000908152604090205460ff1681565b3480156103ae57600080fd5b506065546001600160a01b03166101df565b3480156103cc57600080fd5b506101396103db3660046119ad565b610a7c565b3480156103ec57600080fd5b506101396103fb366004611a5d565b610aed565b610408610c00565b6001600160a01b038116600090815260cb602052604090205460ff16156104525760405163404fe9fb60e11b81526001600160a01b03821660048201526024015b60405180910390fd5b6001600160a01b038116600081815260cb6020526040808220805460ff19166001179055517f614c47c82976e8f145409efb6366fe2cefa323f389ed9354649262e38dbb35899190a250565b6104a6610c00565b6001600160a01b03808316600090815260ca602090815260408083209385168352929052205460ff166104ff5760405163435aad4360e01b81526001600160a01b03808416600483015282166024820152604401610449565b6001600160a01b03808316600081815260ca6020908152604080832094861680845294909152808220805460ff19169055517f6b0d38eafddac0d37e0aff8f4bbd5f3a3cfe124b8eabea27558bffc931ac05b59190a35050565b610561610c5a565b61056a83610cb3565b6105748333610cda565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105df9190611a76565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316036106cd573483146106435760405163dd97100160e01b815260048101849052346024820152604401610449565b604051635572051560e11b81526001600160a01b03858116600483015283811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063aae40a2a9034906044016000604051808303818588803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b505050505061074a565b34156106f55760405163dd97100160e01b815260006004820152346024820152604401610449565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b03160361073e57610739848484610d59565b61074a565b61074a85858585610f0f565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b59190611a76565b905060006107c38383611aa5565b90506000806107d2868461103b565b604080518a81526001600160a01b038d811660208301529181018490526060810183905292945090925080881691908a169033907fdd091524d794aecdb5235b2d816620c2598790835e0f3849808504c2dcb4f1a99060800160405180910390a450505050506108426001609755565b50505050565b610850610c00565b61085a60006111df565b565b60655433906001600160a01b031681146108ca5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608401610449565b6108d3816111df565b50565b6108de610c00565b6001600160a01b03808316600090815260ca602090815260408083209385168352929052205460ff16156109385760405163071df39160e01b81526001600160a01b03808416600483015282166024820152604401610449565b6001600160a01b03808316600081815260ca6020908152604080832094861680845294909152808220805460ff19166001179055517ffe40417b78788808c927141f806ef5082e7bba0f7790f2e85b811621a91094339190a35050565b61099d610c00565b6001600160a01b038116600090815260cb602052604090205460ff166109e157604051633bf9d98960e11b81526001600160a01b0382166004820152602401610449565b6001600160a01b038116600081815260cb6020526040808220805460ff19169055517fe1f03de94d16c262d2f0e89a1c42ede8899d540ac992cf53495a5cf29c2896af9190a250565b610a32610c00565b610a3b816111f8565b60c95460408051918252602082018390527f0e9a1641744b21c49e4183ab9ce941d420e05a05a446c71875fb07814f362c1a910160405180910390a160c955565b610a84610c00565b606580546001600160a01b0383166001600160a01b03199091168117909155610ab56033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600054610100900460ff1615808015610b0d5750600054600160ff909116105b80610b275750303b158015610b27575060005460ff166001145b610b8a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610449565b6000805460ff191660011790558015610bad576000805461ff0019166101001790555b610bb6826112bc565b8015610bfc576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b6033546001600160a01b0316331461085a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610449565b600260975403610cac5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610449565b6002609755565b6001600160a01b0381166108d35760405163f5bf603960e01b815260040160405180910390fd5b6001600160a01b038216600090815260cb602052604090205460ff168015610d2857506001600160a01b03808316600090815260ca602090815260408083209385168352929052205460ff16155b15610bfc5760405163074c80eb60e51b81526001600160a01b03808416600483015282166024820152604401610449565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663cbeb2b286040518163ffffffff1660e01b8152600401602060405180830381865afa158015610db9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddd9190611abc565b9050610df46001600160a01b0382163330866112fc565b610e296001600160a01b0382167f00000000000000000000000000000000000000000000000000000000000000006000611367565b610e5d6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000085611367565b6040516311b3d5e760e01b81526001600160a01b0385811660048301526024820185905283811660448301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906311b3d5e79060640160408051808303816000875af1158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc9190611ad9565b509050610f0881611481565b5050505050565b6000846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f739190611abc565b90506000610f83823330876114a5565b9050610f9a6001600160a01b038316876000611367565b610fae6001600160a01b0383168783611367565b604051637af1e23160e11b81526001600160a01b038681166004830152602482018390528481166044830152611033919088169063f5e3c462906064016020604051808303816000875af115801561100a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102e9190611a76565b611481565b505050505050565b600080611047836115ae565b60405163a9059cbb60e01b81523360048201526024810182905291935091506001600160a01b0385169063a9059cbb906044016020604051808303816000875af1158015611099573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bd9190611afd565b6110e95760405163241165bb60e21b815230600482015233602482015260448101829052606401610449565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820184905285169063a9059cbb906044016020604051808303816000875af1158015611158573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117c9190611afd565b6111d15760405163241165bb60e21b81523060048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016602482015260448101839052606401610449565b9250929050565b6001609755565b606580546001600160a01b03191690556108d381611664565b6000670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634ada90af6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611261573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112859190611a76565b61128f9190611aa5565b905080821115610bfc57604051635659cb3b60e01b81526004810182905260248101839052604401610449565b600054610100900460ff166112e35760405162461bcd60e51b815260040161044990611b1f565b6112eb6116b6565b6112f36116e5565b6108d381611714565b6040516001600160a01b03808516602483015283166044820152606481018290526108429085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611749565b8015806113e15750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156113bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113df9190611a76565b155b61144c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610449565b6040516001600160a01b03831660248201526044810182905261147c90849063095ea7b360e01b90606401611330565b505050565b806114895750565b60405163125a96ab60e01b815260048101829052602401610449565b6040516370a0823160e01b81526001600160a01b03838116600483015260009182918716906370a0823190602401602060405180830381865afa1580156114f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115149190611a76565b905061152b6001600160a01b0387168686866112fc565b6040516370a0823160e01b81526001600160a01b0385811660048301528291908816906370a0823190602401602060405180830381865afa158015611574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115989190611a76565b6115a29190611aa5565b9150505b949350505050565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634ada90af6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116359190611a76565b90508060c954856116469190611b6a565b6116509190611b89565b925061165c8385611aa5565b915050915091565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166116dd5760405162461bcd60e51b815260040161044990611b1f565b61085a61181e565b600054610100900460ff1661170c5760405162461bcd60e51b815260040161044990611b1f565b61085a61184e565b600054610100900460ff1661173b5760405162461bcd60e51b815260040161044990611b1f565b611744816111f8565b60c955565b600061179e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118759092919063ffffffff16565b90508051600014806117bf5750808060200190518101906117bf9190611afd565b61147c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610449565b600054610100900460ff166118455760405162461bcd60e51b815260040161044990611b1f565b61085a336111df565b600054610100900460ff166111d85760405162461bcd60e51b815260040161044990611b1f565b60606115a6848460008585600080866001600160a01b0316858760405161189c9190611bd7565b60006040518083038185875af1925050503d80600081146118d9576040519150601f19603f3d011682016040523d82523d6000602084013e6118de565b606091505b50915091506118ef878383876118fa565b979650505050505050565b60608315611969578251600003611962576001600160a01b0385163b6119625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610449565b50816115a6565b6115a6838381511561197e5781518083602001fd5b8060405162461bcd60e51b81526004016104499190611bf3565b6001600160a01b03811681146108d357600080fd5b6000602082840312156119bf57600080fd5b81356119ca81611998565b9392505050565b600080604083850312156119e457600080fd5b82356119ef81611998565b915060208301356119ff81611998565b809150509250929050565b60008060008060808587031215611a2057600080fd5b8435611a2b81611998565b93506020850135611a3b81611998565b9250604085013591506060850135611a5281611998565b939692955090935050565b600060208284031215611a6f57600080fd5b5035919050565b600060208284031215611a8857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ab757611ab7611a8f565b500390565b600060208284031215611ace57600080fd5b81516119ca81611998565b60008060408385031215611aec57600080fd5b505080516020909101519092909150565b600060208284031215611b0f57600080fd5b815180151581146119ca57600080fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000816000190483118215151615611b8457611b84611a8f565b500290565b600082611ba657634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611bc6578181015183820152602001611bae565b838111156108425750506000910152565b60008251611be9818460208701611bab565b9190910192915050565b6020815260008251806020840152611c12816040850160208701611bab565b601f01601f1916919091016040019291505056fea264697066735822122056cfe25398a897538f5974ced28c3eefb5cecec1dda7df63164ae114e554446364736f6c634300080d0033";
16
+ static readonly bytecode = "0x6101006040523480156200001257600080fd5b5060405162001f5338038062001f538339810160408190526200003591620001f5565b6200004082620000f3565b6200004b83620000f3565b6200005681620000f3565b6001600160a01b03808316608052831660a081905260408051639254f5e560e01b81529051639254f5e5916004808201926020929091908290030181865afa158015620000a7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000cd919062000249565b6001600160a01b0390811660c052811660e052620000ea6200011e565b50505062000270565b6001600160a01b0381166200011b5760405163f5bf603960e01b815260040160405180910390fd5b50565b600054610100900460ff16156200018b5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620001dd576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6001600160a01b03811681146200011b57600080fd5b6000806000606084860312156200020b57600080fd5b83516200021881620001df565b60208501519093506200022b81620001df565b60408501519092506200023e81620001df565b809150509250925092565b6000602082840312156200025c57600080fd5b81516200026981620001df565b9392505050565b60805160a05160c05160e051611c5c620002f76000396000818161023d01528181611100015261119d015260008181610350015281816106f701528181610d5d01528181610e0301528181610e380152610e8e0152600081816102090152818161120501526115b50152600081816101bd015281816105e3015261066a0152611c5c6000f3fe6080604052600436106101145760003560e01c80637debe3fe116100a05780639254f5e5116100645780639254f5e51461033e578063b26461de14610372578063e30c3978146103a2578063f2fde38b146103c0578063fe4b84df146103e057600080fd5b80637debe3fe1461029c5780638765adcb146102bc57806389a2bc25146102dc5780638da5cb5b146102fc5780638e3525fc1461031a57600080fd5b80635fe3b567116100e75780635fe3b567146101f757806361d027b31461022b57806364fd70781461025f578063715018a61461027257806379ba50971461028757600080fd5b806311ec4b7a1461011957806344b3716a1461013b57806347a6a9711461018b5780635ba3792d146101ab575b600080fd5b34801561012557600080fd5b506101396101343660046119ad565b610400565b005b34801561014757600080fd5b506101766101563660046119d1565b60ca60209081526000928352604080842090915290825290205460ff1681565b60405190151581526020015b60405180910390f35b34801561019757600080fd5b506101396101a63660046119d1565b61049e565b3480156101b757600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610182565b34801561020357600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b34801561023757600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b61013961026d366004611a0a565b610559565b34801561027e57600080fd5b50610139610848565b34801561029357600080fd5b5061013961085c565b3480156102a857600080fd5b506101396102b73660046119d1565b6108d6565b3480156102c857600080fd5b506101396102d73660046119ad565b610995565b3480156102e857600080fd5b506101396102f7366004611a5d565b610a2a565b34801561030857600080fd5b506033546001600160a01b03166101df565b34801561032657600080fd5b5061033060c95481565b604051908152602001610182565b34801561034a57600080fd5b506101df7f000000000000000000000000000000000000000000000000000000000000000081565b34801561037e57600080fd5b5061017661038d3660046119ad565b60cb6020526000908152604090205460ff1681565b3480156103ae57600080fd5b506065546001600160a01b03166101df565b3480156103cc57600080fd5b506101396103db3660046119ad565b610a7c565b3480156103ec57600080fd5b506101396103fb366004611a5d565b610aed565b610408610c00565b6001600160a01b038116600090815260cb602052604090205460ff16156104525760405163404fe9fb60e11b81526001600160a01b03821660048201526024015b60405180910390fd5b6001600160a01b038116600081815260cb6020526040808220805460ff19166001179055517f614c47c82976e8f145409efb6366fe2cefa323f389ed9354649262e38dbb35899190a250565b6104a6610c00565b6001600160a01b03808316600090815260ca602090815260408083209385168352929052205460ff166104ff5760405163435aad4360e01b81526001600160a01b03808416600483015282166024820152604401610449565b6001600160a01b03808316600081815260ca6020908152604080832094861680845294909152808220805460ff19169055517f6b0d38eafddac0d37e0aff8f4bbd5f3a3cfe124b8eabea27558bffc931ac05b59190a35050565b610561610c5a565b61056a83610cb3565b6105748333610cda565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105df9190611a76565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316036106cd573483146106435760405163dd97100160e01b815260048101849052346024820152604401610449565b604051635572051560e11b81526001600160a01b03858116600483015283811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063aae40a2a9034906044016000604051808303818588803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b505050505061074a565b34156106f55760405163dd97100160e01b815260006004820152346024820152604401610449565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b03160361073e57610739848484610d59565b61074a565b61074a85858585610f0f565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b59190611a76565b905060006107c38383611aa5565b90506000806107d2868461103b565b604080518a81526001600160a01b038d811660208301529181018490526060810183905292945090925080881691908a169033907fdd091524d794aecdb5235b2d816620c2598790835e0f3849808504c2dcb4f1a99060800160405180910390a450505050506108426001609755565b50505050565b610850610c00565b61085a60006111df565b565b60655433906001600160a01b031681146108ca5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608401610449565b6108d3816111df565b50565b6108de610c00565b6001600160a01b03808316600090815260ca602090815260408083209385168352929052205460ff16156109385760405163071df39160e01b81526001600160a01b03808416600483015282166024820152604401610449565b6001600160a01b03808316600081815260ca6020908152604080832094861680845294909152808220805460ff19166001179055517ffe40417b78788808c927141f806ef5082e7bba0f7790f2e85b811621a91094339190a35050565b61099d610c00565b6001600160a01b038116600090815260cb602052604090205460ff166109e157604051633bf9d98960e11b81526001600160a01b0382166004820152602401610449565b6001600160a01b038116600081815260cb6020526040808220805460ff19169055517fe1f03de94d16c262d2f0e89a1c42ede8899d540ac992cf53495a5cf29c2896af9190a250565b610a32610c00565b610a3b816111f8565b60c95460408051918252602082018390527f0e9a1641744b21c49e4183ab9ce941d420e05a05a446c71875fb07814f362c1a910160405180910390a160c955565b610a84610c00565b606580546001600160a01b0383166001600160a01b03199091168117909155610ab56033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600054610100900460ff1615808015610b0d5750600054600160ff909116105b80610b275750303b158015610b27575060005460ff166001145b610b8a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610449565b6000805460ff191660011790558015610bad576000805461ff0019166101001790555b610bb6826112bc565b8015610bfc576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b6033546001600160a01b0316331461085a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610449565b600260975403610cac5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610449565b6002609755565b6001600160a01b0381166108d35760405163f5bf603960e01b815260040160405180910390fd5b6001600160a01b038216600090815260cb602052604090205460ff168015610d2857506001600160a01b03808316600090815260ca602090815260408083209385168352929052205460ff16155b15610bfc5760405163074c80eb60e51b81526001600160a01b03808416600483015282166024820152604401610449565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663cbeb2b286040518163ffffffff1660e01b8152600401602060405180830381865afa158015610db9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddd9190611abc565b9050610df46001600160a01b0382163330866112fc565b610e296001600160a01b0382167f00000000000000000000000000000000000000000000000000000000000000006000611367565b610e5d6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000085611367565b6040516311b3d5e760e01b81526001600160a01b0385811660048301526024820185905283811660448301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906311b3d5e79060640160408051808303816000875af1158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc9190611ad9565b509050610f0881611481565b5050505050565b6000846001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f739190611abc565b90506000610f83823330876114a5565b9050610f9a6001600160a01b038316876000611367565b610fae6001600160a01b0383168783611367565b604051637af1e23160e11b81526001600160a01b038681166004830152602482018390528481166044830152611033919088169063f5e3c462906064016020604051808303816000875af115801561100a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102e9190611a76565b611481565b505050505050565b600080611047836115ae565b60405163a9059cbb60e01b81523360048201526024810182905291935091506001600160a01b0385169063a9059cbb906044016020604051808303816000875af1158015611099573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bd9190611afd565b6110e95760405163241165bb60e21b815230600482015233602482015260448101829052606401610449565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820184905285169063a9059cbb906044016020604051808303816000875af1158015611158573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117c9190611afd565b6111d15760405163241165bb60e21b81523060048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016602482015260448101839052606401610449565b9250929050565b6001609755565b606580546001600160a01b03191690556108d381611664565b6000670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634ada90af6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611261573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112859190611a76565b61128f9190611aa5565b905080821115610bfc57604051635659cb3b60e01b81526004810182905260248101839052604401610449565b600054610100900460ff166112e35760405162461bcd60e51b815260040161044990611b1f565b6112eb6116b6565b6112f36116e5565b6108d381611714565b6040516001600160a01b03808516602483015283166044820152606481018290526108429085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611749565b8015806113e15750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156113bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113df9190611a76565b155b61144c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610449565b6040516001600160a01b03831660248201526044810182905261147c90849063095ea7b360e01b90606401611330565b505050565b806114895750565b60405163125a96ab60e01b815260048101829052602401610449565b6040516370a0823160e01b81526001600160a01b03838116600483015260009182918716906370a0823190602401602060405180830381865afa1580156114f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115149190611a76565b905061152b6001600160a01b0387168686866112fc565b6040516370a0823160e01b81526001600160a01b0385811660048301528291908816906370a0823190602401602060405180830381865afa158015611574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115989190611a76565b6115a29190611aa5565b9150505b949350505050565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634ada90af6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116359190611a76565b90508060c954856116469190611b6a565b6116509190611b89565b925061165c8385611aa5565b915050915091565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166116dd5760405162461bcd60e51b815260040161044990611b1f565b61085a61181e565b600054610100900460ff1661170c5760405162461bcd60e51b815260040161044990611b1f565b61085a61184e565b600054610100900460ff1661173b5760405162461bcd60e51b815260040161044990611b1f565b611744816111f8565b60c955565b600061179e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118759092919063ffffffff16565b90508051600014806117bf5750808060200190518101906117bf9190611afd565b61147c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610449565b600054610100900460ff166118455760405162461bcd60e51b815260040161044990611b1f565b61085a336111df565b600054610100900460ff166111d85760405162461bcd60e51b815260040161044990611b1f565b60606115a6848460008585600080866001600160a01b0316858760405161189c9190611bd7565b60006040518083038185875af1925050503d80600081146118d9576040519150601f19603f3d011682016040523d82523d6000602084013e6118de565b606091505b50915091506118ef878383876118fa565b979650505050505050565b60608315611969578251600003611962576001600160a01b0385163b6119625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610449565b50816115a6565b6115a6838381511561197e5781518083602001fd5b8060405162461bcd60e51b81526004016104499190611bf3565b6001600160a01b03811681146108d357600080fd5b6000602082840312156119bf57600080fd5b81356119ca81611998565b9392505050565b600080604083850312156119e457600080fd5b82356119ef81611998565b915060208301356119ff81611998565b809150509250929050565b60008060008060808587031215611a2057600080fd5b8435611a2b81611998565b93506020850135611a3b81611998565b9250604085013591506060850135611a5281611998565b939692955090935050565b600060208284031215611a6f57600080fd5b5035919050565b600060208284031215611a8857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ab757611ab7611a8f565b500390565b600060208284031215611ace57600080fd5b81516119ca81611998565b60008060408385031215611aec57600080fd5b505080516020909101519092909150565b600060208284031215611b0f57600080fd5b815180151581146119ca57600080fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000816000190483118215151615611b8457611b84611a8f565b500290565b600082611ba657634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611bc6578181015183820152602001611bae565b838111156108425750506000910152565b60008251611be9818460208701611bab565b9190910192915050565b6020815260008251806020840152611c12816040850160208701611bab565b601f01601f1916919091016040019291505056fea2646970667358221220775f7bfcaa60452bd136e9ea0d85cf2a0fcb6b45a45bd0cacc9763f1b7726e5e64736f6c634300080d0033";
17
17
  static readonly abi: readonly [{
18
18
  readonly inputs: readonly [{
19
19
  readonly internalType: "address";