@venusprotocol/protocol-reserve 1.5.0 → 1.6.0-dev.2

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 (224) hide show
  1. package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +1 -1
  2. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
  3. package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
  4. package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.dbg.json +1 -1
  5. package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.dbg.json +1 -1
  7. package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +1 -1
  8. package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +1 -1
  9. package/artifacts/@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol/BeaconProxy.dbg.json +1 -1
  10. package/artifacts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.dbg.json +1 -1
  14. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.dbg.json +1 -1
  15. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  16. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  17. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  18. package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
  19. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  20. package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +1 -1
  21. package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +1 -1
  22. package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +1 -1
  23. package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +1 -1
  24. package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +1 -1
  25. package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
  26. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
  27. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  28. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  29. package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
  30. package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
  31. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
  32. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
  33. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
  34. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  35. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  36. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
  37. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
  38. package/artifacts/@venusprotocol/oracle/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
  39. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
  40. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
  41. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
  42. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
  43. package/artifacts/@venusprotocol/oracle/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
  44. package/artifacts/@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +1 -1
  45. package/artifacts/build-info/{edc419076b46914ce81b28cdf6fbe9e4.json → d1fcd0a2f344488c087ed41d687ed735.json} +1 -1
  46. package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.dbg.json +1 -1
  47. package/artifacts/contracts/Interfaces/IConverterNetwork.sol/IConverterNetwork.dbg.json +1 -1
  48. package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
  49. package/artifacts/contracts/Interfaces/IPoolRegistry.sol/IPoolRegistry.dbg.json +1 -1
  50. package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
  51. package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFund.dbg.json +1 -1
  52. package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFundGetters.dbg.json +1 -1
  53. package/artifacts/contracts/Interfaces/IRiskFundConverter.sol/IRiskFundConverter.dbg.json +1 -1
  54. package/artifacts/contracts/Interfaces/IShortfall.sol/IShortfall.dbg.json +1 -1
  55. package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
  56. package/artifacts/contracts/Interfaces/IXVSVault.sol/IXVSVault.dbg.json +1 -1
  57. package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
  58. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/MaxLoopsLimitHelpersStorage.dbg.json +1 -1
  59. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/ReserveHelpersStorage.dbg.json +1 -1
  60. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV1Storage.dbg.json +1 -1
  61. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV2Storage.dbg.json +1 -1
  62. package/artifacts/contracts/ProtocolReserve/RiskFundV2.sol/RiskFundV2.dbg.json +1 -1
  63. package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.dbg.json +1 -1
  64. package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.json +50 -2
  65. package/artifacts/contracts/Test/Mocks/MockACM.sol/MockACM.dbg.json +1 -1
  66. package/artifacts/contracts/Test/Mocks/MockArraySorter.sol/MockArraySorter.dbg.json +1 -1
  67. package/artifacts/contracts/Test/Mocks/MockConverter.sol/MockConverter.dbg.json +1 -1
  68. package/artifacts/contracts/Test/Mocks/MockDeflationaryToken.sol/MockDeflatingToken.dbg.json +1 -1
  69. package/artifacts/contracts/Test/Mocks/MockRiskFundConverter.sol/MockRiskFundConverter.dbg.json +1 -1
  70. package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
  71. package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.dbg.json +1 -1
  72. package/artifacts/contracts/TokenConverter/ConverterNetwork.sol/ConverterNetwork.dbg.json +1 -1
  73. package/artifacts/contracts/TokenConverter/IAbstractTokenConverter.sol/IAbstractTokenConverter.dbg.json +1 -1
  74. package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.dbg.json +1 -1
  75. package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.dbg.json +1 -1
  76. package/contracts/ProtocolReserve/XVSVaultTreasury.sol +26 -0
  77. package/deployments/bscmainnet/XVSVaultTreasury_Implementation.json +91 -27
  78. package/deployments/bscmainnet/solcInputs/f56c48e0e517617d548c496f99aa8709.json +237 -0
  79. package/deployments/bscmainnet.json +49 -1
  80. package/deployments/bscmainnet_addresses.json +1 -1
  81. package/deployments/bsctestnet/XVSVaultTreasury_Implementation.json +91 -27
  82. package/deployments/bsctestnet/solcInputs/f56c48e0e517617d548c496f99aa8709.json +237 -0
  83. package/deployments/bsctestnet.json +49 -1
  84. package/deployments/bsctestnet_addresses.json +1 -1
  85. package/dist/hardhat.config.d.ts.map +1 -1
  86. package/dist/hardhat.config.js +1 -0
  87. package/dist/hardhat.config.js.map +1 -1
  88. package/dist/typechain/factories/XVSVaultTreasury__factory.d.ts +1 -1
  89. package/dist/typechain/factories/XVSVaultTreasury__factory.d.ts.map +1 -1
  90. package/dist/typechain/factories/XVSVaultTreasury__factory.js +49 -1
  91. package/dist/typechain/factories/XVSVaultTreasury__factory.js.map +1 -1
  92. package/package.json +4 -2
  93. package/typechain/AbstractTokenConverter.d.ts +1775 -0
  94. package/typechain/AccessControl.d.ts +388 -0
  95. package/typechain/AccessControlledV8.d.ts +341 -0
  96. package/typechain/BeaconProxy.d.ts +126 -0
  97. package/typechain/BoundValidatorInterface.d.ts +126 -0
  98. package/typechain/ContextUpgradeable.d.ts +92 -0
  99. package/typechain/ConverterNetwork.d.ts +723 -0
  100. package/typechain/ERC165.d.ts +116 -0
  101. package/typechain/ERC1967Proxy.d.ts +126 -0
  102. package/typechain/ERC1967Upgrade.d.ts +126 -0
  103. package/typechain/ERC20.d.ts +441 -0
  104. package/typechain/IAbstractTokenConverter.d.ts +773 -0
  105. package/typechain/IAccessControl.d.ts +333 -0
  106. package/typechain/IAccessControlManagerV8.d.ts +504 -0
  107. package/typechain/IBeacon.d.ts +101 -0
  108. package/typechain/IComptroller.d.ts +136 -0
  109. package/typechain/IConverterNetwork.d.ts +292 -0
  110. package/typechain/IERC165.d.ts +116 -0
  111. package/typechain/IERC1822Proxiable.d.ts +101 -0
  112. package/typechain/IERC1967.d.ts +126 -0
  113. package/typechain/IERC20.d.ts +324 -0
  114. package/typechain/IERC20Metadata.d.ts +363 -0
  115. package/typechain/IERC20PermitUpgradeable.d.ts +187 -0
  116. package/typechain/IERC20Upgradeable.d.ts +324 -0
  117. package/typechain/IIncomeDestination.d.ts +122 -0
  118. package/typechain/IPoolRegistry.d.ts +155 -0
  119. package/typechain/IProtocolShareReserve.d.ts +127 -0
  120. package/typechain/IRiskFund.d.ts +200 -0
  121. package/typechain/IRiskFundConverter.d.ts +138 -0
  122. package/typechain/IRiskFundGetters.d.ts +103 -0
  123. package/typechain/IShortfall.d.ts +110 -0
  124. package/typechain/ITransparentUpgradeableProxy.d.ts +256 -0
  125. package/typechain/IVToken.d.ts +98 -0
  126. package/typechain/IXVSVault.d.ts +95 -0
  127. package/typechain/Initializable.d.ts +92 -0
  128. package/typechain/MaxLoopsLimitHelper.d.ts +128 -0
  129. package/typechain/MaxLoopsLimitHelpersStorage.d.ts +101 -0
  130. package/typechain/MockACM.d.ts +615 -0
  131. package/typechain/MockArraySorter.d.ts +118 -0
  132. package/typechain/MockConverter.d.ts +1969 -0
  133. package/typechain/MockDeflatingToken.d.ts +486 -0
  134. package/typechain/MockRiskFundConverter.d.ts +2479 -0
  135. package/typechain/MockToken.d.ts +505 -0
  136. package/typechain/OracleInterface.d.ts +98 -0
  137. package/typechain/Ownable.d.ts +181 -0
  138. package/typechain/Ownable2StepUpgradeable.d.ts +261 -0
  139. package/typechain/OwnableUpgradeable.d.ts +193 -0
  140. package/typechain/PausableUpgradeable.d.ts +129 -0
  141. package/typechain/ProtocolShareReserve.d.ts +1214 -0
  142. package/typechain/Proxy.d.ts +78 -0
  143. package/typechain/ProxyAdmin.d.ts +357 -0
  144. package/typechain/ReentrancyGuardUpgradeable.d.ts +92 -0
  145. package/typechain/ReserveHelpersStorage.d.ts +300 -0
  146. package/typechain/ResilientOracle.d.ts +1034 -0
  147. package/typechain/ResilientOracleInterface.d.ts +192 -0
  148. package/typechain/RiskFundConverter.d.ts +2235 -0
  149. package/typechain/RiskFundV1Storage.d.ts +353 -0
  150. package/typechain/RiskFundV2.d.ts +965 -0
  151. package/typechain/RiskFundV2Storage.d.ts +372 -0
  152. package/typechain/SingleTokenConverter.d.ts +1944 -0
  153. package/typechain/TransparentUpgradeableProxy.d.ts +126 -0
  154. package/typechain/TwapInterface.d.ts +124 -0
  155. package/typechain/UpgradeableBeacon.d.ts +240 -0
  156. package/typechain/VBep20Interface.d.ts +379 -0
  157. package/typechain/XVSVaultTreasury.d.ts +580 -0
  158. package/typechain/common.d.ts +35 -0
  159. package/typechain/factories/AbstractTokenConverter__factory.ts +1297 -0
  160. package/typechain/factories/AccessControl__factory.ts +227 -0
  161. package/typechain/factories/AccessControlledV8__factory.ts +196 -0
  162. package/typechain/factories/BeaconProxy__factory.ts +133 -0
  163. package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
  164. package/typechain/factories/ContextUpgradeable__factory.ts +39 -0
  165. package/typechain/factories/ConverterNetwork__factory.ts +502 -0
  166. package/typechain/factories/ERC165__factory.ts +39 -0
  167. package/typechain/factories/ERC1967Proxy__factory.ts +137 -0
  168. package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
  169. package/typechain/factories/ERC20__factory.ts +340 -0
  170. package/typechain/factories/IAbstractTokenConverter__factory.ts +466 -0
  171. package/typechain/factories/IAccessControlManagerV8__factory.ts +301 -0
  172. package/typechain/factories/IAccessControl__factory.ts +198 -0
  173. package/typechain/factories/IBeacon__factory.ts +36 -0
  174. package/typechain/factories/IComptroller__factory.ts +68 -0
  175. package/typechain/factories/IConverterNetwork__factory.ts +142 -0
  176. package/typechain/factories/IERC165__factory.ts +42 -0
  177. package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
  178. package/typechain/factories/IERC1967__factory.ts +68 -0
  179. package/typechain/factories/IERC20Metadata__factory.ts +248 -0
  180. package/typechain/factories/IERC20PermitUpgradeable__factory.ts +105 -0
  181. package/typechain/factories/IERC20Upgradeable__factory.ts +209 -0
  182. package/typechain/factories/IERC20__factory.ts +203 -0
  183. package/typechain/factories/IIncomeDestination__factory.ts +44 -0
  184. package/typechain/factories/IPoolRegistry__factory.ts +66 -0
  185. package/typechain/factories/IProtocolShareReserve__factory.ts +53 -0
  186. package/typechain/factories/IRiskFundConverter__factory.ts +63 -0
  187. package/typechain/factories/IRiskFundGetters__factory.ts +39 -0
  188. package/typechain/factories/IRiskFund__factory.ts +89 -0
  189. package/typechain/factories/IShortfall__factory.ts +36 -0
  190. package/typechain/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
  191. package/typechain/factories/IVToken__factory.ts +36 -0
  192. package/typechain/factories/IXVSVault__factory.ts +36 -0
  193. package/typechain/factories/Initializable__factory.ts +36 -0
  194. package/typechain/factories/MaxLoopsLimitHelper__factory.ts +74 -0
  195. package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +75 -0
  196. package/typechain/factories/MockACM__factory.ts +411 -0
  197. package/typechain/factories/MockArraySorter__factory.ts +85 -0
  198. package/typechain/factories/MockConverter__factory.ts +1439 -0
  199. package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
  200. package/typechain/factories/MockRiskFundConverter__factory.ts +1828 -0
  201. package/typechain/factories/MockToken__factory.ts +398 -0
  202. package/typechain/factories/OracleInterface__factory.ts +45 -0
  203. package/typechain/factories/Ownable2StepUpgradeable__factory.ts +134 -0
  204. package/typechain/factories/OwnableUpgradeable__factory.ts +91 -0
  205. package/typechain/factories/Ownable__factory.ts +75 -0
  206. package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
  207. package/typechain/factories/ProtocolShareReserve__factory.ts +874 -0
  208. package/typechain/factories/ProxyAdmin__factory.ts +202 -0
  209. package/typechain/factories/Proxy__factory.ts +28 -0
  210. package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +43 -0
  211. package/typechain/factories/ReserveHelpersStorage__factory.ts +188 -0
  212. package/typechain/factories/ResilientOracleInterface__factory.ts +94 -0
  213. package/typechain/factories/ResilientOracle__factory.ts +710 -0
  214. package/typechain/factories/RiskFundConverter__factory.ts +1694 -0
  215. package/typechain/factories/RiskFundV1Storage__factory.ts +223 -0
  216. package/typechain/factories/RiskFundV2Storage__factory.ts +236 -0
  217. package/typechain/factories/RiskFundV2__factory.ts +672 -0
  218. package/typechain/factories/SingleTokenConverter__factory.ts +1441 -0
  219. package/typechain/factories/TransparentUpgradeableProxy__factory.ts +152 -0
  220. package/typechain/factories/TwapInterface__factory.ts +61 -0
  221. package/typechain/factories/UpgradeableBeacon__factory.ts +163 -0
  222. package/typechain/factories/VBep20Interface__factory.ts +261 -0
  223. package/typechain/factories/XVSVaultTreasury__factory.ts +413 -0
  224. package/typechain/index.ts +134 -0
@@ -0,0 +1,1828 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
6
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
7
+ import type {
8
+ MockRiskFundConverter,
9
+ MockRiskFundConverterInterface,
10
+ } from "../MockRiskFundConverter";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "corePoolComptroller_",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "vBNB_",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "address",
27
+ name: "nativeWrapped_",
28
+ type: "address",
29
+ },
30
+ ],
31
+ stateMutability: "nonpayable",
32
+ type: "constructor",
33
+ },
34
+ {
35
+ inputs: [
36
+ {
37
+ internalType: "uint256",
38
+ name: "amountInMantissa",
39
+ type: "uint256",
40
+ },
41
+ {
42
+ internalType: "uint256",
43
+ name: "amountInMaxMantissa",
44
+ type: "uint256",
45
+ },
46
+ ],
47
+ name: "AmountInHigherThanMax",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: "AmountInMismatched",
53
+ type: "error",
54
+ },
55
+ {
56
+ inputs: [
57
+ {
58
+ internalType: "uint256",
59
+ name: "amountOutMantissa",
60
+ type: "uint256",
61
+ },
62
+ {
63
+ internalType: "uint256",
64
+ name: "amountOutMinMantissa",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ name: "AmountOutLowerThanMinRequired",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: "AmountOutMismatched",
74
+ type: "error",
75
+ },
76
+ {
77
+ inputs: [],
78
+ name: "ConversionConfigNotEnabled",
79
+ type: "error",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "ConversionEnabledOnlyForPrivateConversions",
84
+ type: "error",
85
+ },
86
+ {
87
+ inputs: [],
88
+ name: "ConversionTokensActive",
89
+ type: "error",
90
+ },
91
+ {
92
+ inputs: [],
93
+ name: "ConversionTokensPaused",
94
+ type: "error",
95
+ },
96
+ {
97
+ inputs: [],
98
+ name: "DeflationaryTokenNotSupported",
99
+ type: "error",
100
+ },
101
+ {
102
+ inputs: [
103
+ {
104
+ internalType: "uint256",
105
+ name: "incentive",
106
+ type: "uint256",
107
+ },
108
+ {
109
+ internalType: "uint256",
110
+ name: "maxIncentive",
111
+ type: "uint256",
112
+ },
113
+ ],
114
+ name: "IncentiveTooHigh",
115
+ type: "error",
116
+ },
117
+ {
118
+ inputs: [],
119
+ name: "InputLengthMisMatch",
120
+ type: "error",
121
+ },
122
+ {
123
+ inputs: [],
124
+ name: "InsufficientBalance",
125
+ type: "error",
126
+ },
127
+ {
128
+ inputs: [],
129
+ name: "InsufficientInputAmount",
130
+ type: "error",
131
+ },
132
+ {
133
+ inputs: [],
134
+ name: "InsufficientOutputAmount",
135
+ type: "error",
136
+ },
137
+ {
138
+ inputs: [],
139
+ name: "InsufficientPoolLiquidity",
140
+ type: "error",
141
+ },
142
+ {
143
+ inputs: [],
144
+ name: "InvalidArguments",
145
+ type: "error",
146
+ },
147
+ {
148
+ inputs: [],
149
+ name: "InvalidConverterNetwork",
150
+ type: "error",
151
+ },
152
+ {
153
+ inputs: [],
154
+ name: "InvalidMinimumAmountToConvert",
155
+ type: "error",
156
+ },
157
+ {
158
+ inputs: [],
159
+ name: "InvalidToAddress",
160
+ type: "error",
161
+ },
162
+ {
163
+ inputs: [],
164
+ name: "InvalidTokenConfigAddresses",
165
+ type: "error",
166
+ },
167
+ {
168
+ inputs: [
169
+ {
170
+ internalType: "address",
171
+ name: "comptroller",
172
+ type: "address",
173
+ },
174
+ {
175
+ internalType: "address",
176
+ name: "asset",
177
+ type: "address",
178
+ },
179
+ ],
180
+ name: "MarketNotExistInPool",
181
+ type: "error",
182
+ },
183
+ {
184
+ inputs: [],
185
+ name: "NonZeroIncentiveForPrivateConversion",
186
+ type: "error",
187
+ },
188
+ {
189
+ inputs: [],
190
+ name: "ReentrancyGuardError",
191
+ type: "error",
192
+ },
193
+ {
194
+ inputs: [
195
+ {
196
+ internalType: "address",
197
+ name: "sender",
198
+ type: "address",
199
+ },
200
+ {
201
+ internalType: "address",
202
+ name: "calledContract",
203
+ type: "address",
204
+ },
205
+ {
206
+ internalType: "string",
207
+ name: "methodSignature",
208
+ type: "string",
209
+ },
210
+ ],
211
+ name: "Unauthorized",
212
+ type: "error",
213
+ },
214
+ {
215
+ inputs: [],
216
+ name: "ZeroAddressNotAllowed",
217
+ type: "error",
218
+ },
219
+ {
220
+ inputs: [],
221
+ name: "ZeroValueNotAllowed",
222
+ type: "error",
223
+ },
224
+ {
225
+ anonymous: false,
226
+ inputs: [
227
+ {
228
+ indexed: true,
229
+ internalType: "address",
230
+ name: "receiver",
231
+ type: "address",
232
+ },
233
+ {
234
+ indexed: true,
235
+ internalType: "address",
236
+ name: "comptroller",
237
+ type: "address",
238
+ },
239
+ {
240
+ indexed: true,
241
+ internalType: "address",
242
+ name: "asset",
243
+ type: "address",
244
+ },
245
+ {
246
+ indexed: false,
247
+ internalType: "uint256",
248
+ name: "amount",
249
+ type: "uint256",
250
+ },
251
+ ],
252
+ name: "AssetTransferredToDestination",
253
+ type: "event",
254
+ },
255
+ {
256
+ anonymous: false,
257
+ inputs: [
258
+ {
259
+ indexed: true,
260
+ internalType: "address",
261
+ name: "comptroller",
262
+ type: "address",
263
+ },
264
+ {
265
+ indexed: true,
266
+ internalType: "address",
267
+ name: "asset",
268
+ type: "address",
269
+ },
270
+ {
271
+ indexed: false,
272
+ internalType: "uint256",
273
+ name: "amount",
274
+ type: "uint256",
275
+ },
276
+ ],
277
+ name: "AssetsReservesUpdated",
278
+ type: "event",
279
+ },
280
+ {
281
+ anonymous: false,
282
+ inputs: [
283
+ {
284
+ indexed: true,
285
+ internalType: "address",
286
+ name: "tokenAddressIn",
287
+ type: "address",
288
+ },
289
+ {
290
+ indexed: true,
291
+ internalType: "address",
292
+ name: "tokenAddressOut",
293
+ type: "address",
294
+ },
295
+ {
296
+ indexed: false,
297
+ internalType: "uint256",
298
+ name: "oldIncentive",
299
+ type: "uint256",
300
+ },
301
+ {
302
+ indexed: false,
303
+ internalType: "uint256",
304
+ name: "newIncentive",
305
+ type: "uint256",
306
+ },
307
+ {
308
+ indexed: false,
309
+ internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
310
+ name: "oldAccess",
311
+ type: "uint8",
312
+ },
313
+ {
314
+ indexed: false,
315
+ internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
316
+ name: "newAccess",
317
+ type: "uint8",
318
+ },
319
+ ],
320
+ name: "ConversionConfigUpdated",
321
+ type: "event",
322
+ },
323
+ {
324
+ anonymous: false,
325
+ inputs: [
326
+ {
327
+ indexed: true,
328
+ internalType: "address",
329
+ name: "sender",
330
+ type: "address",
331
+ },
332
+ ],
333
+ name: "ConversionPaused",
334
+ type: "event",
335
+ },
336
+ {
337
+ anonymous: false,
338
+ inputs: [
339
+ {
340
+ indexed: true,
341
+ internalType: "address",
342
+ name: "sender",
343
+ type: "address",
344
+ },
345
+ ],
346
+ name: "ConversionResumed",
347
+ type: "event",
348
+ },
349
+ {
350
+ anonymous: false,
351
+ inputs: [
352
+ {
353
+ indexed: true,
354
+ internalType: "address",
355
+ name: "sender",
356
+ type: "address",
357
+ },
358
+ {
359
+ indexed: true,
360
+ internalType: "address",
361
+ name: "receiver",
362
+ type: "address",
363
+ },
364
+ {
365
+ indexed: false,
366
+ internalType: "address",
367
+ name: "tokenAddressIn",
368
+ type: "address",
369
+ },
370
+ {
371
+ indexed: true,
372
+ internalType: "address",
373
+ name: "tokenAddressOut",
374
+ type: "address",
375
+ },
376
+ {
377
+ indexed: false,
378
+ internalType: "uint256",
379
+ name: "amountIn",
380
+ type: "uint256",
381
+ },
382
+ {
383
+ indexed: false,
384
+ internalType: "uint256",
385
+ name: "amountOut",
386
+ type: "uint256",
387
+ },
388
+ ],
389
+ name: "ConvertedExactTokens",
390
+ type: "event",
391
+ },
392
+ {
393
+ anonymous: false,
394
+ inputs: [
395
+ {
396
+ indexed: true,
397
+ internalType: "address",
398
+ name: "sender",
399
+ type: "address",
400
+ },
401
+ {
402
+ indexed: true,
403
+ internalType: "address",
404
+ name: "receiver",
405
+ type: "address",
406
+ },
407
+ {
408
+ indexed: false,
409
+ internalType: "address",
410
+ name: "tokenAddressIn",
411
+ type: "address",
412
+ },
413
+ {
414
+ indexed: true,
415
+ internalType: "address",
416
+ name: "tokenAddressOut",
417
+ type: "address",
418
+ },
419
+ {
420
+ indexed: false,
421
+ internalType: "uint256",
422
+ name: "amountIn",
423
+ type: "uint256",
424
+ },
425
+ {
426
+ indexed: false,
427
+ internalType: "uint256",
428
+ name: "amountOut",
429
+ type: "uint256",
430
+ },
431
+ ],
432
+ name: "ConvertedExactTokensSupportingFeeOnTransferTokens",
433
+ type: "event",
434
+ },
435
+ {
436
+ anonymous: false,
437
+ inputs: [
438
+ {
439
+ indexed: true,
440
+ internalType: "address",
441
+ name: "sender",
442
+ type: "address",
443
+ },
444
+ {
445
+ indexed: true,
446
+ internalType: "address",
447
+ name: "receiver",
448
+ type: "address",
449
+ },
450
+ {
451
+ indexed: false,
452
+ internalType: "address",
453
+ name: "tokenAddressIn",
454
+ type: "address",
455
+ },
456
+ {
457
+ indexed: true,
458
+ internalType: "address",
459
+ name: "tokenAddressOut",
460
+ type: "address",
461
+ },
462
+ {
463
+ indexed: false,
464
+ internalType: "uint256",
465
+ name: "amountIn",
466
+ type: "uint256",
467
+ },
468
+ {
469
+ indexed: false,
470
+ internalType: "uint256",
471
+ name: "amountOut",
472
+ type: "uint256",
473
+ },
474
+ ],
475
+ name: "ConvertedForExactTokens",
476
+ type: "event",
477
+ },
478
+ {
479
+ anonymous: false,
480
+ inputs: [
481
+ {
482
+ indexed: true,
483
+ internalType: "address",
484
+ name: "sender",
485
+ type: "address",
486
+ },
487
+ {
488
+ indexed: true,
489
+ internalType: "address",
490
+ name: "receiver",
491
+ type: "address",
492
+ },
493
+ {
494
+ indexed: false,
495
+ internalType: "address",
496
+ name: "tokenAddressIn",
497
+ type: "address",
498
+ },
499
+ {
500
+ indexed: true,
501
+ internalType: "address",
502
+ name: "tokenAddressOut",
503
+ type: "address",
504
+ },
505
+ {
506
+ indexed: false,
507
+ internalType: "uint256",
508
+ name: "amountIn",
509
+ type: "uint256",
510
+ },
511
+ {
512
+ indexed: false,
513
+ internalType: "uint256",
514
+ name: "amountOut",
515
+ type: "uint256",
516
+ },
517
+ ],
518
+ name: "ConvertedForExactTokensSupportingFeeOnTransferTokens",
519
+ type: "event",
520
+ },
521
+ {
522
+ anonymous: false,
523
+ inputs: [
524
+ {
525
+ indexed: true,
526
+ internalType: "address",
527
+ name: "oldConverterNetwork",
528
+ type: "address",
529
+ },
530
+ {
531
+ indexed: true,
532
+ internalType: "address",
533
+ name: "converterNetwork",
534
+ type: "address",
535
+ },
536
+ ],
537
+ name: "ConverterNetworkAddressUpdated",
538
+ type: "event",
539
+ },
540
+ {
541
+ anonymous: false,
542
+ inputs: [
543
+ {
544
+ indexed: true,
545
+ internalType: "address",
546
+ name: "oldDestinationAddress",
547
+ type: "address",
548
+ },
549
+ {
550
+ indexed: true,
551
+ internalType: "address",
552
+ name: "destinationAddress",
553
+ type: "address",
554
+ },
555
+ ],
556
+ name: "DestinationAddressUpdated",
557
+ type: "event",
558
+ },
559
+ {
560
+ anonymous: false,
561
+ inputs: [
562
+ {
563
+ indexed: false,
564
+ internalType: "uint8",
565
+ name: "version",
566
+ type: "uint8",
567
+ },
568
+ ],
569
+ name: "Initialized",
570
+ type: "event",
571
+ },
572
+ {
573
+ anonymous: false,
574
+ inputs: [
575
+ {
576
+ indexed: false,
577
+ internalType: "uint256",
578
+ name: "oldMinAmountToConvert",
579
+ type: "uint256",
580
+ },
581
+ {
582
+ indexed: false,
583
+ internalType: "uint256",
584
+ name: "newMinAmountToConvert",
585
+ type: "uint256",
586
+ },
587
+ ],
588
+ name: "MinAmountToConvertUpdated",
589
+ type: "event",
590
+ },
591
+ {
592
+ anonymous: false,
593
+ inputs: [
594
+ {
595
+ indexed: false,
596
+ internalType: "address",
597
+ name: "oldAccessControlManager",
598
+ type: "address",
599
+ },
600
+ {
601
+ indexed: false,
602
+ internalType: "address",
603
+ name: "newAccessControlManager",
604
+ type: "address",
605
+ },
606
+ ],
607
+ name: "NewAccessControlManager",
608
+ type: "event",
609
+ },
610
+ {
611
+ anonymous: false,
612
+ inputs: [
613
+ {
614
+ indexed: true,
615
+ internalType: "address",
616
+ name: "previousOwner",
617
+ type: "address",
618
+ },
619
+ {
620
+ indexed: true,
621
+ internalType: "address",
622
+ name: "newOwner",
623
+ type: "address",
624
+ },
625
+ ],
626
+ name: "OwnershipTransferStarted",
627
+ type: "event",
628
+ },
629
+ {
630
+ anonymous: false,
631
+ inputs: [
632
+ {
633
+ indexed: true,
634
+ internalType: "address",
635
+ name: "previousOwner",
636
+ type: "address",
637
+ },
638
+ {
639
+ indexed: true,
640
+ internalType: "address",
641
+ name: "newOwner",
642
+ type: "address",
643
+ },
644
+ ],
645
+ name: "OwnershipTransferred",
646
+ type: "event",
647
+ },
648
+ {
649
+ anonymous: false,
650
+ inputs: [
651
+ {
652
+ indexed: true,
653
+ internalType: "address",
654
+ name: "comptroller",
655
+ type: "address",
656
+ },
657
+ {
658
+ indexed: true,
659
+ internalType: "address",
660
+ name: "asset",
661
+ type: "address",
662
+ },
663
+ {
664
+ indexed: false,
665
+ internalType: "bool",
666
+ name: "value",
667
+ type: "bool",
668
+ },
669
+ ],
670
+ name: "PoolAssetsDirectTransferUpdated",
671
+ type: "event",
672
+ },
673
+ {
674
+ anonymous: false,
675
+ inputs: [
676
+ {
677
+ indexed: true,
678
+ internalType: "address",
679
+ name: "oldPoolRegistry",
680
+ type: "address",
681
+ },
682
+ {
683
+ indexed: true,
684
+ internalType: "address",
685
+ name: "newPoolRegistry",
686
+ type: "address",
687
+ },
688
+ ],
689
+ name: "PoolRegistryUpdated",
690
+ type: "event",
691
+ },
692
+ {
693
+ anonymous: false,
694
+ inputs: [
695
+ {
696
+ indexed: true,
697
+ internalType: "contract ResilientOracle",
698
+ name: "oldPriceOracle",
699
+ type: "address",
700
+ },
701
+ {
702
+ indexed: true,
703
+ internalType: "contract ResilientOracle",
704
+ name: "priceOracle",
705
+ type: "address",
706
+ },
707
+ ],
708
+ name: "PriceOracleUpdated",
709
+ type: "event",
710
+ },
711
+ {
712
+ anonymous: false,
713
+ inputs: [
714
+ {
715
+ indexed: true,
716
+ internalType: "address",
717
+ name: "token",
718
+ type: "address",
719
+ },
720
+ {
721
+ indexed: true,
722
+ internalType: "address",
723
+ name: "to",
724
+ type: "address",
725
+ },
726
+ {
727
+ indexed: false,
728
+ internalType: "uint256",
729
+ name: "amount",
730
+ type: "uint256",
731
+ },
732
+ ],
733
+ name: "SweepToken",
734
+ type: "event",
735
+ },
736
+ {
737
+ inputs: [],
738
+ name: "CORE_POOL_COMPTROLLER",
739
+ outputs: [
740
+ {
741
+ internalType: "address",
742
+ name: "",
743
+ type: "address",
744
+ },
745
+ ],
746
+ stateMutability: "view",
747
+ type: "function",
748
+ },
749
+ {
750
+ inputs: [],
751
+ name: "MAX_INCENTIVE",
752
+ outputs: [
753
+ {
754
+ internalType: "uint256",
755
+ name: "",
756
+ type: "uint256",
757
+ },
758
+ ],
759
+ stateMutability: "view",
760
+ type: "function",
761
+ },
762
+ {
763
+ inputs: [],
764
+ name: "NATIVE_WRAPPED",
765
+ outputs: [
766
+ {
767
+ internalType: "address",
768
+ name: "",
769
+ type: "address",
770
+ },
771
+ ],
772
+ stateMutability: "view",
773
+ type: "function",
774
+ },
775
+ {
776
+ inputs: [],
777
+ name: "VBNB",
778
+ outputs: [
779
+ {
780
+ internalType: "address",
781
+ name: "",
782
+ type: "address",
783
+ },
784
+ ],
785
+ stateMutability: "view",
786
+ type: "function",
787
+ },
788
+ {
789
+ inputs: [],
790
+ name: "acceptOwnership",
791
+ outputs: [],
792
+ stateMutability: "nonpayable",
793
+ type: "function",
794
+ },
795
+ {
796
+ inputs: [],
797
+ name: "accessControlManager",
798
+ outputs: [
799
+ {
800
+ internalType: "contract IAccessControlManagerV8",
801
+ name: "",
802
+ type: "address",
803
+ },
804
+ ],
805
+ stateMutability: "view",
806
+ type: "function",
807
+ },
808
+ {
809
+ inputs: [
810
+ {
811
+ internalType: "address",
812
+ name: "tokenAddress",
813
+ type: "address",
814
+ },
815
+ ],
816
+ name: "balanceOf",
817
+ outputs: [
818
+ {
819
+ internalType: "uint256",
820
+ name: "tokenBalance",
821
+ type: "uint256",
822
+ },
823
+ ],
824
+ stateMutability: "view",
825
+ type: "function",
826
+ },
827
+ {
828
+ inputs: [
829
+ {
830
+ internalType: "address",
831
+ name: "",
832
+ type: "address",
833
+ },
834
+ {
835
+ internalType: "address",
836
+ name: "",
837
+ type: "address",
838
+ },
839
+ ],
840
+ name: "conversionConfigurations",
841
+ outputs: [
842
+ {
843
+ internalType: "uint256",
844
+ name: "incentive",
845
+ type: "uint256",
846
+ },
847
+ {
848
+ internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
849
+ name: "conversionAccess",
850
+ type: "uint8",
851
+ },
852
+ ],
853
+ stateMutability: "view",
854
+ type: "function",
855
+ },
856
+ {
857
+ inputs: [],
858
+ name: "conversionPaused",
859
+ outputs: [
860
+ {
861
+ internalType: "bool",
862
+ name: "",
863
+ type: "bool",
864
+ },
865
+ ],
866
+ stateMutability: "view",
867
+ type: "function",
868
+ },
869
+ {
870
+ inputs: [
871
+ {
872
+ internalType: "uint256",
873
+ name: "amountInMantissa",
874
+ type: "uint256",
875
+ },
876
+ {
877
+ internalType: "uint256",
878
+ name: "amountOutMinMantissa",
879
+ type: "uint256",
880
+ },
881
+ {
882
+ internalType: "address",
883
+ name: "tokenAddressIn",
884
+ type: "address",
885
+ },
886
+ {
887
+ internalType: "address",
888
+ name: "tokenAddressOut",
889
+ type: "address",
890
+ },
891
+ {
892
+ internalType: "address",
893
+ name: "to",
894
+ type: "address",
895
+ },
896
+ ],
897
+ name: "convertExactTokens",
898
+ outputs: [
899
+ {
900
+ internalType: "uint256",
901
+ name: "actualAmountIn",
902
+ type: "uint256",
903
+ },
904
+ {
905
+ internalType: "uint256",
906
+ name: "actualAmountOut",
907
+ type: "uint256",
908
+ },
909
+ ],
910
+ stateMutability: "nonpayable",
911
+ type: "function",
912
+ },
913
+ {
914
+ inputs: [
915
+ {
916
+ internalType: "uint256",
917
+ name: "amountInMantissa",
918
+ type: "uint256",
919
+ },
920
+ {
921
+ internalType: "uint256",
922
+ name: "amountOutMinMantissa",
923
+ type: "uint256",
924
+ },
925
+ {
926
+ internalType: "address",
927
+ name: "tokenAddressIn",
928
+ type: "address",
929
+ },
930
+ {
931
+ internalType: "address",
932
+ name: "tokenAddressOut",
933
+ type: "address",
934
+ },
935
+ {
936
+ internalType: "address",
937
+ name: "to",
938
+ type: "address",
939
+ },
940
+ ],
941
+ name: "convertExactTokensSupportingFeeOnTransferTokens",
942
+ outputs: [
943
+ {
944
+ internalType: "uint256",
945
+ name: "actualAmountIn",
946
+ type: "uint256",
947
+ },
948
+ {
949
+ internalType: "uint256",
950
+ name: "actualAmountOut",
951
+ type: "uint256",
952
+ },
953
+ ],
954
+ stateMutability: "nonpayable",
955
+ type: "function",
956
+ },
957
+ {
958
+ inputs: [
959
+ {
960
+ internalType: "uint256",
961
+ name: "amountInMaxMantissa",
962
+ type: "uint256",
963
+ },
964
+ {
965
+ internalType: "uint256",
966
+ name: "amountOutMantissa",
967
+ type: "uint256",
968
+ },
969
+ {
970
+ internalType: "address",
971
+ name: "tokenAddressIn",
972
+ type: "address",
973
+ },
974
+ {
975
+ internalType: "address",
976
+ name: "tokenAddressOut",
977
+ type: "address",
978
+ },
979
+ {
980
+ internalType: "address",
981
+ name: "to",
982
+ type: "address",
983
+ },
984
+ ],
985
+ name: "convertForExactTokens",
986
+ outputs: [
987
+ {
988
+ internalType: "uint256",
989
+ name: "actualAmountIn",
990
+ type: "uint256",
991
+ },
992
+ {
993
+ internalType: "uint256",
994
+ name: "actualAmountOut",
995
+ type: "uint256",
996
+ },
997
+ ],
998
+ stateMutability: "nonpayable",
999
+ type: "function",
1000
+ },
1001
+ {
1002
+ inputs: [
1003
+ {
1004
+ internalType: "uint256",
1005
+ name: "amountInMaxMantissa",
1006
+ type: "uint256",
1007
+ },
1008
+ {
1009
+ internalType: "uint256",
1010
+ name: "amountOutMantissa",
1011
+ type: "uint256",
1012
+ },
1013
+ {
1014
+ internalType: "address",
1015
+ name: "tokenAddressIn",
1016
+ type: "address",
1017
+ },
1018
+ {
1019
+ internalType: "address",
1020
+ name: "tokenAddressOut",
1021
+ type: "address",
1022
+ },
1023
+ {
1024
+ internalType: "address",
1025
+ name: "to",
1026
+ type: "address",
1027
+ },
1028
+ ],
1029
+ name: "convertForExactTokensSupportingFeeOnTransferTokens",
1030
+ outputs: [
1031
+ {
1032
+ internalType: "uint256",
1033
+ name: "actualAmountIn",
1034
+ type: "uint256",
1035
+ },
1036
+ {
1037
+ internalType: "uint256",
1038
+ name: "actualAmountOut",
1039
+ type: "uint256",
1040
+ },
1041
+ ],
1042
+ stateMutability: "nonpayable",
1043
+ type: "function",
1044
+ },
1045
+ {
1046
+ inputs: [],
1047
+ name: "converterNetwork",
1048
+ outputs: [
1049
+ {
1050
+ internalType: "contract IConverterNetwork",
1051
+ name: "",
1052
+ type: "address",
1053
+ },
1054
+ ],
1055
+ stateMutability: "view",
1056
+ type: "function",
1057
+ },
1058
+ {
1059
+ inputs: [],
1060
+ name: "destinationAddress",
1061
+ outputs: [
1062
+ {
1063
+ internalType: "address",
1064
+ name: "",
1065
+ type: "address",
1066
+ },
1067
+ ],
1068
+ stateMutability: "view",
1069
+ type: "function",
1070
+ },
1071
+ {
1072
+ inputs: [
1073
+ {
1074
+ internalType: "uint256",
1075
+ name: "amountOutMantissa",
1076
+ type: "uint256",
1077
+ },
1078
+ {
1079
+ internalType: "address",
1080
+ name: "tokenAddressIn",
1081
+ type: "address",
1082
+ },
1083
+ {
1084
+ internalType: "address",
1085
+ name: "tokenAddressOut",
1086
+ type: "address",
1087
+ },
1088
+ ],
1089
+ name: "getAmountIn",
1090
+ outputs: [
1091
+ {
1092
+ internalType: "uint256",
1093
+ name: "amountConvertedMantissa",
1094
+ type: "uint256",
1095
+ },
1096
+ {
1097
+ internalType: "uint256",
1098
+ name: "amountInMantissa",
1099
+ type: "uint256",
1100
+ },
1101
+ ],
1102
+ stateMutability: "view",
1103
+ type: "function",
1104
+ },
1105
+ {
1106
+ inputs: [
1107
+ {
1108
+ internalType: "uint256",
1109
+ name: "amountInMantissa",
1110
+ type: "uint256",
1111
+ },
1112
+ {
1113
+ internalType: "address",
1114
+ name: "tokenAddressIn",
1115
+ type: "address",
1116
+ },
1117
+ {
1118
+ internalType: "address",
1119
+ name: "tokenAddressOut",
1120
+ type: "address",
1121
+ },
1122
+ ],
1123
+ name: "getAmountOut",
1124
+ outputs: [
1125
+ {
1126
+ internalType: "uint256",
1127
+ name: "amountConvertedMantissa",
1128
+ type: "uint256",
1129
+ },
1130
+ {
1131
+ internalType: "uint256",
1132
+ name: "amountOutMantissa",
1133
+ type: "uint256",
1134
+ },
1135
+ ],
1136
+ stateMutability: "view",
1137
+ type: "function",
1138
+ },
1139
+ {
1140
+ inputs: [
1141
+ {
1142
+ internalType: "address",
1143
+ name: "asset",
1144
+ type: "address",
1145
+ },
1146
+ ],
1147
+ name: "getAssetsReserves",
1148
+ outputs: [
1149
+ {
1150
+ internalType: "uint256",
1151
+ name: "",
1152
+ type: "uint256",
1153
+ },
1154
+ ],
1155
+ stateMutability: "view",
1156
+ type: "function",
1157
+ },
1158
+ {
1159
+ inputs: [
1160
+ {
1161
+ internalType: "address",
1162
+ name: "comptroller",
1163
+ type: "address",
1164
+ },
1165
+ {
1166
+ internalType: "address",
1167
+ name: "asset",
1168
+ type: "address",
1169
+ },
1170
+ ],
1171
+ name: "getPoolAssetReserve",
1172
+ outputs: [
1173
+ {
1174
+ internalType: "uint256",
1175
+ name: "reserves",
1176
+ type: "uint256",
1177
+ },
1178
+ ],
1179
+ stateMutability: "view",
1180
+ type: "function",
1181
+ },
1182
+ {
1183
+ inputs: [
1184
+ {
1185
+ internalType: "address",
1186
+ name: "tokenAddress",
1187
+ type: "address",
1188
+ },
1189
+ ],
1190
+ name: "getPools",
1191
+ outputs: [
1192
+ {
1193
+ internalType: "address[]",
1194
+ name: "poolsWithCore",
1195
+ type: "address[]",
1196
+ },
1197
+ ],
1198
+ stateMutability: "view",
1199
+ type: "function",
1200
+ },
1201
+ {
1202
+ inputs: [
1203
+ {
1204
+ internalType: "address",
1205
+ name: "comptroller",
1206
+ type: "address",
1207
+ },
1208
+ {
1209
+ internalType: "address",
1210
+ name: "asset",
1211
+ type: "address",
1212
+ },
1213
+ ],
1214
+ name: "getPoolsAssetsReserves",
1215
+ outputs: [
1216
+ {
1217
+ internalType: "uint256",
1218
+ name: "",
1219
+ type: "uint256",
1220
+ },
1221
+ ],
1222
+ stateMutability: "view",
1223
+ type: "function",
1224
+ },
1225
+ {
1226
+ inputs: [
1227
+ {
1228
+ internalType: "uint256",
1229
+ name: "amountOutMantissa",
1230
+ type: "uint256",
1231
+ },
1232
+ {
1233
+ internalType: "address",
1234
+ name: "tokenAddressIn",
1235
+ type: "address",
1236
+ },
1237
+ {
1238
+ internalType: "address",
1239
+ name: "tokenAddressOut",
1240
+ type: "address",
1241
+ },
1242
+ ],
1243
+ name: "getUpdatedAmountIn",
1244
+ outputs: [
1245
+ {
1246
+ internalType: "uint256",
1247
+ name: "amountConvertedMantissa",
1248
+ type: "uint256",
1249
+ },
1250
+ {
1251
+ internalType: "uint256",
1252
+ name: "amountInMantissa",
1253
+ type: "uint256",
1254
+ },
1255
+ ],
1256
+ stateMutability: "nonpayable",
1257
+ type: "function",
1258
+ },
1259
+ {
1260
+ inputs: [
1261
+ {
1262
+ internalType: "uint256",
1263
+ name: "amountInMantissa",
1264
+ type: "uint256",
1265
+ },
1266
+ {
1267
+ internalType: "address",
1268
+ name: "tokenAddressIn",
1269
+ type: "address",
1270
+ },
1271
+ {
1272
+ internalType: "address",
1273
+ name: "tokenAddressOut",
1274
+ type: "address",
1275
+ },
1276
+ ],
1277
+ name: "getUpdatedAmountOut",
1278
+ outputs: [
1279
+ {
1280
+ internalType: "uint256",
1281
+ name: "amountConvertedMantissa",
1282
+ type: "uint256",
1283
+ },
1284
+ {
1285
+ internalType: "uint256",
1286
+ name: "amountOutMantissa",
1287
+ type: "uint256",
1288
+ },
1289
+ ],
1290
+ stateMutability: "nonpayable",
1291
+ type: "function",
1292
+ },
1293
+ {
1294
+ inputs: [
1295
+ {
1296
+ internalType: "address",
1297
+ name: "accessControlManager_",
1298
+ type: "address",
1299
+ },
1300
+ {
1301
+ internalType: "contract ResilientOracle",
1302
+ name: "priceOracle_",
1303
+ type: "address",
1304
+ },
1305
+ {
1306
+ internalType: "address",
1307
+ name: "destinationAddress_",
1308
+ type: "address",
1309
+ },
1310
+ {
1311
+ internalType: "address",
1312
+ name: "poolRegistry_",
1313
+ type: "address",
1314
+ },
1315
+ {
1316
+ internalType: "uint256",
1317
+ name: "minAmountToConvert_",
1318
+ type: "uint256",
1319
+ },
1320
+ {
1321
+ internalType: "address[]",
1322
+ name: "comptrollers",
1323
+ type: "address[]",
1324
+ },
1325
+ {
1326
+ internalType: "address[][]",
1327
+ name: "assets",
1328
+ type: "address[][]",
1329
+ },
1330
+ {
1331
+ internalType: "bool[][]",
1332
+ name: "values",
1333
+ type: "bool[][]",
1334
+ },
1335
+ ],
1336
+ name: "initialize",
1337
+ outputs: [],
1338
+ stateMutability: "nonpayable",
1339
+ type: "function",
1340
+ },
1341
+ {
1342
+ inputs: [],
1343
+ name: "minAmountToConvert",
1344
+ outputs: [
1345
+ {
1346
+ internalType: "uint256",
1347
+ name: "",
1348
+ type: "uint256",
1349
+ },
1350
+ ],
1351
+ stateMutability: "view",
1352
+ type: "function",
1353
+ },
1354
+ {
1355
+ inputs: [],
1356
+ name: "owner",
1357
+ outputs: [
1358
+ {
1359
+ internalType: "address",
1360
+ name: "",
1361
+ type: "address",
1362
+ },
1363
+ ],
1364
+ stateMutability: "view",
1365
+ type: "function",
1366
+ },
1367
+ {
1368
+ inputs: [],
1369
+ name: "pauseConversion",
1370
+ outputs: [],
1371
+ stateMutability: "nonpayable",
1372
+ type: "function",
1373
+ },
1374
+ {
1375
+ inputs: [],
1376
+ name: "pendingOwner",
1377
+ outputs: [
1378
+ {
1379
+ internalType: "address",
1380
+ name: "",
1381
+ type: "address",
1382
+ },
1383
+ ],
1384
+ stateMutability: "view",
1385
+ type: "function",
1386
+ },
1387
+ {
1388
+ inputs: [],
1389
+ name: "poolRegistry",
1390
+ outputs: [
1391
+ {
1392
+ internalType: "address",
1393
+ name: "",
1394
+ type: "address",
1395
+ },
1396
+ ],
1397
+ stateMutability: "view",
1398
+ type: "function",
1399
+ },
1400
+ {
1401
+ inputs: [
1402
+ {
1403
+ internalType: "address",
1404
+ name: "",
1405
+ type: "address",
1406
+ },
1407
+ {
1408
+ internalType: "address",
1409
+ name: "",
1410
+ type: "address",
1411
+ },
1412
+ ],
1413
+ name: "poolsAssetsDirectTransfer",
1414
+ outputs: [
1415
+ {
1416
+ internalType: "bool",
1417
+ name: "",
1418
+ type: "bool",
1419
+ },
1420
+ ],
1421
+ stateMutability: "view",
1422
+ type: "function",
1423
+ },
1424
+ {
1425
+ inputs: [
1426
+ {
1427
+ internalType: "address",
1428
+ name: "tokenInAddress",
1429
+ type: "address",
1430
+ },
1431
+ {
1432
+ internalType: "address",
1433
+ name: "tokenOutAddress",
1434
+ type: "address",
1435
+ },
1436
+ {
1437
+ internalType: "uint256",
1438
+ name: "amountIn",
1439
+ type: "uint256",
1440
+ },
1441
+ {
1442
+ internalType: "uint256",
1443
+ name: "amountOut",
1444
+ type: "uint256",
1445
+ },
1446
+ ],
1447
+ name: "postConversionHookMock",
1448
+ outputs: [],
1449
+ stateMutability: "nonpayable",
1450
+ type: "function",
1451
+ },
1452
+ {
1453
+ inputs: [
1454
+ {
1455
+ internalType: "address",
1456
+ name: "tokenOutAddress",
1457
+ type: "address",
1458
+ },
1459
+ {
1460
+ internalType: "uint256",
1461
+ name: "amountOut",
1462
+ type: "uint256",
1463
+ },
1464
+ ],
1465
+ name: "preTransferHookMock",
1466
+ outputs: [],
1467
+ stateMutability: "nonpayable",
1468
+ type: "function",
1469
+ },
1470
+ {
1471
+ inputs: [],
1472
+ name: "priceOracle",
1473
+ outputs: [
1474
+ {
1475
+ internalType: "contract ResilientOracle",
1476
+ name: "",
1477
+ type: "address",
1478
+ },
1479
+ ],
1480
+ stateMutability: "view",
1481
+ type: "function",
1482
+ },
1483
+ {
1484
+ inputs: [],
1485
+ name: "renounceOwnership",
1486
+ outputs: [],
1487
+ stateMutability: "nonpayable",
1488
+ type: "function",
1489
+ },
1490
+ {
1491
+ inputs: [],
1492
+ name: "resumeConversion",
1493
+ outputs: [],
1494
+ stateMutability: "nonpayable",
1495
+ type: "function",
1496
+ },
1497
+ {
1498
+ inputs: [
1499
+ {
1500
+ internalType: "address",
1501
+ name: "accessControlManager_",
1502
+ type: "address",
1503
+ },
1504
+ ],
1505
+ name: "setAccessControlManager",
1506
+ outputs: [],
1507
+ stateMutability: "nonpayable",
1508
+ type: "function",
1509
+ },
1510
+ {
1511
+ inputs: [
1512
+ {
1513
+ internalType: "address",
1514
+ name: "asset",
1515
+ type: "address",
1516
+ },
1517
+ {
1518
+ internalType: "uint256",
1519
+ name: "amount",
1520
+ type: "uint256",
1521
+ },
1522
+ ],
1523
+ name: "setAssetsReserves",
1524
+ outputs: [],
1525
+ stateMutability: "nonpayable",
1526
+ type: "function",
1527
+ },
1528
+ {
1529
+ inputs: [
1530
+ {
1531
+ internalType: "address",
1532
+ name: "tokenAddressIn",
1533
+ type: "address",
1534
+ },
1535
+ {
1536
+ internalType: "address",
1537
+ name: "tokenAddressOut",
1538
+ type: "address",
1539
+ },
1540
+ {
1541
+ components: [
1542
+ {
1543
+ internalType: "uint256",
1544
+ name: "incentive",
1545
+ type: "uint256",
1546
+ },
1547
+ {
1548
+ internalType:
1549
+ "enum IAbstractTokenConverter.ConversionAccessibility",
1550
+ name: "conversionAccess",
1551
+ type: "uint8",
1552
+ },
1553
+ ],
1554
+ internalType: "struct IAbstractTokenConverter.ConversionConfig",
1555
+ name: "conversionConfig",
1556
+ type: "tuple",
1557
+ },
1558
+ ],
1559
+ name: "setConversionConfig",
1560
+ outputs: [],
1561
+ stateMutability: "nonpayable",
1562
+ type: "function",
1563
+ },
1564
+ {
1565
+ inputs: [
1566
+ {
1567
+ internalType: "address",
1568
+ name: "tokenAddressIn",
1569
+ type: "address",
1570
+ },
1571
+ {
1572
+ internalType: "address[]",
1573
+ name: "tokenAddressesOut",
1574
+ type: "address[]",
1575
+ },
1576
+ {
1577
+ components: [
1578
+ {
1579
+ internalType: "uint256",
1580
+ name: "incentive",
1581
+ type: "uint256",
1582
+ },
1583
+ {
1584
+ internalType:
1585
+ "enum IAbstractTokenConverter.ConversionAccessibility",
1586
+ name: "conversionAccess",
1587
+ type: "uint8",
1588
+ },
1589
+ ],
1590
+ internalType: "struct IAbstractTokenConverter.ConversionConfig[]",
1591
+ name: "conversionConfigs",
1592
+ type: "tuple[]",
1593
+ },
1594
+ ],
1595
+ name: "setConversionConfigs",
1596
+ outputs: [],
1597
+ stateMutability: "nonpayable",
1598
+ type: "function",
1599
+ },
1600
+ {
1601
+ inputs: [
1602
+ {
1603
+ internalType: "contract IConverterNetwork",
1604
+ name: "converterNetwork_",
1605
+ type: "address",
1606
+ },
1607
+ ],
1608
+ name: "setConverterNetwork",
1609
+ outputs: [],
1610
+ stateMutability: "nonpayable",
1611
+ type: "function",
1612
+ },
1613
+ {
1614
+ inputs: [
1615
+ {
1616
+ internalType: "address",
1617
+ name: "destinationAddress_",
1618
+ type: "address",
1619
+ },
1620
+ ],
1621
+ name: "setDestination",
1622
+ outputs: [],
1623
+ stateMutability: "nonpayable",
1624
+ type: "function",
1625
+ },
1626
+ {
1627
+ inputs: [
1628
+ {
1629
+ internalType: "uint256",
1630
+ name: "minAmountToConvert_",
1631
+ type: "uint256",
1632
+ },
1633
+ ],
1634
+ name: "setMinAmountToConvert",
1635
+ outputs: [],
1636
+ stateMutability: "nonpayable",
1637
+ type: "function",
1638
+ },
1639
+ {
1640
+ inputs: [
1641
+ {
1642
+ internalType: "address",
1643
+ name: "poolRegistry_",
1644
+ type: "address",
1645
+ },
1646
+ ],
1647
+ name: "setPoolRegistry",
1648
+ outputs: [],
1649
+ stateMutability: "nonpayable",
1650
+ type: "function",
1651
+ },
1652
+ {
1653
+ inputs: [
1654
+ {
1655
+ internalType: "address[]",
1656
+ name: "comptrollers",
1657
+ type: "address[]",
1658
+ },
1659
+ {
1660
+ internalType: "address[][]",
1661
+ name: "assets",
1662
+ type: "address[][]",
1663
+ },
1664
+ {
1665
+ internalType: "bool[][]",
1666
+ name: "values",
1667
+ type: "bool[][]",
1668
+ },
1669
+ ],
1670
+ name: "setPoolsAssetsDirectTransfer",
1671
+ outputs: [],
1672
+ stateMutability: "nonpayable",
1673
+ type: "function",
1674
+ },
1675
+ {
1676
+ inputs: [
1677
+ {
1678
+ internalType: "address",
1679
+ name: "comptroller",
1680
+ type: "address",
1681
+ },
1682
+ {
1683
+ internalType: "address",
1684
+ name: "asset",
1685
+ type: "address",
1686
+ },
1687
+ {
1688
+ internalType: "uint256",
1689
+ name: "amount",
1690
+ type: "uint256",
1691
+ },
1692
+ ],
1693
+ name: "setPoolsAssetsReserves",
1694
+ outputs: [],
1695
+ stateMutability: "nonpayable",
1696
+ type: "function",
1697
+ },
1698
+ {
1699
+ inputs: [
1700
+ {
1701
+ internalType: "contract ResilientOracle",
1702
+ name: "priceOracle_",
1703
+ type: "address",
1704
+ },
1705
+ ],
1706
+ name: "setPriceOracle",
1707
+ outputs: [],
1708
+ stateMutability: "nonpayable",
1709
+ type: "function",
1710
+ },
1711
+ {
1712
+ inputs: [
1713
+ {
1714
+ internalType: "address",
1715
+ name: "tokenAddress",
1716
+ type: "address",
1717
+ },
1718
+ {
1719
+ internalType: "address",
1720
+ name: "to",
1721
+ type: "address",
1722
+ },
1723
+ {
1724
+ internalType: "uint256",
1725
+ name: "amount",
1726
+ type: "uint256",
1727
+ },
1728
+ ],
1729
+ name: "sweepToken",
1730
+ outputs: [],
1731
+ stateMutability: "nonpayable",
1732
+ type: "function",
1733
+ },
1734
+ {
1735
+ inputs: [
1736
+ {
1737
+ internalType: "address",
1738
+ name: "newOwner",
1739
+ type: "address",
1740
+ },
1741
+ ],
1742
+ name: "transferOwnership",
1743
+ outputs: [],
1744
+ stateMutability: "nonpayable",
1745
+ type: "function",
1746
+ },
1747
+ {
1748
+ inputs: [
1749
+ {
1750
+ internalType: "address",
1751
+ name: "comptroller",
1752
+ type: "address",
1753
+ },
1754
+ {
1755
+ internalType: "address",
1756
+ name: "asset",
1757
+ type: "address",
1758
+ },
1759
+ ],
1760
+ name: "updateAssetsState",
1761
+ outputs: [],
1762
+ stateMutability: "nonpayable",
1763
+ type: "function",
1764
+ },
1765
+ ];
1766
+
1767
+ const _bytecode =
1768
+ "0x60e06040523480156200001157600080fd5b5060405162005c6238038062005c62833981016040819052620000349162000190565b828282620000428362000087565b6200004d8262000087565b620000588162000087565b6001600160a01b0380841660805282811660a052811660c0526200007b620000b2565b505050505050620001da565b6001600160a01b038116620000af576040516342bcdf7f60e11b815260040160405180910390fd5b50565b600054610100900460ff16156200011f5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000171576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b80516001600160a01b03811681146200018b57600080fd5b919050565b600080600060608486031215620001a657600080fd5b620001b18462000173565b9250620001c16020850162000173565b9150620001d16040850162000173565b90509250925092565b60805160a05160c051615a356200022d600039600081816104240152612e5b0152600081816103fd0152612d980152600081816107a601528181610e9b01528181612cdf01526135ce0152615a356000f3fe608060405234801561001057600080fd5b506004361061032b5760003560e01c8063715018a6116101b2578063b6828c57116100f9578063e30c3978116100a2578063f0dc7e9d1161007c578063f0dc7e9d1461077b578063f2fde38b1461078e578063fa7b81a0146107a1578063fe3da984146107c857600080fd5b8063e30c397814610744578063e50aa3d414610755578063f04c31871461076857600080fd5b8063c0654646116100d3578063c06546461461070f578063ca32546914610722578063e2ff7ea21461073557600080fd5b8063b6828c57146106f4578063bc368b0414610707578063bd7f33321461058f57600080fd5b806390fa7b541161015b578063afcff50f11610135578063afcff50f1461068c578063b491ddf7146106a0578063b4a0bdf3146106e357600080fd5b806390fa7b541461063b5780639fc3c0c21461064e578063aac59a751461067957600080fd5b80637b77cd6a1161018c5780637b77cd6a146105dc578063817ee19c146105ef5780638da5cb5b1461062a57600080fd5b8063715018a6146105b9578063746460a9146105c157806379ba5097146105d457600080fd5b806352e21a18116102765780635e1e63251161021f5780636f1a30a8116101f95780636f1a30a8146105695780636fb052751461057c57806370a082311461058f57600080fd5b80635e1e63251461053057806364aff9ec146105435780636daa463b1461055657600080fd5b8063556bbd8a11610250578063556bbd8a146104f557806358b904df146105085780635c39f4671461051057600080fd5b806352e21a18146104bc578063530e784f146104cf57806355374522146104e257600080fd5b80633421fc52116102d8578063439727a5116102b2578063439727a514610467578063454900fe1461047a5780634dc1c0a6146104a957600080fd5b80633421fc52146103f8578063362b67951461041f5780633d5e29101461044657600080fd5b80630a9a2b72116103095780630a9a2b72146103aa5780630e32cb86146103d25780632630c12f146103e557600080fd5b806301e201781461033057806307aa239e146103605780630a0a05e614610395575b600080fd5b60ff54610343906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b60fe546103859074010000000000000000000000000000000000000000900460ff1681565b6040519015158152602001610357565b6103a86103a3366004614f14565b6107d1565b005b6103bd6103b8366004614f31565b6107e5565b60408051928352602083019190915201610357565b6103a86103e0366004614f14565b6108a0565b60fc54610343906001600160a01b031681565b6103437f000000000000000000000000000000000000000000000000000000000000000081565b6103437f000000000000000000000000000000000000000000000000000000000000000081565b610459610454366004614f73565b6108b1565b604051908152602001610357565b6103bd610475366004614fac565b6108df565b610385610488366004614f73565b61013060209081526000928352604080842090915290825290205460ff1681565b6103a86104b736600461500b565b610a29565b6103a86104ca366004614f14565b610a3b565b6103a86104dd366004614f14565b610a4c565b6103a86104f036600461509d565b610a5d565b6103a8610503366004615137565b610a94565b6103a8610c6b565b61052361051e366004614f14565b610d51565b6040516103579190615224565b6103bd61053e366004614f31565b610eed565b6103a8610551366004615271565b610fd2565b6103bd610564366004614f31565b611079565b6103bd610577366004614f31565b611182565b61045961058a366004614f73565b611281565b61045961059d366004614f14565b6001600160a01b0316600090815261012d602052604090205490565b6103a8611346565b6103a86105cf3660046152b2565b61135a565b6103a86113a1565b6103a86105ea366004614f14565b61142c565b6103a86105fd366004615271565b6001600160a01b03928316600090815261012e602090815260408083209490951682529290925291902055565b6033546001600160a01b0316610343565b6103bd610649366004614fac565b6114b3565b6103a861065c3660046152cb565b6001600160a01b03909116600090815261012d6020526040902055565b6103a8610687366004614f73565b6115a9565b61012f54610343906001600160a01b031681565b6106d56106ae366004614f73565b60fd6020908152600092835260408084209091529082529020805460019091015460ff1682565b604051610357929190615361565b6097546001600160a01b0316610343565b6103bd610702366004614fac565b6115df565b6103a86116d5565b6103a861071d366004615375565b611787565b60fe54610343906001600160a01b031681565b6104596706f05b59d3b2000081565b6065546001600160a01b0316610343565b6103a86107633660046152cb565b611825565b6103bd610776366004614fac565b61182f565b6103a8610789366004615425565b61195e565b6103a861079c366004614f14565b611d06565b6103437f000000000000000000000000000000000000000000000000000000000000000081565b61045960fb5481565b6107d9611d8f565b6107e281611de9565b50565b60008060026001600160a01b03808616600090815260fd602090815260408083209388168352929052206001015460ff166003811115610827576108276152f7565b0361085e576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600090815261012d602052604090205485811015610884578095505b859250610892868686611e66565b508092505050935093915050565b6108a8611d8f565b6107e2816121cc565b6001600160a01b03808316600090815261012e60209081526040808320938516835292905220545b92915050565b6000808285856108ed6122c1565b6108f683612316565b816001600160a01b0316836001600160a01b031614806109275750806001600160a01b0316836001600160a01b0316145b1561095e576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610966612356565b6109738a8a8a8a8a6123af565b90955093508985146109b1576040517fc214279600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109bd8888878761242f565b604080516001600160a01b038a81168252602082018890529181018690528189169188169033907f795a235be939acb902ac69562805f86e1341a9b019c351b996e2aa2dfc34c67c906060015b60405180910390a4610a1c600160c955565b5050509550959350505050565b610a358484848461242f565b50505050565b610a43611d8f565b6107e2816127aa565b610a54611d8f565b6107e281612827565b610a7e6040518060600160405280603c81526020016159c4603c91396128a4565b610a8c868686868686612970565b505050505050565b600054610100900460ff1615808015610ab45750600054600160ff909116105b80610ace5750303b158015610ace575060005460ff166001145b610b455760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610ba357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610baf8c8c8c8b612c41565b610bb889612316565b61012f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038b16179055610bfa878787878787612970565b8015610c5d57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050505050565b610ca96040518060400160405280601281526020017f726573756d65436f6e76657273696f6e282900000000000000000000000000008152506128a4565b60fe5474010000000000000000000000000000000000000000900460ff16610cfc576040517e6d8dbb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fe80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905560405133907f89b79206f08dadd78502cff5075d2b094fa0abea0b063cfafe4475e2a380c51f90600090a2565b61012f546040517ff36dba380000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152606092169063f36dba3890602401600060405180830381865afa158015610db6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dde919081019061558e565b9050610de982612cda565b15610ee85780516000610dfd8260016155f2565b67ffffffffffffffff811115610e1557610e15615496565b604051908082528060200260200182016040528015610e3e578160200160208202803683370190505b50905060005b82811015610e9857838181518110610e5e57610e5e61560a565b6020026020010151828281518110610e7857610e7861560a565b6001600160a01b0390921660209283029190910190910152600101610e44565b507f0000000000000000000000000000000000000000000000000000000000000000818381518110610ecc57610ecc61560a565b6001600160a01b03909216602092830291909101909101529150505b919050565b60008060026001600160a01b03808616600090815260fd602090815260408083209388168352929052206001015460ff166003811115610f2f57610f2f6152f7565b03610f66576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8491506000610f76868686612ea6565b90925090506000610f9d856001600160a01b0316600090815261012d602052604090205490565b905082811015610fc857610fc2610fbc670de0b6b3a764000083615639565b836131b3565b93508092505b5050935093915050565b610fda611d8f565b610fe2612356565b610feb83612316565b610ff482612316565b610ffd816131dd565b826110088183613217565b61101c6001600160a01b0382168484613521565b826001600160a01b0316846001600160a01b03167f6d25be279134f4ecaa4770aff0c3d916d9e7c5ef37b65ed95dbdba411f5d54d58460405161106191815260200190565b60405180910390a350611074600160c955565b505050565b60fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600092839291169063b62cad6990602401600060405180830381600087803b1580156110dd57600080fd5b505af11580156110f1573d6000803e3d6000fd5b505060fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116925063b62cad699150602401600060405180830381600087803b15801561115557600080fd5b505af1158015611169573d6000803e3d6000fd5b50505050611178858585612ea6565b5094959350505050565b60fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600092839291169063b62cad6990602401600060405180830381600087803b1580156111e657600080fd5b505af11580156111fa573d6000803e3d6000fd5b505060fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152909116925063b62cad699150602401600060405180830381600087803b15801561125e57600080fd5b505af1158015611272573d6000803e3d6000fd5b50505050611178858585611e66565b600061128f60c95460021490565b156112c6576040517f9a050fe700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112d083836135ca565b611319576040517f983f1fb50000000000000000000000000000000000000000000000000000000081526001600160a01b03808516600483015283166024820152604401610b3c565b506001600160a01b03918216600090815261012e6020908152604080832093909416825291909152205490565b61134e611d8f565b61135860006136b8565b565b6113986040518060400160405280601e81526020017f7365744d696e416d6f756e74546f436f6e766572742875696e743235362900008152506128a4565b6107e2816136e9565b60655433906001600160a01b031681146114235760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610b3c565b6107e2816136b8565b611434611d8f565b61143d81612316565b61012f546040516001600160a01b038084169216907fa87b964d321035d2165e484ff4b722dd6eae30606c0b98887d2ed1a34e594bfe90600090a361012f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000808285856114c16122c1565b6114ca83612316565b816001600160a01b0316836001600160a01b031614806114fb5750806001600160a01b0316836001600160a01b0316145b15611532576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61153a612356565b6115478a8a8a8a8a6123af565b90955093506115588888878761242f565b604080516001600160a01b038a81168252602082018890529181018690528189169188169033907f93b7ba2a2b0e36320375853d7466af5685c07567804b871b4fdfd31e3bb7715490606001610a0a565b6115b1612356565b60006115bd8383613733565b905080156115d0576115d0838383613a90565b506115db600160c955565b5050565b6000808285856115ed6122c1565b6115f683612316565b816001600160a01b0316836001600160a01b031614806116275750806001600160a01b0316836001600160a01b0316145b1561165e576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611666612356565b6116738a8a8a8a8a613f2c565b90955093506116848888878761242f565b604080516001600160a01b038a81168252602082018890529181018690528189169188169033907f9b7dc1d7d2974d015b4fc39889a09f3a3923add808f5863158f3162d997d4e8290606001610a0a565b6117136040518060400160405280601181526020017f7061757365436f6e76657273696f6e28290000000000000000000000000000008152506128a4565b61171b6122c1565b60fe80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560405133907f490bc639fd0d96f19c8adf77bc98d17fbefdee2e1e1864d21f041360d0ee065a90600090a2565b828181146117c1576040517f4d5590f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561181c57611814878787848181106117e2576117e261560a565b90506020020160208101906117f79190614f14565b8686858181106118095761180961560a565b90506040020161195e565b6001016117c4565b50505050505050565b6115db8282613fbe565b60008082858561183d6122c1565b61184683612316565b816001600160a01b0316836001600160a01b031614806118775750806001600160a01b0316836001600160a01b0316145b156118ae576040517f8aa3a72f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118b6612356565b6118c38a8a8a8a8a613ff0565b9095509350888414611901576040517fa8dc653c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61190d8888878761242f565b604080516001600160a01b038a81168252602082018890529181018690528189169188169033907fcb4ea7de8d069b0f443b792cba6c6df5096508951bbc75c04ac42c9251efe07690606001610a0a565b61197f60405180606001604052806035815260200161598f603591396128a4565b61198883612316565b61199182612316565b6706f05b59d3b20000813511156119e5576040517f9770caee000000000000000000000000000000000000000000000000000000008152813560048201526706f05b59d3b200006024820152604401610b3c565b816001600160a01b0316836001600160a01b03161480611a1e5750611a086140ad565b6001600160a01b0316836001600160a01b031614155b80611a66575060006001600160a01b03808416600090815260fd602090815260408083209388168352929052206001015460ff166003811115611a6357611a636152f7565b14155b15611a9d576040517feebb5ac600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002611aaf6040830160208401615676565b6003811115611ac057611ac06152f7565b148015611acd5750803515155b15611b04576040517fd0d4aabe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002611b166040830160208401615676565b6003811115611b2757611b276152f7565b1480611b5357506001611b406040830160208401615676565b6003811115611b5157611b516152f7565b145b8015611b68575060ff546001600160a01b0316155b15611b9f576040517fe7c2c99400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808416600081815260fd602090815260408083209487168084529482529182902080546001820154919594937f39fbfdd5da133303ed31b1b65e30a0ddf7a9236573368c66c859dceccc1dd12a93919288359260ff90911691611c0f91908a01908a01615676565b604051611c1f9493929190615697565b60405180910390a36000611c396040840160208501615676565b6003811115611c4a57611c4a6152f7565b03611ca7576001600160a01b03808516600090815260fd60209081526040808320938716835292905290812090815560010180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055610a35565b81358155611cbb6040830160208401615676565b6001808301805490917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090911690836003811115611cfb57611cfb6152f7565b021790555050505050565b611d0e611d8f565b606580546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155611d576033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6033546001600160a01b031633146113585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3c565b611df281612316565b60fe546040516001600160a01b038084169216907f9be3097b5c8b276786be52a244ee90d66efd34805d9eb16f168fb2b4aaae9a2b90600090a360fe80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008084600003611ea3576040517f42301c2300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808516600090815260fd6020908152604080832093871683529281528282208351808501909452805484526001810154929392909183019060ff166003811115611ef757611ef76152f7565b6003811115611f0857611f086152f7565b9052509050600081602001516003811115611f2557611f256152f7565b03611f5c576040517f618ce59700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015260009216906341976e0990602401602060405180830381865afa158015611fc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe491906156c8565b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152929350600092909116906341976e0990602401602060405180830381865afa15801561204d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207191906156c8565b835160ff54919250906000906001600160a01b031615801590612114575060ff546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa1580156120f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211491906156e1565b9050801561212157600091505b600061213583670de0b6b3a76400006155f2565b90508115612175576121478186615639565b670de0b6b3a764000061215a868e615639565b6121649190615639565b61216e9190615703565b97506121a7565b6121a4670de0b6b3a764000061218b868e615639565b6121959190615639565b61219f8388615639565b6131b3565b97505b836121b28287615639565b6121bc9190615703565b9650505050505050935093915050565b6001600160a01b0381166122485760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b3c565b609780546001600160a01b038381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b60fe5474010000000000000000000000000000000000000000900460ff1615611358576040517f952bcf7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0381166107e2576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600260c954036123a85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b3c565b600260c955565b6000806123bc8585614139565b6123c68588614259565b91506123d3828686611079565b9150508581101561241a576040517f228f8c110000000000000000000000000000000000000000000000000000000081526004810182905260248101879052604401610b3c565b6124258484836143a4565b9550959350505050565b600061243a84610d51565b6001600160a01b038516600090815261012d6020526040812054919250906124639084906155f2565b905061246e816131dd565b815160008080805b8481101561279657600061012e60008984815181106124975761249761560a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000205490508060001461278d576124f860018761573e565b821015612558576125248883815181106125145761251461560a565b60200260200101518c8b8a61441e565b61252e90866155f2565b94508661253b828c615639565b6125459190615703565b935061255184846155f2565b9250612653565b6000612564868b61573e565b90508061012e60008b868151811061257e5761257e61560a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546125d8919061573e565b925050819055508b6001600160a01b03168984815181106125fb576125fb61560a565b60200260200101516001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce388360405161263d91815260200190565b60405180910390a361264f848c61573e565b9450505b8b6001600160a01b031688838151811061266f5761266f61560a565b60200260200101516001600160a01b031660fe60009054906101000a90046001600160a01b03166001600160a01b03167fadc20ad416881f76b4304665c35f5be8592297bcdfe4f0bb087b9d254222af55876040516126d091815260200190565b60405180910390a460fe5488516001600160a01b03909116906353ac3537908a90859081106127015761270161560a565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039182166004820152908f16602482015260448101879052606401600060405180830381600087803b15801561277457600080fd5b505af1158015612788573d6000803e3d6000fd5b505050505b50600101612476565b5050505050505050505050565b600160c955565b6127b381612316565b60ff546040516001600160a01b038084169216907f50f1a16bf24734355b14ff800d132cc0a934808b8621d5623b41bc67f204881790600090a360ff80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61283081612316565b60fc546040516001600160a01b038084169216907f56b5f80d8cac1479698aa7d01605fd6111e90b15fc4d2b377417f46034876cbd90600090a360fc80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6097546040517f18c5e8ab0000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906318c5e8ab906128f090339086906004016157ad565b602060405180830381865afa15801561290d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061293191906156e1565b9050806115db573330836040517f4a3fa293000000000000000000000000000000000000000000000000000000008152600401610b3c939291906157cf565b8483811415806129805750808214155b156129b7576040517f5f6f132c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015612c375760008686838181106129d6576129d661560a565b90506020028101906129e891906157fb565b808060200260200160405190810160405280939291908181526020018383602002808284376000920182905250939450889250879150859050818110612a3057612a3061560a565b9050602002810190612a4291906157fb565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050845183519394509283149150612ab59050576040517f5f6f132c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015612c2857828181518110612ad257612ad261560a565b602002602001015161013060008e8e89818110612af157612af161560a565b9050602002016020810190612b069190614f14565b6001600160a01b03166001600160a01b031681526020019081526020016000206000868481518110612b3a57612b3a61560a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550838181518110612b8b57612b8b61560a565b60200260200101516001600160a01b03168c8c87818110612bae57612bae61560a565b9050602002016020810190612bc39190614f14565b6001600160a01b03167f6333c55c3657aafc9b39e2586076d198ed0250804559126489c852f28d51280c858481518110612bff57612bff61560a565b6020026020010151604051612c18911515815260200190565b60405180910390a3600101612ab8565b508360010193505050506129ba565b5050505050505050565b600054610100900460ff16612cbe5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b612cc7846144f7565b612ccf614585565b610a3583838361460a565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b0772d0b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015612d3b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d63919081019061558e565b805190915060005b81811015612e9e57828181518110612d8557612d8561560a565b60200260200101516001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614612e5957846001600160a01b0316838281518110612de157612de161560a565b60200260200101516001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612e26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e4a9190615863565b6001600160a01b031614612e8f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316145b935083612e9e57600101612d6b565b505050919050565b60008084600003612ee3576040517f098fb56100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808516600090815260fd6020908152604080832093871683529281528282208351808501909452805484526001810154929392909183019060ff166003811115612f3757612f376152f7565b6003811115612f4857612f486152f7565b9052509050600081602001516003811115612f6557612f656152f7565b03612f9c576040517f618ce59700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015260009216906341976e0990602401602060405180830381865afa158015613000573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061302491906156c8565b60fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152929350600092909116906341976e0990602401602060405180830381865afa15801561308d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130b191906156c8565b835160ff54919250906001600160a01b031615801590613151575060ff546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa15801561312d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061315191906156e1565b1561315a575060005b600061316e82670de0b6b3a76400006155f2565b90508261317b8286615639565b6131859190615703565b9550670de0b6b3a764000061319a878c615639565b6131a49190615703565b96505050505050935093915050565b60008160016131c282866155f2565b6131cc919061573e565b6131d69190615703565b9392505050565b806000036107e2576040517f9cf8540c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015613277573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061329b91906156c8565b9050808211156132d7576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600090815261012d60205260408120546132fb908361573e565b905082811015610a3557808303600061331386610d51565b6001600160a01b038716600090815261012d602052604081205482519293509190805b828110156134e75761012e60008683815181106133555761335561560a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020546000146134df576133b360018461573e565b8110156133f0576133df8582815181106133cf576133cf61560a565b60200260200101518b888761441e565b6133e990836155f2565b91506134df565b60006133fc838861573e565b90508061012e60008885815181106134165761341661560a565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000206000828254613470919061573e565b925050819055508a6001600160a01b03168683815181106134935761349361560a565b60200260200101516001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce38836040516134d591815260200190565b60405180910390a3505b600101613336565b506001600160a01b038916600090815261012d60205260408120805487929061351190849061573e565b9091555050505050505050505050565b6040516001600160a01b0383166024820152604481018290526110749084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526146cf565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316036136155761360e82612cda565b90506108d9565b61012f546040517f266e0a7f0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152600092169063266e0a7f90604401602060405180830381865afa158015613682573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136a69190615863565b6001600160a01b031614159392505050565b606580547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556107e2816147b7565b6136f2816131dd565b60fb5460408051918252602082018390527fada67d0d38fa20c8ae6a5c17cb9d60b0fe7f2d4e4f27ac9ee55e54ac88de9d8d910160405180910390a160fb55565b600061373f83836135ca565b613788576040517f983f1fb50000000000000000000000000000000000000000000000000000000081526001600160a01b03808516600483015283166024820152604401610b3c565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156137ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061380e91906156c8565b6001600160a01b038516600090815261012d602052604090205490915080821115613a87576001600160a01b0380871660009081526101306020908152604080832093891683529290522054818303945060ff1615613a875760fe546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526000918516906370a0823190602401602060405180830381865afa1580156138cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138f091906156c8565b60fe5490915061390d906001600160a01b03868116911687613521565b60fe546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526000918616906370a0823190602401602060405180830381865afa158015613972573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061399691906156c8565b60fe546040518881529192506001600160a01b03898116928b82169291909116907fadc20ad416881f76b4304665c35f5be8592297bcdfe4f0bb087b9d254222af559060200160405180910390a460fe546001600160a01b03166353ac35378989613a01868661573e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015613a6857600080fd5b505af1158015613a7c573d6000803e3d6000fd5b505050506000955050505b50505092915050565b6000613a9a6140ad565b60fe5460ff549192506001600160a01b03908116916000911615613f1f5760ff546040517f4e9f8f390000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015285811660248301526000928392911690634e9f8f39906044016000604051808303816000875af1158015613b29573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b519190810190615880565b8151919350915060005b81811015613f1a57828181518110613b7557613b7561560a565b602002602001015160000315613f1a576000848281518110613b9957613b9961560a565b60200260200101516001600160a01b0316636f1a30a8858481518110613bc157613bc161560a565b60200260200101518c8b6040518463ffffffff1660e01b8152600401613c03939291909283526001600160a01b03918216602084015216604082015260600190565b60408051808303816000875af1158015613c21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c45919061593b565b91505088811115613c535750875b613c5d818b614821565b613c675750613f1a565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038881166004830152600091908a16906370a0823190602401602060405180830381865afa158015613cca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cee91906156c8565b90508a6001600160a01b031663095ea7b3878581518110613d1157613d1161560a565b6020026020010151846040518363ffffffff1660e01b8152600401613d4b9291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af1158015613d6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d8e91906156e1565b50858381518110613da157613da161560a565b60209081029190910101516040517f439727a500000000000000000000000000000000000000000000000000000000815260048101849052600060248201526001600160a01b038d811660448301528b811660648301528a811660848301529091169063439727a59060a40160408051808303816000875af1158015613e2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e4f919061593b565b50506040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038981166004830152600091908b16906370a0823190602401602060405180830381865afa158015613eb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ed891906156c8565b9050613ee4838c61573e565b9a50613ef0828261573e565b613efa90896155f2565b97508a600003613f0c57505050613f1a565b836001019350505050613b5b565b505050505b610a8c8684838888614959565b600080613f398585614139565b6000613f46878787611182565b91505087811115613f8d576040517f71b5f0c10000000000000000000000000000000000000000000000000000000081526004810182905260248101899052604401610b3c565b613f978682614259565b9250613fa4838787611079565b9250613fb390508585846143a4565b509550959350505050565b6001600160a01b038216600090815261012d602052604081208054839290613fe790849061573e565b90915550505050565b600080613ffd8585614139565b600061400a878787611182565b9150506140178682614259565b9250808314614052576040517f0c5c1c2000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b87831115614096576040517f71b5f0c10000000000000000000000000000000000000000000000000000000081526004810182905260248101899052604401610b3c565b6140a18585896143a4565b50909694955050505050565b60fe54604080517fc8ecc0d300000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163c8ecc0d39160048083019260209291908290030181865afa158015614110573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141349190615863565b905090565b60ff546000906001600160a01b0316158015906141d6575060ff546040517f6c059fb10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690636c059fb190602401602060405180830381865afa1580156141b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d691906156e1565b905080158015614222575060026001600160a01b03808516600090815260fd602090815260408083209387168352929052206001015460ff166003811115614220576142206152f7565b145b15611074576040517f03410cd100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fe546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152600091849183918316906370a0823190602401602060405180830381865afa1580156142c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e691906156c8565b60fe54909150614305906001600160a01b038481169133911687614af7565b60fe546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526000918416906370a0823190602401602060405180830381865afa15801561436a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061438e91906156c8565b905061439a828261573e565b9695505050505050565b6001600160a01b038316600090815261012d6020526040902054818110156143f8576040517f6bb2792900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6144028483613fbe565b836144176001600160a01b0382168585613521565b5050505050565b6001600160a01b03808516600090815261012e602090815260408083209387168352929052908120548290614454908590615639565b61445e9190615703565b6001600160a01b03808716600090815261012e6020908152604080832093891683529290529081208054929350839290919061449b90849061573e565b92505081905550836001600160a01b0316856001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce38836040516144e791815260200190565b60405180910390a3949350505050565b600054610100900460ff166145745760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b61457c614b48565b6107e281614bcd565b600054610100900460ff166146025760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b611358614c4a565b600054610100900460ff166146875760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b61469083612827565b61469982611de9565b6146a2816136e9565b505060fe80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905550565b6000614724826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614cc79092919063ffffffff16565b905080516000148061474557508080602001905181019061474591906156e1565b6110745760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b3c565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60fc546040517fb62cad690000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600092169063b62cad6990602401600060405180830381600087803b15801561488257600080fd5b505af1158015614896573d6000803e3d6000fd5b505060fc546040517f41976e090000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015260009450670de0b6b3a76400009350879216906341976e0990602401602060405180830381865afa15801561490a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061492e91906156c8565b6149389190615639565b6149429190615703565b905060fb54811061495257600191505b5092915050565b8215614a305760fe546040518481526001600160a01b0386811692888216929116907fadc20ad416881f76b4304665c35f5be8592297bcdfe4f0bb087b9d254222af559060200160405180910390a460fe546040517f53ac35370000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152868116602483015260448201869052909116906353ac353790606401600060405180830381600087803b158015614a1757600080fd5b505af1158015614a2b573d6000803e3d6000fd5b505050505b8015614417576001600160a01b038216600090815261012d602052604081208054839290614a5f9084906155f2565b90915550506001600160a01b03808616600090815261012e6020908152604080832093861683529290529081208054839290614a9c9084906155f2565b92505081905550816001600160a01b0316856001600160a01b03167fc39e3e80c0219fde334a8cb5d8468b628482e23388b6e809c90cb00c63c8ce3883604051614ae891815260200190565b60405180910390a35050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a359085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401613566565b600054610100900460ff16614bc55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b611358614cde565b600054610100900460ff166108a85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b600054610100900460ff166127a35760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b6060614cd68484600085614d64565b949350505050565b600054610100900460ff16614d5b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610b3c565b611358336136b8565b606082471015614ddc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610b3c565b600080866001600160a01b03168587604051614df8919061595f565b60006040518083038185875af1925050503d8060008114614e35576040519150601f19603f3d011682016040523d82523d6000602084013e614e3a565b606091505b5091509150614e4b87838387614e56565b979650505050505050565b60608315614ec5578251600003614ebe576001600160a01b0385163b614ebe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b3c565b5081614cd6565b614cd68383815115614eda5781518083602001fd5b8060405162461bcd60e51b8152600401610b3c919061597b565b6001600160a01b03811681146107e257600080fd5b8035610ee881614ef4565b600060208284031215614f2657600080fd5b81356131d681614ef4565b600080600060608486031215614f4657600080fd5b833592506020840135614f5881614ef4565b91506040840135614f6881614ef4565b809150509250925092565b60008060408385031215614f8657600080fd5b8235614f9181614ef4565b91506020830135614fa181614ef4565b809150509250929050565b600080600080600060a08688031215614fc457600080fd5b85359450602086013593506040860135614fdd81614ef4565b92506060860135614fed81614ef4565b91506080860135614ffd81614ef4565b809150509295509295909350565b6000806000806080858703121561502157600080fd5b843561502c81614ef4565b9350602085013561503c81614ef4565b93969395505050506040820135916060013590565b60008083601f84011261506357600080fd5b50813567ffffffffffffffff81111561507b57600080fd5b6020830191508360208260051b850101111561509657600080fd5b9250929050565b600080600080600080606087890312156150b657600080fd5b863567ffffffffffffffff808211156150ce57600080fd5b6150da8a838b01615051565b909850965060208901359150808211156150f357600080fd5b6150ff8a838b01615051565b9096509450604089013591508082111561511857600080fd5b5061512589828a01615051565b979a9699509497509295939492505050565b60008060008060008060008060008060006101008c8e03121561515957600080fd5b6151628c614f09565b9a5061517060208d01614f09565b995061517e60408d01614f09565b985061518c60608d01614f09565b975060808c0135965067ffffffffffffffff8060a08e013511156151af57600080fd5b6151bf8e60a08f01358f01615051565b909750955060c08d01358110156151d557600080fd5b6151e58e60c08f01358f01615051565b909550935060e08d01358110156151fb57600080fd5b5061520c8d60e08e01358e01615051565b81935080925050509295989b509295989b9093969950565b6020808252825182820181905260009190848201906040850190845b818110156152655783516001600160a01b031683529284019291840191600101615240565b50909695505050505050565b60008060006060848603121561528657600080fd5b833561529181614ef4565b925060208401356152a181614ef4565b929592945050506040919091013590565b6000602082840312156152c457600080fd5b5035919050565b600080604083850312156152de57600080fd5b82356152e981614ef4565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6004811061535d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b828152604081016131d66020830184615326565b60008060008060006060868803121561538d57600080fd5b853561539881614ef4565b9450602086013567ffffffffffffffff808211156153b557600080fd5b6153c189838a01615051565b909650945060408801359150808211156153da57600080fd5b818801915088601f8301126153ee57600080fd5b8135818111156153fd57600080fd5b8960208260061b850101111561541257600080fd5b9699959850939650602001949392505050565b6000806000838503608081121561543b57600080fd5b843561544681614ef4565b9350602085013561545681614ef4565b925060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08201121561548857600080fd5b506040840190509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156154ee576154ee615496565b604052919050565b600067ffffffffffffffff82111561551057615510615496565b5060051b60200190565b600082601f83011261552b57600080fd5b8151602061554061553b836154f6565b6154c5565b82815260059290921b8401810191818101908684111561555f57600080fd5b8286015b8481101561558357805161557681614ef4565b8352918301918301615563565b509695505050505050565b6000602082840312156155a057600080fd5b815167ffffffffffffffff8111156155b757600080fd5b614cd68482850161551a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115615605576156056155c3565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615671576156716155c3565b500290565b60006020828403121561568857600080fd5b8135600481106131d657600080fd5b84815260208101849052608081016156b26040830185615326565b6156bf6060830184615326565b95945050505050565b6000602082840312156156da57600080fd5b5051919050565b6000602082840312156156f357600080fd5b815180151581146131d657600080fd5b600082615739577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015615750576157506155c3565b500390565b60005b83811015615770578181015183820152602001615758565b83811115610a355750506000910152565b60008151808452615799816020860160208601615755565b601f01601f19169290920160200192915050565b6001600160a01b0383168152604060208201526000614cd66040830184615781565b60006001600160a01b038086168352808516602084015250606060408301526156bf6060830184615781565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261583057600080fd5b83018035915067ffffffffffffffff82111561584b57600080fd5b6020019150600581901b360382131561509657600080fd5b60006020828403121561587557600080fd5b81516131d681614ef4565b6000806040838503121561589357600080fd5b825167ffffffffffffffff808211156158ab57600080fd5b6158b78683870161551a565b93506020915081850151818111156158ce57600080fd5b85019050601f810186136158e157600080fd5b80516158ef61553b826154f6565b81815260059190911b8201830190838101908883111561590e57600080fd5b928401925b8284101561592c57835182529284019290840190615913565b80955050505050509250929050565b6000806040838503121561594e57600080fd5b505080516020909101519092909150565b60008251615971818460208701615755565b9190910192915050565b6020815260006131d6602083018461578156fe736574436f6e76657273696f6e436f6e66696728616464726573732c616464726573732c436f6e76657273696f6e436f6e66696729736574506f6f6c734173736574734469726563745472616e7366657228616464726573735b5d2c616464726573735b5d5b5d2c626f6f6c5b5d5b5d29a2646970667358221220b3e99f2949488b49b17f003fa9509559aed2846f1add09bb5234c35075f1f22164736f6c634300080d0033";
1769
+
1770
+ export class MockRiskFundConverter__factory extends ContractFactory {
1771
+ constructor(
1772
+ ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
1773
+ ) {
1774
+ if (args.length === 1) {
1775
+ super(_abi, _bytecode, args[0]);
1776
+ } else {
1777
+ super(...args);
1778
+ }
1779
+ }
1780
+
1781
+ deploy(
1782
+ corePoolComptroller_: string,
1783
+ vBNB_: string,
1784
+ nativeWrapped_: string,
1785
+ overrides?: Overrides & { from?: string | Promise<string> }
1786
+ ): Promise<MockRiskFundConverter> {
1787
+ return super.deploy(
1788
+ corePoolComptroller_,
1789
+ vBNB_,
1790
+ nativeWrapped_,
1791
+ overrides || {}
1792
+ ) as Promise<MockRiskFundConverter>;
1793
+ }
1794
+ getDeployTransaction(
1795
+ corePoolComptroller_: string,
1796
+ vBNB_: string,
1797
+ nativeWrapped_: string,
1798
+ overrides?: Overrides & { from?: string | Promise<string> }
1799
+ ): TransactionRequest {
1800
+ return super.getDeployTransaction(
1801
+ corePoolComptroller_,
1802
+ vBNB_,
1803
+ nativeWrapped_,
1804
+ overrides || {}
1805
+ );
1806
+ }
1807
+ attach(address: string): MockRiskFundConverter {
1808
+ return super.attach(address) as MockRiskFundConverter;
1809
+ }
1810
+ connect(signer: Signer): MockRiskFundConverter__factory {
1811
+ return super.connect(signer) as MockRiskFundConverter__factory;
1812
+ }
1813
+ static readonly bytecode = _bytecode;
1814
+ static readonly abi = _abi;
1815
+ static createInterface(): MockRiskFundConverterInterface {
1816
+ return new utils.Interface(_abi) as MockRiskFundConverterInterface;
1817
+ }
1818
+ static connect(
1819
+ address: string,
1820
+ signerOrProvider: Signer | Provider
1821
+ ): MockRiskFundConverter {
1822
+ return new Contract(
1823
+ address,
1824
+ _abi,
1825
+ signerOrProvider
1826
+ ) as MockRiskFundConverter;
1827
+ }
1828
+ }