@paraswap/dex-lib 4.0.20 → 4.0.21

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 (241) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  5. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  6. package/build/abi/{angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json → wombat/pool.json} +637 -594
  7. package/build/dex/aave-v1/aave-v1.js +1 -0
  8. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  9. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  10. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  11. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  12. package/build/dex/bProtocol.d.ts +18 -0
  13. package/build/dex/bProtocol.js +39 -0
  14. package/build/dex/bProtocol.js.map +1 -0
  15. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  16. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  17. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  18. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  19. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  20. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  21. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  22. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  23. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  24. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  25. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  26. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  27. package/build/dex/bancor.d.ts +26 -0
  28. package/build/dex/bancor.js +58 -0
  29. package/build/dex/bancor.js.map +1 -0
  30. package/build/dex/compound.d.ts +18 -0
  31. package/build/dex/compound.js +46 -0
  32. package/build/dex/compound.js.map +1 -0
  33. package/build/dex/curve-v2.d.ts +58 -0
  34. package/build/dex/curve-v2.js +180 -0
  35. package/build/dex/curve-v2.js.map +1 -0
  36. package/build/dex/dodo-v1.d.ts +33 -0
  37. package/build/dex/dodo-v1.js +63 -0
  38. package/build/dex/dodo-v1.js.map +1 -0
  39. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  40. package/build/dex/inception/inception-event-pool.js +7 -9
  41. package/build/dex/inception/inception-event-pool.js.map +1 -1
  42. package/build/dex/inception/inception.d.ts +6 -6
  43. package/build/dex/inception/inception.js +16 -40
  44. package/build/dex/inception/inception.js.map +1 -1
  45. package/build/dex/inception/utils.d.ts +1 -0
  46. package/build/dex/inception/utils.js +22 -1
  47. package/build/dex/inception/utils.js.map +1 -1
  48. package/build/dex/lido.d.ts +19 -0
  49. package/build/dex/lido.js +42 -0
  50. package/build/dex/lido.js.map +1 -0
  51. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  52. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  53. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  54. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  55. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  56. package/build/dex/onebit.d.ts +25 -0
  57. package/build/dex/onebit.js +42 -0
  58. package/build/dex/onebit.js.map +1 -0
  59. package/build/dex/platypus/platypus.js +17 -3
  60. package/build/dex/platypus/platypus.js.map +1 -1
  61. package/build/dex/smoothy.d.ts +26 -0
  62. package/build/dex/smoothy.js +48 -0
  63. package/build/dex/smoothy.js.map +1 -0
  64. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  65. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  66. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  67. package/build/dex/stable-pool.d.ts +28 -0
  68. package/build/dex/stable-pool.js +55 -0
  69. package/build/dex/stable-pool.js.map +1 -0
  70. package/build/dex/stkgho/stkgho.js +4 -2
  71. package/build/dex/stkgho/stkgho.js.map +1 -1
  72. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  73. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  74. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  75. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  76. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  77. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  78. package/build/dex/trader-joe-v2.1.js +79 -0
  79. package/build/dex/trader-joe-v2.1.js.map +1 -0
  80. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  81. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  82. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  83. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  84. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  85. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  86. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  87. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  88. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  89. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  90. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  91. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  92. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  93. package/build/dex/usual/usual-m-smart-m.js +50 -0
  94. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  95. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  96. package/build/dex/usual-m-smart-m/config.js +13 -0
  97. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  98. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  99. package/build/dex/usual-m-smart-m/types.js +3 -0
  100. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  101. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  102. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  103. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  104. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  105. package/build/dex/usual-m-usd0/config.js +14 -0
  106. package/build/dex/usual-m-usd0/config.js.map +1 -0
  107. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  108. package/build/dex/usual-m-usd0/types.js +3 -0
  109. package/build/dex/usual-m-usd0/types.js.map +1 -0
  110. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  111. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  112. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  113. package/package.json +1 -1
  114. package/src/dex/stkgho/stkgho.ts +4 -2
  115. package/build/abi/Aave_GSM.json +0 -751
  116. package/build/abi/Balancer.json +0 -257
  117. package/build/abi/BalancerV2.json +0 -1179
  118. package/build/abi/RamsesV2Pool.abi.json +0 -1554
  119. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  120. package/build/abi/USDM.json +0 -807
  121. package/build/abi/UniswapV2Router.json +0 -397
  122. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  123. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  124. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  125. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  126. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  127. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  128. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  129. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  130. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  131. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  132. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  133. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  134. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  135. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  136. package/build/abi/curve-v1/StableSwapUSDN.json +0 -1004
  137. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  138. package/build/abi/curve-v1/StableSwapY.json +0 -814
  139. package/build/abi/inception/inception-ineth.json +0 -609
  140. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  141. package/build/abi/kyberdmm.abi.json +0 -1148
  142. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  143. package/build/abi/nerve/nerve-metapool.json +0 -790
  144. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  145. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  146. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  147. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  148. package/build/dex/bebop/websocket-fetcher.js +0 -87
  149. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  150. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  151. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  152. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  153. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  154. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  155. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  156. package/build/dex/idle-dao/scripts.d.ts +0 -9
  157. package/build/dex/idle-dao/scripts.js +0 -552
  158. package/build/dex/idle-dao/scripts.js.map +0 -1
  159. package/build/dex/inception/inception-native.d.ts +0 -43
  160. package/build/dex/inception/inception-native.js +0 -131
  161. package/build/dex/inception/inception-native.js.map +0 -1
  162. package/build/dex/inception/inception-pool.d.ts +0 -18
  163. package/build/dex/inception/inception-pool.js +0 -32
  164. package/build/dex/inception/inception-pool.js.map +0 -1
  165. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  166. package/build/dex/inception/inception-price-feed.js +0 -51
  167. package/build/dex/inception/inception-price-feed.js.map +0 -1
  168. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  169. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  170. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  171. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  172. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  173. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  174. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  175. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  176. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  177. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  178. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  179. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  180. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  181. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  182. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  183. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  184. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  185. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  186. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  187. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  188. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  189. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  190. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  191. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  192. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  193. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  194. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  195. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  196. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  197. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  198. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  199. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  200. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  201. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  202. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  203. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  204. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  205. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  206. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  207. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  208. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  209. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  210. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  211. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  212. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  213. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  214. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  215. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  216. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  217. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  218. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  219. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  220. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  221. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  222. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  223. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  224. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  225. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  226. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  227. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  228. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  229. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  230. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  231. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  232. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  233. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  234. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  235. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  236. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  237. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  238. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  239. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  240. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  241. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
@@ -1,86 +1,40 @@
1
1
  [
2
2
  {
3
+ "anonymous": false,
3
4
  "inputs": [
4
5
  {
5
- "internalType": "uint32",
6
- "name": "_maximumGasPrice",
7
- "type": "uint32"
8
- },
9
- {
10
- "internalType": "uint32",
11
- "name": "_reasonableGasPrice",
12
- "type": "uint32"
13
- },
14
- {
15
- "internalType": "uint32",
16
- "name": "_microLinkPerEth",
17
- "type": "uint32"
18
- },
19
- {
20
- "internalType": "uint32",
21
- "name": "_linkGweiPerObservation",
22
- "type": "uint32"
23
- },
24
- {
25
- "internalType": "uint32",
26
- "name": "_linkGweiPerTransmission",
27
- "type": "uint32"
28
- },
29
- {
6
+ "indexed": true,
30
7
  "internalType": "address",
31
- "name": "_link",
8
+ "name": "token",
32
9
  "type": "address"
33
10
  },
34
11
  {
12
+ "indexed": true,
35
13
  "internalType": "address",
36
- "name": "_validator",
37
- "type": "address"
38
- },
39
- {
40
- "internalType": "int192",
41
- "name": "_minAnswer",
42
- "type": "int192"
43
- },
44
- {
45
- "internalType": "int192",
46
- "name": "_maxAnswer",
47
- "type": "int192"
48
- },
49
- {
50
- "internalType": "contract AccessControllerInterface",
51
- "name": "_billingAccessController",
14
+ "name": "asset",
52
15
  "type": "address"
53
- },
54
- {
55
- "internalType": "contract AccessControllerInterface",
56
- "name": "_requesterAccessController",
57
- "type": "address"
58
- },
59
- {
60
- "internalType": "uint8",
61
- "name": "_decimals",
62
- "type": "uint8"
63
- },
64
- {
65
- "internalType": "string",
66
- "name": "description",
67
- "type": "string"
68
16
  }
69
17
  ],
70
- "stateMutability": "nonpayable",
71
- "type": "constructor"
18
+ "name": "AssetAdded",
19
+ "type": "event"
72
20
  },
73
21
  {
74
22
  "anonymous": false,
75
23
  "inputs": [
76
24
  {
77
- "indexed": false,
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "token",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "indexed": true,
78
32
  "internalType": "address",
79
- "name": "user",
33
+ "name": "asset",
80
34
  "type": "address"
81
35
  }
82
36
  ],
83
- "name": "AddedAccess",
37
+ "name": "AssetRemoved",
84
38
  "type": "event"
85
39
  },
86
40
  {
@@ -88,24 +42,36 @@
88
42
  "inputs": [
89
43
  {
90
44
  "indexed": true,
91
- "internalType": "int256",
92
- "name": "current",
93
- "type": "int256"
45
+ "internalType": "address",
46
+ "name": "sender",
47
+ "type": "address"
94
48
  },
95
49
  {
96
- "indexed": true,
50
+ "indexed": false,
51
+ "internalType": "address",
52
+ "name": "token",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "indexed": false,
97
57
  "internalType": "uint256",
98
- "name": "roundId",
58
+ "name": "amount",
99
59
  "type": "uint256"
100
60
  },
101
61
  {
102
62
  "indexed": false,
103
63
  "internalType": "uint256",
104
- "name": "updatedAt",
64
+ "name": "liquidity",
105
65
  "type": "uint256"
66
+ },
67
+ {
68
+ "indexed": true,
69
+ "internalType": "address",
70
+ "name": "to",
71
+ "type": "address"
106
72
  }
107
73
  ],
108
- "name": "AnswerUpdated",
74
+ "name": "Deposit",
109
75
  "type": "event"
110
76
  },
111
77
  {
@@ -113,18 +79,18 @@
113
79
  "inputs": [
114
80
  {
115
81
  "indexed": false,
116
- "internalType": "contract AccessControllerInterface",
117
- "name": "old",
82
+ "internalType": "address",
83
+ "name": "token",
118
84
  "type": "address"
119
85
  },
120
86
  {
121
87
  "indexed": false,
122
- "internalType": "contract AccessControllerInterface",
123
- "name": "current",
124
- "type": "address"
88
+ "internalType": "uint256",
89
+ "name": "amount",
90
+ "type": "uint256"
125
91
  }
126
92
  ],
127
- "name": "BillingAccessControllerSet",
93
+ "name": "FillPool",
128
94
  "type": "event"
129
95
  },
130
96
  {
@@ -132,48 +98,44 @@
132
98
  "inputs": [
133
99
  {
134
100
  "indexed": false,
135
- "internalType": "uint32",
136
- "name": "maximumGasPrice",
137
- "type": "uint32"
138
- },
139
- {
140
- "indexed": false,
141
- "internalType": "uint32",
142
- "name": "reasonableGasPrice",
143
- "type": "uint32"
144
- },
145
- {
146
- "indexed": false,
147
- "internalType": "uint32",
148
- "name": "microLinkPerEth",
149
- "type": "uint32"
150
- },
151
- {
152
- "indexed": false,
153
- "internalType": "uint32",
154
- "name": "linkGweiPerObservation",
155
- "type": "uint32"
156
- },
157
- {
158
- "indexed": false,
159
- "internalType": "uint32",
160
- "name": "linkGweiPerTransmission",
161
- "type": "uint32"
101
+ "internalType": "uint8",
102
+ "name": "version",
103
+ "type": "uint8"
162
104
  }
163
105
  ],
164
- "name": "BillingSet",
106
+ "name": "Initialized",
165
107
  "type": "event"
166
108
  },
167
109
  {
168
110
  "anonymous": false,
169
- "inputs": [],
170
- "name": "CheckAccessDisabled",
111
+ "inputs": [
112
+ {
113
+ "indexed": true,
114
+ "internalType": "address",
115
+ "name": "previousOwner",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "newOwner",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "OwnershipTransferred",
171
126
  "type": "event"
172
127
  },
173
128
  {
174
129
  "anonymous": false,
175
- "inputs": [],
176
- "name": "CheckAccessEnabled",
130
+ "inputs": [
131
+ {
132
+ "indexed": false,
133
+ "internalType": "address",
134
+ "name": "account",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "Paused",
177
139
  "type": "event"
178
140
  },
179
141
  {
@@ -181,116 +143,63 @@
181
143
  "inputs": [
182
144
  {
183
145
  "indexed": false,
184
- "internalType": "uint32",
185
- "name": "previousConfigBlockNumber",
186
- "type": "uint32"
187
- },
188
- {
189
- "indexed": false,
190
- "internalType": "uint64",
191
- "name": "configCount",
192
- "type": "uint64"
193
- },
194
- {
195
- "indexed": false,
196
- "internalType": "address[]",
197
- "name": "signers",
198
- "type": "address[]"
199
- },
200
- {
201
- "indexed": false,
202
- "internalType": "address[]",
203
- "name": "transmitters",
204
- "type": "address[]"
205
- },
206
- {
207
- "indexed": false,
208
- "internalType": "uint8",
209
- "name": "threshold",
210
- "type": "uint8"
211
- },
212
- {
213
- "indexed": false,
214
- "internalType": "uint64",
215
- "name": "encodedConfigVersion",
216
- "type": "uint64"
146
+ "internalType": "address",
147
+ "name": "token",
148
+ "type": "address"
217
149
  },
218
150
  {
219
151
  "indexed": false,
220
- "internalType": "bytes",
221
- "name": "encoded",
222
- "type": "bytes"
152
+ "internalType": "address",
153
+ "name": "account",
154
+ "type": "address"
223
155
  }
224
156
  ],
225
- "name": "ConfigSet",
157
+ "name": "PausedAsset",
226
158
  "type": "event"
227
159
  },
228
160
  {
229
161
  "anonymous": false,
230
162
  "inputs": [
231
- {
232
- "indexed": true,
233
- "internalType": "uint256",
234
- "name": "roundId",
235
- "type": "uint256"
236
- },
237
- {
238
- "indexed": true,
239
- "internalType": "address",
240
- "name": "startedBy",
241
- "type": "address"
242
- },
243
163
  {
244
164
  "indexed": false,
245
165
  "internalType": "uint256",
246
- "name": "startedAt",
166
+ "name": "value",
247
167
  "type": "uint256"
248
168
  }
249
169
  ],
250
- "name": "NewRound",
170
+ "name": "SetAmpFactor",
251
171
  "type": "event"
252
172
  },
253
173
  {
254
174
  "anonymous": false,
255
175
  "inputs": [
256
- {
257
- "indexed": true,
258
- "internalType": "uint32",
259
- "name": "aggregatorRoundId",
260
- "type": "uint32"
261
- },
262
- {
263
- "indexed": false,
264
- "internalType": "int192",
265
- "name": "answer",
266
- "type": "int192"
267
- },
268
176
  {
269
177
  "indexed": false,
270
178
  "internalType": "address",
271
- "name": "transmitter",
179
+ "name": "addr",
272
180
  "type": "address"
273
- },
274
- {
275
- "indexed": false,
276
- "internalType": "int192[]",
277
- "name": "observations",
278
- "type": "int192[]"
279
- },
181
+ }
182
+ ],
183
+ "name": "SetDev",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
280
189
  {
281
190
  "indexed": false,
282
- "internalType": "bytes",
283
- "name": "observers",
284
- "type": "bytes"
191
+ "internalType": "uint256",
192
+ "name": "lpDividendRatio",
193
+ "type": "uint256"
285
194
  },
286
195
  {
287
196
  "indexed": false,
288
- "internalType": "bytes32",
289
- "name": "rawReportContext",
290
- "type": "bytes32"
197
+ "internalType": "uint256",
198
+ "name": "retentionRatio",
199
+ "type": "uint256"
291
200
  }
292
201
  ],
293
- "name": "NewTransmission",
202
+ "name": "SetFee",
294
203
  "type": "event"
295
204
  },
296
205
  {
@@ -299,61 +208,50 @@
299
208
  {
300
209
  "indexed": false,
301
210
  "internalType": "address",
302
- "name": "transmitter",
303
- "type": "address"
304
- },
305
- {
306
- "indexed": false,
307
- "internalType": "address",
308
- "name": "payee",
211
+ "name": "addr",
309
212
  "type": "address"
310
- },
213
+ }
214
+ ],
215
+ "name": "SetFeeTo",
216
+ "type": "event"
217
+ },
218
+ {
219
+ "anonymous": false,
220
+ "inputs": [
311
221
  {
312
222
  "indexed": false,
313
223
  "internalType": "uint256",
314
- "name": "amount",
224
+ "name": "value",
315
225
  "type": "uint256"
316
226
  }
317
227
  ],
318
- "name": "OraclePaid",
228
+ "name": "SetHaircutRate",
319
229
  "type": "event"
320
230
  },
321
231
  {
322
232
  "anonymous": false,
323
233
  "inputs": [
324
234
  {
325
- "indexed": true,
326
- "internalType": "address",
327
- "name": "from",
328
- "type": "address"
329
- },
330
- {
331
- "indexed": true,
235
+ "indexed": false,
332
236
  "internalType": "address",
333
- "name": "to",
237
+ "name": "addr",
334
238
  "type": "address"
335
239
  }
336
240
  ],
337
- "name": "OwnershipTransferRequested",
241
+ "name": "SetMasterWombat",
338
242
  "type": "event"
339
243
  },
340
244
  {
341
245
  "anonymous": false,
342
246
  "inputs": [
343
247
  {
344
- "indexed": true,
345
- "internalType": "address",
346
- "name": "from",
347
- "type": "address"
348
- },
349
- {
350
- "indexed": true,
351
- "internalType": "address",
352
- "name": "to",
353
- "type": "address"
248
+ "indexed": false,
249
+ "internalType": "uint256",
250
+ "name": "value",
251
+ "type": "uint256"
354
252
  }
355
253
  ],
356
- "name": "OwnershipTransferred",
254
+ "name": "SetMintFeeThreshold",
357
255
  "type": "event"
358
256
  },
359
257
  {
@@ -362,48 +260,66 @@
362
260
  {
363
261
  "indexed": true,
364
262
  "internalType": "address",
365
- "name": "transmitter",
263
+ "name": "sender",
366
264
  "type": "address"
367
265
  },
368
266
  {
369
- "indexed": true,
267
+ "indexed": false,
268
+ "internalType": "address",
269
+ "name": "fromToken",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "indexed": false,
370
274
  "internalType": "address",
371
- "name": "current",
275
+ "name": "toToken",
372
276
  "type": "address"
373
277
  },
278
+ {
279
+ "indexed": false,
280
+ "internalType": "uint256",
281
+ "name": "fromAmount",
282
+ "type": "uint256"
283
+ },
284
+ {
285
+ "indexed": false,
286
+ "internalType": "uint256",
287
+ "name": "toAmount",
288
+ "type": "uint256"
289
+ },
374
290
  {
375
291
  "indexed": true,
376
292
  "internalType": "address",
377
- "name": "proposed",
293
+ "name": "to",
378
294
  "type": "address"
379
295
  }
380
296
  ],
381
- "name": "PayeeshipTransferRequested",
297
+ "name": "Swap",
382
298
  "type": "event"
383
299
  },
384
300
  {
385
301
  "anonymous": false,
386
302
  "inputs": [
387
303
  {
388
- "indexed": true,
304
+ "indexed": false,
389
305
  "internalType": "address",
390
- "name": "transmitter",
306
+ "name": "token",
391
307
  "type": "address"
392
308
  },
393
309
  {
394
- "indexed": true,
395
- "internalType": "address",
396
- "name": "previous",
397
- "type": "address"
310
+ "indexed": false,
311
+ "internalType": "uint256",
312
+ "name": "amount",
313
+ "type": "uint256"
398
314
  },
399
315
  {
400
- "indexed": true,
316
+ "indexed": false,
401
317
  "internalType": "address",
402
- "name": "current",
318
+ "name": "to",
403
319
  "type": "address"
404
320
  }
405
321
  ],
406
- "name": "PayeeshipTransferred",
322
+ "name": "TransferTipBucket",
407
323
  "type": "event"
408
324
  },
409
325
  {
@@ -412,11 +328,11 @@
412
328
  {
413
329
  "indexed": false,
414
330
  "internalType": "address",
415
- "name": "user",
331
+ "name": "account",
416
332
  "type": "address"
417
333
  }
418
334
  ],
419
- "name": "RemovedAccess",
335
+ "name": "Unpaused",
420
336
  "type": "event"
421
337
  },
422
338
  {
@@ -424,18 +340,18 @@
424
340
  "inputs": [
425
341
  {
426
342
  "indexed": false,
427
- "internalType": "contract AccessControllerInterface",
428
- "name": "old",
343
+ "internalType": "address",
344
+ "name": "token",
429
345
  "type": "address"
430
346
  },
431
347
  {
432
348
  "indexed": false,
433
- "internalType": "contract AccessControllerInterface",
434
- "name": "current",
349
+ "internalType": "address",
350
+ "name": "account",
435
351
  "type": "address"
436
352
  }
437
353
  ],
438
- "name": "RequesterAccessControllerSet",
354
+ "name": "UnpausedAsset",
439
355
  "type": "event"
440
356
  },
441
357
  {
@@ -444,56 +360,67 @@
444
360
  {
445
361
  "indexed": true,
446
362
  "internalType": "address",
447
- "name": "requester",
363
+ "name": "sender",
448
364
  "type": "address"
449
365
  },
450
366
  {
451
367
  "indexed": false,
452
- "internalType": "bytes16",
453
- "name": "configDigest",
454
- "type": "bytes16"
368
+ "internalType": "address",
369
+ "name": "token",
370
+ "type": "address"
455
371
  },
456
372
  {
457
373
  "indexed": false,
458
- "internalType": "uint32",
459
- "name": "epoch",
460
- "type": "uint32"
374
+ "internalType": "uint256",
375
+ "name": "amount",
376
+ "type": "uint256"
461
377
  },
462
378
  {
463
379
  "indexed": false,
464
- "internalType": "uint8",
465
- "name": "round",
466
- "type": "uint8"
380
+ "internalType": "uint256",
381
+ "name": "liquidity",
382
+ "type": "uint256"
383
+ },
384
+ {
385
+ "indexed": true,
386
+ "internalType": "address",
387
+ "name": "to",
388
+ "type": "address"
467
389
  }
468
390
  ],
469
- "name": "RoundRequested",
391
+ "name": "Withdraw",
470
392
  "type": "event"
471
393
  },
472
394
  {
473
- "anonymous": false,
474
395
  "inputs": [
475
396
  {
476
- "indexed": true,
477
397
  "internalType": "address",
478
- "name": "previous",
398
+ "name": "token",
479
399
  "type": "address"
480
400
  },
481
401
  {
482
- "indexed": true,
483
402
  "internalType": "address",
484
- "name": "current",
403
+ "name": "asset",
485
404
  "type": "address"
486
405
  }
487
406
  ],
488
- "name": "ValidatorUpdated",
489
- "type": "event"
407
+ "name": "addAsset",
408
+ "outputs": [],
409
+ "stateMutability": "nonpayable",
410
+ "type": "function"
490
411
  },
491
412
  {
492
- "inputs": [],
493
- "name": "LINK",
413
+ "inputs": [
414
+ {
415
+ "internalType": "address",
416
+ "name": "token",
417
+ "type": "address"
418
+ }
419
+ ],
420
+ "name": "addressOfAsset",
494
421
  "outputs": [
495
422
  {
496
- "internalType": "contract LinkTokenInterface",
423
+ "internalType": "address",
497
424
  "name": "",
498
425
  "type": "address"
499
426
  }
@@ -503,43 +430,67 @@
503
430
  },
504
431
  {
505
432
  "inputs": [],
506
- "name": "acceptOwnership",
507
- "outputs": [],
508
- "stateMutability": "nonpayable",
509
- "type": "function"
510
- },
511
- {
512
- "inputs": [
433
+ "name": "ampFactor",
434
+ "outputs": [
513
435
  {
514
- "internalType": "address",
515
- "name": "_transmitter",
516
- "type": "address"
436
+ "internalType": "uint256",
437
+ "name": "",
438
+ "type": "uint256"
517
439
  }
518
440
  ],
519
- "name": "acceptPayeeship",
520
- "outputs": [],
521
- "stateMutability": "nonpayable",
441
+ "stateMutability": "view",
522
442
  "type": "function"
523
443
  },
524
444
  {
525
445
  "inputs": [
526
446
  {
527
447
  "internalType": "address",
528
- "name": "_user",
448
+ "name": "token",
529
449
  "type": "address"
450
+ },
451
+ {
452
+ "internalType": "uint256",
453
+ "name": "amount",
454
+ "type": "uint256"
455
+ },
456
+ {
457
+ "internalType": "uint256",
458
+ "name": "minimumLiquidity",
459
+ "type": "uint256"
460
+ },
461
+ {
462
+ "internalType": "address",
463
+ "name": "to",
464
+ "type": "address"
465
+ },
466
+ {
467
+ "internalType": "uint256",
468
+ "name": "deadline",
469
+ "type": "uint256"
470
+ },
471
+ {
472
+ "internalType": "bool",
473
+ "name": "shouldStake",
474
+ "type": "bool"
475
+ }
476
+ ],
477
+ "name": "deposit",
478
+ "outputs": [
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "liquidity",
482
+ "type": "uint256"
530
483
  }
531
484
  ],
532
- "name": "addAccess",
533
- "outputs": [],
534
485
  "stateMutability": "nonpayable",
535
486
  "type": "function"
536
487
  },
537
488
  {
538
489
  "inputs": [],
539
- "name": "billingAccessController",
490
+ "name": "dev",
540
491
  "outputs": [
541
492
  {
542
- "internalType": "contract AccessControllerInterface",
493
+ "internalType": "address",
543
494
  "name": "",
544
495
  "type": "address"
545
496
  }
@@ -549,25 +500,31 @@
549
500
  },
550
501
  {
551
502
  "inputs": [],
552
- "name": "checkEnabled",
503
+ "name": "endCovRatio",
553
504
  "outputs": [
554
505
  {
555
- "internalType": "bool",
506
+ "internalType": "uint128",
556
507
  "name": "",
557
- "type": "bool"
508
+ "type": "uint128"
558
509
  }
559
510
  ],
560
511
  "stateMutability": "view",
561
512
  "type": "function"
562
513
  },
563
514
  {
564
- "inputs": [],
565
- "name": "decimals",
515
+ "inputs": [
516
+ {
517
+ "internalType": "address",
518
+ "name": "token",
519
+ "type": "address"
520
+ }
521
+ ],
522
+ "name": "exchangeRate",
566
523
  "outputs": [
567
524
  {
568
- "internalType": "uint8",
569
- "name": "",
570
- "type": "uint8"
525
+ "internalType": "uint256",
526
+ "name": "xr",
527
+ "type": "uint256"
571
528
  }
572
529
  ],
573
530
  "stateMutability": "view",
@@ -575,45 +532,43 @@
575
532
  },
576
533
  {
577
534
  "inputs": [],
578
- "name": "description",
535
+ "name": "feeTo",
579
536
  "outputs": [
580
537
  {
581
- "internalType": "string",
538
+ "internalType": "address",
582
539
  "name": "",
583
- "type": "string"
540
+ "type": "address"
584
541
  }
585
542
  ],
586
543
  "stateMutability": "view",
587
544
  "type": "function"
588
545
  },
589
- {
590
- "inputs": [],
591
- "name": "disableAccessCheck",
592
- "outputs": [],
593
- "stateMutability": "nonpayable",
594
- "type": "function"
595
- },
596
- {
597
- "inputs": [],
598
- "name": "enableAccessCheck",
599
- "outputs": [],
600
- "stateMutability": "nonpayable",
601
- "type": "function"
602
- },
603
546
  {
604
547
  "inputs": [
548
+ {
549
+ "internalType": "address",
550
+ "name": "token",
551
+ "type": "address"
552
+ },
605
553
  {
606
554
  "internalType": "uint256",
607
- "name": "_roundId",
555
+ "name": "amount",
608
556
  "type": "uint256"
609
557
  }
610
558
  ],
611
- "name": "getAnswer",
559
+ "name": "fillPool",
560
+ "outputs": [],
561
+ "stateMutability": "nonpayable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [],
566
+ "name": "getTokens",
612
567
  "outputs": [
613
568
  {
614
- "internalType": "int256",
569
+ "internalType": "address[]",
615
570
  "name": "",
616
- "type": "int256"
571
+ "type": "address[]"
617
572
  }
618
573
  ],
619
574
  "stateMutability": "view",
@@ -621,71 +576,30 @@
621
576
  },
622
577
  {
623
578
  "inputs": [],
624
- "name": "getBilling",
579
+ "name": "globalEquilCovRatio",
625
580
  "outputs": [
626
581
  {
627
- "internalType": "uint32",
628
- "name": "maximumGasPrice",
629
- "type": "uint32"
630
- },
631
- {
632
- "internalType": "uint32",
633
- "name": "reasonableGasPrice",
634
- "type": "uint32"
635
- },
636
- {
637
- "internalType": "uint32",
638
- "name": "microLinkPerEth",
639
- "type": "uint32"
640
- },
641
- {
642
- "internalType": "uint32",
643
- "name": "linkGweiPerObservation",
644
- "type": "uint32"
582
+ "internalType": "uint256",
583
+ "name": "equilCovRatio",
584
+ "type": "uint256"
645
585
  },
646
586
  {
647
- "internalType": "uint32",
648
- "name": "linkGweiPerTransmission",
649
- "type": "uint32"
587
+ "internalType": "uint256",
588
+ "name": "invariantInUint",
589
+ "type": "uint256"
650
590
  }
651
591
  ],
652
592
  "stateMutability": "view",
653
593
  "type": "function"
654
594
  },
655
595
  {
656
- "inputs": [
657
- {
658
- "internalType": "uint80",
659
- "name": "_roundId",
660
- "type": "uint80"
661
- }
662
- ],
663
- "name": "getRoundData",
596
+ "inputs": [],
597
+ "name": "haircutRate",
664
598
  "outputs": [
665
- {
666
- "internalType": "uint80",
667
- "name": "roundId",
668
- "type": "uint80"
669
- },
670
- {
671
- "internalType": "int256",
672
- "name": "answer",
673
- "type": "int256"
674
- },
675
- {
676
- "internalType": "uint256",
677
- "name": "startedAt",
678
- "type": "uint256"
679
- },
680
599
  {
681
600
  "internalType": "uint256",
682
- "name": "updatedAt",
601
+ "name": "",
683
602
  "type": "uint256"
684
- },
685
- {
686
- "internalType": "uint80",
687
- "name": "answeredInRound",
688
- "type": "uint80"
689
603
  }
690
604
  ],
691
605
  "stateMutability": "view",
@@ -695,35 +609,29 @@
695
609
  "inputs": [
696
610
  {
697
611
  "internalType": "uint256",
698
- "name": "_roundId",
612
+ "name": "ampFactor_",
699
613
  "type": "uint256"
700
- }
701
- ],
702
- "name": "getTimestamp",
703
- "outputs": [
614
+ },
704
615
  {
705
616
  "internalType": "uint256",
706
- "name": "",
617
+ "name": "haircutRate_",
707
618
  "type": "uint256"
708
619
  }
709
620
  ],
710
- "stateMutability": "view",
621
+ "name": "initialize",
622
+ "outputs": [],
623
+ "stateMutability": "nonpayable",
711
624
  "type": "function"
712
625
  },
713
626
  {
714
627
  "inputs": [
715
628
  {
716
629
  "internalType": "address",
717
- "name": "_user",
630
+ "name": "token",
718
631
  "type": "address"
719
- },
720
- {
721
- "internalType": "bytes",
722
- "name": "_calldata",
723
- "type": "bytes"
724
632
  }
725
633
  ],
726
- "name": "hasAccess",
634
+ "name": "isPaused",
727
635
  "outputs": [
728
636
  {
729
637
  "internalType": "bool",
@@ -736,12 +644,12 @@
736
644
  },
737
645
  {
738
646
  "inputs": [],
739
- "name": "latestAnswer",
647
+ "name": "lpDividendRatio",
740
648
  "outputs": [
741
649
  {
742
- "internalType": "int256",
650
+ "internalType": "uint256",
743
651
  "name": "",
744
- "type": "int256"
652
+ "type": "uint256"
745
653
  }
746
654
  ],
747
655
  "stateMutability": "view",
@@ -749,68 +657,44 @@
749
657
  },
750
658
  {
751
659
  "inputs": [],
752
- "name": "latestConfigDetails",
660
+ "name": "masterWombat",
753
661
  "outputs": [
754
662
  {
755
- "internalType": "uint32",
756
- "name": "configCount",
757
- "type": "uint32"
758
- },
759
- {
760
- "internalType": "uint32",
761
- "name": "blockNumber",
762
- "type": "uint32"
763
- },
764
- {
765
- "internalType": "bytes16",
766
- "name": "configDigest",
767
- "type": "bytes16"
663
+ "internalType": "address",
664
+ "name": "",
665
+ "type": "address"
768
666
  }
769
667
  ],
770
668
  "stateMutability": "view",
771
669
  "type": "function"
772
670
  },
773
671
  {
774
- "inputs": [],
775
- "name": "latestRound",
672
+ "inputs": [
673
+ {
674
+ "internalType": "address",
675
+ "name": "token",
676
+ "type": "address"
677
+ }
678
+ ],
679
+ "name": "mintFee",
776
680
  "outputs": [
777
681
  {
778
682
  "internalType": "uint256",
779
- "name": "",
683
+ "name": "feeCollected",
780
684
  "type": "uint256"
781
685
  }
782
686
  ],
783
- "stateMutability": "view",
687
+ "stateMutability": "nonpayable",
784
688
  "type": "function"
785
689
  },
786
690
  {
787
691
  "inputs": [],
788
- "name": "latestRoundData",
692
+ "name": "mintFeeThreshold",
789
693
  "outputs": [
790
- {
791
- "internalType": "uint80",
792
- "name": "roundId",
793
- "type": "uint80"
794
- },
795
- {
796
- "internalType": "int256",
797
- "name": "answer",
798
- "type": "int256"
799
- },
800
694
  {
801
695
  "internalType": "uint256",
802
- "name": "startedAt",
803
- "type": "uint256"
804
- },
805
- {
806
- "internalType": "uint256",
807
- "name": "updatedAt",
696
+ "name": "",
808
697
  "type": "uint256"
809
- },
810
- {
811
- "internalType": "uint80",
812
- "name": "answeredInRound",
813
- "type": "uint80"
814
698
  }
815
699
  ],
816
700
  "stateMutability": "view",
@@ -818,12 +702,12 @@
818
702
  },
819
703
  {
820
704
  "inputs": [],
821
- "name": "latestTimestamp",
705
+ "name": "owner",
822
706
  "outputs": [
823
707
  {
824
- "internalType": "uint256",
708
+ "internalType": "address",
825
709
  "name": "",
826
- "type": "uint256"
710
+ "type": "address"
827
711
  }
828
712
  ],
829
713
  "stateMutability": "view",
@@ -831,71 +715,95 @@
831
715
  },
832
716
  {
833
717
  "inputs": [],
834
- "name": "latestTransmissionDetails",
835
- "outputs": [
836
- {
837
- "internalType": "bytes16",
838
- "name": "configDigest",
839
- "type": "bytes16"
840
- },
841
- {
842
- "internalType": "uint32",
843
- "name": "epoch",
844
- "type": "uint32"
845
- },
846
- {
847
- "internalType": "uint8",
848
- "name": "round",
849
- "type": "uint8"
850
- },
851
- {
852
- "internalType": "int192",
853
- "name": "latestAnswer",
854
- "type": "int192"
855
- },
718
+ "name": "pause",
719
+ "outputs": [],
720
+ "stateMutability": "nonpayable",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "inputs": [
856
725
  {
857
- "internalType": "uint64",
858
- "name": "latestTimestamp",
859
- "type": "uint64"
726
+ "internalType": "address",
727
+ "name": "token",
728
+ "type": "address"
860
729
  }
861
730
  ],
862
- "stateMutability": "view",
731
+ "name": "pauseAsset",
732
+ "outputs": [],
733
+ "stateMutability": "nonpayable",
863
734
  "type": "function"
864
735
  },
865
736
  {
866
737
  "inputs": [],
867
- "name": "linkAvailableForPayment",
738
+ "name": "paused",
868
739
  "outputs": [
869
740
  {
870
- "internalType": "int256",
871
- "name": "availableBalance",
872
- "type": "int256"
741
+ "internalType": "bool",
742
+ "name": "",
743
+ "type": "bool"
873
744
  }
874
745
  ],
875
746
  "stateMutability": "view",
876
747
  "type": "function"
877
748
  },
878
749
  {
879
- "inputs": [],
880
- "name": "maxAnswer",
750
+ "inputs": [
751
+ {
752
+ "internalType": "address",
753
+ "name": "fromToken",
754
+ "type": "address"
755
+ },
756
+ {
757
+ "internalType": "address",
758
+ "name": "toToken",
759
+ "type": "address"
760
+ },
761
+ {
762
+ "internalType": "int256",
763
+ "name": "toAmount",
764
+ "type": "int256"
765
+ }
766
+ ],
767
+ "name": "quoteAmountIn",
881
768
  "outputs": [
882
769
  {
883
- "internalType": "int192",
884
- "name": "",
885
- "type": "int192"
770
+ "internalType": "uint256",
771
+ "name": "amountIn",
772
+ "type": "uint256"
773
+ },
774
+ {
775
+ "internalType": "uint256",
776
+ "name": "haircut",
777
+ "type": "uint256"
886
778
  }
887
779
  ],
888
780
  "stateMutability": "view",
889
781
  "type": "function"
890
782
  },
891
783
  {
892
- "inputs": [],
893
- "name": "minAnswer",
784
+ "inputs": [
785
+ {
786
+ "internalType": "address",
787
+ "name": "token",
788
+ "type": "address"
789
+ },
790
+ {
791
+ "internalType": "uint256",
792
+ "name": "amount",
793
+ "type": "uint256"
794
+ }
795
+ ],
796
+ "name": "quotePotentialDeposit",
894
797
  "outputs": [
895
798
  {
896
- "internalType": "int192",
897
- "name": "",
898
- "type": "int192"
799
+ "internalType": "uint256",
800
+ "name": "liquidity",
801
+ "type": "uint256"
802
+ },
803
+ {
804
+ "internalType": "uint256",
805
+ "name": "reward",
806
+ "type": "uint256"
899
807
  }
900
808
  ],
901
809
  "stateMutability": "view",
@@ -905,16 +813,31 @@
905
813
  "inputs": [
906
814
  {
907
815
  "internalType": "address",
908
- "name": "_signerOrTransmitter",
816
+ "name": "fromToken",
817
+ "type": "address"
818
+ },
819
+ {
820
+ "internalType": "address",
821
+ "name": "toToken",
909
822
  "type": "address"
823
+ },
824
+ {
825
+ "internalType": "int256",
826
+ "name": "fromAmount",
827
+ "type": "int256"
910
828
  }
911
829
  ],
912
- "name": "oracleObservationCount",
830
+ "name": "quotePotentialSwap",
913
831
  "outputs": [
914
832
  {
915
- "internalType": "uint16",
916
- "name": "",
917
- "type": "uint16"
833
+ "internalType": "uint256",
834
+ "name": "potentialOutcome",
835
+ "type": "uint256"
836
+ },
837
+ {
838
+ "internalType": "uint256",
839
+ "name": "haircut",
840
+ "type": "uint256"
918
841
  }
919
842
  ],
920
843
  "stateMutability": "view",
@@ -924,15 +847,25 @@
924
847
  "inputs": [
925
848
  {
926
849
  "internalType": "address",
927
- "name": "_transmitter",
850
+ "name": "token",
928
851
  "type": "address"
852
+ },
853
+ {
854
+ "internalType": "uint256",
855
+ "name": "liquidity",
856
+ "type": "uint256"
929
857
  }
930
858
  ],
931
- "name": "owedPayment",
859
+ "name": "quotePotentialWithdraw",
932
860
  "outputs": [
933
861
  {
934
862
  "internalType": "uint256",
935
- "name": "",
863
+ "name": "amount",
864
+ "type": "uint256"
865
+ },
866
+ {
867
+ "internalType": "uint256",
868
+ "name": "fee",
936
869
  "type": "uint256"
937
870
  }
938
871
  ],
@@ -940,13 +873,34 @@
940
873
  "type": "function"
941
874
  },
942
875
  {
943
- "inputs": [],
944
- "name": "owner",
945
- "outputs": [
876
+ "inputs": [
946
877
  {
947
- "internalType": "address payable",
948
- "name": "",
878
+ "internalType": "address",
879
+ "name": "fromToken",
949
880
  "type": "address"
881
+ },
882
+ {
883
+ "internalType": "address",
884
+ "name": "toToken",
885
+ "type": "address"
886
+ },
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "liquidity",
890
+ "type": "uint256"
891
+ }
892
+ ],
893
+ "name": "quotePotentialWithdrawFromOtherAsset",
894
+ "outputs": [
895
+ {
896
+ "internalType": "uint256",
897
+ "name": "amount",
898
+ "type": "uint256"
899
+ },
900
+ {
901
+ "internalType": "uint256",
902
+ "name": "withdrewAmount",
903
+ "type": "uint256"
950
904
  }
951
905
  ],
952
906
  "stateMutability": "view",
@@ -956,36 +910,30 @@
956
910
  "inputs": [
957
911
  {
958
912
  "internalType": "address",
959
- "name": "_user",
913
+ "name": "token",
960
914
  "type": "address"
961
915
  }
962
916
  ],
963
- "name": "removeAccess",
917
+ "name": "removeAsset",
964
918
  "outputs": [],
965
919
  "stateMutability": "nonpayable",
966
920
  "type": "function"
967
921
  },
968
922
  {
969
923
  "inputs": [],
970
- "name": "requestNewRound",
971
- "outputs": [
972
- {
973
- "internalType": "uint80",
974
- "name": "",
975
- "type": "uint80"
976
- }
977
- ],
924
+ "name": "renounceOwnership",
925
+ "outputs": [],
978
926
  "stateMutability": "nonpayable",
979
927
  "type": "function"
980
928
  },
981
929
  {
982
930
  "inputs": [],
983
- "name": "requesterAccessController",
931
+ "name": "retentionRatio",
984
932
  "outputs": [
985
933
  {
986
- "internalType": "contract AccessControllerInterface",
934
+ "internalType": "uint256",
987
935
  "name": "",
988
- "type": "address"
936
+ "type": "uint256"
989
937
  }
990
938
  ],
991
939
  "stateMutability": "view",
@@ -994,32 +942,30 @@
994
942
  {
995
943
  "inputs": [
996
944
  {
997
- "internalType": "uint32",
998
- "name": "_maximumGasPrice",
999
- "type": "uint32"
1000
- },
1001
- {
1002
- "internalType": "uint32",
1003
- "name": "_reasonableGasPrice",
1004
- "type": "uint32"
1005
- },
1006
- {
1007
- "internalType": "uint32",
1008
- "name": "_microLinkPerEth",
1009
- "type": "uint32"
1010
- },
945
+ "internalType": "uint256",
946
+ "name": "ampFactor_",
947
+ "type": "uint256"
948
+ }
949
+ ],
950
+ "name": "setAmpFactor",
951
+ "outputs": [],
952
+ "stateMutability": "nonpayable",
953
+ "type": "function"
954
+ },
955
+ {
956
+ "inputs": [
1011
957
  {
1012
- "internalType": "uint32",
1013
- "name": "_linkGweiPerObservation",
1014
- "type": "uint32"
958
+ "internalType": "uint128",
959
+ "name": "startCovRatio_",
960
+ "type": "uint128"
1015
961
  },
1016
962
  {
1017
- "internalType": "uint32",
1018
- "name": "_linkGweiPerTransmission",
1019
- "type": "uint32"
963
+ "internalType": "uint128",
964
+ "name": "endCovRatio_",
965
+ "type": "uint128"
1020
966
  }
1021
967
  ],
1022
- "name": "setBilling",
968
+ "name": "setCovRatioFeeParam",
1023
969
  "outputs": [],
1024
970
  "stateMutability": "nonpayable",
1025
971
  "type": "function"
@@ -1027,12 +973,12 @@
1027
973
  {
1028
974
  "inputs": [
1029
975
  {
1030
- "internalType": "contract AccessControllerInterface",
1031
- "name": "_billingAccessController",
976
+ "internalType": "address",
977
+ "name": "dev_",
1032
978
  "type": "address"
1033
979
  }
1034
980
  ],
1035
- "name": "setBillingAccessController",
981
+ "name": "setDev",
1036
982
  "outputs": [],
1037
983
  "stateMutability": "nonpayable",
1038
984
  "type": "function"
@@ -1040,32 +986,17 @@
1040
986
  {
1041
987
  "inputs": [
1042
988
  {
1043
- "internalType": "address[]",
1044
- "name": "_signers",
1045
- "type": "address[]"
1046
- },
1047
- {
1048
- "internalType": "address[]",
1049
- "name": "_transmitters",
1050
- "type": "address[]"
1051
- },
1052
- {
1053
- "internalType": "uint8",
1054
- "name": "_threshold",
1055
- "type": "uint8"
1056
- },
1057
- {
1058
- "internalType": "uint64",
1059
- "name": "_encodedConfigVersion",
1060
- "type": "uint64"
989
+ "internalType": "uint256",
990
+ "name": "lpDividendRatio_",
991
+ "type": "uint256"
1061
992
  },
1062
993
  {
1063
- "internalType": "bytes",
1064
- "name": "_encoded",
1065
- "type": "bytes"
994
+ "internalType": "uint256",
995
+ "name": "retentionRatio_",
996
+ "type": "uint256"
1066
997
  }
1067
998
  ],
1068
- "name": "setConfig",
999
+ "name": "setFee",
1069
1000
  "outputs": [],
1070
1001
  "stateMutability": "nonpayable",
1071
1002
  "type": "function"
@@ -1073,17 +1004,12 @@
1073
1004
  {
1074
1005
  "inputs": [
1075
1006
  {
1076
- "internalType": "address[]",
1077
- "name": "_transmitters",
1078
- "type": "address[]"
1079
- },
1080
- {
1081
- "internalType": "address[]",
1082
- "name": "_payees",
1083
- "type": "address[]"
1007
+ "internalType": "address",
1008
+ "name": "feeTo_",
1009
+ "type": "address"
1084
1010
  }
1085
1011
  ],
1086
- "name": "setPayees",
1012
+ "name": "setFeeTo",
1087
1013
  "outputs": [],
1088
1014
  "stateMutability": "nonpayable",
1089
1015
  "type": "function"
@@ -1091,12 +1017,12 @@
1091
1017
  {
1092
1018
  "inputs": [
1093
1019
  {
1094
- "internalType": "contract AccessControllerInterface",
1095
- "name": "_requesterAccessController",
1096
- "type": "address"
1020
+ "internalType": "uint256",
1021
+ "name": "haircutRate_",
1022
+ "type": "uint256"
1097
1023
  }
1098
1024
  ],
1099
- "name": "setRequesterAccessController",
1025
+ "name": "setHaircutRate",
1100
1026
  "outputs": [],
1101
1027
  "stateMutability": "nonpayable",
1102
1028
  "type": "function"
@@ -1105,11 +1031,11 @@
1105
1031
  "inputs": [
1106
1032
  {
1107
1033
  "internalType": "address",
1108
- "name": "_newValidator",
1034
+ "name": "masterWombat_",
1109
1035
  "type": "address"
1110
1036
  }
1111
1037
  ],
1112
- "name": "setValidator",
1038
+ "name": "setMasterWombat",
1113
1039
  "outputs": [],
1114
1040
  "stateMutability": "nonpayable",
1115
1041
  "type": "function"
@@ -1117,116 +1043,189 @@
1117
1043
  {
1118
1044
  "inputs": [
1119
1045
  {
1120
- "internalType": "address",
1121
- "name": "_to",
1122
- "type": "address"
1046
+ "internalType": "uint256",
1047
+ "name": "mintFeeThreshold_",
1048
+ "type": "uint256"
1123
1049
  }
1124
1050
  ],
1125
- "name": "transferOwnership",
1051
+ "name": "setMintFeeThreshold",
1126
1052
  "outputs": [],
1127
1053
  "stateMutability": "nonpayable",
1128
1054
  "type": "function"
1129
1055
  },
1056
+ {
1057
+ "inputs": [],
1058
+ "name": "startCovRatio",
1059
+ "outputs": [
1060
+ {
1061
+ "internalType": "uint128",
1062
+ "name": "",
1063
+ "type": "uint128"
1064
+ }
1065
+ ],
1066
+ "stateMutability": "view",
1067
+ "type": "function"
1068
+ },
1130
1069
  {
1131
1070
  "inputs": [
1132
1071
  {
1133
1072
  "internalType": "address",
1134
- "name": "_transmitter",
1073
+ "name": "fromToken",
1135
1074
  "type": "address"
1136
1075
  },
1137
1076
  {
1138
1077
  "internalType": "address",
1139
- "name": "_proposed",
1078
+ "name": "toToken",
1140
1079
  "type": "address"
1141
- }
1142
- ],
1143
- "name": "transferPayeeship",
1144
- "outputs": [],
1145
- "stateMutability": "nonpayable",
1146
- "type": "function"
1147
- },
1148
- {
1149
- "inputs": [
1080
+ },
1150
1081
  {
1151
- "internalType": "bytes",
1152
- "name": "_report",
1153
- "type": "bytes"
1082
+ "internalType": "uint256",
1083
+ "name": "fromAmount",
1084
+ "type": "uint256"
1154
1085
  },
1155
1086
  {
1156
- "internalType": "bytes32[]",
1157
- "name": "_rs",
1158
- "type": "bytes32[]"
1087
+ "internalType": "uint256",
1088
+ "name": "minimumToAmount",
1089
+ "type": "uint256"
1159
1090
  },
1160
1091
  {
1161
- "internalType": "bytes32[]",
1162
- "name": "_ss",
1163
- "type": "bytes32[]"
1092
+ "internalType": "address",
1093
+ "name": "to",
1094
+ "type": "address"
1164
1095
  },
1165
1096
  {
1166
- "internalType": "bytes32",
1167
- "name": "_rawVs",
1168
- "type": "bytes32"
1097
+ "internalType": "uint256",
1098
+ "name": "deadline",
1099
+ "type": "uint256"
1100
+ }
1101
+ ],
1102
+ "name": "swap",
1103
+ "outputs": [
1104
+ {
1105
+ "internalType": "uint256",
1106
+ "name": "actualToAmount",
1107
+ "type": "uint256"
1108
+ },
1109
+ {
1110
+ "internalType": "uint256",
1111
+ "name": "haircut",
1112
+ "type": "uint256"
1169
1113
  }
1170
1114
  ],
1171
- "name": "transmit",
1172
- "outputs": [],
1173
1115
  "stateMutability": "nonpayable",
1174
1116
  "type": "function"
1175
1117
  },
1176
1118
  {
1177
- "inputs": [],
1178
- "name": "transmitters",
1119
+ "inputs": [
1120
+ {
1121
+ "internalType": "address",
1122
+ "name": "token",
1123
+ "type": "address"
1124
+ }
1125
+ ],
1126
+ "name": "tipBucketBalance",
1179
1127
  "outputs": [
1180
1128
  {
1181
- "internalType": "address[]",
1182
- "name": "",
1183
- "type": "address[]"
1129
+ "internalType": "uint256",
1130
+ "name": "balance",
1131
+ "type": "uint256"
1184
1132
  }
1185
1133
  ],
1186
1134
  "stateMutability": "view",
1187
1135
  "type": "function"
1188
1136
  },
1189
1137
  {
1190
- "inputs": [],
1191
- "name": "validator",
1192
- "outputs": [
1138
+ "inputs": [
1193
1139
  {
1194
- "internalType": "contract AggregatorValidatorInterface",
1195
- "name": "",
1140
+ "internalType": "address",
1141
+ "name": "newOwner",
1196
1142
  "type": "address"
1197
1143
  }
1198
1144
  ],
1199
- "stateMutability": "view",
1145
+ "name": "transferOwnership",
1146
+ "outputs": [],
1147
+ "stateMutability": "nonpayable",
1200
1148
  "type": "function"
1201
1149
  },
1202
1150
  {
1203
- "inputs": [],
1204
- "name": "version",
1205
- "outputs": [
1151
+ "inputs": [
1152
+ {
1153
+ "internalType": "address",
1154
+ "name": "token",
1155
+ "type": "address"
1156
+ },
1206
1157
  {
1207
1158
  "internalType": "uint256",
1208
- "name": "",
1159
+ "name": "amount",
1209
1160
  "type": "uint256"
1161
+ },
1162
+ {
1163
+ "internalType": "address",
1164
+ "name": "to",
1165
+ "type": "address"
1210
1166
  }
1211
1167
  ],
1212
- "stateMutability": "view",
1168
+ "name": "transferTipBucket",
1169
+ "outputs": [],
1170
+ "stateMutability": "nonpayable",
1171
+ "type": "function"
1172
+ },
1173
+ {
1174
+ "inputs": [],
1175
+ "name": "unpause",
1176
+ "outputs": [],
1177
+ "stateMutability": "nonpayable",
1213
1178
  "type": "function"
1214
1179
  },
1215
1180
  {
1216
1181
  "inputs": [
1217
1182
  {
1218
1183
  "internalType": "address",
1219
- "name": "_recipient",
1184
+ "name": "token",
1220
1185
  "type": "address"
1186
+ }
1187
+ ],
1188
+ "name": "unpauseAsset",
1189
+ "outputs": [],
1190
+ "stateMutability": "nonpayable",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [
1195
+ {
1196
+ "internalType": "address",
1197
+ "name": "token",
1198
+ "type": "address"
1199
+ },
1200
+ {
1201
+ "internalType": "uint256",
1202
+ "name": "liquidity",
1203
+ "type": "uint256"
1221
1204
  },
1222
1205
  {
1223
1206
  "internalType": "uint256",
1224
- "name": "_amount",
1207
+ "name": "minimumAmount",
1208
+ "type": "uint256"
1209
+ },
1210
+ {
1211
+ "internalType": "address",
1212
+ "name": "to",
1213
+ "type": "address"
1214
+ },
1215
+ {
1216
+ "internalType": "uint256",
1217
+ "name": "deadline",
1218
+ "type": "uint256"
1219
+ }
1220
+ ],
1221
+ "name": "withdraw",
1222
+ "outputs": [
1223
+ {
1224
+ "internalType": "uint256",
1225
+ "name": "amount",
1225
1226
  "type": "uint256"
1226
1227
  }
1227
1228
  ],
1228
- "name": "withdrawFunds",
1229
- "outputs": [],
1230
1229
  "stateMutability": "nonpayable",
1231
1230
  "type": "function"
1232
1231
  },
@@ -1234,13 +1233,57 @@
1234
1233
  "inputs": [
1235
1234
  {
1236
1235
  "internalType": "address",
1237
- "name": "_transmitter",
1236
+ "name": "fromToken",
1237
+ "type": "address"
1238
+ },
1239
+ {
1240
+ "internalType": "address",
1241
+ "name": "toToken",
1242
+ "type": "address"
1243
+ },
1244
+ {
1245
+ "internalType": "uint256",
1246
+ "name": "liquidity",
1247
+ "type": "uint256"
1248
+ },
1249
+ {
1250
+ "internalType": "uint256",
1251
+ "name": "minimumAmount",
1252
+ "type": "uint256"
1253
+ },
1254
+ {
1255
+ "internalType": "address",
1256
+ "name": "to",
1238
1257
  "type": "address"
1258
+ },
1259
+ {
1260
+ "internalType": "uint256",
1261
+ "name": "deadline",
1262
+ "type": "uint256"
1263
+ }
1264
+ ],
1265
+ "name": "withdrawFromOtherAsset",
1266
+ "outputs": [
1267
+ {
1268
+ "internalType": "uint256",
1269
+ "name": "toAmount",
1270
+ "type": "uint256"
1239
1271
  }
1240
1272
  ],
1241
- "name": "withdrawPayment",
1242
- "outputs": [],
1243
1273
  "stateMutability": "nonpayable",
1244
1274
  "type": "function"
1275
+ },
1276
+ {
1277
+ "inputs": [],
1278
+ "name": "creditForTokensHaircut",
1279
+ "outputs": [
1280
+ {
1281
+ "internalType": "uint128",
1282
+ "name": "",
1283
+ "type": "uint128"
1284
+ }
1285
+ ],
1286
+ "stateMutability": "view",
1287
+ "type": "function"
1245
1288
  }
1246
1289
  ]