CalcTest.ts 432 B

1234567891011121314
  1. import {web3} from "hardhat";
  2. import fee from "../config/fee";
  3. import contracts from "../config/contracts";
  4. describe('Calc test', () => {
  5. it('Univ3 swap test', async () => {
  6. const Calc_ABI = require('../abi/Calc_ABI').default
  7. let calc = new web3.eth.Contract(Calc_ABI, contracts.CALC)
  8. // 1450752979
  9. console.log(await calc.methods.getQuote(contracts.WETH, 1e15, contracts.HEX, fee._30_per_10000).call())
  10. })
  11. })