Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YouStillAlive committed Feb 19, 2024
1 parent d870909 commit 41027e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/CollateralProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CollateralProvider } from "../typechain-types"
import { DealProvider } from "../typechain-types"
import { LockDealNFT } from "../typechain-types"
import { MockProvider } from "../typechain-types"
import { deployed, token, MAX_RATIO, BUSD } from "lockdeal-nft/test/helper"
import { deployed } from "@poolzfinance/poolz-helper-v2"
import { time, mine } from "@nomicfoundation/hardhat-network-helpers"
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"
import { expect } from "chai"
Expand All @@ -24,8 +24,11 @@ describe("Collateral Provider", function () {
let vaultId: BigNumber
const signature: Bytes = ethers.utils.toUtf8Bytes("signature")
const name: string = "CollateralProvider"
const halfRatio = MAX_RATIO.div(2)
const MAX_RATIO = ethers.utils.parseUnits("1", 21) // 100%
const halfRatio = ethers.utils.parseUnits("5", 20)
const amount = 100000
const token = "0xCcf41440a137299CB6af95114cb043Ce4e28679A"
const BUSD = "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56"

before(async () => {
;[receiver, projectOwner] = await ethers.getSigners()
Expand Down

0 comments on commit 41027e1

Please sign in to comment.