forked from paraswap/paraswap-dex-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve integration test to check on chain prices
- Loading branch information
1 parent
ad872bf
commit 3943f57
Showing
2 changed files
with
375 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,337 @@ | ||
[ | ||
{ | ||
"inputs": [], | ||
"name": "BASIS_POINTS_DIVISOR", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "POSITION_PROPS_LENGTH", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "PRICE_PRECISION", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "USDG_DECIMALS", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IVault", | ||
"name": "_vault", | ||
"type": "address" | ||
}, | ||
{ "internalType": "address", "name": "_tokenIn", "type": "address" }, | ||
{ "internalType": "address", "name": "_tokenOut", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_amountIn", "type": "uint256" } | ||
], | ||
"name": "getAmountOut", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IVault", | ||
"name": "_vault", | ||
"type": "address" | ||
}, | ||
{ "internalType": "address", "name": "_tokenIn", "type": "address" }, | ||
{ "internalType": "address", "name": "_tokenOut", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_amountIn", "type": "uint256" } | ||
], | ||
"name": "getFeeBasisPoints", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_vault", "type": "address" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getFees", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_vault", "type": "address" }, | ||
{ "internalType": "address", "name": "_weth", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_usdgAmount", "type": "uint256" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getFullVaultTokenInfo", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_vault", "type": "address" }, | ||
{ "internalType": "address", "name": "_weth", "type": "address" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getFundingRates", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IVault", | ||
"name": "_vault", | ||
"type": "address" | ||
}, | ||
{ "internalType": "address", "name": "_tokenIn", "type": "address" }, | ||
{ "internalType": "address", "name": "_tokenOut", "type": "address" } | ||
], | ||
"name": "getMaxAmountIn", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_factory", "type": "address" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getPairInfo", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_vault", "type": "address" }, | ||
{ "internalType": "address", "name": "_account", "type": "address" }, | ||
{ | ||
"internalType": "address[]", | ||
"name": "_collateralTokens", | ||
"type": "address[]" | ||
}, | ||
{ | ||
"internalType": "address[]", | ||
"name": "_indexTokens", | ||
"type": "address[]" | ||
}, | ||
{ "internalType": "bool[]", "name": "_isLong", "type": "bool[]" } | ||
], | ||
"name": "getPositions", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IVaultPriceFeed", | ||
"name": "_priceFeed", | ||
"type": "address" | ||
}, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getPrices", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_account", "type": "address" }, | ||
{ | ||
"internalType": "address[]", | ||
"name": "_yieldTrackers", | ||
"type": "address[]" | ||
} | ||
], | ||
"name": "getStakingInfo", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_account", "type": "address" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getTokenBalances", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_account", "type": "address" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getTokenBalancesWithSupplies", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IERC20", | ||
"name": "_token", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address[]", | ||
"name": "_excludedAccounts", | ||
"type": "address[]" | ||
} | ||
], | ||
"name": "getTokenSupply", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IERC20", | ||
"name": "_token", | ||
"type": "address" | ||
}, | ||
{ "internalType": "address[]", "name": "_accounts", "type": "address[]" } | ||
], | ||
"name": "getTotalBalance", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address[]", | ||
"name": "_yieldTokens", | ||
"type": "address[]" | ||
} | ||
], | ||
"name": "getTotalStaked", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_vault", "type": "address" }, | ||
{ "internalType": "address", "name": "_weth", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_usdgAmount", "type": "uint256" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getVaultTokenInfo", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_vault", "type": "address" }, | ||
{ "internalType": "address", "name": "_weth", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_usdgAmount", "type": "uint256" }, | ||
{ "internalType": "address[]", "name": "_tokens", "type": "address[]" } | ||
], | ||
"name": "getVaultTokenInfoV2", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_account", "type": "address" }, | ||
{ "internalType": "address[]", "name": "_vesters", "type": "address[]" } | ||
], | ||
"name": "getVestingInfo", | ||
"outputs": [ | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "gov", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "hasMaxGlobalShortSizes", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "_hasMaxGlobalShortSizes", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "setConfig", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_gov", "type": "address" } | ||
], | ||
"name": "setGov", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.