|
|
@@ -1,10 +1,9 @@
|
|
|
-import {ethers, web3} from "hardhat";
|
|
|
+import { web3 } from "hardhat";
|
|
|
import contracts from "../config/contracts";
|
|
|
import deployer from "../.secret";
|
|
|
-import fee from "../config/fee";
|
|
|
|
|
|
describe('Flash test', () => {
|
|
|
- let inAmount = 1e15.toString()
|
|
|
+ let inAmount = 1e10.toString()
|
|
|
|
|
|
it('Flash swap test', async () => {
|
|
|
const FLASH_ABI = require('../artifacts/contracts/Flash.sol/Flash.json').abi
|
|
|
@@ -23,8 +22,7 @@ describe('Flash test', () => {
|
|
|
.flashLoan({
|
|
|
pool: WETH_USDT_POOL_CONTRACT,
|
|
|
inToken0: true,
|
|
|
- outAmount: 1,
|
|
|
- inAmount: 1e10,
|
|
|
+ inAmount: inAmount,
|
|
|
sqrtPriceLimitX96: 0,
|
|
|
inToken: contracts.WETH
|
|
|
})
|