@pendle/core-v2 0.8.1-gamma → 0.9.0-gamma-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +2 -2
  3. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
  5. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +2 -2
  6. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  7. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
  8. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +2 -2
  9. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
  10. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +2 -2
  11. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
  12. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +2 -2
  13. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
  14. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +2 -2
  15. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
  16. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +2 -2
  17. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
  18. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +2 -2
  19. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +1 -1
  20. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.json +2 -2
  21. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
  22. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +2 -2
  23. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  24. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  33. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  39. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  41. package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
  44. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  48. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  50. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
  52. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +272 -136
  54. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +75 -41
  56. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json +1 -1
  58. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json +1 -1
  60. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +1 -1
  62. package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +268 -132
  75. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +71 -37
  77. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +339 -169
  79. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  109. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  110. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  111. package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
  112. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  113. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  114. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  115. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  116. package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  117. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  118. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
  119. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  120. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +4 -0
  121. package/build/artifacts/contracts/libraries/{traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.json → kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json} +3 -3
  122. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  123. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
  124. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  125. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  126. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  127. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
  128. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  129. package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
  130. package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +6 -8
  131. package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +1 -1
  132. package/contracts/core/PendleRouter.sol +10 -10
  133. package/contracts/core/actions/ActionCore.sol +54 -81
  134. package/contracts/core/actions/ActionYT.sol +17 -37
  135. package/contracts/core/actions/base/ActionSCYAndPTBase.sol +11 -28
  136. package/contracts/core/actions/base/ActionSCYAndPYBase.sol +39 -51
  137. package/contracts/core/actions/base/ActionSCYAndYTBase.sol +10 -27
  138. package/contracts/interfaces/IPActionCore.sol +43 -50
  139. package/contracts/interfaces/IPActionYT.sol +11 -12
  140. package/contracts/libraries/helpers/TokenHelper.sol +8 -3
  141. package/contracts/libraries/kyberswap/KyberSwapHelper.sol +61 -0
  142. package/package.json +1 -1
  143. package/typechain-types/ActionCore.ts +330 -356
  144. package/typechain-types/ActionSCYAndPTBase.ts +11 -8
  145. package/typechain-types/ActionSCYAndPYBase.ts +11 -8
  146. package/typechain-types/ActionSCYAndYTBase.ts +11 -8
  147. package/typechain-types/ActionYT.ts +119 -106
  148. package/typechain-types/IPActionCore.ts +320 -349
  149. package/typechain-types/IPActionYT.ts +110 -100
  150. package/typechain-types/IPAllAction.ts +400 -447
  151. package/typechain-types/KyberSwapHelper.ts +87 -0
  152. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  153. package/typechain-types/factories/ActionCore__factory.ts +275 -139
  154. package/typechain-types/factories/ActionSCYAndPTBase__factory.ts +1 -1
  155. package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +1 -1
  156. package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +1 -1
  157. package/typechain-types/factories/ActionYT__factory.ts +78 -44
  158. package/typechain-types/factories/IPActionCore__factory.ts +268 -132
  159. package/typechain-types/factories/IPActionYT__factory.ts +71 -37
  160. package/typechain-types/factories/IPAllAction__factory.ts +339 -169
  161. package/typechain-types/factories/KyberSwapHelper__factory.ts +39 -0
  162. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
  163. package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
  164. package/typechain-types/factories/PendleEulerSCY__factory.ts +1 -1
  165. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  166. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  167. package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +1 -1
  168. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
  169. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  170. package/typechain-types/factories/PendleSAvaxSCY__factory.ts +1 -1
  171. package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
  172. package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
  173. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  174. package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
  175. package/typechain-types/factories/PendleYearnVaultScy__factory.ts +1 -1
  176. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  177. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  178. package/typechain-types/hardhat.d.ts +9 -0
  179. package/typechain-types/index.ts +2 -0
  180. package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +0 -4
  181. package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.json +0 -662
  182. package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +0 -4
  183. package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.json +0 -760
  184. package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.dbg.json +0 -4
  185. package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.json +0 -962
  186. package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.dbg.json +0 -4
  187. package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.json +0 -10
  188. package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +0 -4
  189. package/contracts/interfaces/IJoePair.sol +0 -98
  190. package/contracts/interfaces/IJoeRouter01.sol +0 -162
  191. package/contracts/interfaces/IJoeRouter02.sol +0 -52
  192. package/contracts/libraries/traderjoe/JoeLibrary.sol +0 -122
  193. package/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol +0 -80
@@ -1,760 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "IJoeRouter01",
4
- "sourceName": "contracts/interfaces/IJoeRouter01.sol",
5
- "abi": [
6
- {
7
- "inputs": [],
8
- "name": "WAVAX",
9
- "outputs": [
10
- {
11
- "internalType": "address",
12
- "name": "",
13
- "type": "address"
14
- }
15
- ],
16
- "stateMutability": "pure",
17
- "type": "function"
18
- },
19
- {
20
- "inputs": [
21
- {
22
- "internalType": "address",
23
- "name": "tokenA",
24
- "type": "address"
25
- },
26
- {
27
- "internalType": "address",
28
- "name": "tokenB",
29
- "type": "address"
30
- },
31
- {
32
- "internalType": "uint256",
33
- "name": "amountADesired",
34
- "type": "uint256"
35
- },
36
- {
37
- "internalType": "uint256",
38
- "name": "amountBDesired",
39
- "type": "uint256"
40
- },
41
- {
42
- "internalType": "uint256",
43
- "name": "amountAMin",
44
- "type": "uint256"
45
- },
46
- {
47
- "internalType": "uint256",
48
- "name": "amountBMin",
49
- "type": "uint256"
50
- },
51
- {
52
- "internalType": "address",
53
- "name": "to",
54
- "type": "address"
55
- },
56
- {
57
- "internalType": "uint256",
58
- "name": "deadline",
59
- "type": "uint256"
60
- }
61
- ],
62
- "name": "addLiquidity",
63
- "outputs": [
64
- {
65
- "internalType": "uint256",
66
- "name": "amountA",
67
- "type": "uint256"
68
- },
69
- {
70
- "internalType": "uint256",
71
- "name": "amountB",
72
- "type": "uint256"
73
- },
74
- {
75
- "internalType": "uint256",
76
- "name": "liquidity",
77
- "type": "uint256"
78
- }
79
- ],
80
- "stateMutability": "nonpayable",
81
- "type": "function"
82
- },
83
- {
84
- "inputs": [
85
- {
86
- "internalType": "address",
87
- "name": "token",
88
- "type": "address"
89
- },
90
- {
91
- "internalType": "uint256",
92
- "name": "amountTokenDesired",
93
- "type": "uint256"
94
- },
95
- {
96
- "internalType": "uint256",
97
- "name": "amountTokenMin",
98
- "type": "uint256"
99
- },
100
- {
101
- "internalType": "uint256",
102
- "name": "amountAVAXMin",
103
- "type": "uint256"
104
- },
105
- {
106
- "internalType": "address",
107
- "name": "to",
108
- "type": "address"
109
- },
110
- {
111
- "internalType": "uint256",
112
- "name": "deadline",
113
- "type": "uint256"
114
- }
115
- ],
116
- "name": "addLiquidityAVAX",
117
- "outputs": [
118
- {
119
- "internalType": "uint256",
120
- "name": "amountToken",
121
- "type": "uint256"
122
- },
123
- {
124
- "internalType": "uint256",
125
- "name": "amountAVAX",
126
- "type": "uint256"
127
- },
128
- {
129
- "internalType": "uint256",
130
- "name": "liquidity",
131
- "type": "uint256"
132
- }
133
- ],
134
- "stateMutability": "payable",
135
- "type": "function"
136
- },
137
- {
138
- "inputs": [],
139
- "name": "factory",
140
- "outputs": [
141
- {
142
- "internalType": "address",
143
- "name": "",
144
- "type": "address"
145
- }
146
- ],
147
- "stateMutability": "pure",
148
- "type": "function"
149
- },
150
- {
151
- "inputs": [
152
- {
153
- "internalType": "uint256",
154
- "name": "amountOut",
155
- "type": "uint256"
156
- },
157
- {
158
- "internalType": "uint256",
159
- "name": "reserveIn",
160
- "type": "uint256"
161
- },
162
- {
163
- "internalType": "uint256",
164
- "name": "reserveOut",
165
- "type": "uint256"
166
- }
167
- ],
168
- "name": "getAmountIn",
169
- "outputs": [
170
- {
171
- "internalType": "uint256",
172
- "name": "amountIn",
173
- "type": "uint256"
174
- }
175
- ],
176
- "stateMutability": "pure",
177
- "type": "function"
178
- },
179
- {
180
- "inputs": [
181
- {
182
- "internalType": "uint256",
183
- "name": "amountIn",
184
- "type": "uint256"
185
- },
186
- {
187
- "internalType": "uint256",
188
- "name": "reserveIn",
189
- "type": "uint256"
190
- },
191
- {
192
- "internalType": "uint256",
193
- "name": "reserveOut",
194
- "type": "uint256"
195
- }
196
- ],
197
- "name": "getAmountOut",
198
- "outputs": [
199
- {
200
- "internalType": "uint256",
201
- "name": "amountOut",
202
- "type": "uint256"
203
- }
204
- ],
205
- "stateMutability": "pure",
206
- "type": "function"
207
- },
208
- {
209
- "inputs": [
210
- {
211
- "internalType": "uint256",
212
- "name": "amountOut",
213
- "type": "uint256"
214
- },
215
- {
216
- "internalType": "address[]",
217
- "name": "path",
218
- "type": "address[]"
219
- }
220
- ],
221
- "name": "getAmountsIn",
222
- "outputs": [
223
- {
224
- "internalType": "uint256[]",
225
- "name": "amounts",
226
- "type": "uint256[]"
227
- }
228
- ],
229
- "stateMutability": "view",
230
- "type": "function"
231
- },
232
- {
233
- "inputs": [
234
- {
235
- "internalType": "uint256",
236
- "name": "amountIn",
237
- "type": "uint256"
238
- },
239
- {
240
- "internalType": "address[]",
241
- "name": "path",
242
- "type": "address[]"
243
- }
244
- ],
245
- "name": "getAmountsOut",
246
- "outputs": [
247
- {
248
- "internalType": "uint256[]",
249
- "name": "amounts",
250
- "type": "uint256[]"
251
- }
252
- ],
253
- "stateMutability": "view",
254
- "type": "function"
255
- },
256
- {
257
- "inputs": [
258
- {
259
- "internalType": "uint256",
260
- "name": "amountA",
261
- "type": "uint256"
262
- },
263
- {
264
- "internalType": "uint256",
265
- "name": "reserveA",
266
- "type": "uint256"
267
- },
268
- {
269
- "internalType": "uint256",
270
- "name": "reserveB",
271
- "type": "uint256"
272
- }
273
- ],
274
- "name": "quote",
275
- "outputs": [
276
- {
277
- "internalType": "uint256",
278
- "name": "amountB",
279
- "type": "uint256"
280
- }
281
- ],
282
- "stateMutability": "pure",
283
- "type": "function"
284
- },
285
- {
286
- "inputs": [
287
- {
288
- "internalType": "address",
289
- "name": "tokenA",
290
- "type": "address"
291
- },
292
- {
293
- "internalType": "address",
294
- "name": "tokenB",
295
- "type": "address"
296
- },
297
- {
298
- "internalType": "uint256",
299
- "name": "liquidity",
300
- "type": "uint256"
301
- },
302
- {
303
- "internalType": "uint256",
304
- "name": "amountAMin",
305
- "type": "uint256"
306
- },
307
- {
308
- "internalType": "uint256",
309
- "name": "amountBMin",
310
- "type": "uint256"
311
- },
312
- {
313
- "internalType": "address",
314
- "name": "to",
315
- "type": "address"
316
- },
317
- {
318
- "internalType": "uint256",
319
- "name": "deadline",
320
- "type": "uint256"
321
- }
322
- ],
323
- "name": "removeLiquidity",
324
- "outputs": [
325
- {
326
- "internalType": "uint256",
327
- "name": "amountA",
328
- "type": "uint256"
329
- },
330
- {
331
- "internalType": "uint256",
332
- "name": "amountB",
333
- "type": "uint256"
334
- }
335
- ],
336
- "stateMutability": "nonpayable",
337
- "type": "function"
338
- },
339
- {
340
- "inputs": [
341
- {
342
- "internalType": "address",
343
- "name": "token",
344
- "type": "address"
345
- },
346
- {
347
- "internalType": "uint256",
348
- "name": "liquidity",
349
- "type": "uint256"
350
- },
351
- {
352
- "internalType": "uint256",
353
- "name": "amountTokenMin",
354
- "type": "uint256"
355
- },
356
- {
357
- "internalType": "uint256",
358
- "name": "amountAVAXMin",
359
- "type": "uint256"
360
- },
361
- {
362
- "internalType": "address",
363
- "name": "to",
364
- "type": "address"
365
- },
366
- {
367
- "internalType": "uint256",
368
- "name": "deadline",
369
- "type": "uint256"
370
- }
371
- ],
372
- "name": "removeLiquidityAVAX",
373
- "outputs": [
374
- {
375
- "internalType": "uint256",
376
- "name": "amountToken",
377
- "type": "uint256"
378
- },
379
- {
380
- "internalType": "uint256",
381
- "name": "amountAVAX",
382
- "type": "uint256"
383
- }
384
- ],
385
- "stateMutability": "nonpayable",
386
- "type": "function"
387
- },
388
- {
389
- "inputs": [
390
- {
391
- "internalType": "address",
392
- "name": "token",
393
- "type": "address"
394
- },
395
- {
396
- "internalType": "uint256",
397
- "name": "liquidity",
398
- "type": "uint256"
399
- },
400
- {
401
- "internalType": "uint256",
402
- "name": "amountTokenMin",
403
- "type": "uint256"
404
- },
405
- {
406
- "internalType": "uint256",
407
- "name": "amountAVAXMin",
408
- "type": "uint256"
409
- },
410
- {
411
- "internalType": "address",
412
- "name": "to",
413
- "type": "address"
414
- },
415
- {
416
- "internalType": "uint256",
417
- "name": "deadline",
418
- "type": "uint256"
419
- },
420
- {
421
- "internalType": "bool",
422
- "name": "approveMax",
423
- "type": "bool"
424
- },
425
- {
426
- "internalType": "uint8",
427
- "name": "v",
428
- "type": "uint8"
429
- },
430
- {
431
- "internalType": "bytes32",
432
- "name": "r",
433
- "type": "bytes32"
434
- },
435
- {
436
- "internalType": "bytes32",
437
- "name": "s",
438
- "type": "bytes32"
439
- }
440
- ],
441
- "name": "removeLiquidityAVAXWithPermit",
442
- "outputs": [
443
- {
444
- "internalType": "uint256",
445
- "name": "amountToken",
446
- "type": "uint256"
447
- },
448
- {
449
- "internalType": "uint256",
450
- "name": "amountAVAX",
451
- "type": "uint256"
452
- }
453
- ],
454
- "stateMutability": "nonpayable",
455
- "type": "function"
456
- },
457
- {
458
- "inputs": [
459
- {
460
- "internalType": "address",
461
- "name": "tokenA",
462
- "type": "address"
463
- },
464
- {
465
- "internalType": "address",
466
- "name": "tokenB",
467
- "type": "address"
468
- },
469
- {
470
- "internalType": "uint256",
471
- "name": "liquidity",
472
- "type": "uint256"
473
- },
474
- {
475
- "internalType": "uint256",
476
- "name": "amountAMin",
477
- "type": "uint256"
478
- },
479
- {
480
- "internalType": "uint256",
481
- "name": "amountBMin",
482
- "type": "uint256"
483
- },
484
- {
485
- "internalType": "address",
486
- "name": "to",
487
- "type": "address"
488
- },
489
- {
490
- "internalType": "uint256",
491
- "name": "deadline",
492
- "type": "uint256"
493
- },
494
- {
495
- "internalType": "bool",
496
- "name": "approveMax",
497
- "type": "bool"
498
- },
499
- {
500
- "internalType": "uint8",
501
- "name": "v",
502
- "type": "uint8"
503
- },
504
- {
505
- "internalType": "bytes32",
506
- "name": "r",
507
- "type": "bytes32"
508
- },
509
- {
510
- "internalType": "bytes32",
511
- "name": "s",
512
- "type": "bytes32"
513
- }
514
- ],
515
- "name": "removeLiquidityWithPermit",
516
- "outputs": [
517
- {
518
- "internalType": "uint256",
519
- "name": "amountA",
520
- "type": "uint256"
521
- },
522
- {
523
- "internalType": "uint256",
524
- "name": "amountB",
525
- "type": "uint256"
526
- }
527
- ],
528
- "stateMutability": "nonpayable",
529
- "type": "function"
530
- },
531
- {
532
- "inputs": [
533
- {
534
- "internalType": "uint256",
535
- "name": "amountOut",
536
- "type": "uint256"
537
- },
538
- {
539
- "internalType": "address[]",
540
- "name": "path",
541
- "type": "address[]"
542
- },
543
- {
544
- "internalType": "address",
545
- "name": "to",
546
- "type": "address"
547
- },
548
- {
549
- "internalType": "uint256",
550
- "name": "deadline",
551
- "type": "uint256"
552
- }
553
- ],
554
- "name": "swapAVAXForExactTokens",
555
- "outputs": [
556
- {
557
- "internalType": "uint256[]",
558
- "name": "amounts",
559
- "type": "uint256[]"
560
- }
561
- ],
562
- "stateMutability": "payable",
563
- "type": "function"
564
- },
565
- {
566
- "inputs": [
567
- {
568
- "internalType": "uint256",
569
- "name": "amountOutMin",
570
- "type": "uint256"
571
- },
572
- {
573
- "internalType": "address[]",
574
- "name": "path",
575
- "type": "address[]"
576
- },
577
- {
578
- "internalType": "address",
579
- "name": "to",
580
- "type": "address"
581
- },
582
- {
583
- "internalType": "uint256",
584
- "name": "deadline",
585
- "type": "uint256"
586
- }
587
- ],
588
- "name": "swapExactAVAXForTokens",
589
- "outputs": [
590
- {
591
- "internalType": "uint256[]",
592
- "name": "amounts",
593
- "type": "uint256[]"
594
- }
595
- ],
596
- "stateMutability": "payable",
597
- "type": "function"
598
- },
599
- {
600
- "inputs": [
601
- {
602
- "internalType": "uint256",
603
- "name": "amountIn",
604
- "type": "uint256"
605
- },
606
- {
607
- "internalType": "uint256",
608
- "name": "amountOutMin",
609
- "type": "uint256"
610
- },
611
- {
612
- "internalType": "address[]",
613
- "name": "path",
614
- "type": "address[]"
615
- },
616
- {
617
- "internalType": "address",
618
- "name": "to",
619
- "type": "address"
620
- },
621
- {
622
- "internalType": "uint256",
623
- "name": "deadline",
624
- "type": "uint256"
625
- }
626
- ],
627
- "name": "swapExactTokensForAVAX",
628
- "outputs": [
629
- {
630
- "internalType": "uint256[]",
631
- "name": "amounts",
632
- "type": "uint256[]"
633
- }
634
- ],
635
- "stateMutability": "nonpayable",
636
- "type": "function"
637
- },
638
- {
639
- "inputs": [
640
- {
641
- "internalType": "uint256",
642
- "name": "amountIn",
643
- "type": "uint256"
644
- },
645
- {
646
- "internalType": "uint256",
647
- "name": "amountOutMin",
648
- "type": "uint256"
649
- },
650
- {
651
- "internalType": "address[]",
652
- "name": "path",
653
- "type": "address[]"
654
- },
655
- {
656
- "internalType": "address",
657
- "name": "to",
658
- "type": "address"
659
- },
660
- {
661
- "internalType": "uint256",
662
- "name": "deadline",
663
- "type": "uint256"
664
- }
665
- ],
666
- "name": "swapExactTokensForTokens",
667
- "outputs": [
668
- {
669
- "internalType": "uint256[]",
670
- "name": "amounts",
671
- "type": "uint256[]"
672
- }
673
- ],
674
- "stateMutability": "nonpayable",
675
- "type": "function"
676
- },
677
- {
678
- "inputs": [
679
- {
680
- "internalType": "uint256",
681
- "name": "amountOut",
682
- "type": "uint256"
683
- },
684
- {
685
- "internalType": "uint256",
686
- "name": "amountInMax",
687
- "type": "uint256"
688
- },
689
- {
690
- "internalType": "address[]",
691
- "name": "path",
692
- "type": "address[]"
693
- },
694
- {
695
- "internalType": "address",
696
- "name": "to",
697
- "type": "address"
698
- },
699
- {
700
- "internalType": "uint256",
701
- "name": "deadline",
702
- "type": "uint256"
703
- }
704
- ],
705
- "name": "swapTokensForExactAVAX",
706
- "outputs": [
707
- {
708
- "internalType": "uint256[]",
709
- "name": "amounts",
710
- "type": "uint256[]"
711
- }
712
- ],
713
- "stateMutability": "nonpayable",
714
- "type": "function"
715
- },
716
- {
717
- "inputs": [
718
- {
719
- "internalType": "uint256",
720
- "name": "amountOut",
721
- "type": "uint256"
722
- },
723
- {
724
- "internalType": "uint256",
725
- "name": "amountInMax",
726
- "type": "uint256"
727
- },
728
- {
729
- "internalType": "address[]",
730
- "name": "path",
731
- "type": "address[]"
732
- },
733
- {
734
- "internalType": "address",
735
- "name": "to",
736
- "type": "address"
737
- },
738
- {
739
- "internalType": "uint256",
740
- "name": "deadline",
741
- "type": "uint256"
742
- }
743
- ],
744
- "name": "swapTokensForExactTokens",
745
- "outputs": [
746
- {
747
- "internalType": "uint256[]",
748
- "name": "amounts",
749
- "type": "uint256[]"
750
- }
751
- ],
752
- "stateMutability": "nonpayable",
753
- "type": "function"
754
- }
755
- ],
756
- "bytecode": "0x",
757
- "deployedBytecode": "0x",
758
- "linkReferences": {},
759
- "deployedLinkReferences": {}
760
- }