fix: fixed WAD Math

This commit is contained in:
PedroCailleret
2022-12-17 00:55:43 -03:00
parent 122044a1e5
commit 5416bbdd72
18 changed files with 67 additions and 22 deletions

View File

@@ -36,6 +36,8 @@ describe("Reputation", () => {
expect(tx2).to.eq(curve(500));
expect(tx3).to.eq(curve(444444));
expect(tx4).to.eq(curve(988700));
});
});
});

View File

@@ -14,7 +14,7 @@ import {
import {
ethers,
network,
/* , tracer */
/* tracer */
} from "hardhat";
// import keccak256 from "keccak256";
@@ -1578,7 +1578,7 @@ describe("P2PIX", () => {
expect(storage.amount).to.eq(ethers.constants.One);
expect(storage2.amount).to.eq(ethers.constants.Zero);
expect(record1).to.eq(0);
expect(record2).to.eq(100);
expect(record2).to.eq(price);
});
it("should unlock expired through lock function", async () => {
// test method through lock fx