impermax-sdk 1.2.112 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/lib/abis/ImpermaxABI.d.ts +2 -2
  2. package/lib/abis/ImpermaxABI.js +3 -3
  3. package/lib/abis/contracts/ClaimAggregator.json +2015 -2015
  4. package/lib/abis/contracts/IAllowanceTransfer.json +3772 -0
  5. package/lib/abis/contracts/IBorrowable.json +13207 -13207
  6. package/lib/abis/contracts/IClaimable.json +406 -406
  7. package/lib/abis/contracts/ICollateral.json +9052 -9052
  8. package/lib/abis/contracts/IERC20.json +2376 -2376
  9. package/lib/abis/contracts/IERC721.json +3515 -0
  10. package/lib/abis/contracts/IFactory.json +3660 -3660
  11. package/lib/abis/contracts/IFarmingPool.json +3584 -3584
  12. package/lib/abis/contracts/ILendingVaultV1.json +8358 -8358
  13. package/lib/abis/contracts/IMerkleDistributor.json +1134 -1134
  14. package/lib/abis/contracts/IRouter02.json +7283 -7283
  15. package/lib/abis/contracts/ISimpleUniswapOracle.json +1469 -1469
  16. package/lib/abis/contracts/IStakedLPToken.json +7309 -7309
  17. package/lib/abis/contracts/IStakingRewards.json +1036 -1036
  18. package/lib/abis/contracts/ITokenizedUniswapV2Position.json +4167 -0
  19. package/lib/abis/contracts/ITokenizedUniswapV3Position.json +5539 -0
  20. package/lib/abis/contracts/IUniswapV2Factory.json +1690 -1690
  21. package/lib/abis/contracts/IUniswapV2Pair.json +6761 -6761
  22. package/lib/abis/contracts/IUniswapV3Pool.json +6606 -0
  23. package/lib/abis/contracts/ImpermaxChef.json +20945 -20945
  24. package/lib/abis/contracts/ImpermaxConfigManager.json +31595 -31595
  25. package/lib/abis/contracts/ImpermaxV3Borrowable.json +22131 -0
  26. package/lib/abis/contracts/ImpermaxV3Collateral.json +22988 -0
  27. package/lib/abis/contracts/ImpermaxV3Factory.json +17645 -0
  28. package/lib/abis/contracts/ImpermaxV3UniV2Router01.json +32488 -0
  29. package/lib/abis/contracts/ImpermaxV3UniV3Router01.json +37742 -0
  30. package/lib/abis/contracts/LendingVaultWatcher01.json +4076 -4076
  31. package/lib/abis/contracts/PoolTokenRouter01.json +9058 -0
  32. package/lib/config/amms.d.ts +102 -104
  33. package/lib/config/amms.js +433 -436
  34. package/lib/config/chainId.d.ts +2 -0
  35. package/lib/config/chainId.js +26 -0
  36. package/lib/config/contracts/claim-aggregators.d.ts +2 -2
  37. package/lib/config/contracts/claim-aggregators.js +26 -26
  38. package/lib/config/contracts/impermax-chef.d.ts +2 -2
  39. package/lib/config/contracts/impermax-chef.js +27 -27
  40. package/lib/config/contracts/impermax-config-manager.d.ts +2 -2
  41. package/lib/config/contracts/impermax-config-manager.js +26 -26
  42. package/lib/config/contracts/impermax-factories.d.ts +4 -4
  43. package/lib/config/contracts/impermax-factories.js +87 -87
  44. package/lib/config/contracts/imxes.d.ts +2 -2
  45. package/lib/config/contracts/imxes.js +26 -26
  46. package/lib/config/contracts/lending-vault-watcher.d.ts +2 -2
  47. package/lib/config/contracts/lending-vault-watcher.js +26 -26
  48. package/lib/config/contracts/merkle-distributors.d.ts +4 -4
  49. package/lib/config/contracts/merkle-distributors.js +70 -70
  50. package/lib/config/contracts/routers.d.ts +4 -3
  51. package/lib/config/contracts/routers.js +118 -94
  52. package/lib/config/contracts/simple-uniswap-oracles.d.ts +2 -2
  53. package/lib/config/contracts/simple-uniswap-oracles.js +49 -49
  54. package/lib/config/contracts/weths.d.ts +2 -2
  55. package/lib/config/contracts/weths.js +27 -27
  56. package/lib/config/debank-ids.d.ts +2 -2
  57. package/lib/config/debank-ids.js +26 -26
  58. package/lib/config/endpoints/merkle-distributors.d.ts +4 -4
  59. package/lib/config/endpoints/merkle-distributors.js +70 -70
  60. package/lib/config/eth.d.ts +3 -3
  61. package/lib/config/eth.js +48 -48
  62. package/lib/config/factories.d.ts +7 -7
  63. package/lib/config/factories.js +31 -30
  64. package/lib/config/farms.d.ts +109 -111
  65. package/lib/config/farms.js +207 -210
  66. package/lib/config/general.d.ts +5 -5
  67. package/lib/config/general.js +8 -8
  68. package/lib/config/subgraphs.d.ts +45 -45
  69. package/lib/config/subgraphs.js +187 -187
  70. package/lib/config/types.d.ts +85 -72
  71. package/lib/config/types.js +72 -58
  72. package/lib/index.d.ts +36 -35
  73. package/lib/index.js +159 -152
  74. package/lib/offchain/account/index.d.ts +9 -7
  75. package/lib/offchain/account/index.js +43 -39
  76. package/lib/offchain/account/lendingPool/borrowable.d.ts +14 -0
  77. package/lib/offchain/account/lendingPool/borrowable.js +73 -0
  78. package/lib/offchain/account/lendingPool/collateral.d.ts +12 -0
  79. package/lib/offchain/account/lendingPool/collateral.js +42 -0
  80. package/lib/offchain/account/lendingPool/index.d.ts +6 -5
  81. package/lib/offchain/account/lendingPool/index.js +14 -12
  82. package/lib/offchain/account/lendingPool/offchainAccountBorrowable.d.ts +14 -17
  83. package/lib/offchain/account/lendingPool/offchainAccountBorrowable.js +45 -71
  84. package/lib/offchain/account/lendingPool/offchainAccountCollateral.d.ts +11 -13
  85. package/lib/offchain/account/lendingPool/offchainAccountCollateral.js +31 -43
  86. package/lib/offchain/account/lendingPool/offchainAccountLendingPool.d.ts +28 -21
  87. package/lib/offchain/account/lendingPool/offchainAccountLendingPool.js +69 -68
  88. package/lib/offchain/account/lendingPool/offchainLeveragedPosition.d.ts +25 -0
  89. package/lib/offchain/account/lendingPool/offchainLeveragedPosition.js +116 -0
  90. package/lib/offchain/account/lendingVault.d.ts +11 -0
  91. package/lib/offchain/account/lendingVault.js +38 -0
  92. package/lib/offchain/account/offchainAccount.d.ts +25 -25
  93. package/lib/offchain/account/offchainAccount.js +129 -129
  94. package/lib/offchain/account/offchainAccountLendingVault.d.ts +16 -16
  95. package/lib/offchain/account/offchainAccountLendingVault.js +64 -64
  96. package/lib/offchain/account/offchainAccountPoolToken.d.ts +7 -7
  97. package/lib/offchain/account/offchainAccountPoolToken.js +24 -24
  98. package/lib/offchain/account/offchainMultichainAccount.d.ts +34 -0
  99. package/lib/offchain/account/offchainMultichainAccount.js +66 -0
  100. package/lib/offchain/account/poolToken.d.ts +6 -0
  101. package/lib/offchain/account/poolToken.js +21 -0
  102. package/lib/offchain/account/vault/index.d.ts +3 -0
  103. package/lib/offchain/account/vault/index.js +7 -0
  104. package/lib/offchain/account/vault/offchainAccountVault.d.ts +16 -0
  105. package/lib/offchain/account/vault/offchainAccountVault.js +64 -0
  106. package/lib/offchain/configManager/index.d.ts +5 -5
  107. package/lib/offchain/configManager/index.js +12 -12
  108. package/lib/offchain/configManager/offchainConfigManager.d.ts +25 -25
  109. package/lib/offchain/configManager/offchainConfigManager.js +76 -76
  110. package/lib/offchain/configManager/offchainConfigManagerInitializer.d.ts +6 -6
  111. package/lib/offchain/configManager/offchainConfigManagerInitializer.js +53 -53
  112. package/lib/offchain/configManager/offchainPairConfig.d.ts +40 -40
  113. package/lib/offchain/configManager/offchainPairConfig.js +86 -86
  114. package/lib/offchain/configManager/offchainProposal.d.ts +17 -17
  115. package/lib/offchain/configManager/offchainProposal.js +53 -53
  116. package/lib/offchain/index.d.ts +15 -14
  117. package/lib/offchain/index.js +55 -53
  118. package/lib/offchain/initializer.d.ts +32 -0
  119. package/lib/offchain/initializer.js +627 -0
  120. package/lib/offchain/lendingPool/borrowable.d.ts +55 -0
  121. package/lib/offchain/lendingPool/borrowable.js +351 -0
  122. package/lib/offchain/lendingPool/collateral.d.ts +17 -0
  123. package/lib/offchain/lendingPool/collateral.js +72 -0
  124. package/lib/offchain/lendingPool/index.d.ts +5 -5
  125. package/lib/offchain/lendingPool/index.js +12 -12
  126. package/lib/offchain/lendingPool/offchainBorrowable.d.ts +59 -59
  127. package/lib/offchain/lendingPool/offchainBorrowable.js +366 -366
  128. package/lib/offchain/lendingPool/offchainCollateral.d.ts +20 -19
  129. package/lib/offchain/lendingPool/offchainCollateral.js +81 -75
  130. package/lib/offchain/lendingPool/offchainLendingPool.d.ts +60 -47
  131. package/lib/offchain/lendingPool/offchainLendingPool.js +277 -230
  132. package/lib/offchain/lendingVault.d.ts +22 -0
  133. package/lib/offchain/lendingVault.js +115 -0
  134. package/lib/offchain/offchain.d.ts +106 -113
  135. package/lib/offchain/offchain.js +248 -251
  136. package/lib/offchain/offchainAPRHelper.d.ts +45 -45
  137. package/lib/offchain/offchainAPRHelper.js +239 -239
  138. package/lib/offchain/offchainEndpointManager.d.ts +25 -25
  139. package/lib/offchain/offchainEndpointManager.js +126 -126
  140. package/lib/offchain/offchainInitializer.d.ts +52 -52
  141. package/lib/offchain/offchainInitializer.js +792 -792
  142. package/lib/offchain/offchainLendingVault.d.ts +25 -25
  143. package/lib/offchain/offchainLendingVault.js +114 -114
  144. package/lib/offchain/offchainMultichain.d.ts +50 -0
  145. package/lib/offchain/offchainMultichain.js +75 -0
  146. package/lib/offchain/offchainPoolToken.d.ts +21 -21
  147. package/lib/offchain/offchainPoolToken.js +128 -128
  148. package/lib/offchain/offchainPriceHelper.d.ts +22 -22
  149. package/lib/offchain/offchainPriceHelper.js +364 -364
  150. package/lib/offchain/offchainSolidexHelper.d.ts +16 -16
  151. package/lib/offchain/offchainSolidexHelper.js +58 -58
  152. package/lib/offchain/offchainTypes.d.ts +212 -212
  153. package/lib/offchain/offchainTypes.js +3 -3
  154. package/lib/offchain/poolToken.d.ts +20 -0
  155. package/lib/offchain/poolToken.js +120 -0
  156. package/lib/offchain/priceHelper.d.ts +21 -0
  157. package/lib/offchain/priceHelper.js +195 -0
  158. package/lib/offchain/queries/apis/ponder/index.d.ts +14 -14
  159. package/lib/offchain/queries/apis/ponder/index.js +281 -281
  160. package/lib/offchain/queries/apis/thegraph/index.d.ts +19 -19
  161. package/lib/offchain/queries/apis/thegraph/index.js +355 -355
  162. package/lib/offchain/queries/index.d.ts +20 -20
  163. package/lib/offchain/queries/index.js +51 -51
  164. package/lib/offchain/queries/interfaces/query-builder.d.ts +19 -19
  165. package/lib/offchain/queries/interfaces/query-builder.js +2 -2
  166. package/lib/offchain/queries/interfaces/transformers.js +9 -9
  167. package/lib/offchain/query.d.ts +15 -0
  168. package/lib/offchain/query.js +323 -0
  169. package/lib/offchain/solidexHelper.d.ts +16 -0
  170. package/lib/offchain/solidexHelper.js +58 -0
  171. package/lib/offchain/types.d.ts +150 -0
  172. package/lib/offchain/types.js +3 -0
  173. package/lib/offchain/vault/index.d.ts +6 -0
  174. package/lib/offchain/vault/index.js +14 -0
  175. package/lib/offchain/vault/offchainHedgedVault.d.ts +9 -0
  176. package/lib/offchain/vault/offchainHedgedVault.js +57 -0
  177. package/lib/offchain/vault/offchainLendingVault.d.ts +16 -0
  178. package/lib/offchain/vault/offchainLendingVault.js +73 -0
  179. package/lib/offchain/vault/offchainLeveragedVault.d.ts +9 -0
  180. package/lib/offchain/vault/offchainLeveragedVault.js +57 -0
  181. package/lib/offchain/vault/offchainVault.d.ts +34 -0
  182. package/lib/offchain/vault/offchainVault.js +130 -0
  183. package/lib/onchain/account/index.d.ts +6 -6
  184. package/lib/onchain/account/index.js +38 -38
  185. package/lib/onchain/account/interactions/index.d.ts +28 -0
  186. package/lib/onchain/account/interactions/index.js +158 -0
  187. package/lib/onchain/account/interactions/lendingPool/borrowable.d.ts +16 -0
  188. package/lib/onchain/account/interactions/lendingPool/borrowable.js +49 -0
  189. package/lib/onchain/account/interactions/lendingPool/collateral.d.ts +15 -0
  190. package/lib/onchain/account/interactions/lendingPool/collateral.js +33 -0
  191. package/lib/onchain/account/interactions/lendingPool/index.d.ts +41 -0
  192. package/lib/onchain/account/interactions/lendingPool/index.js +120 -0
  193. package/lib/onchain/account/interactions/lendingVault.d.ts +10 -0
  194. package/lib/onchain/account/interactions/lendingVault.js +12 -0
  195. package/lib/onchain/account/interactions/poolToken.d.ts +33 -0
  196. package/lib/onchain/account/interactions/poolToken.js +180 -0
  197. package/lib/onchain/account/lendingPool/borrowable.d.ts +29 -0
  198. package/lib/onchain/account/lendingPool/borrowable.js +135 -0
  199. package/lib/onchain/account/lendingPool/collateral.d.ts +15 -0
  200. package/lib/onchain/account/lendingPool/collateral.js +66 -0
  201. package/lib/onchain/account/lendingPool/index.d.ts +12 -5
  202. package/lib/onchain/account/lendingPool/index.js +49 -12
  203. package/lib/onchain/account/lendingPool/nftlp/index.d.ts +4 -0
  204. package/lib/onchain/account/lendingPool/nftlp/index.js +11 -0
  205. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlp.d.ts +7 -0
  206. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlp.js +12 -0
  207. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3.d.ts +4 -0
  208. package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3.js +13 -0
  209. package/lib/onchain/account/lendingPool/onchainAccountBorrowable.d.ts +39 -34
  210. package/lib/onchain/account/lendingPool/onchainAccountBorrowable.js +131 -176
  211. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV2.d.ts +10 -0
  212. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV2.js +55 -0
  213. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV3.d.ts +10 -0
  214. package/lib/onchain/account/lendingPool/onchainAccountBorrowableV3.js +28 -0
  215. package/lib/onchain/account/lendingPool/onchainAccountCollateral.d.ts +10 -23
  216. package/lib/onchain/account/lendingPool/onchainAccountCollateral.js +26 -109
  217. package/lib/onchain/account/lendingPool/onchainAccountCollateralV2.d.ts +25 -0
  218. package/lib/onchain/account/lendingPool/onchainAccountCollateralV2.js +99 -0
  219. package/lib/onchain/account/lendingPool/onchainAccountCollateralV3.d.ts +18 -0
  220. package/lib/onchain/account/lendingPool/onchainAccountCollateralV3.js +44 -0
  221. package/lib/onchain/account/lendingPool/onchainAccountLendingPool.d.ts +42 -57
  222. package/lib/onchain/account/lendingPool/onchainAccountLendingPool.js +142 -352
  223. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV2.d.ts +44 -0
  224. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV2.js +285 -0
  225. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV3.d.ts +27 -0
  226. package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV3.js +32 -0
  227. package/lib/onchain/account/lendingVault.d.ts +10 -0
  228. package/lib/onchain/account/lendingVault.js +35 -0
  229. package/lib/onchain/account/onchainAccount.d.ts +32 -32
  230. package/lib/onchain/account/onchainAccount.js +166 -167
  231. package/lib/onchain/account/onchainAccountLendingVault.d.ts +19 -19
  232. package/lib/onchain/account/onchainAccountLendingVault.js +48 -48
  233. package/lib/onchain/account/onchainAccountPoolToken.d.ts +30 -30
  234. package/lib/onchain/account/onchainAccountPoolToken.js +86 -86
  235. package/lib/onchain/account/poolToken.d.ts +24 -0
  236. package/lib/onchain/account/poolToken.js +84 -0
  237. package/lib/onchain/configManager/index.d.ts +5 -5
  238. package/lib/onchain/configManager/index.js +12 -12
  239. package/lib/onchain/configManager/onchainConfigManager.d.ts +12 -12
  240. package/lib/onchain/configManager/onchainConfigManager.js +38 -38
  241. package/lib/onchain/configManager/onchainPairConfig.d.ts +38 -38
  242. package/lib/onchain/configManager/onchainPairConfig.js +85 -85
  243. package/lib/onchain/configManager/onchainProposal.d.ts +17 -17
  244. package/lib/onchain/configManager/onchainProposal.js +55 -55
  245. package/lib/onchain/contractsHelper.d.ts +29 -0
  246. package/lib/onchain/contractsHelper.js +52 -0
  247. package/lib/onchain/impermaxFactory/index.d.ts +7 -5
  248. package/lib/onchain/impermaxFactory/index.js +39 -35
  249. package/lib/onchain/impermaxFactory/lendingPool/borrowable.d.ts +36 -0
  250. package/lib/onchain/impermaxFactory/lendingPool/borrowable.js +153 -0
  251. package/lib/onchain/impermaxFactory/lendingPool/collateral.d.ts +17 -0
  252. package/lib/onchain/impermaxFactory/lendingPool/collateral.js +59 -0
  253. package/lib/onchain/impermaxFactory/lendingPool/index.d.ts +12 -5
  254. package/lib/onchain/impermaxFactory/lendingPool/index.js +50 -12
  255. package/lib/onchain/impermaxFactory/lendingPool/nftlp/index.d.ts +4 -0
  256. package/lib/onchain/impermaxFactory/lendingPool/nftlp/index.js +11 -0
  257. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlp.d.ts +22 -0
  258. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlp.js +19 -0
  259. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlpUniswapV3.d.ts +24 -0
  260. package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlpUniswapV3.js +90 -0
  261. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowable.d.ts +38 -34
  262. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowable.js +137 -156
  263. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV2.d.ts +9 -0
  264. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV2.js +36 -0
  265. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV3.d.ts +7 -0
  266. package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV3.js +23 -0
  267. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateral.d.ts +8 -19
  268. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateral.js +24 -61
  269. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV2.d.ts +20 -0
  270. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV2.js +58 -0
  271. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV3.d.ts +13 -0
  272. package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV3.js +36 -0
  273. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPool.d.ts +43 -58
  274. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPool.js +81 -367
  275. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV2.d.ts +76 -0
  276. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV2.js +338 -0
  277. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV3.d.ts +42 -0
  278. package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV3.js +39 -0
  279. package/lib/onchain/impermaxFactory/onchainImpermaxFactory.d.ts +26 -16
  280. package/lib/onchain/impermaxFactory/onchainImpermaxFactory.js +42 -52
  281. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV2.d.ts +16 -0
  282. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV2.js +81 -0
  283. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV3.d.ts +16 -0
  284. package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV3.js +88 -0
  285. package/lib/onchain/index.d.ts +10 -10
  286. package/lib/onchain/index.js +49 -49
  287. package/lib/onchain/interactions/index.d.ts +8 -8
  288. package/lib/onchain/interactions/index.js +41 -41
  289. package/lib/onchain/interactions/lendingPool/borrowable.d.ts +14 -0
  290. package/lib/onchain/interactions/lendingPool/borrowable.js +47 -0
  291. package/lib/onchain/interactions/lendingPool/collateral.d.ts +13 -0
  292. package/lib/onchain/interactions/lendingPool/collateral.js +31 -0
  293. package/lib/onchain/interactions/lendingPool/index.d.ts +12 -5
  294. package/lib/onchain/interactions/lendingPool/index.js +49 -12
  295. package/lib/onchain/interactions/lendingPool/nftlp/index.d.ts +4 -0
  296. package/lib/onchain/interactions/lendingPool/nftlp/index.js +11 -0
  297. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlp.d.ts +7 -0
  298. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlp.js +12 -0
  299. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlpUniswapV3.d.ts +4 -0
  300. package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlpUniswapV3.js +13 -0
  301. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowable.d.ts +17 -21
  302. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowable.js +24 -56
  303. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV2.d.ts +15 -0
  304. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV2.js +63 -0
  305. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV3.d.ts +9 -0
  306. package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV3.js +14 -0
  307. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateral.d.ts +7 -19
  308. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateral.js +11 -43
  309. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV2.d.ts +20 -0
  310. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV2.js +48 -0
  311. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV3.d.ts +13 -0
  312. package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV3.js +20 -0
  313. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPool.d.ts +31 -46
  314. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPool.js +53 -135
  315. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV2.d.ts +42 -0
  316. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV2.js +114 -0
  317. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV3.d.ts +27 -0
  318. package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV3.js +32 -0
  319. package/lib/onchain/interactions/lendingVault.d.ts +8 -0
  320. package/lib/onchain/interactions/lendingVault.js +15 -0
  321. package/lib/onchain/interactions/onchainInteractions.d.ts +31 -31
  322. package/lib/onchain/interactions/onchainInteractions.js +136 -137
  323. package/lib/onchain/interactions/onchainInteractionsConfigManager.d.ts +17 -17
  324. package/lib/onchain/interactions/onchainInteractionsConfigManager.js +44 -44
  325. package/lib/onchain/interactions/onchainInteractionsLendingVault.d.ts +14 -14
  326. package/lib/onchain/interactions/onchainInteractionsLendingVault.js +21 -21
  327. package/lib/onchain/interactions/onchainInteractionsPoolToken.d.ts +35 -35
  328. package/lib/onchain/interactions/onchainInteractionsPoolToken.js +134 -186
  329. package/lib/onchain/interactions/poolToken.d.ts +31 -0
  330. package/lib/onchain/interactions/poolToken.js +181 -0
  331. package/lib/onchain/lendingVault.d.ts +17 -0
  332. package/lib/onchain/lendingVault.js +56 -0
  333. package/lib/onchain/onchain.d.ts +38 -35
  334. package/lib/onchain/onchain.js +78 -70
  335. package/lib/onchain/onchainContractsHelper.d.ts +42 -31
  336. package/lib/onchain/onchainContractsHelper.js +90 -56
  337. package/lib/onchain/onchainLendingVault.d.ts +22 -22
  338. package/lib/onchain/onchainLendingVault.js +69 -69
  339. package/lib/onchain/onchainPermitHelper.d.ts +21 -0
  340. package/lib/onchain/onchainPermitHelper.js +198 -0
  341. package/lib/onchain/onchainPoolToken.d.ts +35 -35
  342. package/lib/onchain/onchainPoolToken.js +129 -129
  343. package/lib/onchain/onchainTypes.d.ts +70 -64
  344. package/lib/onchain/onchainTypes.js +14 -14
  345. package/lib/onchain/poolToken.d.ts +32 -0
  346. package/lib/onchain/poolToken.js +121 -0
  347. package/lib/onchain/types.d.ts +45 -0
  348. package/lib/onchain/types.js +14 -0
  349. package/lib/utils/ether-utils.d.ts +5 -5
  350. package/lib/utils/ether-utils.js +26 -26
  351. package/lib/utils/index.d.ts +3 -3
  352. package/lib/utils/index.js +16 -16
  353. package/lib/utils/lliquidity-math.d.ts +30 -30
  354. package/lib/utils/lliquidity-math.js +139 -139
  355. package/lib/utils/price-from-reserves.d.ts +2 -0
  356. package/lib/utils/price-from-reserves.js +19 -0
  357. package/package.json +36 -36
@@ -0,0 +1,4167 @@
1
+ {
2
+ "contractName": "ITokenizedUniswapV2Position",
3
+ "abi": [
4
+ {
5
+ "anonymous": false,
6
+ "inputs": [
7
+ {
8
+ "indexed": true,
9
+ "internalType": "uint256",
10
+ "name": "tokenId",
11
+ "type": "uint256"
12
+ },
13
+ {
14
+ "indexed": false,
15
+ "internalType": "uint256",
16
+ "name": "liquidity",
17
+ "type": "uint256"
18
+ }
19
+ ],
20
+ "name": "UpdatePositionLiquidity",
21
+ "type": "event"
22
+ },
23
+ {
24
+ "constant": true,
25
+ "inputs": [
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "_tokenId",
29
+ "type": "uint256"
30
+ }
31
+ ],
32
+ "name": "ownerOf",
33
+ "outputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "payable": false,
41
+ "stateMutability": "view",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "constant": false,
46
+ "inputs": [
47
+ {
48
+ "internalType": "address",
49
+ "name": "from",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "internalType": "address",
54
+ "name": "to",
55
+ "type": "address"
56
+ },
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "tokenId",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "name": "safeTransferFrom",
64
+ "outputs": [],
65
+ "payable": false,
66
+ "stateMutability": "nonpayable",
67
+ "type": "function"
68
+ },
69
+ {
70
+ "constant": false,
71
+ "inputs": [
72
+ {
73
+ "internalType": "address",
74
+ "name": "from",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "internalType": "address",
79
+ "name": "to",
80
+ "type": "address"
81
+ },
82
+ {
83
+ "internalType": "uint256",
84
+ "name": "tokenId",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "internalType": "bytes",
89
+ "name": "data",
90
+ "type": "bytes"
91
+ }
92
+ ],
93
+ "name": "safeTransferFrom",
94
+ "outputs": [],
95
+ "payable": false,
96
+ "stateMutability": "nonpayable",
97
+ "type": "function"
98
+ },
99
+ {
100
+ "constant": false,
101
+ "inputs": [
102
+ {
103
+ "internalType": "address",
104
+ "name": "from",
105
+ "type": "address"
106
+ },
107
+ {
108
+ "internalType": "address",
109
+ "name": "to",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "internalType": "uint256",
114
+ "name": "tokenId",
115
+ "type": "uint256"
116
+ }
117
+ ],
118
+ "name": "transferFrom",
119
+ "outputs": [],
120
+ "payable": false,
121
+ "stateMutability": "nonpayable",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "constant": true,
126
+ "inputs": [],
127
+ "name": "token0",
128
+ "outputs": [
129
+ {
130
+ "internalType": "address",
131
+ "name": "",
132
+ "type": "address"
133
+ }
134
+ ],
135
+ "payable": false,
136
+ "stateMutability": "view",
137
+ "type": "function"
138
+ },
139
+ {
140
+ "constant": true,
141
+ "inputs": [],
142
+ "name": "token1",
143
+ "outputs": [
144
+ {
145
+ "internalType": "address",
146
+ "name": "",
147
+ "type": "address"
148
+ }
149
+ ],
150
+ "payable": false,
151
+ "stateMutability": "view",
152
+ "type": "function"
153
+ },
154
+ {
155
+ "constant": false,
156
+ "inputs": [
157
+ {
158
+ "internalType": "uint256",
159
+ "name": "_tokenId",
160
+ "type": "uint256"
161
+ },
162
+ {
163
+ "internalType": "uint256",
164
+ "name": "_safetyMarginSqrt",
165
+ "type": "uint256"
166
+ }
167
+ ],
168
+ "name": "getPositionData",
169
+ "outputs": [
170
+ {
171
+ "internalType": "uint256",
172
+ "name": "priceSqrtX96",
173
+ "type": "uint256"
174
+ },
175
+ {
176
+ "components": [
177
+ {
178
+ "components": [
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "realX",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "realY",
187
+ "type": "uint256"
188
+ }
189
+ ],
190
+ "internalType": "struct INFTLP.RealXY",
191
+ "name": "lowestPrice",
192
+ "type": "tuple"
193
+ },
194
+ {
195
+ "components": [
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "realX",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "internalType": "uint256",
203
+ "name": "realY",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "internalType": "struct INFTLP.RealXY",
208
+ "name": "currentPrice",
209
+ "type": "tuple"
210
+ },
211
+ {
212
+ "components": [
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "realX",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "internalType": "uint256",
220
+ "name": "realY",
221
+ "type": "uint256"
222
+ }
223
+ ],
224
+ "internalType": "struct INFTLP.RealXY",
225
+ "name": "highestPrice",
226
+ "type": "tuple"
227
+ }
228
+ ],
229
+ "internalType": "struct INFTLP.RealXYs",
230
+ "name": "realXYs",
231
+ "type": "tuple"
232
+ }
233
+ ],
234
+ "payable": false,
235
+ "stateMutability": "nonpayable",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "constant": false,
240
+ "inputs": [
241
+ {
242
+ "internalType": "uint256",
243
+ "name": "tokenIdFrom",
244
+ "type": "uint256"
245
+ },
246
+ {
247
+ "internalType": "uint256",
248
+ "name": "tokenIdTo",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "name": "join",
253
+ "outputs": [],
254
+ "payable": false,
255
+ "stateMutability": "nonpayable",
256
+ "type": "function"
257
+ },
258
+ {
259
+ "constant": false,
260
+ "inputs": [
261
+ {
262
+ "internalType": "uint256",
263
+ "name": "tokenId",
264
+ "type": "uint256"
265
+ },
266
+ {
267
+ "internalType": "uint256",
268
+ "name": "percentage",
269
+ "type": "uint256"
270
+ }
271
+ ],
272
+ "name": "split",
273
+ "outputs": [
274
+ {
275
+ "internalType": "uint256",
276
+ "name": "newTokenId",
277
+ "type": "uint256"
278
+ }
279
+ ],
280
+ "payable": false,
281
+ "stateMutability": "nonpayable",
282
+ "type": "function"
283
+ },
284
+ {
285
+ "constant": true,
286
+ "inputs": [],
287
+ "name": "factory",
288
+ "outputs": [
289
+ {
290
+ "internalType": "address",
291
+ "name": "",
292
+ "type": "address"
293
+ }
294
+ ],
295
+ "payable": false,
296
+ "stateMutability": "view",
297
+ "type": "function"
298
+ },
299
+ {
300
+ "constant": true,
301
+ "inputs": [],
302
+ "name": "simpleUniswapOracle",
303
+ "outputs": [
304
+ {
305
+ "internalType": "address",
306
+ "name": "",
307
+ "type": "address"
308
+ }
309
+ ],
310
+ "payable": false,
311
+ "stateMutability": "view",
312
+ "type": "function"
313
+ },
314
+ {
315
+ "constant": true,
316
+ "inputs": [],
317
+ "name": "underlying",
318
+ "outputs": [
319
+ {
320
+ "internalType": "address",
321
+ "name": "",
322
+ "type": "address"
323
+ }
324
+ ],
325
+ "payable": false,
326
+ "stateMutability": "view",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "constant": true,
331
+ "inputs": [],
332
+ "name": "totalBalance",
333
+ "outputs": [
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "",
337
+ "type": "uint256"
338
+ }
339
+ ],
340
+ "payable": false,
341
+ "stateMutability": "view",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "constant": true,
346
+ "inputs": [
347
+ {
348
+ "internalType": "uint256",
349
+ "name": "",
350
+ "type": "uint256"
351
+ }
352
+ ],
353
+ "name": "liquidity",
354
+ "outputs": [
355
+ {
356
+ "internalType": "uint256",
357
+ "name": "",
358
+ "type": "uint256"
359
+ }
360
+ ],
361
+ "payable": false,
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "constant": true,
367
+ "inputs": [],
368
+ "name": "positionLength",
369
+ "outputs": [
370
+ {
371
+ "internalType": "uint256",
372
+ "name": "",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "payable": false,
377
+ "stateMutability": "view",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "constant": false,
382
+ "inputs": [],
383
+ "name": "oraclePriceSqrtX96",
384
+ "outputs": [
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "payable": false,
392
+ "stateMutability": "nonpayable",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "constant": false,
397
+ "inputs": [
398
+ {
399
+ "internalType": "address",
400
+ "name": "_underlying",
401
+ "type": "address"
402
+ },
403
+ {
404
+ "internalType": "address",
405
+ "name": "_token0",
406
+ "type": "address"
407
+ },
408
+ {
409
+ "internalType": "address",
410
+ "name": "_token1",
411
+ "type": "address"
412
+ },
413
+ {
414
+ "internalType": "address",
415
+ "name": "_simpleUniswapOracle",
416
+ "type": "address"
417
+ }
418
+ ],
419
+ "name": "_initialize",
420
+ "outputs": [],
421
+ "payable": false,
422
+ "stateMutability": "nonpayable",
423
+ "type": "function"
424
+ },
425
+ {
426
+ "constant": false,
427
+ "inputs": [
428
+ {
429
+ "internalType": "address",
430
+ "name": "to",
431
+ "type": "address"
432
+ }
433
+ ],
434
+ "name": "mint",
435
+ "outputs": [
436
+ {
437
+ "internalType": "uint256",
438
+ "name": "newTokenId",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "payable": false,
443
+ "stateMutability": "nonpayable",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "constant": false,
448
+ "inputs": [
449
+ {
450
+ "internalType": "address",
451
+ "name": "to",
452
+ "type": "address"
453
+ },
454
+ {
455
+ "internalType": "uint256",
456
+ "name": "tokenId",
457
+ "type": "uint256"
458
+ }
459
+ ],
460
+ "name": "redeem",
461
+ "outputs": [
462
+ {
463
+ "internalType": "uint256",
464
+ "name": "redeemAmount",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "payable": false,
469
+ "stateMutability": "nonpayable",
470
+ "type": "function"
471
+ }
472
+ ],
473
+ "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"name\":\"UpdatePositionLiquidity\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_underlying\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token1\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_simpleUniswapOracle\",\"type\":\"address\"}],\"name\":\"_initialize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_safetyMarginSqrt\",\"type\":\"uint256\"}],\"name\":\"getPositionData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"priceSqrtX96\",\"type\":\"uint256\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"realX\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"realY\",\"type\":\"uint256\"}],\"internalType\":\"struct INFTLP.RealXY\",\"name\":\"lowestPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"realX\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"realY\",\"type\":\"uint256\"}],\"internalType\":\"struct INFTLP.RealXY\",\"name\":\"currentPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"realX\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"realY\",\"type\":\"uint256\"}],\"internalType\":\"struct INFTLP.RealXY\",\"name\":\"highestPrice\",\"type\":\"tuple\"}],\"internalType\":\"struct INFTLP.RealXYs\",\"name\":\"realXYs\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenIdFrom\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenIdTo\",\"type\":\"uint256\"}],\"name\":\"join\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"newTokenId\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"oraclePriceSqrtX96\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"positionLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"redeemAmount\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"simpleUniswapOracle\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"percentage\",\"type\":\"uint256\"}],\"name\":\"split\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"newTokenId\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"underlying\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/impermax-v3-core/extensions/interfaces/ITokenizedUniswapV2Position.sol\":\"ITokenizedUniswapV2Position\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"project:/contracts/impermax-v3-core/extensions/interfaces/ITokenizedUniswapV2Position.sol\":{\"keccak256\":\"0x0e40de8390c8a1331be87edf6649e0cc55480d0968331c93024c97002a088d3e\",\"urls\":[\"bzz-raw://19f8da5c8e85049b7bbe5aef8688b43f3c05b0a1681db55620be18e65bed130e\",\"dweb:/ipfs/QmV9woWkHVzbVHgQnLDQxiEXrkScSMPv9JiVtn3cdmQKK2\"]},\"project:/contracts/impermax-v3-core/interfaces/INFTLP.sol\":{\"keccak256\":\"0xfccf1d825a7ccba7dc5a24ca8bd17f470d02617af14cc54ac9e622a073bd20eb\",\"urls\":[\"bzz-raw://5461eb865550868f61c7cb2b44e5375a5fdd91a8866d39431309297f597fcc1c\",\"dweb:/ipfs/QmXwRySpQmxdRxxaUyJvSWmXoXXTKbu8gBQHyCp2Yb5xji\"]}},\"version\":1}",
474
+ "bytecode": "0x",
475
+ "deployedBytecode": "0x",
476
+ "sourceMap": "",
477
+ "deployedSourceMap": "",
478
+ "source": "pragma solidity >=0.5.0;\npragma experimental ABIEncoderV2;\n\nimport \"../../interfaces/INFTLP.sol\";\n\ninterface ITokenizedUniswapV2Position {\n\t\n\t// ERC-721\n\t\n\tfunction ownerOf(uint256 _tokenId) external view returns (address);\n\tfunction safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n\tfunction safeTransferFrom(address from, address to, uint256 tokenId) external;\n\tfunction transferFrom(address from, address to, uint256 tokenId) external;\n\t\n\t// INFTLP\n\t\n\tfunction token0() external view returns (address);\n\tfunction token1() external view returns (address);\n\tfunction getPositionData(uint256 _tokenId, uint256 _safetyMarginSqrt) external returns (\n\t\tuint256 priceSqrtX96,\n\t\tINFTLP.RealXYs memory realXYs\n\t);\n\t\n\tfunction join(uint256 tokenIdFrom, uint256 tokenIdTo) external;\n\tfunction split(uint256 tokenId, uint256 percentage) external returns (uint256 newTokenId);\n\t\n\t// ITokenizedUniswapV2Position\n\t\n\tfunction factory() external view returns (address);\n\tfunction simpleUniswapOracle() external view returns (address);\n\tfunction underlying() external view returns (address);\n\tfunction totalBalance() external view returns (uint256);\n\t\n\tfunction liquidity(uint256) external view returns (uint256);\n\tfunction positionLength() external view returns (uint256);\n\t\n\tfunction oraclePriceSqrtX96() external returns (uint256);\n\t\n\tevent UpdatePositionLiquidity(uint256 indexed tokenId, uint256 liquidity);\n\n\tfunction _initialize (\n\t\taddress _underlying, \n\t\taddress _token0, \n\t\taddress _token1,\n\t\taddress _simpleUniswapOracle\n\t) external;\n\t\n\tfunction mint(address to) external returns (uint256 newTokenId);\n\tfunction redeem(address to, uint256 tokenId) external returns (uint256 redeemAmount);\n\n}\n",
479
+ "sourcePath": "C:\\Users\\Simone\\Desktop\\impermax-v3-periphery\\contracts\\impermax-v3-core\\extensions\\interfaces\\ITokenizedUniswapV2Position.sol",
480
+ "ast": {
481
+ "absolutePath": "project:/contracts/impermax-v3-core/extensions/interfaces/ITokenizedUniswapV2Position.sol",
482
+ "exportedSymbols": {
483
+ "ITokenizedUniswapV2Position": [
484
+ 11140
485
+ ]
486
+ },
487
+ "id": 11141,
488
+ "nodeType": "SourceUnit",
489
+ "nodes": [
490
+ {
491
+ "id": 10994,
492
+ "literals": [
493
+ "solidity",
494
+ ">=",
495
+ "0.5",
496
+ ".0"
497
+ ],
498
+ "nodeType": "PragmaDirective",
499
+ "src": "0:24:23"
500
+ },
501
+ {
502
+ "id": 10995,
503
+ "literals": [
504
+ "experimental",
505
+ "ABIEncoderV2"
506
+ ],
507
+ "nodeType": "PragmaDirective",
508
+ "src": "25:33:23"
509
+ },
510
+ {
511
+ "absolutePath": "project:/contracts/impermax-v3-core/interfaces/INFTLP.sol",
512
+ "file": "../../interfaces/INFTLP.sol",
513
+ "id": 10996,
514
+ "nodeType": "ImportDirective",
515
+ "scope": 11141,
516
+ "sourceUnit": 14688,
517
+ "src": "60:37:23",
518
+ "symbolAliases": [],
519
+ "unitAlias": ""
520
+ },
521
+ {
522
+ "baseContracts": [],
523
+ "contractDependencies": [],
524
+ "contractKind": "interface",
525
+ "documentation": null,
526
+ "fullyImplemented": false,
527
+ "id": 11140,
528
+ "linearizedBaseContracts": [
529
+ 11140
530
+ ],
531
+ "name": "ITokenizedUniswapV2Position",
532
+ "nodeType": "ContractDefinition",
533
+ "nodes": [
534
+ {
535
+ "body": null,
536
+ "documentation": null,
537
+ "id": 11003,
538
+ "implemented": false,
539
+ "kind": "function",
540
+ "modifiers": [],
541
+ "name": "ownerOf",
542
+ "nodeType": "FunctionDefinition",
543
+ "parameters": {
544
+ "id": 10999,
545
+ "nodeType": "ParameterList",
546
+ "parameters": [
547
+ {
548
+ "constant": false,
549
+ "id": 10998,
550
+ "name": "_tokenId",
551
+ "nodeType": "VariableDeclaration",
552
+ "scope": 11003,
553
+ "src": "173:16:23",
554
+ "stateVariable": false,
555
+ "storageLocation": "default",
556
+ "typeDescriptions": {
557
+ "typeIdentifier": "t_uint256",
558
+ "typeString": "uint256"
559
+ },
560
+ "typeName": {
561
+ "id": 10997,
562
+ "name": "uint256",
563
+ "nodeType": "ElementaryTypeName",
564
+ "src": "173:7:23",
565
+ "typeDescriptions": {
566
+ "typeIdentifier": "t_uint256",
567
+ "typeString": "uint256"
568
+ }
569
+ },
570
+ "value": null,
571
+ "visibility": "internal"
572
+ }
573
+ ],
574
+ "src": "172:18:23"
575
+ },
576
+ "returnParameters": {
577
+ "id": 11002,
578
+ "nodeType": "ParameterList",
579
+ "parameters": [
580
+ {
581
+ "constant": false,
582
+ "id": 11001,
583
+ "name": "",
584
+ "nodeType": "VariableDeclaration",
585
+ "scope": 11003,
586
+ "src": "214:7:23",
587
+ "stateVariable": false,
588
+ "storageLocation": "default",
589
+ "typeDescriptions": {
590
+ "typeIdentifier": "t_address",
591
+ "typeString": "address"
592
+ },
593
+ "typeName": {
594
+ "id": 11000,
595
+ "name": "address",
596
+ "nodeType": "ElementaryTypeName",
597
+ "src": "214:7:23",
598
+ "stateMutability": "nonpayable",
599
+ "typeDescriptions": {
600
+ "typeIdentifier": "t_address",
601
+ "typeString": "address"
602
+ }
603
+ },
604
+ "value": null,
605
+ "visibility": "internal"
606
+ }
607
+ ],
608
+ "src": "213:9:23"
609
+ },
610
+ "scope": 11140,
611
+ "src": "156:67:23",
612
+ "stateMutability": "view",
613
+ "superFunction": null,
614
+ "visibility": "external"
615
+ },
616
+ {
617
+ "body": null,
618
+ "documentation": null,
619
+ "id": 11014,
620
+ "implemented": false,
621
+ "kind": "function",
622
+ "modifiers": [],
623
+ "name": "safeTransferFrom",
624
+ "nodeType": "FunctionDefinition",
625
+ "parameters": {
626
+ "id": 11012,
627
+ "nodeType": "ParameterList",
628
+ "parameters": [
629
+ {
630
+ "constant": false,
631
+ "id": 11005,
632
+ "name": "from",
633
+ "nodeType": "VariableDeclaration",
634
+ "scope": 11014,
635
+ "src": "251:12:23",
636
+ "stateVariable": false,
637
+ "storageLocation": "default",
638
+ "typeDescriptions": {
639
+ "typeIdentifier": "t_address",
640
+ "typeString": "address"
641
+ },
642
+ "typeName": {
643
+ "id": 11004,
644
+ "name": "address",
645
+ "nodeType": "ElementaryTypeName",
646
+ "src": "251:7:23",
647
+ "stateMutability": "nonpayable",
648
+ "typeDescriptions": {
649
+ "typeIdentifier": "t_address",
650
+ "typeString": "address"
651
+ }
652
+ },
653
+ "value": null,
654
+ "visibility": "internal"
655
+ },
656
+ {
657
+ "constant": false,
658
+ "id": 11007,
659
+ "name": "to",
660
+ "nodeType": "VariableDeclaration",
661
+ "scope": 11014,
662
+ "src": "265:10:23",
663
+ "stateVariable": false,
664
+ "storageLocation": "default",
665
+ "typeDescriptions": {
666
+ "typeIdentifier": "t_address",
667
+ "typeString": "address"
668
+ },
669
+ "typeName": {
670
+ "id": 11006,
671
+ "name": "address",
672
+ "nodeType": "ElementaryTypeName",
673
+ "src": "265:7:23",
674
+ "stateMutability": "nonpayable",
675
+ "typeDescriptions": {
676
+ "typeIdentifier": "t_address",
677
+ "typeString": "address"
678
+ }
679
+ },
680
+ "value": null,
681
+ "visibility": "internal"
682
+ },
683
+ {
684
+ "constant": false,
685
+ "id": 11009,
686
+ "name": "tokenId",
687
+ "nodeType": "VariableDeclaration",
688
+ "scope": 11014,
689
+ "src": "277:15:23",
690
+ "stateVariable": false,
691
+ "storageLocation": "default",
692
+ "typeDescriptions": {
693
+ "typeIdentifier": "t_uint256",
694
+ "typeString": "uint256"
695
+ },
696
+ "typeName": {
697
+ "id": 11008,
698
+ "name": "uint256",
699
+ "nodeType": "ElementaryTypeName",
700
+ "src": "277:7:23",
701
+ "typeDescriptions": {
702
+ "typeIdentifier": "t_uint256",
703
+ "typeString": "uint256"
704
+ }
705
+ },
706
+ "value": null,
707
+ "visibility": "internal"
708
+ },
709
+ {
710
+ "constant": false,
711
+ "id": 11011,
712
+ "name": "data",
713
+ "nodeType": "VariableDeclaration",
714
+ "scope": 11014,
715
+ "src": "294:19:23",
716
+ "stateVariable": false,
717
+ "storageLocation": "calldata",
718
+ "typeDescriptions": {
719
+ "typeIdentifier": "t_bytes_calldata_ptr",
720
+ "typeString": "bytes"
721
+ },
722
+ "typeName": {
723
+ "id": 11010,
724
+ "name": "bytes",
725
+ "nodeType": "ElementaryTypeName",
726
+ "src": "294:5:23",
727
+ "typeDescriptions": {
728
+ "typeIdentifier": "t_bytes_storage_ptr",
729
+ "typeString": "bytes"
730
+ }
731
+ },
732
+ "value": null,
733
+ "visibility": "internal"
734
+ }
735
+ ],
736
+ "src": "250:64:23"
737
+ },
738
+ "returnParameters": {
739
+ "id": 11013,
740
+ "nodeType": "ParameterList",
741
+ "parameters": [],
742
+ "src": "323:0:23"
743
+ },
744
+ "scope": 11140,
745
+ "src": "225:99:23",
746
+ "stateMutability": "nonpayable",
747
+ "superFunction": null,
748
+ "visibility": "external"
749
+ },
750
+ {
751
+ "body": null,
752
+ "documentation": null,
753
+ "id": 11023,
754
+ "implemented": false,
755
+ "kind": "function",
756
+ "modifiers": [],
757
+ "name": "safeTransferFrom",
758
+ "nodeType": "FunctionDefinition",
759
+ "parameters": {
760
+ "id": 11021,
761
+ "nodeType": "ParameterList",
762
+ "parameters": [
763
+ {
764
+ "constant": false,
765
+ "id": 11016,
766
+ "name": "from",
767
+ "nodeType": "VariableDeclaration",
768
+ "scope": 11023,
769
+ "src": "352:12:23",
770
+ "stateVariable": false,
771
+ "storageLocation": "default",
772
+ "typeDescriptions": {
773
+ "typeIdentifier": "t_address",
774
+ "typeString": "address"
775
+ },
776
+ "typeName": {
777
+ "id": 11015,
778
+ "name": "address",
779
+ "nodeType": "ElementaryTypeName",
780
+ "src": "352:7:23",
781
+ "stateMutability": "nonpayable",
782
+ "typeDescriptions": {
783
+ "typeIdentifier": "t_address",
784
+ "typeString": "address"
785
+ }
786
+ },
787
+ "value": null,
788
+ "visibility": "internal"
789
+ },
790
+ {
791
+ "constant": false,
792
+ "id": 11018,
793
+ "name": "to",
794
+ "nodeType": "VariableDeclaration",
795
+ "scope": 11023,
796
+ "src": "366:10:23",
797
+ "stateVariable": false,
798
+ "storageLocation": "default",
799
+ "typeDescriptions": {
800
+ "typeIdentifier": "t_address",
801
+ "typeString": "address"
802
+ },
803
+ "typeName": {
804
+ "id": 11017,
805
+ "name": "address",
806
+ "nodeType": "ElementaryTypeName",
807
+ "src": "366:7:23",
808
+ "stateMutability": "nonpayable",
809
+ "typeDescriptions": {
810
+ "typeIdentifier": "t_address",
811
+ "typeString": "address"
812
+ }
813
+ },
814
+ "value": null,
815
+ "visibility": "internal"
816
+ },
817
+ {
818
+ "constant": false,
819
+ "id": 11020,
820
+ "name": "tokenId",
821
+ "nodeType": "VariableDeclaration",
822
+ "scope": 11023,
823
+ "src": "378:15:23",
824
+ "stateVariable": false,
825
+ "storageLocation": "default",
826
+ "typeDescriptions": {
827
+ "typeIdentifier": "t_uint256",
828
+ "typeString": "uint256"
829
+ },
830
+ "typeName": {
831
+ "id": 11019,
832
+ "name": "uint256",
833
+ "nodeType": "ElementaryTypeName",
834
+ "src": "378:7:23",
835
+ "typeDescriptions": {
836
+ "typeIdentifier": "t_uint256",
837
+ "typeString": "uint256"
838
+ }
839
+ },
840
+ "value": null,
841
+ "visibility": "internal"
842
+ }
843
+ ],
844
+ "src": "351:43:23"
845
+ },
846
+ "returnParameters": {
847
+ "id": 11022,
848
+ "nodeType": "ParameterList",
849
+ "parameters": [],
850
+ "src": "403:0:23"
851
+ },
852
+ "scope": 11140,
853
+ "src": "326:78:23",
854
+ "stateMutability": "nonpayable",
855
+ "superFunction": null,
856
+ "visibility": "external"
857
+ },
858
+ {
859
+ "body": null,
860
+ "documentation": null,
861
+ "id": 11032,
862
+ "implemented": false,
863
+ "kind": "function",
864
+ "modifiers": [],
865
+ "name": "transferFrom",
866
+ "nodeType": "FunctionDefinition",
867
+ "parameters": {
868
+ "id": 11030,
869
+ "nodeType": "ParameterList",
870
+ "parameters": [
871
+ {
872
+ "constant": false,
873
+ "id": 11025,
874
+ "name": "from",
875
+ "nodeType": "VariableDeclaration",
876
+ "scope": 11032,
877
+ "src": "428:12:23",
878
+ "stateVariable": false,
879
+ "storageLocation": "default",
880
+ "typeDescriptions": {
881
+ "typeIdentifier": "t_address",
882
+ "typeString": "address"
883
+ },
884
+ "typeName": {
885
+ "id": 11024,
886
+ "name": "address",
887
+ "nodeType": "ElementaryTypeName",
888
+ "src": "428:7:23",
889
+ "stateMutability": "nonpayable",
890
+ "typeDescriptions": {
891
+ "typeIdentifier": "t_address",
892
+ "typeString": "address"
893
+ }
894
+ },
895
+ "value": null,
896
+ "visibility": "internal"
897
+ },
898
+ {
899
+ "constant": false,
900
+ "id": 11027,
901
+ "name": "to",
902
+ "nodeType": "VariableDeclaration",
903
+ "scope": 11032,
904
+ "src": "442:10:23",
905
+ "stateVariable": false,
906
+ "storageLocation": "default",
907
+ "typeDescriptions": {
908
+ "typeIdentifier": "t_address",
909
+ "typeString": "address"
910
+ },
911
+ "typeName": {
912
+ "id": 11026,
913
+ "name": "address",
914
+ "nodeType": "ElementaryTypeName",
915
+ "src": "442:7:23",
916
+ "stateMutability": "nonpayable",
917
+ "typeDescriptions": {
918
+ "typeIdentifier": "t_address",
919
+ "typeString": "address"
920
+ }
921
+ },
922
+ "value": null,
923
+ "visibility": "internal"
924
+ },
925
+ {
926
+ "constant": false,
927
+ "id": 11029,
928
+ "name": "tokenId",
929
+ "nodeType": "VariableDeclaration",
930
+ "scope": 11032,
931
+ "src": "454:15:23",
932
+ "stateVariable": false,
933
+ "storageLocation": "default",
934
+ "typeDescriptions": {
935
+ "typeIdentifier": "t_uint256",
936
+ "typeString": "uint256"
937
+ },
938
+ "typeName": {
939
+ "id": 11028,
940
+ "name": "uint256",
941
+ "nodeType": "ElementaryTypeName",
942
+ "src": "454:7:23",
943
+ "typeDescriptions": {
944
+ "typeIdentifier": "t_uint256",
945
+ "typeString": "uint256"
946
+ }
947
+ },
948
+ "value": null,
949
+ "visibility": "internal"
950
+ }
951
+ ],
952
+ "src": "427:43:23"
953
+ },
954
+ "returnParameters": {
955
+ "id": 11031,
956
+ "nodeType": "ParameterList",
957
+ "parameters": [],
958
+ "src": "479:0:23"
959
+ },
960
+ "scope": 11140,
961
+ "src": "406:74:23",
962
+ "stateMutability": "nonpayable",
963
+ "superFunction": null,
964
+ "visibility": "external"
965
+ },
966
+ {
967
+ "body": null,
968
+ "documentation": null,
969
+ "id": 11037,
970
+ "implemented": false,
971
+ "kind": "function",
972
+ "modifiers": [],
973
+ "name": "token0",
974
+ "nodeType": "FunctionDefinition",
975
+ "parameters": {
976
+ "id": 11033,
977
+ "nodeType": "ParameterList",
978
+ "parameters": [],
979
+ "src": "512:2:23"
980
+ },
981
+ "returnParameters": {
982
+ "id": 11036,
983
+ "nodeType": "ParameterList",
984
+ "parameters": [
985
+ {
986
+ "constant": false,
987
+ "id": 11035,
988
+ "name": "",
989
+ "nodeType": "VariableDeclaration",
990
+ "scope": 11037,
991
+ "src": "538:7:23",
992
+ "stateVariable": false,
993
+ "storageLocation": "default",
994
+ "typeDescriptions": {
995
+ "typeIdentifier": "t_address",
996
+ "typeString": "address"
997
+ },
998
+ "typeName": {
999
+ "id": 11034,
1000
+ "name": "address",
1001
+ "nodeType": "ElementaryTypeName",
1002
+ "src": "538:7:23",
1003
+ "stateMutability": "nonpayable",
1004
+ "typeDescriptions": {
1005
+ "typeIdentifier": "t_address",
1006
+ "typeString": "address"
1007
+ }
1008
+ },
1009
+ "value": null,
1010
+ "visibility": "internal"
1011
+ }
1012
+ ],
1013
+ "src": "537:9:23"
1014
+ },
1015
+ "scope": 11140,
1016
+ "src": "497:50:23",
1017
+ "stateMutability": "view",
1018
+ "superFunction": null,
1019
+ "visibility": "external"
1020
+ },
1021
+ {
1022
+ "body": null,
1023
+ "documentation": null,
1024
+ "id": 11042,
1025
+ "implemented": false,
1026
+ "kind": "function",
1027
+ "modifiers": [],
1028
+ "name": "token1",
1029
+ "nodeType": "FunctionDefinition",
1030
+ "parameters": {
1031
+ "id": 11038,
1032
+ "nodeType": "ParameterList",
1033
+ "parameters": [],
1034
+ "src": "564:2:23"
1035
+ },
1036
+ "returnParameters": {
1037
+ "id": 11041,
1038
+ "nodeType": "ParameterList",
1039
+ "parameters": [
1040
+ {
1041
+ "constant": false,
1042
+ "id": 11040,
1043
+ "name": "",
1044
+ "nodeType": "VariableDeclaration",
1045
+ "scope": 11042,
1046
+ "src": "590:7:23",
1047
+ "stateVariable": false,
1048
+ "storageLocation": "default",
1049
+ "typeDescriptions": {
1050
+ "typeIdentifier": "t_address",
1051
+ "typeString": "address"
1052
+ },
1053
+ "typeName": {
1054
+ "id": 11039,
1055
+ "name": "address",
1056
+ "nodeType": "ElementaryTypeName",
1057
+ "src": "590:7:23",
1058
+ "stateMutability": "nonpayable",
1059
+ "typeDescriptions": {
1060
+ "typeIdentifier": "t_address",
1061
+ "typeString": "address"
1062
+ }
1063
+ },
1064
+ "value": null,
1065
+ "visibility": "internal"
1066
+ }
1067
+ ],
1068
+ "src": "589:9:23"
1069
+ },
1070
+ "scope": 11140,
1071
+ "src": "549:50:23",
1072
+ "stateMutability": "view",
1073
+ "superFunction": null,
1074
+ "visibility": "external"
1075
+ },
1076
+ {
1077
+ "body": null,
1078
+ "documentation": null,
1079
+ "id": 11053,
1080
+ "implemented": false,
1081
+ "kind": "function",
1082
+ "modifiers": [],
1083
+ "name": "getPositionData",
1084
+ "nodeType": "FunctionDefinition",
1085
+ "parameters": {
1086
+ "id": 11047,
1087
+ "nodeType": "ParameterList",
1088
+ "parameters": [
1089
+ {
1090
+ "constant": false,
1091
+ "id": 11044,
1092
+ "name": "_tokenId",
1093
+ "nodeType": "VariableDeclaration",
1094
+ "scope": 11053,
1095
+ "src": "626:16:23",
1096
+ "stateVariable": false,
1097
+ "storageLocation": "default",
1098
+ "typeDescriptions": {
1099
+ "typeIdentifier": "t_uint256",
1100
+ "typeString": "uint256"
1101
+ },
1102
+ "typeName": {
1103
+ "id": 11043,
1104
+ "name": "uint256",
1105
+ "nodeType": "ElementaryTypeName",
1106
+ "src": "626:7:23",
1107
+ "typeDescriptions": {
1108
+ "typeIdentifier": "t_uint256",
1109
+ "typeString": "uint256"
1110
+ }
1111
+ },
1112
+ "value": null,
1113
+ "visibility": "internal"
1114
+ },
1115
+ {
1116
+ "constant": false,
1117
+ "id": 11046,
1118
+ "name": "_safetyMarginSqrt",
1119
+ "nodeType": "VariableDeclaration",
1120
+ "scope": 11053,
1121
+ "src": "644:25:23",
1122
+ "stateVariable": false,
1123
+ "storageLocation": "default",
1124
+ "typeDescriptions": {
1125
+ "typeIdentifier": "t_uint256",
1126
+ "typeString": "uint256"
1127
+ },
1128
+ "typeName": {
1129
+ "id": 11045,
1130
+ "name": "uint256",
1131
+ "nodeType": "ElementaryTypeName",
1132
+ "src": "644:7:23",
1133
+ "typeDescriptions": {
1134
+ "typeIdentifier": "t_uint256",
1135
+ "typeString": "uint256"
1136
+ }
1137
+ },
1138
+ "value": null,
1139
+ "visibility": "internal"
1140
+ }
1141
+ ],
1142
+ "src": "625:45:23"
1143
+ },
1144
+ "returnParameters": {
1145
+ "id": 11052,
1146
+ "nodeType": "ParameterList",
1147
+ "parameters": [
1148
+ {
1149
+ "constant": false,
1150
+ "id": 11049,
1151
+ "name": "priceSqrtX96",
1152
+ "nodeType": "VariableDeclaration",
1153
+ "scope": 11053,
1154
+ "src": "692:20:23",
1155
+ "stateVariable": false,
1156
+ "storageLocation": "default",
1157
+ "typeDescriptions": {
1158
+ "typeIdentifier": "t_uint256",
1159
+ "typeString": "uint256"
1160
+ },
1161
+ "typeName": {
1162
+ "id": 11048,
1163
+ "name": "uint256",
1164
+ "nodeType": "ElementaryTypeName",
1165
+ "src": "692:7:23",
1166
+ "typeDescriptions": {
1167
+ "typeIdentifier": "t_uint256",
1168
+ "typeString": "uint256"
1169
+ }
1170
+ },
1171
+ "value": null,
1172
+ "visibility": "internal"
1173
+ },
1174
+ {
1175
+ "constant": false,
1176
+ "id": 11051,
1177
+ "name": "realXYs",
1178
+ "nodeType": "VariableDeclaration",
1179
+ "scope": 11053,
1180
+ "src": "716:29:23",
1181
+ "stateVariable": false,
1182
+ "storageLocation": "memory",
1183
+ "typeDescriptions": {
1184
+ "typeIdentifier": "t_struct$_RealXYs_$14613_memory_ptr",
1185
+ "typeString": "struct INFTLP.RealXYs"
1186
+ },
1187
+ "typeName": {
1188
+ "contractScope": null,
1189
+ "id": 11050,
1190
+ "name": "INFTLP.RealXYs",
1191
+ "nodeType": "UserDefinedTypeName",
1192
+ "referencedDeclaration": 14613,
1193
+ "src": "716:14:23",
1194
+ "typeDescriptions": {
1195
+ "typeIdentifier": "t_struct$_RealXYs_$14613_storage_ptr",
1196
+ "typeString": "struct INFTLP.RealXYs"
1197
+ }
1198
+ },
1199
+ "value": null,
1200
+ "visibility": "internal"
1201
+ }
1202
+ ],
1203
+ "src": "688:60:23"
1204
+ },
1205
+ "scope": 11140,
1206
+ "src": "601:148:23",
1207
+ "stateMutability": "nonpayable",
1208
+ "superFunction": null,
1209
+ "visibility": "external"
1210
+ },
1211
+ {
1212
+ "body": null,
1213
+ "documentation": null,
1214
+ "id": 11060,
1215
+ "implemented": false,
1216
+ "kind": "function",
1217
+ "modifiers": [],
1218
+ "name": "join",
1219
+ "nodeType": "FunctionDefinition",
1220
+ "parameters": {
1221
+ "id": 11058,
1222
+ "nodeType": "ParameterList",
1223
+ "parameters": [
1224
+ {
1225
+ "constant": false,
1226
+ "id": 11055,
1227
+ "name": "tokenIdFrom",
1228
+ "nodeType": "VariableDeclaration",
1229
+ "scope": 11060,
1230
+ "src": "767:19:23",
1231
+ "stateVariable": false,
1232
+ "storageLocation": "default",
1233
+ "typeDescriptions": {
1234
+ "typeIdentifier": "t_uint256",
1235
+ "typeString": "uint256"
1236
+ },
1237
+ "typeName": {
1238
+ "id": 11054,
1239
+ "name": "uint256",
1240
+ "nodeType": "ElementaryTypeName",
1241
+ "src": "767:7:23",
1242
+ "typeDescriptions": {
1243
+ "typeIdentifier": "t_uint256",
1244
+ "typeString": "uint256"
1245
+ }
1246
+ },
1247
+ "value": null,
1248
+ "visibility": "internal"
1249
+ },
1250
+ {
1251
+ "constant": false,
1252
+ "id": 11057,
1253
+ "name": "tokenIdTo",
1254
+ "nodeType": "VariableDeclaration",
1255
+ "scope": 11060,
1256
+ "src": "788:17:23",
1257
+ "stateVariable": false,
1258
+ "storageLocation": "default",
1259
+ "typeDescriptions": {
1260
+ "typeIdentifier": "t_uint256",
1261
+ "typeString": "uint256"
1262
+ },
1263
+ "typeName": {
1264
+ "id": 11056,
1265
+ "name": "uint256",
1266
+ "nodeType": "ElementaryTypeName",
1267
+ "src": "788:7:23",
1268
+ "typeDescriptions": {
1269
+ "typeIdentifier": "t_uint256",
1270
+ "typeString": "uint256"
1271
+ }
1272
+ },
1273
+ "value": null,
1274
+ "visibility": "internal"
1275
+ }
1276
+ ],
1277
+ "src": "766:40:23"
1278
+ },
1279
+ "returnParameters": {
1280
+ "id": 11059,
1281
+ "nodeType": "ParameterList",
1282
+ "parameters": [],
1283
+ "src": "815:0:23"
1284
+ },
1285
+ "scope": 11140,
1286
+ "src": "753:63:23",
1287
+ "stateMutability": "nonpayable",
1288
+ "superFunction": null,
1289
+ "visibility": "external"
1290
+ },
1291
+ {
1292
+ "body": null,
1293
+ "documentation": null,
1294
+ "id": 11069,
1295
+ "implemented": false,
1296
+ "kind": "function",
1297
+ "modifiers": [],
1298
+ "name": "split",
1299
+ "nodeType": "FunctionDefinition",
1300
+ "parameters": {
1301
+ "id": 11065,
1302
+ "nodeType": "ParameterList",
1303
+ "parameters": [
1304
+ {
1305
+ "constant": false,
1306
+ "id": 11062,
1307
+ "name": "tokenId",
1308
+ "nodeType": "VariableDeclaration",
1309
+ "scope": 11069,
1310
+ "src": "833:15:23",
1311
+ "stateVariable": false,
1312
+ "storageLocation": "default",
1313
+ "typeDescriptions": {
1314
+ "typeIdentifier": "t_uint256",
1315
+ "typeString": "uint256"
1316
+ },
1317
+ "typeName": {
1318
+ "id": 11061,
1319
+ "name": "uint256",
1320
+ "nodeType": "ElementaryTypeName",
1321
+ "src": "833:7:23",
1322
+ "typeDescriptions": {
1323
+ "typeIdentifier": "t_uint256",
1324
+ "typeString": "uint256"
1325
+ }
1326
+ },
1327
+ "value": null,
1328
+ "visibility": "internal"
1329
+ },
1330
+ {
1331
+ "constant": false,
1332
+ "id": 11064,
1333
+ "name": "percentage",
1334
+ "nodeType": "VariableDeclaration",
1335
+ "scope": 11069,
1336
+ "src": "850:18:23",
1337
+ "stateVariable": false,
1338
+ "storageLocation": "default",
1339
+ "typeDescriptions": {
1340
+ "typeIdentifier": "t_uint256",
1341
+ "typeString": "uint256"
1342
+ },
1343
+ "typeName": {
1344
+ "id": 11063,
1345
+ "name": "uint256",
1346
+ "nodeType": "ElementaryTypeName",
1347
+ "src": "850:7:23",
1348
+ "typeDescriptions": {
1349
+ "typeIdentifier": "t_uint256",
1350
+ "typeString": "uint256"
1351
+ }
1352
+ },
1353
+ "value": null,
1354
+ "visibility": "internal"
1355
+ }
1356
+ ],
1357
+ "src": "832:37:23"
1358
+ },
1359
+ "returnParameters": {
1360
+ "id": 11068,
1361
+ "nodeType": "ParameterList",
1362
+ "parameters": [
1363
+ {
1364
+ "constant": false,
1365
+ "id": 11067,
1366
+ "name": "newTokenId",
1367
+ "nodeType": "VariableDeclaration",
1368
+ "scope": 11069,
1369
+ "src": "888:18:23",
1370
+ "stateVariable": false,
1371
+ "storageLocation": "default",
1372
+ "typeDescriptions": {
1373
+ "typeIdentifier": "t_uint256",
1374
+ "typeString": "uint256"
1375
+ },
1376
+ "typeName": {
1377
+ "id": 11066,
1378
+ "name": "uint256",
1379
+ "nodeType": "ElementaryTypeName",
1380
+ "src": "888:7:23",
1381
+ "typeDescriptions": {
1382
+ "typeIdentifier": "t_uint256",
1383
+ "typeString": "uint256"
1384
+ }
1385
+ },
1386
+ "value": null,
1387
+ "visibility": "internal"
1388
+ }
1389
+ ],
1390
+ "src": "887:20:23"
1391
+ },
1392
+ "scope": 11140,
1393
+ "src": "818:90:23",
1394
+ "stateMutability": "nonpayable",
1395
+ "superFunction": null,
1396
+ "visibility": "external"
1397
+ },
1398
+ {
1399
+ "body": null,
1400
+ "documentation": null,
1401
+ "id": 11074,
1402
+ "implemented": false,
1403
+ "kind": "function",
1404
+ "modifiers": [],
1405
+ "name": "factory",
1406
+ "nodeType": "FunctionDefinition",
1407
+ "parameters": {
1408
+ "id": 11070,
1409
+ "nodeType": "ParameterList",
1410
+ "parameters": [],
1411
+ "src": "962:2:23"
1412
+ },
1413
+ "returnParameters": {
1414
+ "id": 11073,
1415
+ "nodeType": "ParameterList",
1416
+ "parameters": [
1417
+ {
1418
+ "constant": false,
1419
+ "id": 11072,
1420
+ "name": "",
1421
+ "nodeType": "VariableDeclaration",
1422
+ "scope": 11074,
1423
+ "src": "988:7:23",
1424
+ "stateVariable": false,
1425
+ "storageLocation": "default",
1426
+ "typeDescriptions": {
1427
+ "typeIdentifier": "t_address",
1428
+ "typeString": "address"
1429
+ },
1430
+ "typeName": {
1431
+ "id": 11071,
1432
+ "name": "address",
1433
+ "nodeType": "ElementaryTypeName",
1434
+ "src": "988:7:23",
1435
+ "stateMutability": "nonpayable",
1436
+ "typeDescriptions": {
1437
+ "typeIdentifier": "t_address",
1438
+ "typeString": "address"
1439
+ }
1440
+ },
1441
+ "value": null,
1442
+ "visibility": "internal"
1443
+ }
1444
+ ],
1445
+ "src": "987:9:23"
1446
+ },
1447
+ "scope": 11140,
1448
+ "src": "946:51:23",
1449
+ "stateMutability": "view",
1450
+ "superFunction": null,
1451
+ "visibility": "external"
1452
+ },
1453
+ {
1454
+ "body": null,
1455
+ "documentation": null,
1456
+ "id": 11079,
1457
+ "implemented": false,
1458
+ "kind": "function",
1459
+ "modifiers": [],
1460
+ "name": "simpleUniswapOracle",
1461
+ "nodeType": "FunctionDefinition",
1462
+ "parameters": {
1463
+ "id": 11075,
1464
+ "nodeType": "ParameterList",
1465
+ "parameters": [],
1466
+ "src": "1027:2:23"
1467
+ },
1468
+ "returnParameters": {
1469
+ "id": 11078,
1470
+ "nodeType": "ParameterList",
1471
+ "parameters": [
1472
+ {
1473
+ "constant": false,
1474
+ "id": 11077,
1475
+ "name": "",
1476
+ "nodeType": "VariableDeclaration",
1477
+ "scope": 11079,
1478
+ "src": "1053:7:23",
1479
+ "stateVariable": false,
1480
+ "storageLocation": "default",
1481
+ "typeDescriptions": {
1482
+ "typeIdentifier": "t_address",
1483
+ "typeString": "address"
1484
+ },
1485
+ "typeName": {
1486
+ "id": 11076,
1487
+ "name": "address",
1488
+ "nodeType": "ElementaryTypeName",
1489
+ "src": "1053:7:23",
1490
+ "stateMutability": "nonpayable",
1491
+ "typeDescriptions": {
1492
+ "typeIdentifier": "t_address",
1493
+ "typeString": "address"
1494
+ }
1495
+ },
1496
+ "value": null,
1497
+ "visibility": "internal"
1498
+ }
1499
+ ],
1500
+ "src": "1052:9:23"
1501
+ },
1502
+ "scope": 11140,
1503
+ "src": "999:63:23",
1504
+ "stateMutability": "view",
1505
+ "superFunction": null,
1506
+ "visibility": "external"
1507
+ },
1508
+ {
1509
+ "body": null,
1510
+ "documentation": null,
1511
+ "id": 11084,
1512
+ "implemented": false,
1513
+ "kind": "function",
1514
+ "modifiers": [],
1515
+ "name": "underlying",
1516
+ "nodeType": "FunctionDefinition",
1517
+ "parameters": {
1518
+ "id": 11080,
1519
+ "nodeType": "ParameterList",
1520
+ "parameters": [],
1521
+ "src": "1083:2:23"
1522
+ },
1523
+ "returnParameters": {
1524
+ "id": 11083,
1525
+ "nodeType": "ParameterList",
1526
+ "parameters": [
1527
+ {
1528
+ "constant": false,
1529
+ "id": 11082,
1530
+ "name": "",
1531
+ "nodeType": "VariableDeclaration",
1532
+ "scope": 11084,
1533
+ "src": "1109:7:23",
1534
+ "stateVariable": false,
1535
+ "storageLocation": "default",
1536
+ "typeDescriptions": {
1537
+ "typeIdentifier": "t_address",
1538
+ "typeString": "address"
1539
+ },
1540
+ "typeName": {
1541
+ "id": 11081,
1542
+ "name": "address",
1543
+ "nodeType": "ElementaryTypeName",
1544
+ "src": "1109:7:23",
1545
+ "stateMutability": "nonpayable",
1546
+ "typeDescriptions": {
1547
+ "typeIdentifier": "t_address",
1548
+ "typeString": "address"
1549
+ }
1550
+ },
1551
+ "value": null,
1552
+ "visibility": "internal"
1553
+ }
1554
+ ],
1555
+ "src": "1108:9:23"
1556
+ },
1557
+ "scope": 11140,
1558
+ "src": "1064:54:23",
1559
+ "stateMutability": "view",
1560
+ "superFunction": null,
1561
+ "visibility": "external"
1562
+ },
1563
+ {
1564
+ "body": null,
1565
+ "documentation": null,
1566
+ "id": 11089,
1567
+ "implemented": false,
1568
+ "kind": "function",
1569
+ "modifiers": [],
1570
+ "name": "totalBalance",
1571
+ "nodeType": "FunctionDefinition",
1572
+ "parameters": {
1573
+ "id": 11085,
1574
+ "nodeType": "ParameterList",
1575
+ "parameters": [],
1576
+ "src": "1141:2:23"
1577
+ },
1578
+ "returnParameters": {
1579
+ "id": 11088,
1580
+ "nodeType": "ParameterList",
1581
+ "parameters": [
1582
+ {
1583
+ "constant": false,
1584
+ "id": 11087,
1585
+ "name": "",
1586
+ "nodeType": "VariableDeclaration",
1587
+ "scope": 11089,
1588
+ "src": "1167:7:23",
1589
+ "stateVariable": false,
1590
+ "storageLocation": "default",
1591
+ "typeDescriptions": {
1592
+ "typeIdentifier": "t_uint256",
1593
+ "typeString": "uint256"
1594
+ },
1595
+ "typeName": {
1596
+ "id": 11086,
1597
+ "name": "uint256",
1598
+ "nodeType": "ElementaryTypeName",
1599
+ "src": "1167:7:23",
1600
+ "typeDescriptions": {
1601
+ "typeIdentifier": "t_uint256",
1602
+ "typeString": "uint256"
1603
+ }
1604
+ },
1605
+ "value": null,
1606
+ "visibility": "internal"
1607
+ }
1608
+ ],
1609
+ "src": "1166:9:23"
1610
+ },
1611
+ "scope": 11140,
1612
+ "src": "1120:56:23",
1613
+ "stateMutability": "view",
1614
+ "superFunction": null,
1615
+ "visibility": "external"
1616
+ },
1617
+ {
1618
+ "body": null,
1619
+ "documentation": null,
1620
+ "id": 11096,
1621
+ "implemented": false,
1622
+ "kind": "function",
1623
+ "modifiers": [],
1624
+ "name": "liquidity",
1625
+ "nodeType": "FunctionDefinition",
1626
+ "parameters": {
1627
+ "id": 11092,
1628
+ "nodeType": "ParameterList",
1629
+ "parameters": [
1630
+ {
1631
+ "constant": false,
1632
+ "id": 11091,
1633
+ "name": "",
1634
+ "nodeType": "VariableDeclaration",
1635
+ "scope": 11096,
1636
+ "src": "1199:7:23",
1637
+ "stateVariable": false,
1638
+ "storageLocation": "default",
1639
+ "typeDescriptions": {
1640
+ "typeIdentifier": "t_uint256",
1641
+ "typeString": "uint256"
1642
+ },
1643
+ "typeName": {
1644
+ "id": 11090,
1645
+ "name": "uint256",
1646
+ "nodeType": "ElementaryTypeName",
1647
+ "src": "1199:7:23",
1648
+ "typeDescriptions": {
1649
+ "typeIdentifier": "t_uint256",
1650
+ "typeString": "uint256"
1651
+ }
1652
+ },
1653
+ "value": null,
1654
+ "visibility": "internal"
1655
+ }
1656
+ ],
1657
+ "src": "1198:9:23"
1658
+ },
1659
+ "returnParameters": {
1660
+ "id": 11095,
1661
+ "nodeType": "ParameterList",
1662
+ "parameters": [
1663
+ {
1664
+ "constant": false,
1665
+ "id": 11094,
1666
+ "name": "",
1667
+ "nodeType": "VariableDeclaration",
1668
+ "scope": 11096,
1669
+ "src": "1231:7:23",
1670
+ "stateVariable": false,
1671
+ "storageLocation": "default",
1672
+ "typeDescriptions": {
1673
+ "typeIdentifier": "t_uint256",
1674
+ "typeString": "uint256"
1675
+ },
1676
+ "typeName": {
1677
+ "id": 11093,
1678
+ "name": "uint256",
1679
+ "nodeType": "ElementaryTypeName",
1680
+ "src": "1231:7:23",
1681
+ "typeDescriptions": {
1682
+ "typeIdentifier": "t_uint256",
1683
+ "typeString": "uint256"
1684
+ }
1685
+ },
1686
+ "value": null,
1687
+ "visibility": "internal"
1688
+ }
1689
+ ],
1690
+ "src": "1230:9:23"
1691
+ },
1692
+ "scope": 11140,
1693
+ "src": "1180:60:23",
1694
+ "stateMutability": "view",
1695
+ "superFunction": null,
1696
+ "visibility": "external"
1697
+ },
1698
+ {
1699
+ "body": null,
1700
+ "documentation": null,
1701
+ "id": 11101,
1702
+ "implemented": false,
1703
+ "kind": "function",
1704
+ "modifiers": [],
1705
+ "name": "positionLength",
1706
+ "nodeType": "FunctionDefinition",
1707
+ "parameters": {
1708
+ "id": 11097,
1709
+ "nodeType": "ParameterList",
1710
+ "parameters": [],
1711
+ "src": "1265:2:23"
1712
+ },
1713
+ "returnParameters": {
1714
+ "id": 11100,
1715
+ "nodeType": "ParameterList",
1716
+ "parameters": [
1717
+ {
1718
+ "constant": false,
1719
+ "id": 11099,
1720
+ "name": "",
1721
+ "nodeType": "VariableDeclaration",
1722
+ "scope": 11101,
1723
+ "src": "1291:7:23",
1724
+ "stateVariable": false,
1725
+ "storageLocation": "default",
1726
+ "typeDescriptions": {
1727
+ "typeIdentifier": "t_uint256",
1728
+ "typeString": "uint256"
1729
+ },
1730
+ "typeName": {
1731
+ "id": 11098,
1732
+ "name": "uint256",
1733
+ "nodeType": "ElementaryTypeName",
1734
+ "src": "1291:7:23",
1735
+ "typeDescriptions": {
1736
+ "typeIdentifier": "t_uint256",
1737
+ "typeString": "uint256"
1738
+ }
1739
+ },
1740
+ "value": null,
1741
+ "visibility": "internal"
1742
+ }
1743
+ ],
1744
+ "src": "1290:9:23"
1745
+ },
1746
+ "scope": 11140,
1747
+ "src": "1242:58:23",
1748
+ "stateMutability": "view",
1749
+ "superFunction": null,
1750
+ "visibility": "external"
1751
+ },
1752
+ {
1753
+ "body": null,
1754
+ "documentation": null,
1755
+ "id": 11106,
1756
+ "implemented": false,
1757
+ "kind": "function",
1758
+ "modifiers": [],
1759
+ "name": "oraclePriceSqrtX96",
1760
+ "nodeType": "FunctionDefinition",
1761
+ "parameters": {
1762
+ "id": 11102,
1763
+ "nodeType": "ParameterList",
1764
+ "parameters": [],
1765
+ "src": "1331:2:23"
1766
+ },
1767
+ "returnParameters": {
1768
+ "id": 11105,
1769
+ "nodeType": "ParameterList",
1770
+ "parameters": [
1771
+ {
1772
+ "constant": false,
1773
+ "id": 11104,
1774
+ "name": "",
1775
+ "nodeType": "VariableDeclaration",
1776
+ "scope": 11106,
1777
+ "src": "1352:7:23",
1778
+ "stateVariable": false,
1779
+ "storageLocation": "default",
1780
+ "typeDescriptions": {
1781
+ "typeIdentifier": "t_uint256",
1782
+ "typeString": "uint256"
1783
+ },
1784
+ "typeName": {
1785
+ "id": 11103,
1786
+ "name": "uint256",
1787
+ "nodeType": "ElementaryTypeName",
1788
+ "src": "1352:7:23",
1789
+ "typeDescriptions": {
1790
+ "typeIdentifier": "t_uint256",
1791
+ "typeString": "uint256"
1792
+ }
1793
+ },
1794
+ "value": null,
1795
+ "visibility": "internal"
1796
+ }
1797
+ ],
1798
+ "src": "1351:9:23"
1799
+ },
1800
+ "scope": 11140,
1801
+ "src": "1304:57:23",
1802
+ "stateMutability": "nonpayable",
1803
+ "superFunction": null,
1804
+ "visibility": "external"
1805
+ },
1806
+ {
1807
+ "anonymous": false,
1808
+ "documentation": null,
1809
+ "id": 11112,
1810
+ "name": "UpdatePositionLiquidity",
1811
+ "nodeType": "EventDefinition",
1812
+ "parameters": {
1813
+ "id": 11111,
1814
+ "nodeType": "ParameterList",
1815
+ "parameters": [
1816
+ {
1817
+ "constant": false,
1818
+ "id": 11108,
1819
+ "indexed": true,
1820
+ "name": "tokenId",
1821
+ "nodeType": "VariableDeclaration",
1822
+ "scope": 11112,
1823
+ "src": "1395:23:23",
1824
+ "stateVariable": false,
1825
+ "storageLocation": "default",
1826
+ "typeDescriptions": {
1827
+ "typeIdentifier": "t_uint256",
1828
+ "typeString": "uint256"
1829
+ },
1830
+ "typeName": {
1831
+ "id": 11107,
1832
+ "name": "uint256",
1833
+ "nodeType": "ElementaryTypeName",
1834
+ "src": "1395:7:23",
1835
+ "typeDescriptions": {
1836
+ "typeIdentifier": "t_uint256",
1837
+ "typeString": "uint256"
1838
+ }
1839
+ },
1840
+ "value": null,
1841
+ "visibility": "internal"
1842
+ },
1843
+ {
1844
+ "constant": false,
1845
+ "id": 11110,
1846
+ "indexed": false,
1847
+ "name": "liquidity",
1848
+ "nodeType": "VariableDeclaration",
1849
+ "scope": 11112,
1850
+ "src": "1420:17:23",
1851
+ "stateVariable": false,
1852
+ "storageLocation": "default",
1853
+ "typeDescriptions": {
1854
+ "typeIdentifier": "t_uint256",
1855
+ "typeString": "uint256"
1856
+ },
1857
+ "typeName": {
1858
+ "id": 11109,
1859
+ "name": "uint256",
1860
+ "nodeType": "ElementaryTypeName",
1861
+ "src": "1420:7:23",
1862
+ "typeDescriptions": {
1863
+ "typeIdentifier": "t_uint256",
1864
+ "typeString": "uint256"
1865
+ }
1866
+ },
1867
+ "value": null,
1868
+ "visibility": "internal"
1869
+ }
1870
+ ],
1871
+ "src": "1394:44:23"
1872
+ },
1873
+ "src": "1365:74:23"
1874
+ },
1875
+ {
1876
+ "body": null,
1877
+ "documentation": null,
1878
+ "id": 11123,
1879
+ "implemented": false,
1880
+ "kind": "function",
1881
+ "modifiers": [],
1882
+ "name": "_initialize",
1883
+ "nodeType": "FunctionDefinition",
1884
+ "parameters": {
1885
+ "id": 11121,
1886
+ "nodeType": "ParameterList",
1887
+ "parameters": [
1888
+ {
1889
+ "constant": false,
1890
+ "id": 11114,
1891
+ "name": "_underlying",
1892
+ "nodeType": "VariableDeclaration",
1893
+ "scope": 11123,
1894
+ "src": "1467:19:23",
1895
+ "stateVariable": false,
1896
+ "storageLocation": "default",
1897
+ "typeDescriptions": {
1898
+ "typeIdentifier": "t_address",
1899
+ "typeString": "address"
1900
+ },
1901
+ "typeName": {
1902
+ "id": 11113,
1903
+ "name": "address",
1904
+ "nodeType": "ElementaryTypeName",
1905
+ "src": "1467:7:23",
1906
+ "stateMutability": "nonpayable",
1907
+ "typeDescriptions": {
1908
+ "typeIdentifier": "t_address",
1909
+ "typeString": "address"
1910
+ }
1911
+ },
1912
+ "value": null,
1913
+ "visibility": "internal"
1914
+ },
1915
+ {
1916
+ "constant": false,
1917
+ "id": 11116,
1918
+ "name": "_token0",
1919
+ "nodeType": "VariableDeclaration",
1920
+ "scope": 11123,
1921
+ "src": "1491:15:23",
1922
+ "stateVariable": false,
1923
+ "storageLocation": "default",
1924
+ "typeDescriptions": {
1925
+ "typeIdentifier": "t_address",
1926
+ "typeString": "address"
1927
+ },
1928
+ "typeName": {
1929
+ "id": 11115,
1930
+ "name": "address",
1931
+ "nodeType": "ElementaryTypeName",
1932
+ "src": "1491:7:23",
1933
+ "stateMutability": "nonpayable",
1934
+ "typeDescriptions": {
1935
+ "typeIdentifier": "t_address",
1936
+ "typeString": "address"
1937
+ }
1938
+ },
1939
+ "value": null,
1940
+ "visibility": "internal"
1941
+ },
1942
+ {
1943
+ "constant": false,
1944
+ "id": 11118,
1945
+ "name": "_token1",
1946
+ "nodeType": "VariableDeclaration",
1947
+ "scope": 11123,
1948
+ "src": "1511:15:23",
1949
+ "stateVariable": false,
1950
+ "storageLocation": "default",
1951
+ "typeDescriptions": {
1952
+ "typeIdentifier": "t_address",
1953
+ "typeString": "address"
1954
+ },
1955
+ "typeName": {
1956
+ "id": 11117,
1957
+ "name": "address",
1958
+ "nodeType": "ElementaryTypeName",
1959
+ "src": "1511:7:23",
1960
+ "stateMutability": "nonpayable",
1961
+ "typeDescriptions": {
1962
+ "typeIdentifier": "t_address",
1963
+ "typeString": "address"
1964
+ }
1965
+ },
1966
+ "value": null,
1967
+ "visibility": "internal"
1968
+ },
1969
+ {
1970
+ "constant": false,
1971
+ "id": 11120,
1972
+ "name": "_simpleUniswapOracle",
1973
+ "nodeType": "VariableDeclaration",
1974
+ "scope": 11123,
1975
+ "src": "1530:28:23",
1976
+ "stateVariable": false,
1977
+ "storageLocation": "default",
1978
+ "typeDescriptions": {
1979
+ "typeIdentifier": "t_address",
1980
+ "typeString": "address"
1981
+ },
1982
+ "typeName": {
1983
+ "id": 11119,
1984
+ "name": "address",
1985
+ "nodeType": "ElementaryTypeName",
1986
+ "src": "1530:7:23",
1987
+ "stateMutability": "nonpayable",
1988
+ "typeDescriptions": {
1989
+ "typeIdentifier": "t_address",
1990
+ "typeString": "address"
1991
+ }
1992
+ },
1993
+ "value": null,
1994
+ "visibility": "internal"
1995
+ }
1996
+ ],
1997
+ "src": "1463:98:23"
1998
+ },
1999
+ "returnParameters": {
2000
+ "id": 11122,
2001
+ "nodeType": "ParameterList",
2002
+ "parameters": [],
2003
+ "src": "1570:0:23"
2004
+ },
2005
+ "scope": 11140,
2006
+ "src": "1442:129:23",
2007
+ "stateMutability": "nonpayable",
2008
+ "superFunction": null,
2009
+ "visibility": "external"
2010
+ },
2011
+ {
2012
+ "body": null,
2013
+ "documentation": null,
2014
+ "id": 11130,
2015
+ "implemented": false,
2016
+ "kind": "function",
2017
+ "modifiers": [],
2018
+ "name": "mint",
2019
+ "nodeType": "FunctionDefinition",
2020
+ "parameters": {
2021
+ "id": 11126,
2022
+ "nodeType": "ParameterList",
2023
+ "parameters": [
2024
+ {
2025
+ "constant": false,
2026
+ "id": 11125,
2027
+ "name": "to",
2028
+ "nodeType": "VariableDeclaration",
2029
+ "scope": 11130,
2030
+ "src": "1589:10:23",
2031
+ "stateVariable": false,
2032
+ "storageLocation": "default",
2033
+ "typeDescriptions": {
2034
+ "typeIdentifier": "t_address",
2035
+ "typeString": "address"
2036
+ },
2037
+ "typeName": {
2038
+ "id": 11124,
2039
+ "name": "address",
2040
+ "nodeType": "ElementaryTypeName",
2041
+ "src": "1589:7:23",
2042
+ "stateMutability": "nonpayable",
2043
+ "typeDescriptions": {
2044
+ "typeIdentifier": "t_address",
2045
+ "typeString": "address"
2046
+ }
2047
+ },
2048
+ "value": null,
2049
+ "visibility": "internal"
2050
+ }
2051
+ ],
2052
+ "src": "1588:12:23"
2053
+ },
2054
+ "returnParameters": {
2055
+ "id": 11129,
2056
+ "nodeType": "ParameterList",
2057
+ "parameters": [
2058
+ {
2059
+ "constant": false,
2060
+ "id": 11128,
2061
+ "name": "newTokenId",
2062
+ "nodeType": "VariableDeclaration",
2063
+ "scope": 11130,
2064
+ "src": "1620:18:23",
2065
+ "stateVariable": false,
2066
+ "storageLocation": "default",
2067
+ "typeDescriptions": {
2068
+ "typeIdentifier": "t_uint256",
2069
+ "typeString": "uint256"
2070
+ },
2071
+ "typeName": {
2072
+ "id": 11127,
2073
+ "name": "uint256",
2074
+ "nodeType": "ElementaryTypeName",
2075
+ "src": "1620:7:23",
2076
+ "typeDescriptions": {
2077
+ "typeIdentifier": "t_uint256",
2078
+ "typeString": "uint256"
2079
+ }
2080
+ },
2081
+ "value": null,
2082
+ "visibility": "internal"
2083
+ }
2084
+ ],
2085
+ "src": "1619:20:23"
2086
+ },
2087
+ "scope": 11140,
2088
+ "src": "1575:65:23",
2089
+ "stateMutability": "nonpayable",
2090
+ "superFunction": null,
2091
+ "visibility": "external"
2092
+ },
2093
+ {
2094
+ "body": null,
2095
+ "documentation": null,
2096
+ "id": 11139,
2097
+ "implemented": false,
2098
+ "kind": "function",
2099
+ "modifiers": [],
2100
+ "name": "redeem",
2101
+ "nodeType": "FunctionDefinition",
2102
+ "parameters": {
2103
+ "id": 11135,
2104
+ "nodeType": "ParameterList",
2105
+ "parameters": [
2106
+ {
2107
+ "constant": false,
2108
+ "id": 11132,
2109
+ "name": "to",
2110
+ "nodeType": "VariableDeclaration",
2111
+ "scope": 11139,
2112
+ "src": "1658:10:23",
2113
+ "stateVariable": false,
2114
+ "storageLocation": "default",
2115
+ "typeDescriptions": {
2116
+ "typeIdentifier": "t_address",
2117
+ "typeString": "address"
2118
+ },
2119
+ "typeName": {
2120
+ "id": 11131,
2121
+ "name": "address",
2122
+ "nodeType": "ElementaryTypeName",
2123
+ "src": "1658:7:23",
2124
+ "stateMutability": "nonpayable",
2125
+ "typeDescriptions": {
2126
+ "typeIdentifier": "t_address",
2127
+ "typeString": "address"
2128
+ }
2129
+ },
2130
+ "value": null,
2131
+ "visibility": "internal"
2132
+ },
2133
+ {
2134
+ "constant": false,
2135
+ "id": 11134,
2136
+ "name": "tokenId",
2137
+ "nodeType": "VariableDeclaration",
2138
+ "scope": 11139,
2139
+ "src": "1670:15:23",
2140
+ "stateVariable": false,
2141
+ "storageLocation": "default",
2142
+ "typeDescriptions": {
2143
+ "typeIdentifier": "t_uint256",
2144
+ "typeString": "uint256"
2145
+ },
2146
+ "typeName": {
2147
+ "id": 11133,
2148
+ "name": "uint256",
2149
+ "nodeType": "ElementaryTypeName",
2150
+ "src": "1670:7:23",
2151
+ "typeDescriptions": {
2152
+ "typeIdentifier": "t_uint256",
2153
+ "typeString": "uint256"
2154
+ }
2155
+ },
2156
+ "value": null,
2157
+ "visibility": "internal"
2158
+ }
2159
+ ],
2160
+ "src": "1657:29:23"
2161
+ },
2162
+ "returnParameters": {
2163
+ "id": 11138,
2164
+ "nodeType": "ParameterList",
2165
+ "parameters": [
2166
+ {
2167
+ "constant": false,
2168
+ "id": 11137,
2169
+ "name": "redeemAmount",
2170
+ "nodeType": "VariableDeclaration",
2171
+ "scope": 11139,
2172
+ "src": "1706:20:23",
2173
+ "stateVariable": false,
2174
+ "storageLocation": "default",
2175
+ "typeDescriptions": {
2176
+ "typeIdentifier": "t_uint256",
2177
+ "typeString": "uint256"
2178
+ },
2179
+ "typeName": {
2180
+ "id": 11136,
2181
+ "name": "uint256",
2182
+ "nodeType": "ElementaryTypeName",
2183
+ "src": "1706:7:23",
2184
+ "typeDescriptions": {
2185
+ "typeIdentifier": "t_uint256",
2186
+ "typeString": "uint256"
2187
+ }
2188
+ },
2189
+ "value": null,
2190
+ "visibility": "internal"
2191
+ }
2192
+ ],
2193
+ "src": "1705:22:23"
2194
+ },
2195
+ "scope": 11140,
2196
+ "src": "1642:86:23",
2197
+ "stateMutability": "nonpayable",
2198
+ "superFunction": null,
2199
+ "visibility": "external"
2200
+ }
2201
+ ],
2202
+ "scope": 11141,
2203
+ "src": "99:1632:23"
2204
+ }
2205
+ ],
2206
+ "src": "0:1732:23"
2207
+ },
2208
+ "legacyAST": {
2209
+ "attributes": {
2210
+ "absolutePath": "project:/contracts/impermax-v3-core/extensions/interfaces/ITokenizedUniswapV2Position.sol",
2211
+ "exportedSymbols": {
2212
+ "ITokenizedUniswapV2Position": [
2213
+ 11140
2214
+ ]
2215
+ }
2216
+ },
2217
+ "children": [
2218
+ {
2219
+ "attributes": {
2220
+ "literals": [
2221
+ "solidity",
2222
+ ">=",
2223
+ "0.5",
2224
+ ".0"
2225
+ ]
2226
+ },
2227
+ "id": 10994,
2228
+ "name": "PragmaDirective",
2229
+ "src": "0:24:23"
2230
+ },
2231
+ {
2232
+ "attributes": {
2233
+ "literals": [
2234
+ "experimental",
2235
+ "ABIEncoderV2"
2236
+ ]
2237
+ },
2238
+ "id": 10995,
2239
+ "name": "PragmaDirective",
2240
+ "src": "25:33:23"
2241
+ },
2242
+ {
2243
+ "attributes": {
2244
+ "SourceUnit": 14688,
2245
+ "absolutePath": "project:/contracts/impermax-v3-core/interfaces/INFTLP.sol",
2246
+ "file": "../../interfaces/INFTLP.sol",
2247
+ "scope": 11141,
2248
+ "symbolAliases": [
2249
+ null
2250
+ ],
2251
+ "unitAlias": ""
2252
+ },
2253
+ "id": 10996,
2254
+ "name": "ImportDirective",
2255
+ "src": "60:37:23"
2256
+ },
2257
+ {
2258
+ "attributes": {
2259
+ "baseContracts": [
2260
+ null
2261
+ ],
2262
+ "contractDependencies": [
2263
+ null
2264
+ ],
2265
+ "contractKind": "interface",
2266
+ "documentation": null,
2267
+ "fullyImplemented": false,
2268
+ "linearizedBaseContracts": [
2269
+ 11140
2270
+ ],
2271
+ "name": "ITokenizedUniswapV2Position",
2272
+ "scope": 11141
2273
+ },
2274
+ "children": [
2275
+ {
2276
+ "attributes": {
2277
+ "body": null,
2278
+ "documentation": null,
2279
+ "implemented": false,
2280
+ "isConstructor": false,
2281
+ "kind": "function",
2282
+ "modifiers": [
2283
+ null
2284
+ ],
2285
+ "name": "ownerOf",
2286
+ "scope": 11140,
2287
+ "stateMutability": "view",
2288
+ "superFunction": null,
2289
+ "visibility": "external"
2290
+ },
2291
+ "children": [
2292
+ {
2293
+ "children": [
2294
+ {
2295
+ "attributes": {
2296
+ "constant": false,
2297
+ "name": "_tokenId",
2298
+ "scope": 11003,
2299
+ "stateVariable": false,
2300
+ "storageLocation": "default",
2301
+ "type": "uint256",
2302
+ "value": null,
2303
+ "visibility": "internal"
2304
+ },
2305
+ "children": [
2306
+ {
2307
+ "attributes": {
2308
+ "name": "uint256",
2309
+ "type": "uint256"
2310
+ },
2311
+ "id": 10997,
2312
+ "name": "ElementaryTypeName",
2313
+ "src": "173:7:23"
2314
+ }
2315
+ ],
2316
+ "id": 10998,
2317
+ "name": "VariableDeclaration",
2318
+ "src": "173:16:23"
2319
+ }
2320
+ ],
2321
+ "id": 10999,
2322
+ "name": "ParameterList",
2323
+ "src": "172:18:23"
2324
+ },
2325
+ {
2326
+ "children": [
2327
+ {
2328
+ "attributes": {
2329
+ "constant": false,
2330
+ "name": "",
2331
+ "scope": 11003,
2332
+ "stateVariable": false,
2333
+ "storageLocation": "default",
2334
+ "type": "address",
2335
+ "value": null,
2336
+ "visibility": "internal"
2337
+ },
2338
+ "children": [
2339
+ {
2340
+ "attributes": {
2341
+ "name": "address",
2342
+ "stateMutability": "nonpayable",
2343
+ "type": "address"
2344
+ },
2345
+ "id": 11000,
2346
+ "name": "ElementaryTypeName",
2347
+ "src": "214:7:23"
2348
+ }
2349
+ ],
2350
+ "id": 11001,
2351
+ "name": "VariableDeclaration",
2352
+ "src": "214:7:23"
2353
+ }
2354
+ ],
2355
+ "id": 11002,
2356
+ "name": "ParameterList",
2357
+ "src": "213:9:23"
2358
+ }
2359
+ ],
2360
+ "id": 11003,
2361
+ "name": "FunctionDefinition",
2362
+ "src": "156:67:23"
2363
+ },
2364
+ {
2365
+ "attributes": {
2366
+ "body": null,
2367
+ "documentation": null,
2368
+ "implemented": false,
2369
+ "isConstructor": false,
2370
+ "kind": "function",
2371
+ "modifiers": [
2372
+ null
2373
+ ],
2374
+ "name": "safeTransferFrom",
2375
+ "scope": 11140,
2376
+ "stateMutability": "nonpayable",
2377
+ "superFunction": null,
2378
+ "visibility": "external"
2379
+ },
2380
+ "children": [
2381
+ {
2382
+ "children": [
2383
+ {
2384
+ "attributes": {
2385
+ "constant": false,
2386
+ "name": "from",
2387
+ "scope": 11014,
2388
+ "stateVariable": false,
2389
+ "storageLocation": "default",
2390
+ "type": "address",
2391
+ "value": null,
2392
+ "visibility": "internal"
2393
+ },
2394
+ "children": [
2395
+ {
2396
+ "attributes": {
2397
+ "name": "address",
2398
+ "stateMutability": "nonpayable",
2399
+ "type": "address"
2400
+ },
2401
+ "id": 11004,
2402
+ "name": "ElementaryTypeName",
2403
+ "src": "251:7:23"
2404
+ }
2405
+ ],
2406
+ "id": 11005,
2407
+ "name": "VariableDeclaration",
2408
+ "src": "251:12:23"
2409
+ },
2410
+ {
2411
+ "attributes": {
2412
+ "constant": false,
2413
+ "name": "to",
2414
+ "scope": 11014,
2415
+ "stateVariable": false,
2416
+ "storageLocation": "default",
2417
+ "type": "address",
2418
+ "value": null,
2419
+ "visibility": "internal"
2420
+ },
2421
+ "children": [
2422
+ {
2423
+ "attributes": {
2424
+ "name": "address",
2425
+ "stateMutability": "nonpayable",
2426
+ "type": "address"
2427
+ },
2428
+ "id": 11006,
2429
+ "name": "ElementaryTypeName",
2430
+ "src": "265:7:23"
2431
+ }
2432
+ ],
2433
+ "id": 11007,
2434
+ "name": "VariableDeclaration",
2435
+ "src": "265:10:23"
2436
+ },
2437
+ {
2438
+ "attributes": {
2439
+ "constant": false,
2440
+ "name": "tokenId",
2441
+ "scope": 11014,
2442
+ "stateVariable": false,
2443
+ "storageLocation": "default",
2444
+ "type": "uint256",
2445
+ "value": null,
2446
+ "visibility": "internal"
2447
+ },
2448
+ "children": [
2449
+ {
2450
+ "attributes": {
2451
+ "name": "uint256",
2452
+ "type": "uint256"
2453
+ },
2454
+ "id": 11008,
2455
+ "name": "ElementaryTypeName",
2456
+ "src": "277:7:23"
2457
+ }
2458
+ ],
2459
+ "id": 11009,
2460
+ "name": "VariableDeclaration",
2461
+ "src": "277:15:23"
2462
+ },
2463
+ {
2464
+ "attributes": {
2465
+ "constant": false,
2466
+ "name": "data",
2467
+ "scope": 11014,
2468
+ "stateVariable": false,
2469
+ "storageLocation": "calldata",
2470
+ "type": "bytes",
2471
+ "value": null,
2472
+ "visibility": "internal"
2473
+ },
2474
+ "children": [
2475
+ {
2476
+ "attributes": {
2477
+ "name": "bytes",
2478
+ "type": "bytes"
2479
+ },
2480
+ "id": 11010,
2481
+ "name": "ElementaryTypeName",
2482
+ "src": "294:5:23"
2483
+ }
2484
+ ],
2485
+ "id": 11011,
2486
+ "name": "VariableDeclaration",
2487
+ "src": "294:19:23"
2488
+ }
2489
+ ],
2490
+ "id": 11012,
2491
+ "name": "ParameterList",
2492
+ "src": "250:64:23"
2493
+ },
2494
+ {
2495
+ "attributes": {
2496
+ "parameters": [
2497
+ null
2498
+ ]
2499
+ },
2500
+ "children": [],
2501
+ "id": 11013,
2502
+ "name": "ParameterList",
2503
+ "src": "323:0:23"
2504
+ }
2505
+ ],
2506
+ "id": 11014,
2507
+ "name": "FunctionDefinition",
2508
+ "src": "225:99:23"
2509
+ },
2510
+ {
2511
+ "attributes": {
2512
+ "body": null,
2513
+ "documentation": null,
2514
+ "implemented": false,
2515
+ "isConstructor": false,
2516
+ "kind": "function",
2517
+ "modifiers": [
2518
+ null
2519
+ ],
2520
+ "name": "safeTransferFrom",
2521
+ "scope": 11140,
2522
+ "stateMutability": "nonpayable",
2523
+ "superFunction": null,
2524
+ "visibility": "external"
2525
+ },
2526
+ "children": [
2527
+ {
2528
+ "children": [
2529
+ {
2530
+ "attributes": {
2531
+ "constant": false,
2532
+ "name": "from",
2533
+ "scope": 11023,
2534
+ "stateVariable": false,
2535
+ "storageLocation": "default",
2536
+ "type": "address",
2537
+ "value": null,
2538
+ "visibility": "internal"
2539
+ },
2540
+ "children": [
2541
+ {
2542
+ "attributes": {
2543
+ "name": "address",
2544
+ "stateMutability": "nonpayable",
2545
+ "type": "address"
2546
+ },
2547
+ "id": 11015,
2548
+ "name": "ElementaryTypeName",
2549
+ "src": "352:7:23"
2550
+ }
2551
+ ],
2552
+ "id": 11016,
2553
+ "name": "VariableDeclaration",
2554
+ "src": "352:12:23"
2555
+ },
2556
+ {
2557
+ "attributes": {
2558
+ "constant": false,
2559
+ "name": "to",
2560
+ "scope": 11023,
2561
+ "stateVariable": false,
2562
+ "storageLocation": "default",
2563
+ "type": "address",
2564
+ "value": null,
2565
+ "visibility": "internal"
2566
+ },
2567
+ "children": [
2568
+ {
2569
+ "attributes": {
2570
+ "name": "address",
2571
+ "stateMutability": "nonpayable",
2572
+ "type": "address"
2573
+ },
2574
+ "id": 11017,
2575
+ "name": "ElementaryTypeName",
2576
+ "src": "366:7:23"
2577
+ }
2578
+ ],
2579
+ "id": 11018,
2580
+ "name": "VariableDeclaration",
2581
+ "src": "366:10:23"
2582
+ },
2583
+ {
2584
+ "attributes": {
2585
+ "constant": false,
2586
+ "name": "tokenId",
2587
+ "scope": 11023,
2588
+ "stateVariable": false,
2589
+ "storageLocation": "default",
2590
+ "type": "uint256",
2591
+ "value": null,
2592
+ "visibility": "internal"
2593
+ },
2594
+ "children": [
2595
+ {
2596
+ "attributes": {
2597
+ "name": "uint256",
2598
+ "type": "uint256"
2599
+ },
2600
+ "id": 11019,
2601
+ "name": "ElementaryTypeName",
2602
+ "src": "378:7:23"
2603
+ }
2604
+ ],
2605
+ "id": 11020,
2606
+ "name": "VariableDeclaration",
2607
+ "src": "378:15:23"
2608
+ }
2609
+ ],
2610
+ "id": 11021,
2611
+ "name": "ParameterList",
2612
+ "src": "351:43:23"
2613
+ },
2614
+ {
2615
+ "attributes": {
2616
+ "parameters": [
2617
+ null
2618
+ ]
2619
+ },
2620
+ "children": [],
2621
+ "id": 11022,
2622
+ "name": "ParameterList",
2623
+ "src": "403:0:23"
2624
+ }
2625
+ ],
2626
+ "id": 11023,
2627
+ "name": "FunctionDefinition",
2628
+ "src": "326:78:23"
2629
+ },
2630
+ {
2631
+ "attributes": {
2632
+ "body": null,
2633
+ "documentation": null,
2634
+ "implemented": false,
2635
+ "isConstructor": false,
2636
+ "kind": "function",
2637
+ "modifiers": [
2638
+ null
2639
+ ],
2640
+ "name": "transferFrom",
2641
+ "scope": 11140,
2642
+ "stateMutability": "nonpayable",
2643
+ "superFunction": null,
2644
+ "visibility": "external"
2645
+ },
2646
+ "children": [
2647
+ {
2648
+ "children": [
2649
+ {
2650
+ "attributes": {
2651
+ "constant": false,
2652
+ "name": "from",
2653
+ "scope": 11032,
2654
+ "stateVariable": false,
2655
+ "storageLocation": "default",
2656
+ "type": "address",
2657
+ "value": null,
2658
+ "visibility": "internal"
2659
+ },
2660
+ "children": [
2661
+ {
2662
+ "attributes": {
2663
+ "name": "address",
2664
+ "stateMutability": "nonpayable",
2665
+ "type": "address"
2666
+ },
2667
+ "id": 11024,
2668
+ "name": "ElementaryTypeName",
2669
+ "src": "428:7:23"
2670
+ }
2671
+ ],
2672
+ "id": 11025,
2673
+ "name": "VariableDeclaration",
2674
+ "src": "428:12:23"
2675
+ },
2676
+ {
2677
+ "attributes": {
2678
+ "constant": false,
2679
+ "name": "to",
2680
+ "scope": 11032,
2681
+ "stateVariable": false,
2682
+ "storageLocation": "default",
2683
+ "type": "address",
2684
+ "value": null,
2685
+ "visibility": "internal"
2686
+ },
2687
+ "children": [
2688
+ {
2689
+ "attributes": {
2690
+ "name": "address",
2691
+ "stateMutability": "nonpayable",
2692
+ "type": "address"
2693
+ },
2694
+ "id": 11026,
2695
+ "name": "ElementaryTypeName",
2696
+ "src": "442:7:23"
2697
+ }
2698
+ ],
2699
+ "id": 11027,
2700
+ "name": "VariableDeclaration",
2701
+ "src": "442:10:23"
2702
+ },
2703
+ {
2704
+ "attributes": {
2705
+ "constant": false,
2706
+ "name": "tokenId",
2707
+ "scope": 11032,
2708
+ "stateVariable": false,
2709
+ "storageLocation": "default",
2710
+ "type": "uint256",
2711
+ "value": null,
2712
+ "visibility": "internal"
2713
+ },
2714
+ "children": [
2715
+ {
2716
+ "attributes": {
2717
+ "name": "uint256",
2718
+ "type": "uint256"
2719
+ },
2720
+ "id": 11028,
2721
+ "name": "ElementaryTypeName",
2722
+ "src": "454:7:23"
2723
+ }
2724
+ ],
2725
+ "id": 11029,
2726
+ "name": "VariableDeclaration",
2727
+ "src": "454:15:23"
2728
+ }
2729
+ ],
2730
+ "id": 11030,
2731
+ "name": "ParameterList",
2732
+ "src": "427:43:23"
2733
+ },
2734
+ {
2735
+ "attributes": {
2736
+ "parameters": [
2737
+ null
2738
+ ]
2739
+ },
2740
+ "children": [],
2741
+ "id": 11031,
2742
+ "name": "ParameterList",
2743
+ "src": "479:0:23"
2744
+ }
2745
+ ],
2746
+ "id": 11032,
2747
+ "name": "FunctionDefinition",
2748
+ "src": "406:74:23"
2749
+ },
2750
+ {
2751
+ "attributes": {
2752
+ "body": null,
2753
+ "documentation": null,
2754
+ "implemented": false,
2755
+ "isConstructor": false,
2756
+ "kind": "function",
2757
+ "modifiers": [
2758
+ null
2759
+ ],
2760
+ "name": "token0",
2761
+ "scope": 11140,
2762
+ "stateMutability": "view",
2763
+ "superFunction": null,
2764
+ "visibility": "external"
2765
+ },
2766
+ "children": [
2767
+ {
2768
+ "attributes": {
2769
+ "parameters": [
2770
+ null
2771
+ ]
2772
+ },
2773
+ "children": [],
2774
+ "id": 11033,
2775
+ "name": "ParameterList",
2776
+ "src": "512:2:23"
2777
+ },
2778
+ {
2779
+ "children": [
2780
+ {
2781
+ "attributes": {
2782
+ "constant": false,
2783
+ "name": "",
2784
+ "scope": 11037,
2785
+ "stateVariable": false,
2786
+ "storageLocation": "default",
2787
+ "type": "address",
2788
+ "value": null,
2789
+ "visibility": "internal"
2790
+ },
2791
+ "children": [
2792
+ {
2793
+ "attributes": {
2794
+ "name": "address",
2795
+ "stateMutability": "nonpayable",
2796
+ "type": "address"
2797
+ },
2798
+ "id": 11034,
2799
+ "name": "ElementaryTypeName",
2800
+ "src": "538:7:23"
2801
+ }
2802
+ ],
2803
+ "id": 11035,
2804
+ "name": "VariableDeclaration",
2805
+ "src": "538:7:23"
2806
+ }
2807
+ ],
2808
+ "id": 11036,
2809
+ "name": "ParameterList",
2810
+ "src": "537:9:23"
2811
+ }
2812
+ ],
2813
+ "id": 11037,
2814
+ "name": "FunctionDefinition",
2815
+ "src": "497:50:23"
2816
+ },
2817
+ {
2818
+ "attributes": {
2819
+ "body": null,
2820
+ "documentation": null,
2821
+ "implemented": false,
2822
+ "isConstructor": false,
2823
+ "kind": "function",
2824
+ "modifiers": [
2825
+ null
2826
+ ],
2827
+ "name": "token1",
2828
+ "scope": 11140,
2829
+ "stateMutability": "view",
2830
+ "superFunction": null,
2831
+ "visibility": "external"
2832
+ },
2833
+ "children": [
2834
+ {
2835
+ "attributes": {
2836
+ "parameters": [
2837
+ null
2838
+ ]
2839
+ },
2840
+ "children": [],
2841
+ "id": 11038,
2842
+ "name": "ParameterList",
2843
+ "src": "564:2:23"
2844
+ },
2845
+ {
2846
+ "children": [
2847
+ {
2848
+ "attributes": {
2849
+ "constant": false,
2850
+ "name": "",
2851
+ "scope": 11042,
2852
+ "stateVariable": false,
2853
+ "storageLocation": "default",
2854
+ "type": "address",
2855
+ "value": null,
2856
+ "visibility": "internal"
2857
+ },
2858
+ "children": [
2859
+ {
2860
+ "attributes": {
2861
+ "name": "address",
2862
+ "stateMutability": "nonpayable",
2863
+ "type": "address"
2864
+ },
2865
+ "id": 11039,
2866
+ "name": "ElementaryTypeName",
2867
+ "src": "590:7:23"
2868
+ }
2869
+ ],
2870
+ "id": 11040,
2871
+ "name": "VariableDeclaration",
2872
+ "src": "590:7:23"
2873
+ }
2874
+ ],
2875
+ "id": 11041,
2876
+ "name": "ParameterList",
2877
+ "src": "589:9:23"
2878
+ }
2879
+ ],
2880
+ "id": 11042,
2881
+ "name": "FunctionDefinition",
2882
+ "src": "549:50:23"
2883
+ },
2884
+ {
2885
+ "attributes": {
2886
+ "body": null,
2887
+ "documentation": null,
2888
+ "implemented": false,
2889
+ "isConstructor": false,
2890
+ "kind": "function",
2891
+ "modifiers": [
2892
+ null
2893
+ ],
2894
+ "name": "getPositionData",
2895
+ "scope": 11140,
2896
+ "stateMutability": "nonpayable",
2897
+ "superFunction": null,
2898
+ "visibility": "external"
2899
+ },
2900
+ "children": [
2901
+ {
2902
+ "children": [
2903
+ {
2904
+ "attributes": {
2905
+ "constant": false,
2906
+ "name": "_tokenId",
2907
+ "scope": 11053,
2908
+ "stateVariable": false,
2909
+ "storageLocation": "default",
2910
+ "type": "uint256",
2911
+ "value": null,
2912
+ "visibility": "internal"
2913
+ },
2914
+ "children": [
2915
+ {
2916
+ "attributes": {
2917
+ "name": "uint256",
2918
+ "type": "uint256"
2919
+ },
2920
+ "id": 11043,
2921
+ "name": "ElementaryTypeName",
2922
+ "src": "626:7:23"
2923
+ }
2924
+ ],
2925
+ "id": 11044,
2926
+ "name": "VariableDeclaration",
2927
+ "src": "626:16:23"
2928
+ },
2929
+ {
2930
+ "attributes": {
2931
+ "constant": false,
2932
+ "name": "_safetyMarginSqrt",
2933
+ "scope": 11053,
2934
+ "stateVariable": false,
2935
+ "storageLocation": "default",
2936
+ "type": "uint256",
2937
+ "value": null,
2938
+ "visibility": "internal"
2939
+ },
2940
+ "children": [
2941
+ {
2942
+ "attributes": {
2943
+ "name": "uint256",
2944
+ "type": "uint256"
2945
+ },
2946
+ "id": 11045,
2947
+ "name": "ElementaryTypeName",
2948
+ "src": "644:7:23"
2949
+ }
2950
+ ],
2951
+ "id": 11046,
2952
+ "name": "VariableDeclaration",
2953
+ "src": "644:25:23"
2954
+ }
2955
+ ],
2956
+ "id": 11047,
2957
+ "name": "ParameterList",
2958
+ "src": "625:45:23"
2959
+ },
2960
+ {
2961
+ "children": [
2962
+ {
2963
+ "attributes": {
2964
+ "constant": false,
2965
+ "name": "priceSqrtX96",
2966
+ "scope": 11053,
2967
+ "stateVariable": false,
2968
+ "storageLocation": "default",
2969
+ "type": "uint256",
2970
+ "value": null,
2971
+ "visibility": "internal"
2972
+ },
2973
+ "children": [
2974
+ {
2975
+ "attributes": {
2976
+ "name": "uint256",
2977
+ "type": "uint256"
2978
+ },
2979
+ "id": 11048,
2980
+ "name": "ElementaryTypeName",
2981
+ "src": "692:7:23"
2982
+ }
2983
+ ],
2984
+ "id": 11049,
2985
+ "name": "VariableDeclaration",
2986
+ "src": "692:20:23"
2987
+ },
2988
+ {
2989
+ "attributes": {
2990
+ "constant": false,
2991
+ "name": "realXYs",
2992
+ "scope": 11053,
2993
+ "stateVariable": false,
2994
+ "storageLocation": "memory",
2995
+ "type": "struct INFTLP.RealXYs",
2996
+ "value": null,
2997
+ "visibility": "internal"
2998
+ },
2999
+ "children": [
3000
+ {
3001
+ "attributes": {
3002
+ "contractScope": null,
3003
+ "name": "INFTLP.RealXYs",
3004
+ "referencedDeclaration": 14613,
3005
+ "type": "struct INFTLP.RealXYs"
3006
+ },
3007
+ "id": 11050,
3008
+ "name": "UserDefinedTypeName",
3009
+ "src": "716:14:23"
3010
+ }
3011
+ ],
3012
+ "id": 11051,
3013
+ "name": "VariableDeclaration",
3014
+ "src": "716:29:23"
3015
+ }
3016
+ ],
3017
+ "id": 11052,
3018
+ "name": "ParameterList",
3019
+ "src": "688:60:23"
3020
+ }
3021
+ ],
3022
+ "id": 11053,
3023
+ "name": "FunctionDefinition",
3024
+ "src": "601:148:23"
3025
+ },
3026
+ {
3027
+ "attributes": {
3028
+ "body": null,
3029
+ "documentation": null,
3030
+ "implemented": false,
3031
+ "isConstructor": false,
3032
+ "kind": "function",
3033
+ "modifiers": [
3034
+ null
3035
+ ],
3036
+ "name": "join",
3037
+ "scope": 11140,
3038
+ "stateMutability": "nonpayable",
3039
+ "superFunction": null,
3040
+ "visibility": "external"
3041
+ },
3042
+ "children": [
3043
+ {
3044
+ "children": [
3045
+ {
3046
+ "attributes": {
3047
+ "constant": false,
3048
+ "name": "tokenIdFrom",
3049
+ "scope": 11060,
3050
+ "stateVariable": false,
3051
+ "storageLocation": "default",
3052
+ "type": "uint256",
3053
+ "value": null,
3054
+ "visibility": "internal"
3055
+ },
3056
+ "children": [
3057
+ {
3058
+ "attributes": {
3059
+ "name": "uint256",
3060
+ "type": "uint256"
3061
+ },
3062
+ "id": 11054,
3063
+ "name": "ElementaryTypeName",
3064
+ "src": "767:7:23"
3065
+ }
3066
+ ],
3067
+ "id": 11055,
3068
+ "name": "VariableDeclaration",
3069
+ "src": "767:19:23"
3070
+ },
3071
+ {
3072
+ "attributes": {
3073
+ "constant": false,
3074
+ "name": "tokenIdTo",
3075
+ "scope": 11060,
3076
+ "stateVariable": false,
3077
+ "storageLocation": "default",
3078
+ "type": "uint256",
3079
+ "value": null,
3080
+ "visibility": "internal"
3081
+ },
3082
+ "children": [
3083
+ {
3084
+ "attributes": {
3085
+ "name": "uint256",
3086
+ "type": "uint256"
3087
+ },
3088
+ "id": 11056,
3089
+ "name": "ElementaryTypeName",
3090
+ "src": "788:7:23"
3091
+ }
3092
+ ],
3093
+ "id": 11057,
3094
+ "name": "VariableDeclaration",
3095
+ "src": "788:17:23"
3096
+ }
3097
+ ],
3098
+ "id": 11058,
3099
+ "name": "ParameterList",
3100
+ "src": "766:40:23"
3101
+ },
3102
+ {
3103
+ "attributes": {
3104
+ "parameters": [
3105
+ null
3106
+ ]
3107
+ },
3108
+ "children": [],
3109
+ "id": 11059,
3110
+ "name": "ParameterList",
3111
+ "src": "815:0:23"
3112
+ }
3113
+ ],
3114
+ "id": 11060,
3115
+ "name": "FunctionDefinition",
3116
+ "src": "753:63:23"
3117
+ },
3118
+ {
3119
+ "attributes": {
3120
+ "body": null,
3121
+ "documentation": null,
3122
+ "implemented": false,
3123
+ "isConstructor": false,
3124
+ "kind": "function",
3125
+ "modifiers": [
3126
+ null
3127
+ ],
3128
+ "name": "split",
3129
+ "scope": 11140,
3130
+ "stateMutability": "nonpayable",
3131
+ "superFunction": null,
3132
+ "visibility": "external"
3133
+ },
3134
+ "children": [
3135
+ {
3136
+ "children": [
3137
+ {
3138
+ "attributes": {
3139
+ "constant": false,
3140
+ "name": "tokenId",
3141
+ "scope": 11069,
3142
+ "stateVariable": false,
3143
+ "storageLocation": "default",
3144
+ "type": "uint256",
3145
+ "value": null,
3146
+ "visibility": "internal"
3147
+ },
3148
+ "children": [
3149
+ {
3150
+ "attributes": {
3151
+ "name": "uint256",
3152
+ "type": "uint256"
3153
+ },
3154
+ "id": 11061,
3155
+ "name": "ElementaryTypeName",
3156
+ "src": "833:7:23"
3157
+ }
3158
+ ],
3159
+ "id": 11062,
3160
+ "name": "VariableDeclaration",
3161
+ "src": "833:15:23"
3162
+ },
3163
+ {
3164
+ "attributes": {
3165
+ "constant": false,
3166
+ "name": "percentage",
3167
+ "scope": 11069,
3168
+ "stateVariable": false,
3169
+ "storageLocation": "default",
3170
+ "type": "uint256",
3171
+ "value": null,
3172
+ "visibility": "internal"
3173
+ },
3174
+ "children": [
3175
+ {
3176
+ "attributes": {
3177
+ "name": "uint256",
3178
+ "type": "uint256"
3179
+ },
3180
+ "id": 11063,
3181
+ "name": "ElementaryTypeName",
3182
+ "src": "850:7:23"
3183
+ }
3184
+ ],
3185
+ "id": 11064,
3186
+ "name": "VariableDeclaration",
3187
+ "src": "850:18:23"
3188
+ }
3189
+ ],
3190
+ "id": 11065,
3191
+ "name": "ParameterList",
3192
+ "src": "832:37:23"
3193
+ },
3194
+ {
3195
+ "children": [
3196
+ {
3197
+ "attributes": {
3198
+ "constant": false,
3199
+ "name": "newTokenId",
3200
+ "scope": 11069,
3201
+ "stateVariable": false,
3202
+ "storageLocation": "default",
3203
+ "type": "uint256",
3204
+ "value": null,
3205
+ "visibility": "internal"
3206
+ },
3207
+ "children": [
3208
+ {
3209
+ "attributes": {
3210
+ "name": "uint256",
3211
+ "type": "uint256"
3212
+ },
3213
+ "id": 11066,
3214
+ "name": "ElementaryTypeName",
3215
+ "src": "888:7:23"
3216
+ }
3217
+ ],
3218
+ "id": 11067,
3219
+ "name": "VariableDeclaration",
3220
+ "src": "888:18:23"
3221
+ }
3222
+ ],
3223
+ "id": 11068,
3224
+ "name": "ParameterList",
3225
+ "src": "887:20:23"
3226
+ }
3227
+ ],
3228
+ "id": 11069,
3229
+ "name": "FunctionDefinition",
3230
+ "src": "818:90:23"
3231
+ },
3232
+ {
3233
+ "attributes": {
3234
+ "body": null,
3235
+ "documentation": null,
3236
+ "implemented": false,
3237
+ "isConstructor": false,
3238
+ "kind": "function",
3239
+ "modifiers": [
3240
+ null
3241
+ ],
3242
+ "name": "factory",
3243
+ "scope": 11140,
3244
+ "stateMutability": "view",
3245
+ "superFunction": null,
3246
+ "visibility": "external"
3247
+ },
3248
+ "children": [
3249
+ {
3250
+ "attributes": {
3251
+ "parameters": [
3252
+ null
3253
+ ]
3254
+ },
3255
+ "children": [],
3256
+ "id": 11070,
3257
+ "name": "ParameterList",
3258
+ "src": "962:2:23"
3259
+ },
3260
+ {
3261
+ "children": [
3262
+ {
3263
+ "attributes": {
3264
+ "constant": false,
3265
+ "name": "",
3266
+ "scope": 11074,
3267
+ "stateVariable": false,
3268
+ "storageLocation": "default",
3269
+ "type": "address",
3270
+ "value": null,
3271
+ "visibility": "internal"
3272
+ },
3273
+ "children": [
3274
+ {
3275
+ "attributes": {
3276
+ "name": "address",
3277
+ "stateMutability": "nonpayable",
3278
+ "type": "address"
3279
+ },
3280
+ "id": 11071,
3281
+ "name": "ElementaryTypeName",
3282
+ "src": "988:7:23"
3283
+ }
3284
+ ],
3285
+ "id": 11072,
3286
+ "name": "VariableDeclaration",
3287
+ "src": "988:7:23"
3288
+ }
3289
+ ],
3290
+ "id": 11073,
3291
+ "name": "ParameterList",
3292
+ "src": "987:9:23"
3293
+ }
3294
+ ],
3295
+ "id": 11074,
3296
+ "name": "FunctionDefinition",
3297
+ "src": "946:51:23"
3298
+ },
3299
+ {
3300
+ "attributes": {
3301
+ "body": null,
3302
+ "documentation": null,
3303
+ "implemented": false,
3304
+ "isConstructor": false,
3305
+ "kind": "function",
3306
+ "modifiers": [
3307
+ null
3308
+ ],
3309
+ "name": "simpleUniswapOracle",
3310
+ "scope": 11140,
3311
+ "stateMutability": "view",
3312
+ "superFunction": null,
3313
+ "visibility": "external"
3314
+ },
3315
+ "children": [
3316
+ {
3317
+ "attributes": {
3318
+ "parameters": [
3319
+ null
3320
+ ]
3321
+ },
3322
+ "children": [],
3323
+ "id": 11075,
3324
+ "name": "ParameterList",
3325
+ "src": "1027:2:23"
3326
+ },
3327
+ {
3328
+ "children": [
3329
+ {
3330
+ "attributes": {
3331
+ "constant": false,
3332
+ "name": "",
3333
+ "scope": 11079,
3334
+ "stateVariable": false,
3335
+ "storageLocation": "default",
3336
+ "type": "address",
3337
+ "value": null,
3338
+ "visibility": "internal"
3339
+ },
3340
+ "children": [
3341
+ {
3342
+ "attributes": {
3343
+ "name": "address",
3344
+ "stateMutability": "nonpayable",
3345
+ "type": "address"
3346
+ },
3347
+ "id": 11076,
3348
+ "name": "ElementaryTypeName",
3349
+ "src": "1053:7:23"
3350
+ }
3351
+ ],
3352
+ "id": 11077,
3353
+ "name": "VariableDeclaration",
3354
+ "src": "1053:7:23"
3355
+ }
3356
+ ],
3357
+ "id": 11078,
3358
+ "name": "ParameterList",
3359
+ "src": "1052:9:23"
3360
+ }
3361
+ ],
3362
+ "id": 11079,
3363
+ "name": "FunctionDefinition",
3364
+ "src": "999:63:23"
3365
+ },
3366
+ {
3367
+ "attributes": {
3368
+ "body": null,
3369
+ "documentation": null,
3370
+ "implemented": false,
3371
+ "isConstructor": false,
3372
+ "kind": "function",
3373
+ "modifiers": [
3374
+ null
3375
+ ],
3376
+ "name": "underlying",
3377
+ "scope": 11140,
3378
+ "stateMutability": "view",
3379
+ "superFunction": null,
3380
+ "visibility": "external"
3381
+ },
3382
+ "children": [
3383
+ {
3384
+ "attributes": {
3385
+ "parameters": [
3386
+ null
3387
+ ]
3388
+ },
3389
+ "children": [],
3390
+ "id": 11080,
3391
+ "name": "ParameterList",
3392
+ "src": "1083:2:23"
3393
+ },
3394
+ {
3395
+ "children": [
3396
+ {
3397
+ "attributes": {
3398
+ "constant": false,
3399
+ "name": "",
3400
+ "scope": 11084,
3401
+ "stateVariable": false,
3402
+ "storageLocation": "default",
3403
+ "type": "address",
3404
+ "value": null,
3405
+ "visibility": "internal"
3406
+ },
3407
+ "children": [
3408
+ {
3409
+ "attributes": {
3410
+ "name": "address",
3411
+ "stateMutability": "nonpayable",
3412
+ "type": "address"
3413
+ },
3414
+ "id": 11081,
3415
+ "name": "ElementaryTypeName",
3416
+ "src": "1109:7:23"
3417
+ }
3418
+ ],
3419
+ "id": 11082,
3420
+ "name": "VariableDeclaration",
3421
+ "src": "1109:7:23"
3422
+ }
3423
+ ],
3424
+ "id": 11083,
3425
+ "name": "ParameterList",
3426
+ "src": "1108:9:23"
3427
+ }
3428
+ ],
3429
+ "id": 11084,
3430
+ "name": "FunctionDefinition",
3431
+ "src": "1064:54:23"
3432
+ },
3433
+ {
3434
+ "attributes": {
3435
+ "body": null,
3436
+ "documentation": null,
3437
+ "implemented": false,
3438
+ "isConstructor": false,
3439
+ "kind": "function",
3440
+ "modifiers": [
3441
+ null
3442
+ ],
3443
+ "name": "totalBalance",
3444
+ "scope": 11140,
3445
+ "stateMutability": "view",
3446
+ "superFunction": null,
3447
+ "visibility": "external"
3448
+ },
3449
+ "children": [
3450
+ {
3451
+ "attributes": {
3452
+ "parameters": [
3453
+ null
3454
+ ]
3455
+ },
3456
+ "children": [],
3457
+ "id": 11085,
3458
+ "name": "ParameterList",
3459
+ "src": "1141:2:23"
3460
+ },
3461
+ {
3462
+ "children": [
3463
+ {
3464
+ "attributes": {
3465
+ "constant": false,
3466
+ "name": "",
3467
+ "scope": 11089,
3468
+ "stateVariable": false,
3469
+ "storageLocation": "default",
3470
+ "type": "uint256",
3471
+ "value": null,
3472
+ "visibility": "internal"
3473
+ },
3474
+ "children": [
3475
+ {
3476
+ "attributes": {
3477
+ "name": "uint256",
3478
+ "type": "uint256"
3479
+ },
3480
+ "id": 11086,
3481
+ "name": "ElementaryTypeName",
3482
+ "src": "1167:7:23"
3483
+ }
3484
+ ],
3485
+ "id": 11087,
3486
+ "name": "VariableDeclaration",
3487
+ "src": "1167:7:23"
3488
+ }
3489
+ ],
3490
+ "id": 11088,
3491
+ "name": "ParameterList",
3492
+ "src": "1166:9:23"
3493
+ }
3494
+ ],
3495
+ "id": 11089,
3496
+ "name": "FunctionDefinition",
3497
+ "src": "1120:56:23"
3498
+ },
3499
+ {
3500
+ "attributes": {
3501
+ "body": null,
3502
+ "documentation": null,
3503
+ "implemented": false,
3504
+ "isConstructor": false,
3505
+ "kind": "function",
3506
+ "modifiers": [
3507
+ null
3508
+ ],
3509
+ "name": "liquidity",
3510
+ "scope": 11140,
3511
+ "stateMutability": "view",
3512
+ "superFunction": null,
3513
+ "visibility": "external"
3514
+ },
3515
+ "children": [
3516
+ {
3517
+ "children": [
3518
+ {
3519
+ "attributes": {
3520
+ "constant": false,
3521
+ "name": "",
3522
+ "scope": 11096,
3523
+ "stateVariable": false,
3524
+ "storageLocation": "default",
3525
+ "type": "uint256",
3526
+ "value": null,
3527
+ "visibility": "internal"
3528
+ },
3529
+ "children": [
3530
+ {
3531
+ "attributes": {
3532
+ "name": "uint256",
3533
+ "type": "uint256"
3534
+ },
3535
+ "id": 11090,
3536
+ "name": "ElementaryTypeName",
3537
+ "src": "1199:7:23"
3538
+ }
3539
+ ],
3540
+ "id": 11091,
3541
+ "name": "VariableDeclaration",
3542
+ "src": "1199:7:23"
3543
+ }
3544
+ ],
3545
+ "id": 11092,
3546
+ "name": "ParameterList",
3547
+ "src": "1198:9:23"
3548
+ },
3549
+ {
3550
+ "children": [
3551
+ {
3552
+ "attributes": {
3553
+ "constant": false,
3554
+ "name": "",
3555
+ "scope": 11096,
3556
+ "stateVariable": false,
3557
+ "storageLocation": "default",
3558
+ "type": "uint256",
3559
+ "value": null,
3560
+ "visibility": "internal"
3561
+ },
3562
+ "children": [
3563
+ {
3564
+ "attributes": {
3565
+ "name": "uint256",
3566
+ "type": "uint256"
3567
+ },
3568
+ "id": 11093,
3569
+ "name": "ElementaryTypeName",
3570
+ "src": "1231:7:23"
3571
+ }
3572
+ ],
3573
+ "id": 11094,
3574
+ "name": "VariableDeclaration",
3575
+ "src": "1231:7:23"
3576
+ }
3577
+ ],
3578
+ "id": 11095,
3579
+ "name": "ParameterList",
3580
+ "src": "1230:9:23"
3581
+ }
3582
+ ],
3583
+ "id": 11096,
3584
+ "name": "FunctionDefinition",
3585
+ "src": "1180:60:23"
3586
+ },
3587
+ {
3588
+ "attributes": {
3589
+ "body": null,
3590
+ "documentation": null,
3591
+ "implemented": false,
3592
+ "isConstructor": false,
3593
+ "kind": "function",
3594
+ "modifiers": [
3595
+ null
3596
+ ],
3597
+ "name": "positionLength",
3598
+ "scope": 11140,
3599
+ "stateMutability": "view",
3600
+ "superFunction": null,
3601
+ "visibility": "external"
3602
+ },
3603
+ "children": [
3604
+ {
3605
+ "attributes": {
3606
+ "parameters": [
3607
+ null
3608
+ ]
3609
+ },
3610
+ "children": [],
3611
+ "id": 11097,
3612
+ "name": "ParameterList",
3613
+ "src": "1265:2:23"
3614
+ },
3615
+ {
3616
+ "children": [
3617
+ {
3618
+ "attributes": {
3619
+ "constant": false,
3620
+ "name": "",
3621
+ "scope": 11101,
3622
+ "stateVariable": false,
3623
+ "storageLocation": "default",
3624
+ "type": "uint256",
3625
+ "value": null,
3626
+ "visibility": "internal"
3627
+ },
3628
+ "children": [
3629
+ {
3630
+ "attributes": {
3631
+ "name": "uint256",
3632
+ "type": "uint256"
3633
+ },
3634
+ "id": 11098,
3635
+ "name": "ElementaryTypeName",
3636
+ "src": "1291:7:23"
3637
+ }
3638
+ ],
3639
+ "id": 11099,
3640
+ "name": "VariableDeclaration",
3641
+ "src": "1291:7:23"
3642
+ }
3643
+ ],
3644
+ "id": 11100,
3645
+ "name": "ParameterList",
3646
+ "src": "1290:9:23"
3647
+ }
3648
+ ],
3649
+ "id": 11101,
3650
+ "name": "FunctionDefinition",
3651
+ "src": "1242:58:23"
3652
+ },
3653
+ {
3654
+ "attributes": {
3655
+ "body": null,
3656
+ "documentation": null,
3657
+ "implemented": false,
3658
+ "isConstructor": false,
3659
+ "kind": "function",
3660
+ "modifiers": [
3661
+ null
3662
+ ],
3663
+ "name": "oraclePriceSqrtX96",
3664
+ "scope": 11140,
3665
+ "stateMutability": "nonpayable",
3666
+ "superFunction": null,
3667
+ "visibility": "external"
3668
+ },
3669
+ "children": [
3670
+ {
3671
+ "attributes": {
3672
+ "parameters": [
3673
+ null
3674
+ ]
3675
+ },
3676
+ "children": [],
3677
+ "id": 11102,
3678
+ "name": "ParameterList",
3679
+ "src": "1331:2:23"
3680
+ },
3681
+ {
3682
+ "children": [
3683
+ {
3684
+ "attributes": {
3685
+ "constant": false,
3686
+ "name": "",
3687
+ "scope": 11106,
3688
+ "stateVariable": false,
3689
+ "storageLocation": "default",
3690
+ "type": "uint256",
3691
+ "value": null,
3692
+ "visibility": "internal"
3693
+ },
3694
+ "children": [
3695
+ {
3696
+ "attributes": {
3697
+ "name": "uint256",
3698
+ "type": "uint256"
3699
+ },
3700
+ "id": 11103,
3701
+ "name": "ElementaryTypeName",
3702
+ "src": "1352:7:23"
3703
+ }
3704
+ ],
3705
+ "id": 11104,
3706
+ "name": "VariableDeclaration",
3707
+ "src": "1352:7:23"
3708
+ }
3709
+ ],
3710
+ "id": 11105,
3711
+ "name": "ParameterList",
3712
+ "src": "1351:9:23"
3713
+ }
3714
+ ],
3715
+ "id": 11106,
3716
+ "name": "FunctionDefinition",
3717
+ "src": "1304:57:23"
3718
+ },
3719
+ {
3720
+ "attributes": {
3721
+ "anonymous": false,
3722
+ "documentation": null,
3723
+ "name": "UpdatePositionLiquidity"
3724
+ },
3725
+ "children": [
3726
+ {
3727
+ "children": [
3728
+ {
3729
+ "attributes": {
3730
+ "constant": false,
3731
+ "indexed": true,
3732
+ "name": "tokenId",
3733
+ "scope": 11112,
3734
+ "stateVariable": false,
3735
+ "storageLocation": "default",
3736
+ "type": "uint256",
3737
+ "value": null,
3738
+ "visibility": "internal"
3739
+ },
3740
+ "children": [
3741
+ {
3742
+ "attributes": {
3743
+ "name": "uint256",
3744
+ "type": "uint256"
3745
+ },
3746
+ "id": 11107,
3747
+ "name": "ElementaryTypeName",
3748
+ "src": "1395:7:23"
3749
+ }
3750
+ ],
3751
+ "id": 11108,
3752
+ "name": "VariableDeclaration",
3753
+ "src": "1395:23:23"
3754
+ },
3755
+ {
3756
+ "attributes": {
3757
+ "constant": false,
3758
+ "indexed": false,
3759
+ "name": "liquidity",
3760
+ "scope": 11112,
3761
+ "stateVariable": false,
3762
+ "storageLocation": "default",
3763
+ "type": "uint256",
3764
+ "value": null,
3765
+ "visibility": "internal"
3766
+ },
3767
+ "children": [
3768
+ {
3769
+ "attributes": {
3770
+ "name": "uint256",
3771
+ "type": "uint256"
3772
+ },
3773
+ "id": 11109,
3774
+ "name": "ElementaryTypeName",
3775
+ "src": "1420:7:23"
3776
+ }
3777
+ ],
3778
+ "id": 11110,
3779
+ "name": "VariableDeclaration",
3780
+ "src": "1420:17:23"
3781
+ }
3782
+ ],
3783
+ "id": 11111,
3784
+ "name": "ParameterList",
3785
+ "src": "1394:44:23"
3786
+ }
3787
+ ],
3788
+ "id": 11112,
3789
+ "name": "EventDefinition",
3790
+ "src": "1365:74:23"
3791
+ },
3792
+ {
3793
+ "attributes": {
3794
+ "body": null,
3795
+ "documentation": null,
3796
+ "implemented": false,
3797
+ "isConstructor": false,
3798
+ "kind": "function",
3799
+ "modifiers": [
3800
+ null
3801
+ ],
3802
+ "name": "_initialize",
3803
+ "scope": 11140,
3804
+ "stateMutability": "nonpayable",
3805
+ "superFunction": null,
3806
+ "visibility": "external"
3807
+ },
3808
+ "children": [
3809
+ {
3810
+ "children": [
3811
+ {
3812
+ "attributes": {
3813
+ "constant": false,
3814
+ "name": "_underlying",
3815
+ "scope": 11123,
3816
+ "stateVariable": false,
3817
+ "storageLocation": "default",
3818
+ "type": "address",
3819
+ "value": null,
3820
+ "visibility": "internal"
3821
+ },
3822
+ "children": [
3823
+ {
3824
+ "attributes": {
3825
+ "name": "address",
3826
+ "stateMutability": "nonpayable",
3827
+ "type": "address"
3828
+ },
3829
+ "id": 11113,
3830
+ "name": "ElementaryTypeName",
3831
+ "src": "1467:7:23"
3832
+ }
3833
+ ],
3834
+ "id": 11114,
3835
+ "name": "VariableDeclaration",
3836
+ "src": "1467:19:23"
3837
+ },
3838
+ {
3839
+ "attributes": {
3840
+ "constant": false,
3841
+ "name": "_token0",
3842
+ "scope": 11123,
3843
+ "stateVariable": false,
3844
+ "storageLocation": "default",
3845
+ "type": "address",
3846
+ "value": null,
3847
+ "visibility": "internal"
3848
+ },
3849
+ "children": [
3850
+ {
3851
+ "attributes": {
3852
+ "name": "address",
3853
+ "stateMutability": "nonpayable",
3854
+ "type": "address"
3855
+ },
3856
+ "id": 11115,
3857
+ "name": "ElementaryTypeName",
3858
+ "src": "1491:7:23"
3859
+ }
3860
+ ],
3861
+ "id": 11116,
3862
+ "name": "VariableDeclaration",
3863
+ "src": "1491:15:23"
3864
+ },
3865
+ {
3866
+ "attributes": {
3867
+ "constant": false,
3868
+ "name": "_token1",
3869
+ "scope": 11123,
3870
+ "stateVariable": false,
3871
+ "storageLocation": "default",
3872
+ "type": "address",
3873
+ "value": null,
3874
+ "visibility": "internal"
3875
+ },
3876
+ "children": [
3877
+ {
3878
+ "attributes": {
3879
+ "name": "address",
3880
+ "stateMutability": "nonpayable",
3881
+ "type": "address"
3882
+ },
3883
+ "id": 11117,
3884
+ "name": "ElementaryTypeName",
3885
+ "src": "1511:7:23"
3886
+ }
3887
+ ],
3888
+ "id": 11118,
3889
+ "name": "VariableDeclaration",
3890
+ "src": "1511:15:23"
3891
+ },
3892
+ {
3893
+ "attributes": {
3894
+ "constant": false,
3895
+ "name": "_simpleUniswapOracle",
3896
+ "scope": 11123,
3897
+ "stateVariable": false,
3898
+ "storageLocation": "default",
3899
+ "type": "address",
3900
+ "value": null,
3901
+ "visibility": "internal"
3902
+ },
3903
+ "children": [
3904
+ {
3905
+ "attributes": {
3906
+ "name": "address",
3907
+ "stateMutability": "nonpayable",
3908
+ "type": "address"
3909
+ },
3910
+ "id": 11119,
3911
+ "name": "ElementaryTypeName",
3912
+ "src": "1530:7:23"
3913
+ }
3914
+ ],
3915
+ "id": 11120,
3916
+ "name": "VariableDeclaration",
3917
+ "src": "1530:28:23"
3918
+ }
3919
+ ],
3920
+ "id": 11121,
3921
+ "name": "ParameterList",
3922
+ "src": "1463:98:23"
3923
+ },
3924
+ {
3925
+ "attributes": {
3926
+ "parameters": [
3927
+ null
3928
+ ]
3929
+ },
3930
+ "children": [],
3931
+ "id": 11122,
3932
+ "name": "ParameterList",
3933
+ "src": "1570:0:23"
3934
+ }
3935
+ ],
3936
+ "id": 11123,
3937
+ "name": "FunctionDefinition",
3938
+ "src": "1442:129:23"
3939
+ },
3940
+ {
3941
+ "attributes": {
3942
+ "body": null,
3943
+ "documentation": null,
3944
+ "implemented": false,
3945
+ "isConstructor": false,
3946
+ "kind": "function",
3947
+ "modifiers": [
3948
+ null
3949
+ ],
3950
+ "name": "mint",
3951
+ "scope": 11140,
3952
+ "stateMutability": "nonpayable",
3953
+ "superFunction": null,
3954
+ "visibility": "external"
3955
+ },
3956
+ "children": [
3957
+ {
3958
+ "children": [
3959
+ {
3960
+ "attributes": {
3961
+ "constant": false,
3962
+ "name": "to",
3963
+ "scope": 11130,
3964
+ "stateVariable": false,
3965
+ "storageLocation": "default",
3966
+ "type": "address",
3967
+ "value": null,
3968
+ "visibility": "internal"
3969
+ },
3970
+ "children": [
3971
+ {
3972
+ "attributes": {
3973
+ "name": "address",
3974
+ "stateMutability": "nonpayable",
3975
+ "type": "address"
3976
+ },
3977
+ "id": 11124,
3978
+ "name": "ElementaryTypeName",
3979
+ "src": "1589:7:23"
3980
+ }
3981
+ ],
3982
+ "id": 11125,
3983
+ "name": "VariableDeclaration",
3984
+ "src": "1589:10:23"
3985
+ }
3986
+ ],
3987
+ "id": 11126,
3988
+ "name": "ParameterList",
3989
+ "src": "1588:12:23"
3990
+ },
3991
+ {
3992
+ "children": [
3993
+ {
3994
+ "attributes": {
3995
+ "constant": false,
3996
+ "name": "newTokenId",
3997
+ "scope": 11130,
3998
+ "stateVariable": false,
3999
+ "storageLocation": "default",
4000
+ "type": "uint256",
4001
+ "value": null,
4002
+ "visibility": "internal"
4003
+ },
4004
+ "children": [
4005
+ {
4006
+ "attributes": {
4007
+ "name": "uint256",
4008
+ "type": "uint256"
4009
+ },
4010
+ "id": 11127,
4011
+ "name": "ElementaryTypeName",
4012
+ "src": "1620:7:23"
4013
+ }
4014
+ ],
4015
+ "id": 11128,
4016
+ "name": "VariableDeclaration",
4017
+ "src": "1620:18:23"
4018
+ }
4019
+ ],
4020
+ "id": 11129,
4021
+ "name": "ParameterList",
4022
+ "src": "1619:20:23"
4023
+ }
4024
+ ],
4025
+ "id": 11130,
4026
+ "name": "FunctionDefinition",
4027
+ "src": "1575:65:23"
4028
+ },
4029
+ {
4030
+ "attributes": {
4031
+ "body": null,
4032
+ "documentation": null,
4033
+ "implemented": false,
4034
+ "isConstructor": false,
4035
+ "kind": "function",
4036
+ "modifiers": [
4037
+ null
4038
+ ],
4039
+ "name": "redeem",
4040
+ "scope": 11140,
4041
+ "stateMutability": "nonpayable",
4042
+ "superFunction": null,
4043
+ "visibility": "external"
4044
+ },
4045
+ "children": [
4046
+ {
4047
+ "children": [
4048
+ {
4049
+ "attributes": {
4050
+ "constant": false,
4051
+ "name": "to",
4052
+ "scope": 11139,
4053
+ "stateVariable": false,
4054
+ "storageLocation": "default",
4055
+ "type": "address",
4056
+ "value": null,
4057
+ "visibility": "internal"
4058
+ },
4059
+ "children": [
4060
+ {
4061
+ "attributes": {
4062
+ "name": "address",
4063
+ "stateMutability": "nonpayable",
4064
+ "type": "address"
4065
+ },
4066
+ "id": 11131,
4067
+ "name": "ElementaryTypeName",
4068
+ "src": "1658:7:23"
4069
+ }
4070
+ ],
4071
+ "id": 11132,
4072
+ "name": "VariableDeclaration",
4073
+ "src": "1658:10:23"
4074
+ },
4075
+ {
4076
+ "attributes": {
4077
+ "constant": false,
4078
+ "name": "tokenId",
4079
+ "scope": 11139,
4080
+ "stateVariable": false,
4081
+ "storageLocation": "default",
4082
+ "type": "uint256",
4083
+ "value": null,
4084
+ "visibility": "internal"
4085
+ },
4086
+ "children": [
4087
+ {
4088
+ "attributes": {
4089
+ "name": "uint256",
4090
+ "type": "uint256"
4091
+ },
4092
+ "id": 11133,
4093
+ "name": "ElementaryTypeName",
4094
+ "src": "1670:7:23"
4095
+ }
4096
+ ],
4097
+ "id": 11134,
4098
+ "name": "VariableDeclaration",
4099
+ "src": "1670:15:23"
4100
+ }
4101
+ ],
4102
+ "id": 11135,
4103
+ "name": "ParameterList",
4104
+ "src": "1657:29:23"
4105
+ },
4106
+ {
4107
+ "children": [
4108
+ {
4109
+ "attributes": {
4110
+ "constant": false,
4111
+ "name": "redeemAmount",
4112
+ "scope": 11139,
4113
+ "stateVariable": false,
4114
+ "storageLocation": "default",
4115
+ "type": "uint256",
4116
+ "value": null,
4117
+ "visibility": "internal"
4118
+ },
4119
+ "children": [
4120
+ {
4121
+ "attributes": {
4122
+ "name": "uint256",
4123
+ "type": "uint256"
4124
+ },
4125
+ "id": 11136,
4126
+ "name": "ElementaryTypeName",
4127
+ "src": "1706:7:23"
4128
+ }
4129
+ ],
4130
+ "id": 11137,
4131
+ "name": "VariableDeclaration",
4132
+ "src": "1706:20:23"
4133
+ }
4134
+ ],
4135
+ "id": 11138,
4136
+ "name": "ParameterList",
4137
+ "src": "1705:22:23"
4138
+ }
4139
+ ],
4140
+ "id": 11139,
4141
+ "name": "FunctionDefinition",
4142
+ "src": "1642:86:23"
4143
+ }
4144
+ ],
4145
+ "id": 11140,
4146
+ "name": "ContractDefinition",
4147
+ "src": "99:1632:23"
4148
+ }
4149
+ ],
4150
+ "id": 11141,
4151
+ "name": "SourceUnit",
4152
+ "src": "0:1732:23"
4153
+ },
4154
+ "compiler": {
4155
+ "name": "solc",
4156
+ "version": "0.5.16+commit.9c3226ce.Emscripten.clang"
4157
+ },
4158
+ "networks": {},
4159
+ "schemaVersion": "3.4.16",
4160
+ "updatedAt": "2024-12-03T18:32:31.010Z",
4161
+ "devdoc": {
4162
+ "methods": {}
4163
+ },
4164
+ "userdoc": {
4165
+ "methods": {}
4166
+ }
4167
+ }